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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 350868a953714a43814533531c9ffe6bcac986b6
4
- data.tar.gz: 0b4e8f25a0cc2501a91b8be9964e8d7e1766d449
3
+ metadata.gz: 49e90bd5a6ed3fbc00553bdcda81175a6284e823
4
+ data.tar.gz: 55e43f00d8cbb5debda5a9a0f5a8e36bda970443
5
5
  SHA512:
6
- metadata.gz: 6b10659add1b0534294ac1f64fb495d0368048fee0ab86346d7257d8043ccadc549722ff167c66887720f2fa91b5150dfea9dd5c602d7ab1f2623c9b38f483a0
7
- data.tar.gz: cb0ad1c60fca7a06ceb238194189480c141bc72ae87b0186f973e241b3dc07c6b673f5627b65d0848b1b26f2e25e2dfd3df9aa575df50bb67f4871c0a2e37fe0
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 #{@spec.full_name} because of #{e.inspect}")
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
@@ -1,3 +1,3 @@
1
1
  module LockDiff
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-03 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit