gem-compare 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubygems/comparator.rb +4 -0
- data/lib/rubygems/comparator/spec_comparator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc96f307c32525272b20d96b0a7c2868aef1050c
|
4
|
+
data.tar.gz: 823a99971f99e8e200e924292dc8bab39ddd12dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2fee98426cc1f86957e04cacb70c49c12ae031c303db12350e54ee42c7040ae9e745ff9be68da01e323b8e73a153c51fd61c0af5a1739cedf609fb6c398f38d
|
7
|
+
data.tar.gz: e59e79ae3d3aedc2d8bc3591d2014a36213814e75950fa7ad628654154a1bf4215cddc71c9ad8ee8672597fe4de73d626d49433d69f7e7086476bd1d6238e14b
|
data/lib/rubygems/comparator.rb
CHANGED
@@ -156,6 +156,10 @@ class Gem::Comparator
|
|
156
156
|
gems = json.collect { |version| version['number'] }
|
157
157
|
info "Upstream versions: #{gems}"
|
158
158
|
gems
|
159
|
+
# "This rubygem could not be found."
|
160
|
+
rescue JSON::ParserError
|
161
|
+
error "Gem #{gem_name} does not exist."
|
162
|
+
exit 1
|
159
163
|
end
|
160
164
|
|
161
165
|
def latest_gem_version(gem_name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-compare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Stribny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|