organization_license_audit 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bin/organization-license-audit +5 -1
- data/lib/organization_license_audit/version.rb +1 -1
- data/lib/organization_license_audit.rb +3 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41139489b1b12547a764da58f9c1d88cf003d668
|
4
|
+
data.tar.gz: f0609858ec29e97dd7c0e8d11091856050c468e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1560d1edffea4b522198449d530325a442adb86a7c69edcf4708b11b903d87370e1332360eb4dcb42b06303d00b33277ae129feab5cc15b0e073d562b2656b1
|
7
|
+
data.tar.gz: ce29ce2986fa2e0e2e7bc4a424fea532a4f062319dea5781576b9190c6444434fd67b33d541566c29546d832bf03a44a8c33c60a78d239e196ee154641b16450
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -25,7 +25,11 @@ Usage:
|
|
25
25
|
Options:
|
26
26
|
BANNER
|
27
27
|
OrganizationAudit.optparse(parser, options)
|
28
|
-
parser.on("--csv", "Dump a csv summary")
|
28
|
+
parser.on("--csv [SEPARATOR]", String, "Dump a csv summary") do |separator|
|
29
|
+
separator ||= ","
|
30
|
+
separator.sub!('\t', "\t") # passing tab is not easy, so be nice (useful for pasting in google spreadsheet)
|
31
|
+
options[:csv] = separator
|
32
|
+
end
|
29
33
|
parser.on("--ignore-gems", "Ignore repos that have a %{repo}.gemspec") { options[:ignore_gems] = true }
|
30
34
|
parser.on("-w", "--whitelist=LICENSES", String, "Comma separated list of licenses") { |whitelist| options[:whitelist] = whitelist.split(",") }
|
31
35
|
parser.on("-h", "--help", "Show this.") { puts parser; exit }
|
@@ -22,7 +22,7 @@ module OrganizationLicenseAudit
|
|
22
22
|
if options[:csv]
|
23
23
|
puts
|
24
24
|
puts "CSV:"
|
25
|
-
puts csv(errors)
|
25
|
+
puts csv(errors, options[:csv])
|
26
26
|
end
|
27
27
|
|
28
28
|
1
|
@@ -41,9 +41,9 @@ module OrganizationLicenseAudit
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def csv(errors)
|
44
|
+
def csv(errors, col_sep)
|
45
45
|
require "csv"
|
46
|
-
CSV.generate do |csv|
|
46
|
+
CSV.generate(:col_sep => col_sep) do |csv|
|
47
47
|
csv << ["repo", "dependency", "license"]
|
48
48
|
errors.each do |repo, errors|
|
49
49
|
if errors
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: organization_license_audit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
y0kCSWmK6D+x/SbfS6r7Ke07MRqziJdB9GuE1+0cIRuFh8EQ+LN6HXCKM5pon/GU
|
30
30
|
ycwMXfl0
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-12-
|
32
|
+
date: 2013-12-21 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: organization_audit
|
metadata.gz.sig
CHANGED
Binary file
|