bibliothecary 1.2.0 → 1.2.1

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: 2cb2459a1a23ab026d88c3914037be5605a6105e
4
- data.tar.gz: c608876219f4fc438b8cfc9e2ab5e90558f2e0da
3
+ metadata.gz: 5681e2de359446e1d31913bab36aee62e5dde24a
4
+ data.tar.gz: af190e2a8ca33e6856bde42e20b378fa1da05a02
5
5
  SHA512:
6
- metadata.gz: 09236de8f35df1cce5a4f137d282ce5b4b3cbfb57808760600752ea79d9e65fd49bdd3645c2463ee1e03d2cf3aa2004649bde7e0a14fdd2a83f5d03b3aaab6e7
7
- data.tar.gz: 88a52f790799d60c37b0406bb8079ae3d8749938596fd395c432eae0e8026a23027d43238dd1f757bd05700048a48270bda1abede280e74ed6f6fa99243bf492
6
+ metadata.gz: 2821013c1a5fc12aa4c51b32ca94e3eca0f48110055d188577e2094699d872b8163c59243337d1becf026639d9af9c55074dfb6c739d99b748ddc8ca9bca4c63
7
+ data.tar.gz: f3437c6737812fe735a21935ba849e2c73e2969fda5e12b6fa74efd24e63bd3b9bdb8f0a18166f4548d4f3751b0af6c7a589a60e4597b4cbbbf51741286fdb07
@@ -98,7 +98,7 @@ module Bibliothecary
98
98
  response = Typhoeus.post("https://gradle-parser.herokuapp.com/parse", body: manifest)
99
99
  json = JSON.parse(response.body)
100
100
 
101
- return [] unless json['dependencies'] && json['dependencies']['compile']
101
+ return [] unless json['dependencies'] && json['dependencies']['compile'] && json['dependencies']['compile'].is_a?(Array)
102
102
  json['dependencies']['compile'].map do |dependency|
103
103
  next unless dependency =~ (/[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+(\.[A-Za-z0-9_-])?\:[A-Za-z0-9_-]+\:/)
104
104
  version = dependency.split(':').last
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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: 1.2.0
4
+ version: 1.2.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-13 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb