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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bddd806ad923e0021c5c5b07a36f158ca441e4a
4
- data.tar.gz: aea6b5b9d57b337239176447d26af60740c3ee4d
3
+ metadata.gz: 41139489b1b12547a764da58f9c1d88cf003d668
4
+ data.tar.gz: f0609858ec29e97dd7c0e8d11091856050c468e3
5
5
  SHA512:
6
- metadata.gz: 8150765f1816d56a28c010ebc6f5d6eeba25a0de372c08ab40d08e6fc2845eb3b6f9ed81d9b88011ffe7be11b639e1816b4068ef927f6e3f9dd23ff28a3e8831
7
- data.tar.gz: 8e3b2df4f8b2869d1ff8b5f7abcd79e12f6575d6f3df10ca70468d2a54895546d850586639a4145444b41936f7ed1e6dc572d8753f5c46933ea7df2f99afb6c7
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") { options[:csv] = true }
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 }
@@ -1,3 +1,3 @@
1
1
  module OrganizationLicenseAudit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -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.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-20 00:00:00.000000000 Z
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