deriving_license 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ *.gem
data/Gemfile CHANGED
@@ -2,5 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "rake", ">= 0.8.7"
6
- gem "safe_yaml"
5
+ gem "rake", ">= 0.8.7"
data/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ /*
2
+ * ----------------------------------------------------------------------------
3
+ * "THE BEER-WARE LICENSE" (Revision 42):
4
+ * <tom@jugglethis.net> wrote this file. As long as you retain this notice you
5
+ * can do whatever you want with this stuff. If we meet some day, and you think
6
+ * this stuff is worth it, you can buy me a beer in return - Tom Allen
7
+ * ----------------------------------------------------------------------------
8
+ */
data/README.md CHANGED
@@ -2,3 +2,40 @@ deriving_license
2
2
  ================
3
3
 
4
4
  Finds the license agreements for all gems in your Gemfile
5
+
6
+ Example output:
7
+
8
+ $ deriving_license ~/Code/rails_sample_app/Gemfile
9
+ Determining license for rails...UNKNOWN
10
+ Determining license for adt...UNKNOWN
11
+ Determining license for app_constants (remote call required)...UNKNOWN
12
+ Determining license for bcrypt-ruby...UNKNOWN
13
+ Determining license for bootstrap-sass...UNKNOWN
14
+ Determining license for jquery-rails...SUCCESS
15
+ Determining license for json...SUCCESS
16
+ Determining license for nokogiri...UNKNOWN
17
+ Determining license for pg...SUCCESS
18
+ Determining license for quiet_assets...UNKNOWN
19
+ Determining license for rack-protection...UNKNOWN
20
+ Determining license for symmetric-encryption (remote call required)...UNKNOWN
21
+ Determining license for newrelic_rpm...UNKNOWN
22
+ Determining license for uglifier...SUCCESS
23
+ Determining license for sass-rails...UNKNOWN
24
+ Determining license for coffee-rails...UNKNOWN
25
+ Determining license for rspec-rails...SUCCESS
26
+ Determining license for capybara...UNKNOWN
27
+ Determining license for factory_girl_rails...UNKNOWN
28
+ Determining license for faker...UNKNOWN
29
+ Determining license for better_errors...SUCCESS
30
+ Determining license for binding_of_caller...UNKNOWN
31
+ Determining license for debugger...SUCCESS
32
+ Determining license for simplecov...UNKNOWN
33
+ Determining license for ci_reporter...UNKNOWN
34
+ Determining license for sqlite3...UNKNOWN
35
+ Determining license for mysql2...UNKNOWN
36
+
37
+ Detected 3 known licenses:
38
+ MIT: Expat License (4 instances)[http://directory.fsf.org/wiki/License:Expat]
39
+ BSD: FreeBSD Copyright (2 instances)[http://www.freebsd.org/copyright/freebsd-license.html]
40
+ GPL: GNU General Public License (1 instance)[http://en.wikipedia.org/wiki/GNU_General_Public_License]
41
+ There is also 1 unknown license: Ruby
@@ -1,12 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'deriving_license'
3
- s.version = '0.1.4'
3
+ s.version = '0.1.5'
4
4
  s.summary = "Deriving Licence finds the license agreements for all gems in your Gemfile"
5
5
  s.description = "Deriving Licence finds the license agreements for all gems in your Gemfile if included in your project, or in a Gemfile passed to the included binary"
6
6
  s.authors = ["Tom Allen"]
7
7
  s.email = 'tom@jugglethis.net'
8
8
  s.homepage = 'http://www.github.com/Schwolop/deriving_license'
9
9
  s.executables << 'deriving_license'
10
+ s.license = 'beerware'
10
11
 
11
12
  s.require_paths = ["lib"]
12
13
  s.files = `git ls-files`.split($\)
@@ -12,13 +12,17 @@ class DerivingLicense
12
12
  # key -> hash of (Name, Link, [Tags]), where tags is an array that may include [:gpl_compatible, :copyleft_compatible, :has_restrictions]
13
13
  "GPL" => {name:"GNU General Public License",link:"http://en.wikipedia.org/wiki/GNU_General_Public_License",tags:[:gpl_compatible, :copyleft_compatible, :has_restrictions]},
14
14
  "MIT" => {name:"Expat License",link:"http://directory.fsf.org/wiki/License:Expat",tags:[:gpl_compatible, :has_restrictions]},
15
- "BSD" => {name:"FreeBSD Copyright",link:"http://www.freebsd.org/copyright/freebsd-license.html",tags:[:gpl_compatible, :copyleft_compatible, :has_restrictions]}
15
+ "BSD" => {name:"FreeBSD Copyright",link:"http://www.freebsd.org/copyright/freebsd-license.html",tags:[:gpl_compatible, :copyleft_compatible, :has_restrictions]},
16
+ "beerware" => {name:"Beerware License",link:"http://en.wikipedia.org/wiki/Beerware#License",tags:[]},
17
+ "Ruby" => {name:"Ruby License",link:"http://www.ruby-lang.org/en/about/license.txt",tags:[:gpl_compatible, :has_restrictions]}
16
18
  }
17
19
 
18
20
  @@license_aliases = {
19
21
  # hash of names to keys of the license in the master list.
20
22
  "FreeBSD" => "BSD",
21
- "Expat" => "MIT"
23
+ "Expat" => "MIT",
24
+ "beer" => "beerware",
25
+ "ruby" => "Ruby"
22
26
  }
23
27
 
24
28
  def self.run(path=nil)
@@ -30,7 +30,7 @@ class DerivingLicenseTest < Test::Unit::TestCase
30
30
  assert_nothing_raised do
31
31
  DerivingLicense.run("Gemfile")
32
32
  end
33
- assert_equal( {"MIT"=>2}, DerivingLicense.run("Gemfile") )
33
+ assert_equal( {"MIT"=>1}, DerivingLicense.run("Gemfile") )
34
34
  end
35
35
 
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deriving_license
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -51,8 +51,9 @@ executables:
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
+ - .gitignore
54
55
  - Gemfile
55
- - Gemfile.lock
56
+ - LICENSE
56
57
  - README.md
57
58
  - Rakefile
58
59
  - bin/deriving_license
@@ -60,7 +61,8 @@ files:
60
61
  - lib/deriving_license.rb
61
62
  - test/test_deriving_license.rb
62
63
  homepage: http://www.github.com/Schwolop/deriving_license
63
- licenses: []
64
+ licenses:
65
+ - beerware
64
66
  post_install_message:
65
67
  rdoc_options: []
66
68
  require_paths:
@@ -79,10 +81,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
81
  version: '0'
80
82
  requirements: []
81
83
  rubyforge_project:
82
- rubygems_version: 1.8.23
84
+ rubygems_version: 1.8.24
83
85
  signing_key:
84
86
  specification_version: 3
85
87
  summary: Deriving Licence finds the license agreements for all gems in your Gemfile
86
88
  test_files:
87
89
  - test/test_deriving_license.rb
88
- has_rdoc:
data/Gemfile.lock DELETED
@@ -1,21 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- deriving_license (0.1.3)
5
- gemnasium-parser
6
- safe_yaml
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- gemnasium-parser (0.1.9)
12
- rake (10.0.4)
13
- safe_yaml (0.9.1)
14
-
15
- PLATFORMS
16
- ruby
17
-
18
- DEPENDENCIES
19
- deriving_license!
20
- rake (>= 0.8.7)
21
- safe_yaml