license_scout 1.2.16 → 1.3.0

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: 931923ee6588a3ba0e761c667c6d55666db7443f5274ea121ebd6975eafdf52e
4
- data.tar.gz: 841743ab542a791c853c68395028614ff2a37189ad89a73edc4d6c1711fe8f75
3
+ metadata.gz: 692d3d250f7d7b1c2a4cefec235264a3890b8f55d48b6f2282a1598c37302a4a
4
+ data.tar.gz: c6e9cf1ecb75d6fe790d07a6f91eefdb5b87442513390243dfd2a793654fda49
5
5
  SHA512:
6
- metadata.gz: f6f60074eb1e4fd667a3fb1aa3e7b6930d297d51707fda414927ff11257a27bf9b9c02739b3dd5059fcd6b6404fb1b74ef4cf00c3331f6ad54fd162dd84c40f4
7
- data.tar.gz: 8dd8c27092876ccbb7b9583c09ccbe64f75eebe54671a21bfb351abb41ae74da97dcf4149796b6d78cf5de6d8f9d4fad2fd427d6f603547aff06c93de43138ed
6
+ metadata.gz: 036375414721a92620009b6e529aec365e9219d3bb01b17bd34ff7b4c7e1a903b96dd0de40fe48259a685841861e1c7e2e8c3ce95668993941d7fad450b035c5
7
+ data.tar.gz: de63ac1f76f46ae793614ae26871ea798bd401010903b5c1cadee36066d7d7a57284aaf46c38eaebb6e8ebe82aa718881b96d58a7da295461be0fe522a733038
@@ -36,7 +36,7 @@ module LicenseScout
36
36
  "file in #{project_dir}"
37
37
  end
38
38
 
39
- deps = YAML.load(File.read(glide_yaml_locked))
39
+ deps = YAML.safe_load(File.read(glide_yaml_locked), permitted_classes: [Date, Symbol, Time])
40
40
  deps["imports"].map { |i| add_glide_dep(i) }
41
41
  end
42
42
 
@@ -19,6 +19,7 @@ require "open-uri" unless defined?(OpenURI)
19
19
  require "tmpdir" unless defined?(Dir.mktmpdir)
20
20
  require "digest" unless defined?(Digest)
21
21
  require "socket" unless defined?(Socket) # Defines `SocketError`
22
+ require "timeout" unless defined?(Timeout)
22
23
 
23
24
  require "license_scout/exceptions"
24
25
 
@@ -84,7 +85,7 @@ module LicenseScout
84
85
  read_timeout: 300,
85
86
  }
86
87
 
87
- open(from_url, options) do |f|
88
+ URI.open(from_url, **options) do |f|
88
89
  save_to_cache(f)
89
90
  end
90
91
  rescue SocketError,
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module LicenseScout
19
- VERSION = "1.2.16".freeze
19
+ VERSION = "1.3.0".freeze
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.16
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Sutay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2022-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-yajl
@@ -144,30 +144,30 @@ dependencies:
144
144
  name: berkshelf
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: '4.3'
149
+ version: '0'
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - "~>"
154
+ - - ">="
155
155
  - !ruby/object:Gem::Version
156
- version: '4.3'
156
+ version: '0'
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: chef-config
159
159
  requirement: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - "<"
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
- version: 16.5.77
163
+ version: '0'
164
164
  type: :development
165
165
  prerelease: false
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - "<"
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
- version: 16.5.77
170
+ version: '0'
171
171
  description: Discovers license files of a project's dependencies.
172
172
  email:
173
173
  - serdar@chef.io
@@ -249,7 +249,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
249
249
  requirements:
250
250
  - - ">="
251
251
  - !ruby/object:Gem::Version
252
- version: '2.3'
252
+ version: '2.7'
253
253
  required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - ">="