nbs 0.1.3 → 0.1.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nbs/version.rb +1 -1
  3. data/lib/nbs.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ef9d6ad52ef66e873eed68e25c4b7312015f620
4
- data.tar.gz: fe2f8b62d2bb492e63fcfc073f9c64d79efd2aef
3
+ metadata.gz: a434fd32ab8de976117238e6b7ae2c3df2c96117
4
+ data.tar.gz: 41ab370835236dcc3a5c1de4ea7cbb33d2b4fb0a
5
5
  SHA512:
6
- metadata.gz: 48b8127f7819688a94fc988a8b08e8fd4fce6a07b8c88f7295b40ca83c7b476ef32f3fbe943269887ef4a7ebd5b353c6254ef1e6cc5b605375b7a1f380f3e7f0
7
- data.tar.gz: 4dcf7739407847810efe2ddf5527f2d9295dc2da69b677f84d298d890a09b87063ef1744d3ddc1ff10c1ed5fbb16932249457c4b9ac25f9000a4699ad960f30b
6
+ metadata.gz: cac7e3f8d6a7e3661a6e38ff3a2bb8556b0b5997e9b26d25bfcb36e478770db1fb847e42dc96658890032d5918ee2e6b4ebc528418c64cc404cfe7a61727ff59
7
+ data.tar.gz: 41163a1afcf2296172686b45511e67bd64c739fdffb0a882d956f5488a3fff783688209dc2aca47711e635a7236eeac5d839f9ae8c9a25da560dc4110c2e6930
data/lib/nbs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Nbs
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-07-20 00:00:00.000000000 Z
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.11
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