bibliothecary 0.15.1 → 0.15.2
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.
- checksums.yaml +4 -4
- data/lib/bibliothecary/parsers/rubygems.rb +11 -9
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3b90021e26b8325eef2f946830ad91332e82779
|
4
|
+
data.tar.gz: fba5691b84d92922afc3ce95014d803895494f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1efb1ed1f030e39b5d7f1a32d93fb5f090ab1e62b5dfb1606a85d19664eb8b8a5f1fcac3000d2fa23fe48b049d98265c32bc03b9629891feb887259a0fa17c
|
7
|
+
data.tar.gz: b4e50501507bdec9503a5eabb054ca95770cebc303d33aac718a3cdf6018bdfc5898c3cf40e617c98f0ec6f69754e83f3355c268b54c4cec958a58f3f205c10a
|
@@ -26,7 +26,7 @@ module Bibliothecary
|
|
26
26
|
analyse_gemfile(folder_path, file_list),
|
27
27
|
analyse_gemspec(folder_path, file_list),
|
28
28
|
analyse_gemfile_lock(folder_path, file_list)
|
29
|
-
]
|
29
|
+
].flatten
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.analyse_gemfile(folder_path, file_list)
|
@@ -43,16 +43,18 @@ module Bibliothecary
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.analyse_gemspec(folder_path, file_list)
|
46
|
-
|
47
|
-
return unless
|
46
|
+
paths = file_list.select{|path| path.gsub(folder_path, '').gsub(/^\//, '').match(/[A-Za-z0-9_-]+\.gemspec$/) }
|
47
|
+
return unless paths.any?
|
48
48
|
|
49
|
-
|
49
|
+
paths.map do |path|
|
50
|
+
manifest = Gemnasium::Parser.send(:gemspec, File.open(path).read)
|
50
51
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
{
|
53
|
+
platform: PLATFORM_NAME,
|
54
|
+
path: path,
|
55
|
+
dependencies: parse_manifest(manifest)
|
56
|
+
}
|
57
|
+
end
|
56
58
|
end
|
57
59
|
|
58
60
|
def self.analyse_gemfile_lock(folder_path, file_list)
|