license_finder 0.9.2-java → 0.9.3-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_finder
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.9.3
4
5
  prerelease:
5
- version: 0.9.2
6
6
  platform: java
7
7
  authors:
8
8
  - Jacob Maine
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2013-08-17 00:00:00.000000000 Z
20
+ date: 2013-10-01 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: bundler
@@ -413,8 +413,8 @@ required_ruby_version: !ruby/object:Gem::Requirement
413
413
  - !ruby/object:Gem::Version
414
414
  segments:
415
415
  - 0
416
- hash: 2
417
416
  version: '0'
417
+ hash: 2
418
418
  none: false
419
419
  required_rubygems_version: !ruby/object:Gem::Requirement
420
420
  requirements:
@@ -422,8 +422,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
422
  - !ruby/object:Gem::Version
423
423
  segments:
424
424
  - 0
425
- hash: 2
426
425
  version: '0'
426
+ hash: 2
427
427
  none: false
428
428
  requirements: []
429
429
  rubyforge_project: