gemfiler 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f966ab4ecc6fe450eba87b92d89ce39bd25b0386
4
- data.tar.gz: 53314f72465bde315985d4f904f1f2f1190c295d
3
+ metadata.gz: c3ba010913ed7e47bfc6c87c0e4d45f1ff8a4b51
4
+ data.tar.gz: 9e95f96b39976a8135442f82666bc72e2db6162c
5
5
  SHA512:
6
- metadata.gz: 4ec8ee14b68dafefb322a10cd4917b503cb5f191f8e0aa2427b9e3904473c6500c9ddf1f7870bdd867a91c426e96dd9f8641e8e34b25b3000507f1329de95aea
7
- data.tar.gz: b12ca4fabc9ebfeef18577caa5fd96fe0a780bf1bcda69d80e69efe70317ec26e89e7c4f23e1191d6ed0b54666c27b575b5c11a531741c292441b4621a2b8d03
6
+ metadata.gz: 03346cd6a5c317fe6f831dc846b9912954721476b0c38677002988f3e018790c1f5133406765e5b0d5b0a809d77eab300808adde7380ce3513b1b7ba77fa9e5e
7
+ data.tar.gz: 5b9fd4c038d644af00f611fcdf2145de7235207de21a4ee3b2ce6c007f66a1d449f2b00139aea0257e7c08553af311c7ea76085794c919a50c163e73c807a772
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+ gemspec
@@ -109,10 +109,15 @@ module Gemfiler
109
109
  puts "-- Annotating #{gem_name}"
110
110
  uri = URI.parse("https://rubygems.org/api/v1/gems/#{gem_name}.json")
111
111
  response = Net::HTTP.get_response(uri)
112
- parsed = JSON.load(response.body)
113
- info = parsed['info']
114
112
 
115
- annotation = " # #{info}"
113
+ if response === Net::HTTPNotFound
114
+ parsed = JSON.load(response.body)
115
+ info = parsed['info']
116
+
117
+ annotation = " # #{info}"
118
+ else
119
+ puts "---- Gem #{gem_name} not a valid gem"
120
+ end
116
121
  end
117
122
 
118
123
  line.join(", ") + annotation
@@ -1,3 +1,3 @@
1
1
  module Gemfiler
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Ross