nod 0.0.3 → 0.0.4
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/lib/nod.rb +2 -2
- metadata +1 -1
data/lib/nod.rb
CHANGED
@@ -26,14 +26,14 @@ class Nod
|
|
26
26
|
licenses = files_in_repo.select { |file_name| file_name if file_name =~ /license/i }
|
27
27
|
# puts "licenses is #{licenses}"
|
28
28
|
if !licenses.nil? && licenses.size > 0
|
29
|
-
license_type = LicenseHunch.determine_license_from_file licenses[0], File.expand_path(File.dirname(__FILE__) + "/../#{tmp_dir}")
|
29
|
+
license_type = LicenseHunch.determine_license_from_file licenses[0], tmp_dir #File.expand_path(File.dirname(__FILE__) + "/../#{tmp_dir}")
|
30
30
|
report = {:gem_name => name, :gem_home_page => @gem_savvy.gem_home(name), :gem_source_url => url, :gem_license => license_type}
|
31
31
|
else
|
32
32
|
# puts "no license found for #{@gem_savvy.info_for(name)}"
|
33
33
|
readme = files_in_repo.select { |file_name| file_name if file_name =~ /readme/i }
|
34
34
|
if !readme.nil? && readme.size > 0
|
35
35
|
# puts "\n\ngoing readme route with #{readme}"
|
36
|
-
license_type = LicenseHunch.determine_license_from_file readme[0], File.expand_path(File.dirname(__FILE__) + "/../#{tmp_dir}")
|
36
|
+
license_type = LicenseHunch.determine_license_from_file readme[0], tmp_dir #File.expand_path(File.dirname(__FILE__) + "/../#{tmp_dir}")
|
37
37
|
# puts "got? #{license_type}"
|
38
38
|
report = {:gem_name => name, :gem_home_page => @gem_savvy.gem_home(name), :gem_source_url => url, :gem_license => license_type}
|
39
39
|
end
|