bibliothecary 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliothecary/parsers/rubygems.rb +2 -2
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 228b6521fc23f20d715768e1d3d90707c80bc1b6
|
4
|
+
data.tar.gz: f1861172124a0b9103743199005411b6f8a59209
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95a80b6629a6a1d654075166cc1752594f675268c65bb53a1506e20939a2d425f666c560fbd6730c5f26632a2f890aef19df6b85be78d32d502ba3115152705d
|
7
|
+
data.tar.gz: 78b12627196f8ae90e92800338a97d1193d9a53b3f152161fe5ccaa9440114600759dd32598152370b668df674acc53678df5f1fd32a130029bb723c0bcbe4ba
|
@@ -11,7 +11,7 @@ module Bibliothecary
|
|
11
11
|
if filename.match(/^Gemfile$|^gems\.rb$/)
|
12
12
|
manifest = Gemnasium::Parser.send(:gemfile, file_contents)
|
13
13
|
parse_manifest(manifest)
|
14
|
-
elsif filename.match(
|
14
|
+
elsif filename.match(/[A-Za-z0-9_-]+\.gemspec$/)
|
15
15
|
manifest = Gemnasium::Parser.send(:gemspec, file_contents)
|
16
16
|
parse_manifest(manifest)
|
17
17
|
elsif filename.match(/^Gemfile\.lock$|^gems\.locked$/)
|
@@ -43,7 +43,7 @@ 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(
|
46
|
+
path = file_list.find{|path| path.gsub(folder_path, '').gsub(/^\//, '').match(/[A-Za-z0-9_-]+\.gemspec$/) }
|
47
47
|
return unless path
|
48
48
|
|
49
49
|
manifest = Gemnasium::Parser.send(:gemspec, File.open(path).read)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliothecary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|