forked from beastaugh/methodphitamine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
its-it.gemspec
46 lines (39 loc) · 1.67 KB
/
its-it.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$:.push File.expand_path("../lib", __FILE__)
require 'its-it/version'
Gem::Specification.new do |s|
s.name = 'its-it'
s.version = ItsIt::VERSION
s.platform = Gem::Platform::RUBY
s.date = "2011-04-26"
s.authors = ['Ronen Barzel']
s.email = '[email protected]'
s.homepage = 'http://github.com/ronen/its-it'
s.summary = %q{Defines its() and it() method-chain proxies.}
s.description = %q{
This gem defines the Kernel method "it" that queue and defer method calls.
This extends the Symbol#to_proc idiom to support chaining multiple methods.
For example, items.collect(&it.to_s.capitalize). This also allows
conditionals in case statements, such as: case ... when it > 3 then [etc.].
The method is also aliased as "its", for methods that describe possessives
rather than actions, such as items.collect(&its.name.capitalize)
[This gem is an extension of Jay Philips' "methodphitamine" gem, updated
for ruby 1.9 and gemspec compatibility and adding the case statement functionality.]
}
s.extra_rdoc_files = [
"LICENSE.txt",
]
s.required_ruby_version = '~> 2.7'
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.7')
s.rubygems_version = '1.3.7'
s.specification_version = 3
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ['lib']
s.add_development_dependency 'rake'
s.add_development_dependency 'rdoc'
s.add_development_dependency 'rspec', "~> 3.0"
s.add_development_dependency 'bundler'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'simplecov-gem-profile'
end