gems-status 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,12 +29,16 @@ class RubyGemsGems_GemSimple < GemSimple
|
|
29
29
|
|
30
30
|
def date
|
31
31
|
Utils::log_debug "looking for date for #{@name} - #{@version}"
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
begin
|
33
|
+
versions = JSON.parse(open("https://rubygems.org/api/v1/versions/#{@name}.json").read)
|
34
|
+
versions.each do |version|
|
35
|
+
if Gem::Version.new(version["number"]) == @version
|
36
|
+
Utils::log_debug "Date for #{@name} - #{@version} : #{version["built_at"]}"
|
37
|
+
return Time.parse version["built_at"]
|
38
|
+
end
|
37
39
|
end
|
40
|
+
rescue
|
41
|
+
Utils::log_error(@name, "There was a problem opening https://rubygems.org/api/v1/versions/#{@name}.json")
|
38
42
|
end
|
39
43
|
nil
|
40
44
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gems-status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 103
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 30
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.30.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordi Massaguer Pla
|