bibliothecary 2.0.0 → 2.0.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.rb +1 -1
- data/lib/bibliothecary/parsers/npm.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: df928a14f1d95ce614e9ad3a69910c4462c686ee
|
4
|
+
data.tar.gz: 70880ea6b8b72b06ef26cd3099fdd3bea9daaede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21780d58424b33bb4d7065409609f698950547bc58ef91a9e4ba5ea70d7ffbe5ba6941116defef6c25afd886ed39a4c78345962e92901e0de74482daeac017bb
|
7
|
+
data.tar.gz: 923a3f492f389dcba55e81786984fa10f31d4cdc3e77807db39e44e06f7e81229aef63dada3b588646c609d6ac951082d8aac98e3e6b16303cda8b68b8e9e5a1
|
data/lib/bibliothecary.rb
CHANGED
@@ -6,10 +6,10 @@ module Bibliothecary
|
|
6
6
|
include Bibliothecary::Analyser
|
7
7
|
|
8
8
|
def self.parse(filename, file_contents)
|
9
|
-
if filename.match(
|
9
|
+
if filename.match(/package\.json$/)
|
10
10
|
json = JSON.parse(file_contents)
|
11
11
|
parse_manifest(json)
|
12
|
-
elsif filename.match(
|
12
|
+
elsif filename.match(/npm-shrinkwrap\.json$/)
|
13
13
|
json = JSON.parse(file_contents)
|
14
14
|
parse_shrinkwrap(json)
|
15
15
|
else
|
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: 2.0.
|
4
|
+
version: 2.0.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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|