deriving_license 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'deriving_license'
3
- s.version = '0.2.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"]
@@ -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 = "#{unpack_dir.split("\/").last}.gem"
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)$/
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.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: