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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 228b6521fc23f20d715768e1d3d90707c80bc1b6
4
- data.tar.gz: f1861172124a0b9103743199005411b6f8a59209
3
+ metadata.gz: b3b90021e26b8325eef2f946830ad91332e82779
4
+ data.tar.gz: fba5691b84d92922afc3ce95014d803895494f43
5
5
  SHA512:
6
- metadata.gz: 95a80b6629a6a1d654075166cc1752594f675268c65bb53a1506e20939a2d425f666c560fbd6730c5f26632a2f890aef19df6b85be78d32d502ba3115152705d
7
- data.tar.gz: 78b12627196f8ae90e92800338a97d1193d9a53b3f152161fe5ccaa9440114600759dd32598152370b668df674acc53678df5f1fd32a130029bb723c0bcbe4ba
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
- path = file_list.find{|path| path.gsub(folder_path, '').gsub(/^\//, '').match(/[A-Za-z0-9_-]+\.gemspec$/) }
47
- return unless path
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
- manifest = Gemnasium::Parser.send(:gemspec, File.open(path).read)
49
+ paths.map do |path|
50
+ manifest = Gemnasium::Parser.send(:gemspec, File.open(path).read)
50
51
 
51
- {
52
- platform: PLATFORM_NAME,
53
- path: path,
54
- dependencies: parse_manifest(manifest)
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)
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt