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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdfdf184ff5c8adf45d12bd4a112a778846b0de3
4
- data.tar.gz: f191f447401e874a43b078daa3632f73b5074d0d
3
+ metadata.gz: fc96f307c32525272b20d96b0a7c2868aef1050c
4
+ data.tar.gz: 823a99971f99e8e200e924292dc8bab39ddd12dc
5
5
  SHA512:
6
- metadata.gz: f2d726d9045cdb74600a57e37d31c6276118a23c8fc735c12282a9f980871ac3b6f08681ae91b367e3441ad6310771bb580161977d3d99a11ccdad0b2a0b39a1
7
- data.tar.gz: 25fb2b527a17ab006793063b6797bfc9e6c565cf6cdf721af0cd0d604415d47acf8cb8ac00220599756fb0618a4a0805a11fce96266d78b2ccdf6a69b735f2a4
6
+ metadata.gz: b2fee98426cc1f86957e04cacb70c49c12ae031c303db12350e54ee42c7040ae9e745ff9be68da01e323b8e73a153c51fd61c0af5a1739cedf609fb6c398f38d
7
+ data.tar.gz: e59e79ae3d3aedc2d8bc3591d2014a36213814e75950fa7ad628654154a1bf4215cddc71c9ad8ee8672597fe4de73d626d49433d69f7e7086476bd1d6238e14b
@@ -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)
@@ -23,7 +23,7 @@ class Gem::Comparator
23
23
  v = value(values[0])
24
24
  report[param].section do
25
25
  set_header "#{self.same} #{param}:"
26
- puts v
26
+ puts v
27
27
  end
28
28
  elsif !same_values?(values)
29
29
  report[param].set_header "#{different} #{param}:"
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.5
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-03-17 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json