license_scout 1.1.8 → 1.2.3

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: d2a72072b80dddb0469b27bd4a56ab6ed4150a8ec7fa74fafa7f66210eca1f57
4
- data.tar.gz: 20213085708ceb67439c3a33d79aa0eef751714ec1683e6f3ba3ffff119de5fe
3
+ metadata.gz: 924a0e3dd6527ff630bd82cdc004f7ff00e0018e3e43f19e0d3f8905492bf2ac
4
+ data.tar.gz: 7be029d4edb4086d29157da27a742377682ee5ab27a5094e2397c2a3f1765705
5
5
  SHA512:
6
- metadata.gz: fe3ab2b181634e5f1bb4883fc65c7f311f2b7bdcda18eb63bcb57f5e368d555948a1625ebac369bac7346ebe1f230dc3e7944840625bc085fd9967053b479524
7
- data.tar.gz: 8e5857c74a556b84ea938f9f8bc1afe7c92186178eead8df4ccfd65315317ff34421f28ca2603a263a27fa99efbaa5b62eeeb56d39f378a6391ed9e0b91898ef
6
+ metadata.gz: 257fb91389d35d6462da9a52e0f8cf75e439bd7fa8f3d49bd0c77246af40ef868e05f2c19dc37a9f19326034e7e33afca4b7101e2298c795fe49e9f57461b954
7
+ data.tar.gz: 056530f018ba5311e64622fd2b9da84ed4e00a2f9c44fd63c56d1ea91a0bc9e07fd159ec44e42e276ea18ce9bf96eea0cc37e8eae447045c3f35eb48ac979299
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- $:.unshift File.expand_path("../../lib", __FILE__)
19
+ $:.unshift File.expand_path("../lib", __dir__)
20
20
 
21
21
  require "license_scout/collector"
22
22
  require "license_scout/overrides"
@@ -19,7 +19,7 @@ require "license_scout/exceptions"
19
19
  require "license_scout/dependency_manager"
20
20
  require "license_scout/reporter"
21
21
 
22
- require "ffi_yajl"
22
+ require "ffi_yajl" unless defined?(FFI_Yajl)
23
23
 
24
24
  module LicenseScout
25
25
  class Collector
@@ -20,9 +20,9 @@ require "license_scout/net_fetcher"
20
20
  require "license_scout/exceptions"
21
21
 
22
22
  require "bundler"
23
- require "mixlib/shellout"
24
- require "ffi_yajl"
25
- require "pathname"
23
+ require "mixlib/shellout" unless defined?(Mixlib::ShellOut)
24
+ require "ffi_yajl" unless defined?(FFI_Yajl)
25
+ require "pathname" unless defined?(Pathname)
26
26
 
27
27
  module LicenseScout
28
28
  module DependencyManager
@@ -30,7 +30,7 @@
30
30
  require "bundler/setup"
31
31
 
32
32
  # We're only using things that are in the stdlib.
33
- require "json"
33
+ require "json" unless defined?(JSON)
34
34
 
35
35
  dependencies = []
36
36
 
@@ -15,9 +15,9 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "ffi_yajl"
18
+ require "ffi_yajl" unless defined?(FFI_Yajl)
19
19
  require "psych"
20
- require "mixlib/shellout"
20
+ require "mixlib/shellout" unless defined?(Mixlib::ShellOut)
21
21
 
22
22
  require "license_scout/dependency_manager/base"
23
23
  require "license_scout/exceptions"
@@ -15,8 +15,8 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "ffi_yajl"
19
- require "yaml"
18
+ require "ffi_yajl" unless defined?(FFI_Yajl)
19
+ require "yaml" unless defined?(YAML)
20
20
  require "toml-rb"
21
21
  require "license_scout/dependency_manager/base"
22
22
 
@@ -15,7 +15,7 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "yaml"
18
+ require "yaml" unless defined?(YAML)
19
19
  require "license_scout/dependency_manager/base"
20
20
 
21
21
  module LicenseScout
@@ -15,7 +15,7 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "ffi_yajl"
18
+ require "ffi_yajl" unless defined?(FFI_Yajl)
19
19
  require "license_scout/dependency_manager/base"
20
20
 
21
21
  module LicenseScout
@@ -15,8 +15,8 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "set"
19
- require "ffi_yajl"
18
+ require "set" unless defined?(Set)
19
+ require "ffi_yajl" unless defined?(FFI_Yajl)
20
20
  require "license_scout/dependency_manager/base"
21
21
 
22
22
  module LicenseScout
@@ -20,8 +20,8 @@ require "license_scout/net_fetcher"
20
20
  require "license_scout/exceptions"
21
21
  require "license_scout/license_file_analyzer"
22
22
 
23
- require "mixlib/shellout"
24
- require "ffi_yajl"
23
+ require "mixlib/shellout" unless defined?(Mixlib::ShellOut)
24
+ require "ffi_yajl" unless defined?(FFI_Yajl)
25
25
 
26
26
  module LicenseScout
27
27
  module DependencyManager
@@ -22,14 +22,14 @@
22
22
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
23
  # THE SOFTWARE.
24
24
 
25
- require "pathname"
25
+ require "pathname" unless defined?(Pathname)
26
26
 
27
27
  require "license_scout/license_file_analyzer/text"
28
28
 
29
29
  module LicenseScout
30
30
  module LicenseFileAnalyzer
31
31
  class Template
32
- TEMPLATE_PATH = Pathname.new(File.expand_path("../templates", __FILE__))
32
+ TEMPLATE_PATH = Pathname.new(File.expand_path("templates", __dir__))
33
33
 
34
34
  def self.named(name)
35
35
  new TEMPLATE_PATH.join("#{name}.txt").read
@@ -15,10 +15,10 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "open-uri"
19
- require "tmpdir"
20
- require "digest"
21
- require "socket" # Defines `SocketError`
18
+ require "open-uri" unless defined?(OpenURI)
19
+ require "tmpdir" unless defined?(Dir.mktmpdir)
20
+ require "digest" unless defined?(Digest)
21
+ require "socket" unless defined?(Socket) # Defines `SocketError`
22
22
 
23
23
  require "license_scout/exceptions"
24
24
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  require "license_scout/net_fetcher"
19
19
 
20
- require "pathname"
20
+ require "pathname" unless defined?(Pathname)
21
21
 
22
22
  module LicenseScout
23
23
  class Overrides
@@ -351,6 +351,7 @@ module LicenseScout
351
351
  # Overrides that require file fetching from internet
352
352
  ["amqp", "Ruby", ["https://raw.githubusercontent.com/ruby-amqp/amqp/master/README.md"]],
353
353
  ["aws-sigv4", "MIT", ["https://raw.githubusercontent.com/cmdrkeene/aws4/master/readme.md"]],
354
+ ["bigdecimal", "BSD-2-Clause", ["https://raw.githubusercontent.com/ruby/bigdecimal/v1.3.5/LICENSE.txt"]],
354
355
  ["blankslate", "MIT", ["https://raw.githubusercontent.com/masover/blankslate/master/MIT-LICENSE"]],
355
356
  ["codecov", "MIT", ["https://raw.githubusercontent.com/codecov/codecov-ruby/master/LICENSE.txt"]],
356
357
  ["coffee-script-source", nil, ["https://raw.githubusercontent.com/jessedoyle/coffee-script-source/master/LICENSE"]],
@@ -381,9 +382,11 @@ module LicenseScout
381
382
  ["minitest", nil, ["https://raw.githubusercontent.com/seattlerb/minitest/master/README.rdoc"]],
382
383
  ["mocha", "MIT", ["https://raw.githubusercontent.com/freerange/mocha/master/MIT-LICENSE.md"]],
383
384
  ["net-http-spy", "Public-Domain", ["https://raw.githubusercontent.com/martinbtt/net-http-spy/master/readme.markdown"]],
385
+ ["nio4r", "MIT", ["https://raw.githubusercontent.com/socketry/nio4r/master/README.md"]],
384
386
  ["omniauth-chef", nil, ["https://raw.githubusercontent.com/chef/omniauth-chef/master/README.md"]],
385
387
  ["os", "MIT", ["https://raw.githubusercontent.com/rdp/os/master/LICENSE"]],
386
388
  ["overcommit", nil, ["https://raw.githubusercontent.com/brigade/overcommit/master/MIT-LICENSE"]],
389
+ ["parser", "MIT", ["https://raw.githubusercontent.com/whitequark/parser/v2.7.2.0/LICENSE.txt"]],
387
390
  ["parslet", "MIT", ["https://raw.githubusercontent.com/kschiess/parslet/master/LICENSE"]],
388
391
  ["pbkdf2", "MIT", ["https://raw.githubusercontent.com/emerose/pbkdf2-ruby/master/LICENSE.TXT"]],
389
392
  ["rack-accept", "MIT", ["https://raw.githubusercontent.com/mjackson/rack-accept/master/README.md"]],
@@ -399,7 +402,10 @@ module LicenseScout
399
402
  ["sfl", "Ruby", ["https://raw.githubusercontent.com/ujihisa/spawn-for-legacy/master/LICENCE.md"]],
400
403
  ["slack-notifier", "MIT", ["https://raw.githubusercontent.com/stevenosloan/slack-notifier/master/LICENSE"]],
401
404
  ["sslshake", "MPL-2.0", ["https://raw.githubusercontent.com/arlimus/sslshake/master/README.md"]],
405
+ ["sprockets", "MIT", ["https://raw.githubusercontent.com/rails/sprockets/master/MIT-LICENSE"]],
406
+ ["strscan", "BSD-2-Clause", ["https://raw.githubusercontent.com/ruby/strscan/master/LICENSE.txt"]],
402
407
  ["structured_warnings", "MIT", ["https://raw.githubusercontent.com/schmidt/structured_warnings/master/LICENSE.txt"]],
408
+ ["therubyracer", "MIT", ["https://raw.githubusercontent.com/rubyjs/therubyracer/master/README.md"]],
403
409
  ["unicorn-rails", "MIT", ["https://raw.githubusercontent.com/samuelkadolph/unicorn-rails/master/LICENSE"]],
404
410
  ["uri_template", "MIT", ["https://raw.githubusercontent.com/hannesg/uri_template/master/uri_template.gemspec"]],
405
411
  ["url", "MIT", ["https://raw.githubusercontent.com/tal/URL/master/LICENSE"]],
@@ -420,6 +426,7 @@ module LicenseScout
420
426
  ["xml-simple", "Ruby", ["https://raw.githubusercontent.com/maik/xml-simple/master/README.md"]],
421
427
  ["zonefile", "MIT", ["https://raw.githubusercontent.com/boesemar/zonefile/master/LICENSE"]],
422
428
  ["sync", "BSD-2-Clause", ["https://raw.githubusercontent.com/ruby/sync/master/LICENSE.txt"]],
429
+ ["crack", "MIT", ["https://github.com/jnunemaker/crack/blob/master/LICENSE"]],
423
430
  ]
424
431
  (aws_sdk_gems + other_gems).each do |override_data|
425
432
  override_license "ruby_bundler", override_data[0] do |version|
@@ -15,7 +15,7 @@
15
15
  # limitations under the License.
16
16
  #
17
17
 
18
- require "ffi_yajl"
18
+ require "ffi_yajl" unless defined?(FFI_Yajl)
19
19
 
20
20
  require "license_scout/exceptions"
21
21
 
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module LicenseScout
19
- VERSION = "1.1.8".freeze
19
+ VERSION = "1.2.3".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.1.8
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Sutay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-yajl
@@ -154,6 +154,20 @@ dependencies:
154
154
  - - "~>"
155
155
  - !ruby/object:Gem::Version
156
156
  version: '4.3'
157
+ - !ruby/object:Gem::Dependency
158
+ name: chef-config
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "<"
162
+ - !ruby/object:Gem::Version
163
+ version: 16.5.77
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "<"
169
+ - !ruby/object:Gem::Version
170
+ version: 16.5.77
157
171
  description: Discovers license files of a project's dependencies.
158
172
  email:
159
173
  - serdar@chef.io