deriving_license 0.2.5 → 0.2.6

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.5'
3
+ s.version = '0.2.6'
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"]
@@ -90,9 +90,6 @@ class DerivingLicense
90
90
  end
91
91
  end
92
92
  end
93
- if detected_licenses["custom"].empty?
94
- detected_licenses.delete("custom")
95
- end
96
93
  detected_licenses
97
94
  end
98
95
 
@@ -121,7 +118,7 @@ class DerivingLicense
121
118
  unless unrecognized.empty?
122
119
  puts "There #{unrecognized.count==1 ? "is" : "are"} also #{unrecognized.count} unrecognized license#{unrecognized.count==1 ? "" : "s"}: #{unrecognized.join(', ')}"
123
120
  end
124
- unless licenses["custom"].nil? or licenses["custom"].empty?
121
+ unless licenses["custom"].empty?
125
122
  puts "The following dependencies have custom licenses: #{licenses["custom"].join(', ')}"
126
123
  end
127
124
  end
@@ -209,7 +206,9 @@ class DerivingLicense
209
206
 
210
207
  # Finally, if we couldn't find a known license, but a license file
211
208
  # exists, report it as custom.
212
- licenses << "custom"
209
+ if licenses.empty?
210
+ licenses << "custom"
211
+ end
213
212
 
214
213
  end # end of call to yield_gem_source_directory
215
214
 
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.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: