jeweler 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
+ # jeweler 1.6.3
2
+
3
+ * Fix typo in Rake tasks
4
+ * Fix deprecation warnings for `Gem.activate`
5
+
1
6
  # jeweler 1.6.2
2
7
 
3
8
  * Loosen bundler dependency to work with 1.x #180
9
+
4
10
  # jeweler 1.6.1
5
11
 
6
12
  * Fix "undefined method 'sh'" when using rake 0.9.0 #181, #182, #184
@@ -5,14 +5,15 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jeweler}
8
- s.version = "1.6.2"
8
+ s.version = "1.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Josh Nichols}]
12
- s.date = %q{2011-06-01}
11
+ s.authors = ["Josh Nichols"]
12
+ s.date = %q{2011-07-01}
13
+ s.default_executable = %q{jeweler}
13
14
  s.description = %q{Simple and opinionated helper for creating Rubygem projects on GitHub}
14
15
  s.email = %q{josh@technicalpickles.com}
15
- s.executables = [%q{jeweler}]
16
+ s.executables = ["jeweler"]
16
17
  s.extra_rdoc_files = [
17
18
  "ChangeLog.markdown",
18
19
  "LICENSE.txt",
@@ -179,12 +180,13 @@ Gem::Specification.new do |s|
179
180
  "test/test_jeweler.rb"
180
181
  ]
181
182
  s.homepage = %q{http://github.com/technicalpickles/jeweler}
182
- s.licenses = [%q{MIT}]
183
- s.require_paths = [%q{lib}]
184
- s.rubygems_version = %q{1.8.4}
183
+ s.licenses = ["MIT"]
184
+ s.require_paths = ["lib"]
185
+ s.rubygems_version = %q{1.3.7}
185
186
  s.summary = %q{Opinionated tool for creating and managing RubyGem projects}
186
187
 
187
188
  if s.respond_to? :specification_version then
189
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
188
190
  s.specification_version = 3
189
191
 
190
192
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -8,14 +8,7 @@ class Jeweler
8
8
  attr_accessor :gemspec, :type
9
9
 
10
10
  def run
11
- missing_dependencies = dependencies.select do |dependency|
12
- begin
13
- Gem.activate dependency.name, *dependency.requirement.as_list
14
- false
15
- rescue LoadError => e
16
- true
17
- end
18
- end
11
+ missing_dependencies = find_missing_dependencies
19
12
 
20
13
  if missing_dependencies.empty?
21
14
  puts "#{type || 'All'} dependencies seem to be installed."
@@ -29,6 +22,29 @@ class Jeweler
29
22
  end
30
23
  end
31
24
 
25
+ def find_missing_dependencies
26
+ if Gem::Specification.respond_to?(:find_by_name)
27
+ dependencies.select do |dependency|
28
+ begin
29
+ spec = Gem::Specification.find_by_name(dependency.name, *dependency.requirement.as_list)
30
+ spec.activate if spec
31
+ !spec
32
+ rescue LoadError => e
33
+ true
34
+ end
35
+ end
36
+ else
37
+ dependencies.select do |dependency|
38
+ begin
39
+ Gem.activate dependency.name, *dependency.requirement.as_list
40
+ false
41
+ rescue LoadError => e
42
+ true
43
+ end
44
+ end
45
+ end
46
+ end
47
+
32
48
  def dependencies
33
49
  case type
34
50
  when :runtime, :development
@@ -76,7 +76,7 @@ class Jeweler
76
76
  abort "Expected #{jeweler.gemspec_helper.path} to exist. See 'rake gemspec:write' to create it"
77
77
  end
78
78
  end
79
-
79
+
80
80
 
81
81
  desc "Build gem into pkg/"
82
82
  task :build do
@@ -106,7 +106,7 @@ class Jeweler
106
106
  jeweler.validate_gemspec
107
107
  end
108
108
 
109
- desc "Regenreate the gemspec on the filesystem"
109
+ desc "Regenerate the gemspec on the filesystem"
110
110
  task :generate => :version_required do
111
111
  jeweler.write_gemspec
112
112
  end
@@ -118,7 +118,7 @@ class Jeweler
118
118
  jeweler.version_helper.refresh
119
119
  jeweler.version_helper.to_s
120
120
  end
121
-
121
+
122
122
  puts jeweler.gemspec_helper.to_ruby
123
123
  end
124
124
 
@@ -173,7 +173,7 @@ class Jeweler
173
173
  task :release => 'git:release'
174
174
 
175
175
  unless File.exist?('Gemfile')
176
- desc "Check that runtime and development dependencies are installed"
176
+ desc "Check that runtime and development dependencies are installed"
177
177
  task :check_dependencies do
178
178
  jeweler.check_dependencies
179
179
  end
@@ -218,7 +218,7 @@ class Jeweler
218
218
  # return the $LOAD_PATH to it's original state
219
219
  $LOAD_PATH.reject! { |path| !(original_load_path.include?(path)) }
220
220
  end
221
-
221
+
222
222
  end
223
223
  end
224
224
  end
@@ -2,7 +2,7 @@ class Jeweler
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 6
5
- PATCH = 2
5
+ PATCH = 3
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeweler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
4
+ hash: 9
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 2
10
- version: 1.6.2
9
+ - 3
10
+ version: 1.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Nichols
@@ -15,11 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-01 00:00:00 Z
18
+ date: 2011-07-01 00:00:00 -04:00
19
+ default_executable: jeweler
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ type: :runtime
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
25
  none: false
24
26
  requirements:
25
27
  - - ">="
@@ -28,12 +30,12 @@ dependencies:
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
31
- type: :runtime
33
+ requirement: *id001
32
34
  name: rake
33
- version_requirements: *id001
34
35
  - !ruby/object:Gem::Dependency
35
36
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
+ type: :runtime
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
37
39
  none: false
38
40
  requirements:
39
41
  - - ">="
@@ -44,12 +46,12 @@ dependencies:
44
46
  - 2
45
47
  - 5
46
48
  version: 1.2.5
47
- type: :runtime
49
+ requirement: *id002
48
50
  name: git
49
- version_requirements: *id002
50
51
  - !ruby/object:Gem::Dependency
51
52
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
+ type: :runtime
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
53
55
  none: false
54
56
  requirements:
55
57
  - - ~>
@@ -59,12 +61,12 @@ dependencies:
59
61
  - 1
60
62
  - 0
61
63
  version: "1.0"
62
- type: :runtime
64
+ requirement: *id003
63
65
  name: bundler
64
- version_requirements: *id003
65
66
  - !ruby/object:Gem::Dependency
66
67
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
+ type: :development
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
70
  none: false
69
71
  requirements:
70
72
  - - ">="
@@ -73,12 +75,12 @@ dependencies:
73
75
  segments:
74
76
  - 0
75
77
  version: "0"
76
- type: :development
78
+ requirement: *id004
77
79
  name: shoulda
78
- version_requirements: *id004
79
80
  - !ruby/object:Gem::Dependency
80
81
  prerelease: false
81
- requirement: &id005 !ruby/object:Gem::Requirement
82
+ type: :development
83
+ version_requirements: &id005 !ruby/object:Gem::Requirement
82
84
  none: false
83
85
  requirements:
84
86
  - - ">="
@@ -87,12 +89,12 @@ dependencies:
87
89
  segments:
88
90
  - 0
89
91
  version: "0"
90
- type: :development
92
+ requirement: *id005
91
93
  name: mhennemeyer-output_catcher
92
- version_requirements: *id005
93
94
  - !ruby/object:Gem::Dependency
94
95
  prerelease: false
95
- requirement: &id006 !ruby/object:Gem::Requirement
96
+ type: :development
97
+ version_requirements: &id006 !ruby/object:Gem::Requirement
96
98
  none: false
97
99
  requirements:
98
100
  - - ">="
@@ -101,12 +103,12 @@ dependencies:
101
103
  segments:
102
104
  - 0
103
105
  version: "0"
104
- type: :development
106
+ requirement: *id006
105
107
  name: rr
106
- version_requirements: *id006
107
108
  - !ruby/object:Gem::Dependency
108
109
  prerelease: false
109
- requirement: &id007 !ruby/object:Gem::Requirement
110
+ type: :development
111
+ version_requirements: &id007 !ruby/object:Gem::Requirement
110
112
  none: false
111
113
  requirements:
112
114
  - - ">="
@@ -115,12 +117,12 @@ dependencies:
115
117
  segments:
116
118
  - 0
117
119
  version: "0"
118
- type: :development
120
+ requirement: *id007
119
121
  name: mocha
120
- version_requirements: *id007
121
122
  - !ruby/object:Gem::Dependency
122
123
  prerelease: false
123
- requirement: &id008 !ruby/object:Gem::Requirement
124
+ type: :development
125
+ version_requirements: &id008 !ruby/object:Gem::Requirement
124
126
  none: false
125
127
  requirements:
126
128
  - - ">="
@@ -129,12 +131,12 @@ dependencies:
129
131
  segments:
130
132
  - 0
131
133
  version: "0"
132
- type: :development
134
+ requirement: *id008
133
135
  name: redgreen
134
- version_requirements: *id008
135
136
  - !ruby/object:Gem::Dependency
136
137
  prerelease: false
137
- requirement: &id009 !ruby/object:Gem::Requirement
138
+ type: :development
139
+ version_requirements: &id009 !ruby/object:Gem::Requirement
138
140
  none: false
139
141
  requirements:
140
142
  - - ">="
@@ -143,12 +145,12 @@ dependencies:
143
145
  segments:
144
146
  - 0
145
147
  version: "0"
146
- type: :development
148
+ requirement: *id009
147
149
  name: test-construct
148
- version_requirements: *id009
149
150
  - !ruby/object:Gem::Dependency
150
151
  prerelease: false
151
- requirement: &id010 !ruby/object:Gem::Requirement
152
+ type: :development
153
+ version_requirements: &id010 !ruby/object:Gem::Requirement
152
154
  none: false
153
155
  requirements:
154
156
  - - ~>
@@ -159,12 +161,12 @@ dependencies:
159
161
  - 6
160
162
  - 0
161
163
  version: 0.6.0
162
- type: :development
164
+ requirement: *id010
163
165
  name: yard
164
- version_requirements: *id010
165
166
  - !ruby/object:Gem::Dependency
166
167
  prerelease: false
167
- requirement: &id011 !ruby/object:Gem::Requirement
168
+ type: :development
169
+ version_requirements: &id011 !ruby/object:Gem::Requirement
168
170
  none: false
169
171
  requirements:
170
172
  - - ">="
@@ -173,12 +175,12 @@ dependencies:
173
175
  segments:
174
176
  - 0
175
177
  version: "0"
176
- type: :development
178
+ requirement: *id011
177
179
  name: bluecloth
178
- version_requirements: *id011
179
180
  - !ruby/object:Gem::Dependency
180
181
  prerelease: false
181
- requirement: &id012 !ruby/object:Gem::Requirement
182
+ type: :development
183
+ version_requirements: &id012 !ruby/object:Gem::Requirement
182
184
  none: false
183
185
  requirements:
184
186
  - - ">="
@@ -187,12 +189,12 @@ dependencies:
187
189
  segments:
188
190
  - 0
189
191
  version: "0"
190
- type: :development
192
+ requirement: *id012
191
193
  name: cucumber
192
- version_requirements: *id012
193
194
  - !ruby/object:Gem::Dependency
194
195
  prerelease: false
195
- requirement: &id013 !ruby/object:Gem::Requirement
196
+ type: :development
197
+ version_requirements: &id013 !ruby/object:Gem::Requirement
196
198
  none: false
197
199
  requirements:
198
200
  - - ">="
@@ -201,12 +203,12 @@ dependencies:
201
203
  segments:
202
204
  - 0
203
205
  version: "0"
204
- type: :development
206
+ requirement: *id013
205
207
  name: rcov
206
- version_requirements: *id013
207
208
  - !ruby/object:Gem::Dependency
208
209
  prerelease: false
209
- requirement: &id014 !ruby/object:Gem::Requirement
210
+ type: :development
211
+ version_requirements: &id014 !ruby/object:Gem::Requirement
210
212
  none: false
211
213
  requirements:
212
214
  - - ">="
@@ -215,12 +217,12 @@ dependencies:
215
217
  segments:
216
218
  - 0
217
219
  version: "0"
218
- type: :development
220
+ requirement: *id014
219
221
  name: timecop
220
- version_requirements: *id014
221
222
  - !ruby/object:Gem::Dependency
222
223
  prerelease: false
223
- requirement: &id015 !ruby/object:Gem::Requirement
224
+ type: :development
225
+ version_requirements: &id015 !ruby/object:Gem::Requirement
224
226
  none: false
225
227
  requirements:
226
228
  - - ~>
@@ -231,12 +233,12 @@ dependencies:
231
233
  - 3
232
234
  - 5
233
235
  version: 2.3.5
234
- type: :development
236
+ requirement: *id015
235
237
  name: activesupport
236
- version_requirements: *id015
237
238
  - !ruby/object:Gem::Dependency
238
239
  prerelease: false
239
- requirement: &id016 !ruby/object:Gem::Requirement
240
+ type: :development
241
+ version_requirements: &id016 !ruby/object:Gem::Requirement
240
242
  none: false
241
243
  requirements:
242
244
  - - ">="
@@ -245,9 +247,8 @@ dependencies:
245
247
  segments:
246
248
  - 0
247
249
  version: "0"
248
- type: :development
250
+ requirement: *id016
249
251
  name: ruby-debug
250
- version_requirements: *id016
251
252
  description: Simple and opinionated helper for creating Rubygem projects on GitHub
252
253
  email: josh@technicalpickles.com
253
254
  executables:
@@ -417,6 +418,7 @@ files:
417
418
  - test/shoulda_macros/jeweler_macros.rb
418
419
  - test/test_helper.rb
419
420
  - test/test_jeweler.rb
421
+ has_rdoc: true
420
422
  homepage: http://github.com/technicalpickles/jeweler
421
423
  licenses:
422
424
  - MIT
@@ -446,7 +448,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
446
448
  requirements: []
447
449
 
448
450
  rubyforge_project:
449
- rubygems_version: 1.8.4
451
+ rubygems_version: 1.3.7
450
452
  signing_key:
451
453
  specification_version: 3
452
454
  summary: Opinionated tool for creating and managing RubyGem projects