license_finder 0.9.2 → 0.9.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
2
  SHA1:
3
- metadata.gz: d836a5fd251af244f6b671af5f1f016426eb3837
4
- data.tar.gz: 6677c0d9aa21ec99cf64c5e49f1f748883dc72c0
3
+ metadata.gz: 4a41cc6c0c1e879809e6c5a1f9aed3f92bb636a6
4
+ data.tar.gz: aa62ba988067f0fcdb068e1192325012e6526cbe
5
5
  SHA512:
6
- metadata.gz: 2560fd0fe43bd76b35cb0277cea7b0bc60d30b6e4d4784525758a9cb2bbab80185b0e002c1d9518ca3a1bef8d7b1f778f86c95f8ccc23cff1c1c944a5f5af44f
7
- data.tar.gz: fa9ba7eeddbe032146aadc626c28b339a2edb83949ff05c78e7762efe9e2f831980d1eef26bdf8c0e2e19c140c482e1e4b9d6a6059ad2d0c5c38ec37b3a33021
6
+ metadata.gz: b95bc8fa644441df9dbbed5d48d230b5f620e50c4546180e3c5e68f4cad1f4483e5283da7817fae7ddad073256a6495937d8866f7d599dfe1e9f76e91567d428
7
+ data.tar.gz: 66d40b6e5526f49eece69d11d77a562bd1315cab23c3c96ca5f6ba8e030850799faabe6e7ec03b92895a475f21bc21913e6a5c5c31b0578b1a52d0692f764aa4
data/.travis.yml CHANGED
@@ -12,3 +12,11 @@ matrix:
12
12
  - rvm: rbx-19mode
13
13
  - rvm: ruby-head
14
14
  - rvm: jruby-head
15
+
16
+ notifications:
17
+ email:
18
+ - licensefinder@pivotallabs.com
19
+ webhooks:
20
+ urls:
21
+ - http://pulse.pivotallabs.com/projects/657d35b7-b896-4bf3-8837-9d558e2ab651/status
22
+ on_start: true
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,13 @@
1
+ === 0.9.3 / 2012-10-01
2
+
3
+ * Features
4
+
5
+ * New Apache 2.0 license alias
6
+
7
+ * Bugfixes
8
+
9
+ * Fix problem which prevented license finder from running in rails < 3.2
10
+
1
11
  === 0.9.2 / 2013-08-17
2
12
 
3
13
  * Features
@@ -53,7 +53,12 @@ Then(/^I should see only see GPL liceneses as unapproved in the html$/) do
53
53
  page.should have_content '1 unapproved'
54
54
  page.should have_content '1 GPL'
55
55
  page.should have_content '1 other'
56
- page.should have_content '9 MIT'
56
+ if @user.jruby?
57
+ page.should have_content '9 MIT'
58
+ page.should have_content '1 Apache 2.0'
59
+ else
60
+ page.should have_content '10 MIT'
61
+ end
57
62
  end
58
63
 
59
64
  def is_html_status?(gem, approval)
@@ -77,7 +77,6 @@ module DSL
77
77
  add_to_rakefile <<-RUBY
78
78
  require 'bundler/setup'
79
79
  require 'license_finder'
80
- LicenseFinder.load_rake_tasks
81
80
  RUBY
82
81
  end
83
82
 
@@ -211,6 +210,10 @@ module DSL
211
210
  File.open(dependencies_file_path, 'w+') { |f| yield f }
212
211
  end
213
212
 
213
+ def jruby?
214
+ `ruby -v`.match /^jruby/
215
+ end
216
+
214
217
  private
215
218
 
216
219
  def add_to_gemfile(line)
@@ -35,12 +35,10 @@ module LicenseFinder
35
35
  def self.config
36
36
  @config ||= Configuration.ensure_default
37
37
  end
38
-
39
- def self.load_rake_tasks
40
- load 'tasks/license_finder.rake'
41
- end
42
38
  end
43
39
 
44
40
  require 'license_finder/railtie' if defined?(Rails)
45
- require 'license_finder/tables'
46
- LicenseFinder::YmlToSql.convert_if_required
41
+ unless defined?(LicenseAudit)
42
+ require 'license_finder/tables'
43
+ LicenseFinder::YmlToSql.convert_if_required
44
+ end
@@ -39,7 +39,7 @@ module LicenseFinder
39
39
  end
40
40
 
41
41
  class Dependencies < Subcommand
42
- option :approve, type: :boolean, desc: "Approve the added dependency"
42
+ method_option :approve, type: :boolean, desc: "Approve the added dependency"
43
43
  desc "add LICENSE DEPENDENCY_NAME [VERSION] [--approve]", "Add a dependency that is not managed by Bundler"
44
44
  def add(license, name, version = nil)
45
45
  die_on_error {
@@ -145,7 +145,7 @@ module LicenseFinder
145
145
  end
146
146
 
147
147
  class Main < Base
148
- option :quiet, type: :boolean, desc: "silences loading output"
148
+ method_option :quiet, type: :boolean, desc: "silences loading output"
149
149
  desc "rescan", "Find new dependencies. (Default action)"
150
150
  def rescan
151
151
  die_on_error {
@@ -1,5 +1,5 @@
1
1
  class LicenseFinder::License::Apache2 < LicenseFinder::License::Base
2
- self.alternative_names = ["Apache 2.0", "Apache2", "Apache-2.0", "Apache Software License"]
2
+ self.alternative_names = ["Apache 2.0", "Apache2", "Apache-2.0", "Apache Software License", "Apache License 2.0"]
3
3
  self.license_url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
4
4
 
5
5
  def self.pretty_name
@@ -2,7 +2,7 @@ require './lib/license_finder/platform'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "license_finder"
5
- s.version = "0.9.2"
5
+ s.version = "0.9.3"
6
6
  s.authors = ["Jacob Maine", "Matthew Kane Parker", "Ian Lesperance", "David Edwards", "Paul Meskers", "Brent Wheeldon", "Trevor John", "David Tengdin", "William Ramsey"]
7
7
  s.email = ["licensefinder@pivotalabs.com"]
8
8
  s.homepage = "https://github.com/pivotal/LicenseFinder"
data/readme.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Build Status](https://secure.travis-ci.org/pivotal/LicenseFinder.png)](http://travis-ci.org/pivotal/LicenseFinder)
4
4
  [![Code Climate](https://codeclimate.com/github/pivotal/LicenseFinder.png)](https://codeclimate.com/github/pivotal/LicenseFinder)
5
5
 
6
- With bundler and other dependency management tools, it's easy for your project to depend on many packages. This decomposition is nice, but managing licenses becomes difficult. License Finter gathers info about the licenses of the packages in your project.
6
+ With bundler and other dependency management tools, it's easy for your project to depend on many packages. This decomposition is nice, but managing licenses becomes difficult. License Finder gathers info about the licenses of the packages in your project.
7
7
 
8
8
  License Finder currently supports ruby gems, python eggs, and node modules. If you are looking to manage licenses on a java/maven project, we recommend using the [license maven plugin](http://mojo.codehaus.org/license-maven-plugin/).
9
9
 
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: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Maine
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2013-08-17 00:00:00.000000000 Z
19
+ date: 2013-10-01 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: bundler
@@ -393,7 +393,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
393
393
  version: '0'
394
394
  requirements: []
395
395
  rubyforge_project:
396
- rubygems_version: 2.0.4
396
+ rubygems_version: 2.1.5
397
397
  signing_key:
398
398
  specification_version: 4
399
399
  summary: Audit the OSS licenses of your application's dependencies.