license_finder 5.0.2 → 5.0.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
- SHA1:
3
- metadata.gz: 58979bd0f908773f5736e2a9bb808fb6a5f7872d
4
- data.tar.gz: 001cd6b9bfe0d26a7a8b1a3b9cfce1b028b31cfc
2
+ SHA256:
3
+ metadata.gz: 961521e1c3ddc7b0d6dea3404f678dec8c686d9c55850ce4fd8e0fae0892d00e
4
+ data.tar.gz: a6142833a1b40a948ac60bb6a0edfe8a42fb2479de7eeed4edef56b2052f5a3d
5
5
  SHA512:
6
- metadata.gz: c198140b0eebf2f4f38f1748a74402a25a096b122abee79e15a01ca67a6f3cfd485cf447c87574181fbf7c53f0736442098f6dfc314355e2c66548039763899f
7
- data.tar.gz: 1b2bd5f74c17ecb9e003cdf20fe90efa7f5fc1f3cb722938eb1057781692f04d27dd63fb131ba84bf17bd0e0aed42d7a1c0e5ae640491d788e3224704e604dcd
6
+ metadata.gz: 0bb763ad328cc03b83ac75ecb05130e1ceb9af9739b5065e9c32bf0340b6bb3bf5f28c659e3b024dda338ae8b2a53444634ef3063c2fdcd6fcc3dbb668a66f75
7
+ data.tar.gz: ff1c9248369f3b3f2b18b3353f3a89e1ccb2090d5e83bb527bd0be7b5aa6091ac676d4d4f652c710fbdeeb06b5e5049d55023a5f13818028a70ccecddde11a69
@@ -23,7 +23,7 @@ module LicenseFinder
23
23
  end
24
24
 
25
25
  def self.prepare_command
26
- 'dep ensure'
26
+ 'dep ensure -vendor-only'
27
27
  end
28
28
 
29
29
  def self.package_management_command
@@ -7,7 +7,7 @@ module LicenseFinder
7
7
  end
8
8
 
9
9
  def current_packages
10
- cmd = Yarn::SHELL_COMMAND
10
+ cmd = "#{Yarn::SHELL_COMMAND}#{production_flag}"
11
11
  suffix = " --cwd #{project_path}" unless project_path.nil?
12
12
  cmd += suffix unless suffix.nil?
13
13
 
@@ -36,6 +36,14 @@ module LicenseFinder
36
36
  packages + incompatible_packages.uniq
37
37
  end
38
38
 
39
+ def prepare
40
+ prep_cmd = "#{Yarn.prepare_command}#{production_flag}"
41
+ _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prep_cmd) }
42
+ return if status.success?
43
+ log_errors stderr
44
+ raise "Prepare command '#{prep_cmd}' failed" unless @prepare_no_fail
45
+ end
46
+
39
47
  def self.takes_priority_over
40
48
  NPM
41
49
  end
@@ -62,5 +70,10 @@ module LicenseFinder
62
70
  YarnPackage.new(package_hash['Name'], package_hash['Version'], spec_licenses: [package_hash['License']], homepage: package_hash['VendorUrl'])
63
71
  end
64
72
  end
73
+
74
+ def production_flag
75
+ return '' if @ignored_groups.nil?
76
+ @ignored_groups.include?('devDependencies') ? ' --production' : ''
77
+ end
65
78
  end
66
79
  end
@@ -1,3 +1,3 @@
1
1
  module LicenseFinder
2
- VERSION = '5.0.2'.freeze
2
+ VERSION = '5.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Collins
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-02-07 00:00:00.000000000 Z
30
+ date: 2018-02-13 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler
@@ -141,20 +141,6 @@ dependencies:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
143
  version: 2.0.0
144
- - !ruby/object:Gem::Dependency
145
- name: cocoapods
146
- requirement: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - '='
149
- - !ruby/object:Gem::Version
150
- version: 0.34.0
151
- type: :development
152
- prerelease: false
153
- version_requirements: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - '='
156
- - !ruby/object:Gem::Version
157
- version: 0.34.0
158
144
  - !ruby/object:Gem::Dependency
159
145
  name: fakefs
160
146
  requirement: !ruby/object:Gem::Requirement
@@ -451,7 +437,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
451
437
  version: '0'
452
438
  requirements: []
453
439
  rubyforge_project:
454
- rubygems_version: 2.6.13
440
+ rubygems_version: 2.7.5
455
441
  signing_key:
456
442
  specification_version: 4
457
443
  summary: Audit the OSS licenses of your application's dependencies.