lock_diff 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/lib/lock_diff/gem/ruby_gem.rb +18 -1
- data/lib/lock_diff/version.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: 49e90bd5a6ed3fbc00553bdcda81175a6284e823
|
4
|
+
data.tar.gz: 55e43f00d8cbb5debda5a9a0f5a8e36bda970443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4b8f38e2309147797b3b5204deaa874a82f638d670254cd82a6171e9186b8104f60264ec81f43c1374c5ded1cb4c083156a4a49732a4eac24db0df427943dad
|
7
|
+
data.tar.gz: 18447bbe8452d330ba39ee8af80dcd43d40f8932696e36e200d72c915660c8db5db4e49f2c7e9eac67b3ba81b3f18264c1bda0ee2a128faa86e25a224631da8c
|
@@ -14,7 +14,8 @@ module LockDiff
|
|
14
14
|
content = HTTPClient.get_content("https://rubygems.org/api/v1/gems/#{name}.json")
|
15
15
|
@ruby_gem = OpenStruct.new(JSON.parse(content))
|
16
16
|
rescue => e
|
17
|
-
LockDiff.logger.warn("Could not fetch gem info of #{
|
17
|
+
LockDiff.logger.warn("Could not fetch gem info of #{name} because of #{e.inspect}")
|
18
|
+
@ruby_gem = NullRubyGem.new(name)
|
18
19
|
end
|
19
20
|
|
20
21
|
def github_url
|
@@ -22,5 +23,21 @@ module LockDiff
|
|
22
23
|
end
|
23
24
|
|
24
25
|
end
|
26
|
+
|
27
|
+
class NullRubyGem
|
28
|
+
def initialize(name)
|
29
|
+
@name = name
|
30
|
+
end
|
31
|
+
|
32
|
+
def homepage_url
|
33
|
+
end
|
34
|
+
|
35
|
+
def source_code_url
|
36
|
+
end
|
37
|
+
|
38
|
+
def github_url
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
25
42
|
end
|
26
43
|
end
|
data/lib/lock_diff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lock_diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vividmuimui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|