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 +4 -4
- data/lib/license_scout/license.rb +3 -3
- data/lib/license_scout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57d85e891dfcbaa756c9b16bc500c42e9fbfa0640015965f33fc08939d70c554
|
4
|
+
data.tar.gz: f84feb4e5c5efa5cb213b64948d27c95beb3b2ee9a0f543bf1a6e231a0f9c595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
12
|
+
date: 2018-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi-yajl
|