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 +4 -4
- data/Gemfile +1 -1
- data/lib/gemfiler/output.rb +8 -3
- data/lib/gemfiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3ba010913ed7e47bfc6c87c0e4d45f1ff8a4b51
|
4
|
+
data.tar.gz: 9e95f96b39976a8135442f82666bc72e2db6162c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/gemfiler/output.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/gemfiler/version.rb
CHANGED