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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 961521e1c3ddc7b0d6dea3404f678dec8c686d9c55850ce4fd8e0fae0892d00e
|
4
|
+
data.tar.gz: a6142833a1b40a948ac60bb6a0edfe8a42fb2479de7eeed4edef56b2052f5a3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bb763ad328cc03b83ac75ecb05130e1ceb9af9739b5065e9c32bf0340b6bb3bf5f28c659e3b024dda338ae8b2a53444634ef3063c2fdcd6fcc3dbb668a66f75
|
7
|
+
data.tar.gz: ff1c9248369f3b3f2b18b3353f3a89e1ccb2090d5e83bb527bd0be7b5aa6091ac676d4d4f652c710fbdeeb06b5e5049d55023a5f13818028a70ccecddde11a69
|
@@ -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
|
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.
|
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-
|
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.
|
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.
|