nbs 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nbs/version.rb +1 -1
- data/lib/nbs.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a434fd32ab8de976117238e6b7ae2c3df2c96117
|
4
|
+
data.tar.gz: 41ab370835236dcc3a5c1de4ea7cbb33d2b4fb0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac7e3f8d6a7e3661a6e38ff3a2bb8556b0b5997e9b26d25bfcb36e478770db1fb847e42dc96658890032d5918ee2e6b4ebc528418c64cc404cfe7a61727ff59
|
7
|
+
data.tar.gz: 41163a1afcf2296172686b45511e67bd64c739fdffb0a882d956f5488a3fff783688209dc2aca47711e635a7236eeac5d839f9ae8c9a25da560dc4110c2e6930
|
data/lib/nbs/version.rb
CHANGED
data/lib/nbs.rb
CHANGED
@@ -49,7 +49,7 @@ class Nbs
|
|
49
49
|
artist_search = []
|
50
50
|
[_names].flatten.each do |name|
|
51
51
|
result = get("/artists/search.json", { query: {q: "#{name}"}})
|
52
|
-
if result.code == 200
|
52
|
+
if result.code == 200 && result.parsed_response.present?
|
53
53
|
result.parsed_response.each do |id, values|
|
54
54
|
artist_search << {nbs_id: id, name: values["name"], music_brainz_id: values["music_brainz_id"]}
|
55
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Georgiou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.6.
|
121
|
+
rubygems_version: 2.6.13
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Simple interface to the next big sound api
|