license_scout 2.0.13 → 2.0.14

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
  SHA256:
3
- metadata.gz: '083c186a1281fd2129f52315c6b91021b51d5c1eb469d644a4e0e51086ab3f6d'
4
- data.tar.gz: 0e10fefd19ce350e9a891a289bd6f9401da76c9a42611f7b7f8dafc10e9f30f6
3
+ metadata.gz: 57d85e891dfcbaa756c9b16bc500c42e9fbfa0640015965f33fc08939d70c554
4
+ data.tar.gz: f84feb4e5c5efa5cb213b64948d27c95beb3b2ee9a0f543bf1a6e231a0f9c595
5
5
  SHA512:
6
- metadata.gz: c08146739c6f6ed594d1da256ebdfe63ba635a575a7e56b152fba488927674660ea58d5caf72eec6194767d095ff31d98341f2cdd47ee2ff8498bd5061922953
7
- data.tar.gz: 96ced0aa9fa584b0921ed11a5f30aa60a5da75d72a0dceef4a011c36882b672c7325f653cbe3c15cad651518b443f57c8d6962971624a395dc0af8a8f0324a33
6
+ metadata.gz: 111165550c1cf078c48bc5c1878e3e4529c9abafcb3d4731696cc51c2f779829abe6b8efd6e6269ff483c9c54c44d2647b4a70d2777cefabb0c098edcdf71d4f
7
+ data.tar.gz: 67cb097807cd8cbfddd5ab0bc2c2f45acb51997d4446c9520edf6fcad472703633fee290c9899f865307951ee82ee35c49423bc5106765a2577e9c2796f5a568
@@ -107,9 +107,6 @@ module LicenseScout
107
107
  begin
108
108
  LicenseScout::Log.debug("[license] Pulling license content for #{license_id} from #{new_url}")
109
109
  open(new_url).read
110
- rescue OpenURI::HTTPError, Errno::ECONNREFUSED, SocketError
111
- LicenseScout::Log.warn("[license] Unable to download license for #{license_id} from #{new_url}")
112
- nil
113
110
  rescue RuntimeError => e
114
111
  if e.message =~ /redirection forbidden/
115
112
  m = /redirection forbidden:\s+(.+)\s+->\s+(.+)/.match(e.message)
@@ -120,6 +117,9 @@ module LicenseScout
120
117
  else
121
118
  raise e
122
119
  end
120
+ rescue
121
+ LicenseScout::Log.warn("[license] Unable to download license for #{license_id} from #{new_url}")
122
+ nil
123
123
  end
124
124
  end
125
125
  end
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module LicenseScout
19
- VERSION = "2.0.13"
19
+ VERSION = "2.0.14"
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Sutay
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-15 00:00:00.000000000 Z
12
+ date: 2018-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi-yajl