deriving_license 0.2.2 → 0.2.3
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.
- data/deriving_license.gemspec +1 -1
- data/lib/deriving_license.rb +2 -1
- metadata +1 -1
data/deriving_license.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'deriving_license'
|
|
3
|
-
s.version = '0.2.
|
|
3
|
+
s.version = '0.2.3'
|
|
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"]
|
data/lib/deriving_license.rb
CHANGED
|
@@ -130,7 +130,8 @@ class DerivingLicense
|
|
|
130
130
|
@unpack_output = `gem unpack #{dep} --target=./deriving_license_tmp`
|
|
131
131
|
end
|
|
132
132
|
unpack_dir = /'([\/a-zA-Z0-9._\-]*)'/.match(@unpack_output)[1]
|
|
133
|
-
gem_filename =
|
|
133
|
+
gem_filename = /Downloaded\ ([\/a-zA-Z0-9._\-]*)$/.match(@fetch_output)[1]
|
|
134
|
+
gem_filename += ".gem"
|
|
134
135
|
license_file_paths = []
|
|
135
136
|
Find.find(unpack_dir) do |path|
|
|
136
137
|
license_file_paths << path if path =~ /(license|LICENSE)$/
|