corundum 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OGUyMmFlMmM0M2EyMGI4NTc4MzM0MWNhMTdkZjkwNzc2ZTRmODc4ZA==
5
+ data.tar.gz: !binary |-
6
+ YjEwYzMzMzc5YjQ2MzZhODBiODMxMzlhNjBlNmY5NTQyYzRhOTE3Yg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ODJiNGMwMzYwNzYyMTQ4MzU2OWRiODI3NjllMzE0OGQxMGU3MDViMDE5OTky
10
+ ZWUzZmNkNTQzNzdjOWQzNjY0YjRkZjE1Mzc1N2MzNjlmMDk5N2UwMDAzYWU5
11
+ NmFjMDIwMWY2M2ZmYzc4NGM0MTE2ZWE2ZDA5YjM4Nzc5MWJmMTg=
12
+ data.tar.gz: !binary |-
13
+ ZThmZWIwMmI2ZjFhZWI0MGZjZGMzNjljNTc4ODkwNmY1Njc3MDE2Mjk3ODAz
14
+ NDgxYjZmYjI5MzRmMjJmNTE4ZmZiYWI5Y2ZhODBlOWYxN2Q2NTMxNzE2Yjg5
15
+ NGQ3ZDVhNGFiNmUwZGUyOTUxNDZhYWQ4NDA3ZDM0MzY1MjA1NmY=
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  gem 'corundum'
4
4
  gemspec
@@ -55,6 +55,37 @@ module Corundum
55
55
  cmd
56
56
  end
57
57
 
58
+ class DepsChecker
59
+ def self.build
60
+ if Gem::SpecFetcher.instance_methods.include?(:find_matching)
61
+ CheckerForRubyGems189.new
62
+ else
63
+ CheckerForRubyGems200.new
64
+ end
65
+ end
66
+
67
+ def initialize
68
+ @checker = Gem::SpecFetcher.new
69
+ end
70
+
71
+ def fulfilled?(dependency)
72
+
73
+ end
74
+ end
75
+
76
+ class CheckerForRubyGems189 < DepsChecker
77
+ def fulfilled?(dependency)
78
+ !(@checker.find_matching(dependency,true,false,false).empty)
79
+ end
80
+ end
81
+
82
+ class CheckerForRubyGems200 < DepsChecker
83
+ def fulfilled?(dependency)
84
+ gems, errors = *(@checker.search_for_dependency(dependency))
85
+ !gems.empty?
86
+ end
87
+ end
88
+
58
89
  def define
59
90
  in_namespace do
60
91
  task :uninstall do |t|
@@ -79,16 +110,15 @@ module Corundum
79
110
 
80
111
  task :dependencies_available do
81
112
  require 'corundum/qa-report'
82
- checker = Gem::SpecFetcher.new
83
113
  report = QA::Report.new("Gem dependencies[#{File::basename(gemspec.loaded_from)}]")
84
114
  qa_rejections << report
115
+ checker = DepsChecker.build
85
116
  gemspec.runtime_dependencies.each do |dep|
86
- fulfilling = checker.find_matching(dep,true,false,false)
87
- if fulfilling.empty?
117
+ if checker.fulfilled?(dep)
118
+ report.add("status", dep, nil, "fulfilled")
119
+ else
88
120
  report.add("status", dep, nil, "missing")
89
121
  report.fail "Dependency unfulfilled remotely"
90
- else
91
- report.add("status", dep, nil, "fulfilled")
92
122
  end
93
123
  end
94
124
  end
@@ -115,10 +145,9 @@ module Corundum
115
145
  end
116
146
 
117
147
  task :is_unpushed do
118
- checker = Gem::SpecFetcher.new
148
+ checker = DepsChecker.build
119
149
  dep = Gem::Dependency.new(gemspec.name, "= #{gemspec.version}")
120
- fulfilling = checker.find_matching(dep,false,false,false)
121
- unless fulfilling.empty?
150
+ if checker.fulfilled?(dep)
122
151
  fail "Gem #{gemspec.full_name} is already pushed"
123
152
  end
124
153
  end
metadata CHANGED
@@ -1,236 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corundum
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.3
4
+ version: 0.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Judson Lester
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2013-11-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ~>
17
+ - !ruby/object:Gem::Version
18
+ version: 0.0.1
15
19
  prerelease: false
16
- type: :development
17
20
  name: corundum
18
21
  version_requirements: !ruby/object:Gem::Requirement
19
22
  requirements:
20
23
  - - ~>
21
24
  - !ruby/object:Gem::Version
22
25
  version: 0.0.1
23
- none: false
26
+ type: :development
27
+ - !ruby/object:Gem::Dependency
24
28
  requirement: !ruby/object:Gem::Requirement
25
29
  requirements:
26
- - - ~>
30
+ - - ! '>='
27
31
  - !ruby/object:Gem::Version
28
- version: 0.0.1
29
- none: false
30
- - !ruby/object:Gem::Dependency
32
+ version: '0'
31
33
  prerelease: false
32
- type: :runtime
33
34
  name: rdoc
34
35
  version_requirements: !ruby/object:Gem::Requirement
35
36
  requirements:
36
37
  - - ! '>='
37
38
  - !ruby/object:Gem::Version
38
39
  version: '0'
39
- none: true
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
40
42
  requirement: !ruby/object:Gem::Requirement
41
43
  requirements:
42
44
  - - ! '>='
43
45
  - !ruby/object:Gem::Version
44
46
  version: '0'
45
- none: true
46
- - !ruby/object:Gem::Dependency
47
47
  prerelease: false
48
- type: :runtime
49
48
  name: yard
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - ! '>='
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- none: true
54
+ type: :runtime
55
+ - !ruby/object:Gem::Dependency
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ! '>='
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
- version: '0'
61
- none: true
62
- - !ruby/object:Gem::Dependency
60
+ version: 1.4.0
63
61
  prerelease: false
64
- type: :runtime
65
62
  name: mailfactory
66
63
  version_requirements: !ruby/object:Gem::Requirement
67
64
  requirements:
68
65
  - - ~>
69
66
  - !ruby/object:Gem::Version
70
- segments:
71
- - 1
72
- - 4
73
- - 0
74
67
  version: 1.4.0
75
- none: false
68
+ type: :runtime
69
+ - !ruby/object:Gem::Dependency
76
70
  requirement: !ruby/object:Gem::Requirement
77
71
  requirements:
78
- - - ~>
72
+ - - ! '>='
79
73
  - !ruby/object:Gem::Version
80
- segments:
81
- - 1
82
- - 4
83
- - 0
84
- version: 1.4.0
85
- none: false
86
- - !ruby/object:Gem::Dependency
74
+ version: '2.0'
87
75
  prerelease: false
88
- type: :runtime
89
76
  name: rspec
90
77
  version_requirements: !ruby/object:Gem::Requirement
91
78
  requirements:
92
79
  - - ! '>='
93
80
  - !ruby/object:Gem::Version
94
- segments:
95
- - 2
96
- - 0
97
81
  version: '2.0'
98
- none: false
82
+ type: :runtime
83
+ - !ruby/object:Gem::Dependency
99
84
  requirement: !ruby/object:Gem::Requirement
100
85
  requirements:
101
86
  - - ! '>='
102
87
  - !ruby/object:Gem::Version
103
- segments:
104
- - 2
105
- - 0
106
- version: '2.0'
107
- none: false
108
- - !ruby/object:Gem::Dependency
88
+ version: 0.5.4
109
89
  prerelease: false
110
- type: :runtime
111
90
  name: simplecov
112
91
  version_requirements: !ruby/object:Gem::Requirement
113
92
  requirements:
114
93
  - - ! '>='
115
94
  - !ruby/object:Gem::Version
116
- segments:
117
- - 0
118
- - 5
119
- - 4
120
95
  version: 0.5.4
121
- none: false
96
+ type: :runtime
97
+ - !ruby/object:Gem::Dependency
122
98
  requirement: !ruby/object:Gem::Requirement
123
99
  requirements:
124
100
  - - ! '>='
125
101
  - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
- - 5
129
- - 4
130
- version: 0.5.4
131
- none: false
132
- - !ruby/object:Gem::Dependency
102
+ version: '0'
133
103
  prerelease: false
134
- type: :runtime
135
104
  name: bundler
136
105
  version_requirements: !ruby/object:Gem::Requirement
137
106
  requirements:
138
107
  - - ! '>='
139
108
  - !ruby/object:Gem::Version
140
109
  version: '0'
141
- none: true
110
+ type: :runtime
111
+ - !ruby/object:Gem::Dependency
142
112
  requirement: !ruby/object:Gem::Requirement
143
113
  requirements:
144
114
  - - ! '>='
145
115
  - !ruby/object:Gem::Version
146
116
  version: '0'
147
- none: true
148
- - !ruby/object:Gem::Dependency
149
117
  prerelease: false
150
- type: :runtime
151
118
  name: nokogiri
152
119
  version_requirements: !ruby/object:Gem::Requirement
153
120
  requirements:
154
121
  - - ! '>='
155
122
  - !ruby/object:Gem::Version
156
123
  version: '0'
157
- none: true
124
+ type: :runtime
125
+ - !ruby/object:Gem::Dependency
158
126
  requirement: !ruby/object:Gem::Requirement
159
127
  requirements:
160
- - - ! '>='
128
+ - - ~>
161
129
  - !ruby/object:Gem::Version
162
- version: '0'
163
- none: true
164
- - !ruby/object:Gem::Dependency
130
+ version: '0.5'
165
131
  prerelease: false
166
- type: :runtime
167
132
  name: mattock
168
133
  version_requirements: !ruby/object:Gem::Requirement
169
134
  requirements:
170
135
  - - ~>
171
136
  - !ruby/object:Gem::Version
172
- segments:
173
- - 0
174
- - 5
175
- - 3
176
- version: 0.5.3
177
- none: false
137
+ version: '0.5'
138
+ type: :runtime
139
+ - !ruby/object:Gem::Dependency
178
140
  requirement: !ruby/object:Gem::Requirement
179
141
  requirements:
180
- - - ~>
142
+ - - ! '>='
181
143
  - !ruby/object:Gem::Version
182
- segments:
183
- - 0
184
- - 5
185
- - 3
186
- version: 0.5.3
187
- none: false
188
- - !ruby/object:Gem::Dependency
144
+ version: '3.1'
189
145
  prerelease: false
190
- type: :runtime
191
146
  name: sass
192
147
  version_requirements: !ruby/object:Gem::Requirement
193
148
  requirements:
194
149
  - - ! '>='
195
150
  - !ruby/object:Gem::Version
196
- segments:
197
- - 3
198
- - 1
199
151
  version: '3.1'
200
- none: false
152
+ type: :runtime
153
+ - !ruby/object:Gem::Dependency
201
154
  requirement: !ruby/object:Gem::Requirement
202
155
  requirements:
203
156
  - - ! '>='
204
157
  - !ruby/object:Gem::Version
205
- segments:
206
- - 3
207
- - 1
208
- version: '3.1'
209
- none: false
210
- - !ruby/object:Gem::Dependency
158
+ version: 0.12.1
211
159
  prerelease: false
212
- type: :runtime
213
160
  name: compass
214
161
  version_requirements: !ruby/object:Gem::Requirement
215
162
  requirements:
216
163
  - - ! '>='
217
164
  - !ruby/object:Gem::Version
218
- segments:
219
- - 0
220
- - 12
221
- - 1
222
165
  version: 0.12.1
223
- none: false
224
- requirement: !ruby/object:Gem::Requirement
225
- requirements:
226
- - - ! '>='
227
- - !ruby/object:Gem::Version
228
- segments:
229
- - 0
230
- - 12
231
- - 1
232
- version: 0.12.1
233
- none: false
166
+ type: :runtime
234
167
  description: ! " A corundum is a synthetic gemstone - including synthetic rubies.
235
168
  \ Ergo: a tool for synthesizing gems.\n\n Corundum starts with the outlook that
236
169
  gemspecs are relatively easy to work with, and that the opinion of the RubyGems
@@ -396,30 +329,26 @@ files:
396
329
  homepage: http://nyarly.github.com/corundum/
397
330
  licenses:
398
331
  - MIT
332
+ metadata: {}
399
333
  post_install_message:
400
334
  rdoc_options:
401
335
  - --title
402
- - corundum-0.1.3 RDoc
336
+ - corundum-0.1.4 RDoc
403
337
  require_paths:
404
338
  - lib/
405
339
  required_ruby_version: !ruby/object:Gem::Requirement
406
340
  requirements:
407
341
  - - ! '>='
408
342
  - !ruby/object:Gem::Version
409
- segments:
410
- - 0
411
- hash: -273546353
412
343
  version: '0'
413
- none: false
414
344
  required_rubygems_version: !ruby/object:Gem::Requirement
415
345
  requirements:
416
346
  - - ! '>='
417
347
  - !ruby/object:Gem::Version
418
348
  version: '0'
419
- none: false
420
349
  requirements: []
421
350
  rubyforge_project: corundum
422
- rubygems_version: 1.8.24
351
+ rubygems_version: 2.1.10
423
352
  signing_key:
424
353
  specification_version: 3
425
354
  summary: Tools for synthesizing rubygems