its-it 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/.gitignore +18 -0
  2. data/Rakefile +14 -33
  3. data/its-it.gemspec +25 -112
  4. data/lib/its-it/version.rb +2 -9
  5. metadata +14 -191
  6. data/Gemfile.lock +0 -42
  7. data/VERSION +0 -1
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # don't commit Gemfile.lock for gems
18
+ Gemfile.lock
data/Rakefile CHANGED
@@ -1,7 +1,13 @@
1
1
  require 'rubygems'
2
- require 'bundler'
2
+
3
+ begin
4
+ require 'bundler'
5
+ rescue LoadError
6
+ $stderr.puts "You must install bundler - run `gem install bundler`"
7
+ end
8
+
3
9
  begin
4
- Bundler.setup(:default, :development)
10
+ Bundler.setup
5
11
  rescue Bundler::BundlerError => e
6
12
  $stderr.puts e.message
7
13
  $stderr.puts "Run `bundle install` to install missing gems"
@@ -9,43 +15,16 @@ rescue Bundler::BundlerError => e
9
15
  end
10
16
  require 'rake'
11
17
 
12
- require 'jeweler'
13
- require './lib/its-it/version'
14
- Jeweler::Tasks.new do |gem|
15
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
16
- gem.name = "its-it"
17
- gem.homepage = "http://github.com/ronen/its-it"
18
- gem.license = "MIT"
19
- gem.summary = %Q{Defines its() and it() method-chain proc proxies.}
20
- gem.description = %Q{
21
- This gem defines the Kernel method "it", which extends the Symbol#to_proc
22
- idiom to support chaining multiple methods. For example,
23
- items.collect(&it.to_s.capitalize). The method is also aliased as "its",
24
- for methods that describe possessives rather than actions, such as
25
- items.collect(&its.name.capitalize)
26
-
27
- [This gem is clone of Jay Philips' "methodphitamine" gem, updated for ruby 1.9 and gemspec compatibility.]
28
- }
29
- gem.email = "ronen@barzel.org"
30
- gem.authors = ["Ronen Barzel"]
31
- gem.version = ItsIt::Version::STRING
32
- gem.add_runtime_dependency 'blankslate'
33
- gem.add_development_dependency "rspec", "~> 2.3.0"
34
- gem.add_development_dependency "bundler", "~> 1.0.0"
35
- gem.add_development_dependency "jeweler", "~> 1.5.2"
36
- gem.add_development_dependency "simplecov"
37
- gem.add_development_dependency "simplecov-gem-adapter"
38
- end
39
- Jeweler::RubygemsDotOrgTasks.new
18
+ require 'bueller'
19
+ Bueller::Tasks.new
40
20
 
41
- require 'rspec/core'
42
21
  require 'rspec/core/rake_task'
43
22
  RSpec::Core::RakeTask.new(:spec) do |spec|
44
- spec.pattern = FileList['spec/**/*_spec.rb']
23
+ spec.rspec_opts = '-Ispec'
45
24
  end
46
25
 
47
26
  RSpec::Core::RakeTask.new(:rcov) do |spec|
48
- spec.pattern = 'spec/**/*_spec.rb'
27
+ spec.rspec_opts = '-Ispec'
49
28
  spec.rcov = true
50
29
  end
51
30
 
@@ -55,8 +34,10 @@ require 'rake/rdoctask'
55
34
  Rake::RDocTask.new do |rdoc|
56
35
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
57
36
 
37
+ rdoc.main = 'README.rdoc'
58
38
  rdoc.rdoc_dir = 'rdoc'
59
39
  rdoc.title = "its-it #{version}"
60
40
  rdoc.rdoc_files.include('README*')
61
41
  rdoc.rdoc_files.include('lib/**/*.rb')
62
42
  end
43
+
data/its-it.gemspec CHANGED
@@ -1,15 +1,15 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require 'its-it/version'
5
3
 
6
4
  Gem::Specification.new do |s|
7
- s.name = %q{its-it}
8
- s.version = "1.0.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ronen Barzel"]
12
- s.date = %q{2011-04-23}
5
+ s.name = 'its-it'
6
+ s.version = ItsIt::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.date = "2011-04-23"
9
+ s.authors = ['Ronen Barzel']
10
+ s.email = 'ronen@barzel.org'
11
+ s.homepage = 'http://github.com/ronen/its-it'
12
+ s.summary = %q{Defines its() and it() method-chain proc proxies.}
13
13
  s.description = %q{
14
14
  This gem defines the Kernel method "it", which extends the Symbol#to_proc
15
15
  idiom to support chaining multiple methods. For example,
@@ -19,113 +19,26 @@ items.collect(&its.name.capitalize)
19
19
 
20
20
  [This gem is clone of Jay Philips' "methodphitamine" gem, updated for ruby 1.9 and gemspec compatibility.]
21
21
  }
22
- s.email = %q{ronen@barzel.org}
23
22
  s.extra_rdoc_files = [
24
23
  "LICENSE.txt",
25
24
  "README.rdoc"
26
25
  ]
27
- s.files = [
28
- ".document",
29
- ".rspec",
30
- "Gemfile",
31
- "Gemfile.lock",
32
- "LICENSE.txt",
33
- "README.rdoc",
34
- "Rakefile",
35
- "VERSION",
36
- "its-it.gemspec",
37
- "lib/its-it.rb",
38
- "lib/its-it/it.rb",
39
- "lib/its-it/kernel.rb",
40
- "lib/its-it/version.rb",
41
- "spec/it_spec.rb",
42
- "spec/rspec_compatibility_spec.rb",
43
- "spec/spec_helper.rb"
44
- ]
45
- s.homepage = %q{http://github.com/ronen/its-it}
46
- s.licenses = ["MIT"]
47
- s.require_paths = ["lib"]
48
- s.rubygems_version = %q{1.7.2}
49
- s.summary = %q{Defines its() and it() method-chain proc proxies.}
50
- s.test_files = [
51
- "spec/it_spec.rb",
52
- "spec/rspec_compatibility_spec.rb",
53
- "spec/spec_helper.rb"
54
- ]
55
26
 
56
- if s.respond_to? :specification_version then
57
- s.specification_version = 3
27
+ s.required_rubygems_version = Gem::Requirement.new('>= 1.3.7')
28
+ s.rubygems_version = '1.3.7'
29
+ s.specification_version = 3
30
+
31
+ s.files = `git ls-files`.split("\n")
32
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
33
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
34
+ s.require_paths = ['lib']
35
+
36
+ s.add_runtime_dependency 'blankslate'
37
+ s.add_development_dependency 'rspec'
38
+ s.add_development_dependency 'bundler'
39
+ s.add_development_dependency 'bueller'
40
+ s.add_development_dependency 'simplecov'
41
+ s.add_development_dependency 'simplecov-gem-adapter'
58
42
 
59
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
- s.add_runtime_dependency(%q<its-it>, [">= 0"])
61
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
62
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
63
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
64
- s.add_development_dependency(%q<simplecov>, [">= 0"])
65
- s.add_development_dependency(%q<simplecov-gem-adapter>, [">= 0"])
66
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
67
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
68
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
69
- s.add_development_dependency(%q<simplecov>, [">= 0"])
70
- s.add_development_dependency(%q<simplecov-gem-adapter>, [">= 0"])
71
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
72
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
73
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
74
- s.add_development_dependency(%q<simplecov>, [">= 0"])
75
- s.add_development_dependency(%q<simplecov-gem-adapter>, [">= 0"])
76
- s.add_runtime_dependency(%q<blankslate>, [">= 0"])
77
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
78
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
79
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
80
- s.add_development_dependency(%q<simplecov>, [">= 0"])
81
- s.add_development_dependency(%q<simplecov-gem-adapter>, [">= 0"])
82
- else
83
- s.add_dependency(%q<its-it>, [">= 0"])
84
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
85
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
86
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
87
- s.add_dependency(%q<simplecov>, [">= 0"])
88
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
89
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
90
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
91
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
92
- s.add_dependency(%q<simplecov>, [">= 0"])
93
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
94
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
95
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
96
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
97
- s.add_dependency(%q<simplecov>, [">= 0"])
98
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
99
- s.add_dependency(%q<blankslate>, [">= 0"])
100
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
101
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
102
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
103
- s.add_dependency(%q<simplecov>, [">= 0"])
104
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
105
- end
106
- else
107
- s.add_dependency(%q<its-it>, [">= 0"])
108
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
109
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
110
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
111
- s.add_dependency(%q<simplecov>, [">= 0"])
112
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
113
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
114
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
115
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
116
- s.add_dependency(%q<simplecov>, [">= 0"])
117
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
118
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
119
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
120
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
121
- s.add_dependency(%q<simplecov>, [">= 0"])
122
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
123
- s.add_dependency(%q<blankslate>, [">= 0"])
124
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
125
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
126
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
127
- s.add_dependency(%q<simplecov>, [">= 0"])
128
- s.add_dependency(%q<simplecov-gem-adapter>, [">= 0"])
129
- end
130
43
  end
131
44
 
@@ -1,10 +1,3 @@
1
- module ItsIt #:nodoc:
2
- module Version #:nodoc:
3
- MAJOR = 1
4
- MINOR = 0
5
- PATCH = 0
6
- BUILD = nil
7
-
8
- STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
- end
1
+ module ItsIt
2
+ VERSION = "1.0.1"
10
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: its-it
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ronen Barzel
@@ -13,7 +13,7 @@ cert_chain: []
13
13
  date: 2011-04-23 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: its-it
16
+ name: blankslate
17
17
  requirement: &id001 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
@@ -28,9 +28,9 @@ dependencies:
28
28
  requirement: &id002 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
- - - ~>
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.0
33
+ version: "0"
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: *id002
@@ -39,20 +39,20 @@ dependencies:
39
39
  requirement: &id003 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
- - - ~>
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.0.0
44
+ version: "0"
45
45
  type: :development
46
46
  prerelease: false
47
47
  version_requirements: *id003
48
48
  - !ruby/object:Gem::Dependency
49
- name: jeweler
49
+ name: bueller
50
50
  requirement: &id004 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
- - - ~>
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.5.2
55
+ version: "0"
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: *id004
@@ -78,182 +78,6 @@ dependencies:
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: rspec
83
- requirement: &id007 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ~>
87
- - !ruby/object:Gem::Version
88
- version: 2.3.0
89
- type: :development
90
- prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
93
- name: bundler
94
- requirement: &id008 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
97
- - - ~>
98
- - !ruby/object:Gem::Version
99
- version: 1.0.0
100
- type: :development
101
- prerelease: false
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
104
- name: jeweler
105
- requirement: &id009 !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- version: 1.5.2
111
- type: :development
112
- prerelease: false
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
115
- name: simplecov
116
- requirement: &id010 !ruby/object:Gem::Requirement
117
- none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: "0"
122
- type: :development
123
- prerelease: false
124
- version_requirements: *id010
125
- - !ruby/object:Gem::Dependency
126
- name: simplecov-gem-adapter
127
- requirement: &id011 !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: "0"
133
- type: :development
134
- prerelease: false
135
- version_requirements: *id011
136
- - !ruby/object:Gem::Dependency
137
- name: rspec
138
- requirement: &id012 !ruby/object:Gem::Requirement
139
- none: false
140
- requirements:
141
- - - ~>
142
- - !ruby/object:Gem::Version
143
- version: 2.3.0
144
- type: :development
145
- prerelease: false
146
- version_requirements: *id012
147
- - !ruby/object:Gem::Dependency
148
- name: bundler
149
- requirement: &id013 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - ~>
153
- - !ruby/object:Gem::Version
154
- version: 1.0.0
155
- type: :development
156
- prerelease: false
157
- version_requirements: *id013
158
- - !ruby/object:Gem::Dependency
159
- name: jeweler
160
- requirement: &id014 !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ~>
164
- - !ruby/object:Gem::Version
165
- version: 1.5.2
166
- type: :development
167
- prerelease: false
168
- version_requirements: *id014
169
- - !ruby/object:Gem::Dependency
170
- name: simplecov
171
- requirement: &id015 !ruby/object:Gem::Requirement
172
- none: false
173
- requirements:
174
- - - ">="
175
- - !ruby/object:Gem::Version
176
- version: "0"
177
- type: :development
178
- prerelease: false
179
- version_requirements: *id015
180
- - !ruby/object:Gem::Dependency
181
- name: simplecov-gem-adapter
182
- requirement: &id016 !ruby/object:Gem::Requirement
183
- none: false
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: "0"
188
- type: :development
189
- prerelease: false
190
- version_requirements: *id016
191
- - !ruby/object:Gem::Dependency
192
- name: blankslate
193
- requirement: &id017 !ruby/object:Gem::Requirement
194
- none: false
195
- requirements:
196
- - - ">="
197
- - !ruby/object:Gem::Version
198
- version: "0"
199
- type: :runtime
200
- prerelease: false
201
- version_requirements: *id017
202
- - !ruby/object:Gem::Dependency
203
- name: rspec
204
- requirement: &id018 !ruby/object:Gem::Requirement
205
- none: false
206
- requirements:
207
- - - ~>
208
- - !ruby/object:Gem::Version
209
- version: 2.3.0
210
- type: :development
211
- prerelease: false
212
- version_requirements: *id018
213
- - !ruby/object:Gem::Dependency
214
- name: bundler
215
- requirement: &id019 !ruby/object:Gem::Requirement
216
- none: false
217
- requirements:
218
- - - ~>
219
- - !ruby/object:Gem::Version
220
- version: 1.0.0
221
- type: :development
222
- prerelease: false
223
- version_requirements: *id019
224
- - !ruby/object:Gem::Dependency
225
- name: jeweler
226
- requirement: &id020 !ruby/object:Gem::Requirement
227
- none: false
228
- requirements:
229
- - - ~>
230
- - !ruby/object:Gem::Version
231
- version: 1.5.2
232
- type: :development
233
- prerelease: false
234
- version_requirements: *id020
235
- - !ruby/object:Gem::Dependency
236
- name: simplecov
237
- requirement: &id021 !ruby/object:Gem::Requirement
238
- none: false
239
- requirements:
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- version: "0"
243
- type: :development
244
- prerelease: false
245
- version_requirements: *id021
246
- - !ruby/object:Gem::Dependency
247
- name: simplecov-gem-adapter
248
- requirement: &id022 !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ">="
252
- - !ruby/object:Gem::Version
253
- version: "0"
254
- type: :development
255
- prerelease: false
256
- version_requirements: *id022
257
81
  description: "\n\
258
82
  This gem defines the Kernel method \"it\", which extends the Symbol#to_proc\n\
259
83
  idiom to support chaining multiple methods. For example,\n\
@@ -271,13 +95,12 @@ extra_rdoc_files:
271
95
  - README.rdoc
272
96
  files:
273
97
  - .document
98
+ - .gitignore
274
99
  - .rspec
275
100
  - Gemfile
276
- - Gemfile.lock
277
101
  - LICENSE.txt
278
102
  - README.rdoc
279
103
  - Rakefile
280
- - VERSION
281
104
  - its-it.gemspec
282
105
  - lib/its-it.rb
283
106
  - lib/its-it/it.rb
@@ -287,8 +110,8 @@ files:
287
110
  - spec/rspec_compatibility_spec.rb
288
111
  - spec/spec_helper.rb
289
112
  homepage: http://github.com/ronen/its-it
290
- licenses:
291
- - MIT
113
+ licenses: []
114
+
292
115
  post_install_message:
293
116
  rdoc_options: []
294
117
 
@@ -299,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
299
122
  requirements:
300
123
  - - ">="
301
124
  - !ruby/object:Gem::Version
302
- hash: -58219903
125
+ hash: 143375
303
126
  segments:
304
127
  - 0
305
128
  version: "0"
@@ -308,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
131
  requirements:
309
132
  - - ">="
310
133
  - !ruby/object:Gem::Version
311
- version: "0"
134
+ version: 1.3.7
312
135
  requirements: []
313
136
 
314
137
  rubyforge_project:
data/Gemfile.lock DELETED
@@ -1,42 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- its-it (1.0.0)
5
- blankslate
6
- its-it
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- blankslate (2.1.2.4)
12
- diff-lcs (1.1.2)
13
- git (1.2.5)
14
- jeweler (1.5.2)
15
- bundler (~> 1.0.0)
16
- git (>= 1.2.5)
17
- rake
18
- rake (0.8.7)
19
- rspec (2.3.0)
20
- rspec-core (~> 2.3.0)
21
- rspec-expectations (~> 2.3.0)
22
- rspec-mocks (~> 2.3.0)
23
- rspec-core (2.3.1)
24
- rspec-expectations (2.3.0)
25
- diff-lcs (~> 1.1.2)
26
- rspec-mocks (2.3.0)
27
- simplecov (0.4.2)
28
- simplecov-html (~> 0.4.4)
29
- simplecov-gem-adapter (1.0.1)
30
- simplecov
31
- simplecov-html (0.4.4)
32
-
33
- PLATFORMS
34
- ruby
35
-
36
- DEPENDENCIES
37
- bundler (~> 1.0.0)
38
- its-it!
39
- jeweler (~> 1.5.2)
40
- rspec (~> 2.3.0)
41
- simplecov
42
- simplecov-gem-adapter
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.1.0