license_finder 2.1.0.rc8 → 2.1.0.rc9
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2356f306c970849bd2c3ffdf749278a08ab06739
|
4
|
+
data.tar.gz: 0e939d4740158ad1a466778e77950c54b7dedd5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee17b1d1f372c7c20920bc49d3220de44d10d054e0eb56952f7a1738d3cef44437ded9e82dce540987ceccc4a2835f1a5f3e9c5dfe0ee6a8ca6b6f0432cc5d11
|
7
|
+
data.tar.gz: 8982527d225130416897c0245e0d49435aca64bd8ca491d030849932456ddf9c2998edec7d98620486946e48e37823b428504fbd7f6cf06bffedcc98cd4e56ca
|
data/CHANGELOG.rdoc
CHANGED
@@ -3,7 +3,7 @@ require 'csv'
|
|
3
3
|
module LicenseFinder
|
4
4
|
class CsvReport < Report
|
5
5
|
COMMA_SEP = ","
|
6
|
-
AVAILABLE_COLUMNS = %w[name version authors licenses approved summary description homepage install_path package_manager]
|
6
|
+
AVAILABLE_COLUMNS = %w[name version authors licenses approved summary description homepage install_path package_manager groups]
|
7
7
|
MISSING_DEPENDENCY_TEXT = "This package is not installed. Please install to determine licenses."
|
8
8
|
|
9
9
|
def initialize(dependencies, options)
|
@@ -70,5 +70,9 @@ module LicenseFinder
|
|
70
70
|
def format_package_manager(dep)
|
71
71
|
dep.package_manager
|
72
72
|
end
|
73
|
+
|
74
|
+
def format_groups(dep)
|
75
|
+
dep.groups.join(",")
|
76
|
+
end
|
73
77
|
end
|
74
78
|
end
|
data/license_finder.gemspec
CHANGED
@@ -42,12 +42,11 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.add_dependency "thor"
|
43
43
|
s.add_dependency "httparty"
|
44
44
|
s.add_dependency "xml-simple"
|
45
|
-
s.add_dependency "
|
45
|
+
s.add_dependency "rubyzip"
|
46
46
|
|
47
47
|
s.add_development_dependency "capybara", "~> 2.0.0"
|
48
48
|
s.add_development_dependency "cocoapods", "0.34.0" if LicenseFinder::Platform.darwin?
|
49
49
|
s.add_development_dependency "fakefs", "~> 0.6.7"
|
50
|
-
s.add_development_dependency "rubyzip"
|
51
50
|
s.add_development_dependency "pry"
|
52
51
|
s.add_development_dependency "rake"
|
53
52
|
s.add_development_dependency "rspec", "~> 3"
|
@@ -40,5 +40,23 @@ module LicenseFinder
|
|
40
40
|
subject = described_class.new([dep], columns: %w[subproject_paths])
|
41
41
|
expect(subject.to_s).to eq("\n")
|
42
42
|
end
|
43
|
+
|
44
|
+
context "when no groups are specified" do
|
45
|
+
let( :dep ) { Package.new('gem_a', '1.0') }
|
46
|
+
subject { described_class.new([dep], columns: %w[name version groups]) }
|
47
|
+
|
48
|
+
it 'supports a groups column' do
|
49
|
+
expect(subject.to_s).to eq("gem_a,1.0,\"\"\n")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context "when some groups are specified" do
|
54
|
+
let( :dep ) { Package.new('gem_a', '1.0', groups: %w[development production]) }
|
55
|
+
subject { described_class.new([dep], columns: %w[name version groups]) }
|
56
|
+
|
57
|
+
it 'supports a groups column' do
|
58
|
+
expect(subject.to_s).to eq("gem_a,1.0,\"development,production\"\n")
|
59
|
+
end
|
60
|
+
end
|
43
61
|
end
|
44
62
|
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: 2.1.0.
|
4
|
+
version: 2.1.0.rc9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Maine
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
82
|
+
name: rubyzip
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
@@ -120,20 +120,6 @@ dependencies:
|
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: 0.6.7
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: rubyzip
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '0'
|
130
|
-
type: :development
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: '0'
|
137
123
|
- !ruby/object:Gem::Dependency
|
138
124
|
name: pry
|
139
125
|
requirement: !ruby/object:Gem::Requirement
|