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.
- data/deriving_license.gemspec +1 -1
- data/lib/deriving_license.rb +4 -5
- 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.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"]
|
data/lib/deriving_license.rb
CHANGED
@@ -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"].
|
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
|
209
|
+
if licenses.empty?
|
210
|
+
licenses << "custom"
|
211
|
+
end
|
213
212
|
|
214
213
|
end # end of call to yield_gem_source_directory
|
215
214
|
|