license_finder 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +4 -0
  3. data/MIT-LICENSE +22 -0
  4. data/README.markdown +84 -0
  5. data/Rakefile +12 -0
  6. data/bin/license_finder +7 -0
  7. data/files/license_finder.yml +7 -0
  8. data/lib/license_finder.rb +15 -0
  9. data/lib/license_finder/dependency.rb +63 -0
  10. data/lib/license_finder/dependency_list.rb +55 -0
  11. data/lib/license_finder/file_parser.rb +32 -0
  12. data/lib/license_finder/finder.rb +48 -0
  13. data/lib/license_finder/gem_spec_details.rb +101 -0
  14. data/lib/license_finder/license_file.rb +77 -0
  15. data/lib/license_finder/railtie.rb +9 -0
  16. data/lib/license_finder/version.rb +3 -0
  17. data/lib/tasks/license_finder.rake +17 -0
  18. data/lib/templates/Apache-2.0-body +172 -0
  19. data/lib/templates/GPL-2.0-body +339 -0
  20. data/lib/templates/MIT-body +9 -0
  21. data/license_finder.gemspec +23 -0
  22. data/spec/dependency_list_spec.rb +202 -0
  23. data/spec/dependency_spec.rb +57 -0
  24. data/spec/file_parser_spec.rb +16 -0
  25. data/spec/finder_spec.rb +44 -0
  26. data/spec/fixtures/APACHE-2-LICENSE +202 -0
  27. data/spec/fixtures/GPLv2 +339 -0
  28. data/spec/fixtures/MIT-LICENSE +22 -0
  29. data/spec/fixtures/MIT-LICENSE-with-varied-disclaimer +22 -0
  30. data/spec/fixtures/README-with-MIT-LICENSE +222 -0
  31. data/spec/fixtures/apache_licensed_gem/LICENSE +191 -0
  32. data/spec/fixtures/gplv2_licensed_gem/LICENSE +339 -0
  33. data/spec/fixtures/license_directory/COPYING +0 -0
  34. data/spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt +25 -0
  35. data/spec/fixtures/license_directory/LICENSE/GPL-2.0.txt +339 -0
  36. data/spec/fixtures/license_directory/LICENSE/LICENSE +191 -0
  37. data/spec/fixtures/license_directory/LICENSE/MIT.txt +21 -0
  38. data/spec/fixtures/license_directory/LICENSE/RUBY.txt +60 -0
  39. data/spec/fixtures/license_names/COPYING.txt +0 -0
  40. data/spec/fixtures/license_names/LICENSE +0 -0
  41. data/spec/fixtures/license_names/Mit-License +0 -0
  42. data/spec/fixtures/license_names/README.rdoc +0 -0
  43. data/spec/fixtures/mit_licensed_gem/LICENSE +22 -0
  44. data/spec/fixtures/mit_licensed_gem_in_README/README.rdoc +222 -0
  45. data/spec/fixtures/mit_licensed_gem_via_url/README +210 -0
  46. data/spec/fixtures/nested_gem/vendor/LICENSE +0 -0
  47. data/spec/fixtures/nested_readme/vendor/README +0 -0
  48. data/spec/fixtures/no_license/.gitkeep +0 -0
  49. data/spec/fixtures/other_licensed_gem/LICENSE +3 -0
  50. data/spec/fixtures/readme/Project ReadMe b/data/spec/fixtures/readme/Project → ReadMe +0 -0
  51. data/spec/fixtures/readme/README +0 -0
  52. data/spec/fixtures/readme/Readme.markdown +0 -0
  53. data/spec/fixtures/utf8_gem/README +210 -0
  54. data/spec/gem_spec_details_spec.rb +167 -0
  55. data/spec/license_file_spec.rb +129 -0
  56. data/spec/spec_helper.rb +10 -0
  57. metadata +159 -0
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require 'license_finder'
5
+
6
+ require 'rspec'
7
+ RSpec.configure do |config|
8
+ config.mock_with :rr
9
+ end
10
+
metadata ADDED
@@ -0,0 +1,159 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: license_finder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jacob Maine
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: &2152601040 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '2.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *2152601040
25
+ - !ruby/object:Gem::Dependency
26
+ name: rr
27
+ requirement: &2152600620 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *2152600620
36
+ description: Find and display licenses of a project's gem dependencies.
37
+ email:
38
+ - jacob.maine@gmail.com
39
+ executables:
40
+ - license_finder
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - MIT-LICENSE
47
+ - README.markdown
48
+ - Rakefile
49
+ - bin/license_finder
50
+ - files/license_finder.yml
51
+ - lib/license_finder.rb
52
+ - lib/license_finder/dependency.rb
53
+ - lib/license_finder/dependency_list.rb
54
+ - lib/license_finder/file_parser.rb
55
+ - lib/license_finder/finder.rb
56
+ - lib/license_finder/gem_spec_details.rb
57
+ - lib/license_finder/license_file.rb
58
+ - lib/license_finder/railtie.rb
59
+ - lib/license_finder/version.rb
60
+ - lib/tasks/license_finder.rake
61
+ - lib/templates/Apache-2.0-body
62
+ - lib/templates/GPL-2.0-body
63
+ - lib/templates/MIT-body
64
+ - license_finder.gemspec
65
+ - spec/dependency_list_spec.rb
66
+ - spec/dependency_spec.rb
67
+ - spec/file_parser_spec.rb
68
+ - spec/finder_spec.rb
69
+ - spec/fixtures/APACHE-2-LICENSE
70
+ - spec/fixtures/GPLv2
71
+ - spec/fixtures/MIT-LICENSE
72
+ - spec/fixtures/MIT-LICENSE-with-varied-disclaimer
73
+ - spec/fixtures/README-with-MIT-LICENSE
74
+ - spec/fixtures/apache_licensed_gem/LICENSE
75
+ - spec/fixtures/gplv2_licensed_gem/LICENSE
76
+ - spec/fixtures/license_directory/COPYING
77
+ - spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt
78
+ - spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
79
+ - spec/fixtures/license_directory/LICENSE/LICENSE
80
+ - spec/fixtures/license_directory/LICENSE/MIT.txt
81
+ - spec/fixtures/license_directory/LICENSE/RUBY.txt
82
+ - spec/fixtures/license_names/COPYING.txt
83
+ - spec/fixtures/license_names/LICENSE
84
+ - spec/fixtures/license_names/Mit-License
85
+ - spec/fixtures/license_names/README.rdoc
86
+ - spec/fixtures/mit_licensed_gem/LICENSE
87
+ - spec/fixtures/mit_licensed_gem_in_README/README.rdoc
88
+ - spec/fixtures/mit_licensed_gem_via_url/README
89
+ - spec/fixtures/nested_gem/vendor/LICENSE
90
+ - spec/fixtures/nested_readme/vendor/README
91
+ - spec/fixtures/no_license/.gitkeep
92
+ - spec/fixtures/other_licensed_gem/LICENSE
93
+ - spec/fixtures/readme/Project ReadMe
94
+ - spec/fixtures/readme/README
95
+ - spec/fixtures/readme/Readme.markdown
96
+ - spec/fixtures/utf8_gem/README
97
+ - spec/gem_spec_details_spec.rb
98
+ - spec/license_file_spec.rb
99
+ - spec/spec_helper.rb
100
+ homepage:
101
+ licenses: []
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project: license_finder
120
+ rubygems_version: 1.8.10
121
+ signing_key:
122
+ specification_version: 3
123
+ summary: License finding heaven.
124
+ test_files:
125
+ - spec/dependency_list_spec.rb
126
+ - spec/dependency_spec.rb
127
+ - spec/file_parser_spec.rb
128
+ - spec/finder_spec.rb
129
+ - spec/fixtures/APACHE-2-LICENSE
130
+ - spec/fixtures/GPLv2
131
+ - spec/fixtures/MIT-LICENSE
132
+ - spec/fixtures/MIT-LICENSE-with-varied-disclaimer
133
+ - spec/fixtures/README-with-MIT-LICENSE
134
+ - spec/fixtures/apache_licensed_gem/LICENSE
135
+ - spec/fixtures/gplv2_licensed_gem/LICENSE
136
+ - spec/fixtures/license_directory/COPYING
137
+ - spec/fixtures/license_directory/LICENSE/BSD-2-Clause.txt
138
+ - spec/fixtures/license_directory/LICENSE/GPL-2.0.txt
139
+ - spec/fixtures/license_directory/LICENSE/LICENSE
140
+ - spec/fixtures/license_directory/LICENSE/MIT.txt
141
+ - spec/fixtures/license_directory/LICENSE/RUBY.txt
142
+ - spec/fixtures/license_names/COPYING.txt
143
+ - spec/fixtures/license_names/LICENSE
144
+ - spec/fixtures/license_names/Mit-License
145
+ - spec/fixtures/license_names/README.rdoc
146
+ - spec/fixtures/mit_licensed_gem/LICENSE
147
+ - spec/fixtures/mit_licensed_gem_in_README/README.rdoc
148
+ - spec/fixtures/mit_licensed_gem_via_url/README
149
+ - spec/fixtures/nested_gem/vendor/LICENSE
150
+ - spec/fixtures/nested_readme/vendor/README
151
+ - spec/fixtures/no_license/.gitkeep
152
+ - spec/fixtures/other_licensed_gem/LICENSE
153
+ - spec/fixtures/readme/Project ReadMe
154
+ - spec/fixtures/readme/README
155
+ - spec/fixtures/readme/Readme.markdown
156
+ - spec/fixtures/utf8_gem/README
157
+ - spec/gem_spec_details_spec.rb
158
+ - spec/license_file_spec.rb
159
+ - spec/spec_helper.rb