echonest-ruby-api 0.3.0 → 0.4.0
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 +4 -4
- data/lib/echonest-ruby-api/artist.rb +2 -2
- data/lib/echonest-ruby-api/version.rb +1 -1
- data/spec/artist_spec.rb +9 -0
- 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: 40f06a51124c5fda9ccb13f768b64a10cb26c347
|
|
4
|
+
data.tar.gz: 1f43f0e3b9834d712819c8638f95f11b51a20311
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c083dcd3a7119d9b7de533ed1c1afbbe4e13b7c8a06abac3b3faaac1f49f0a981e1f9feae8416a1e4bceded76ccf163b815a031400a0c07a61cbf033e6e68e74
|
|
7
|
+
data.tar.gz: 5b49ead9caf49e629c6dbaad0c07288e93647cfdf52a88a5eb166afb149402973ce23ac15935be9de48fb638bccf9be32dd83836b36ffcb2bca850a57c155d2a
|
|
@@ -61,7 +61,7 @@ module Echonest
|
|
|
61
61
|
options = {name: @name}.merge(options)
|
|
62
62
|
artists = []
|
|
63
63
|
get_response(options)[:artists].each do |a|
|
|
64
|
-
artists << Artist.new(@api_key, a[:name], a[:foreign_ids])
|
|
64
|
+
artists << Artist.new(@api_key, a[:name], a[:foreign_ids], a[:id])
|
|
65
65
|
end
|
|
66
66
|
artists
|
|
67
67
|
end
|
|
@@ -78,7 +78,7 @@ module Echonest
|
|
|
78
78
|
options = {name: @name, id: @id}.merge(options)
|
|
79
79
|
artist_data = get_response(options)[:artist]
|
|
80
80
|
Artist.new(@api_key, artist_data[:name], artist_data[:foreign_ids], artist_data[:id])
|
|
81
|
-
end
|
|
81
|
+
end
|
|
82
82
|
|
|
83
83
|
def terms(options = {})
|
|
84
84
|
options = {name: @name, id: @id}.merge(options)
|
data/spec/artist_spec.rb
CHANGED
|
@@ -159,6 +159,15 @@ describe Echonest::Artist do
|
|
|
159
159
|
end
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
+
it 'should fill in id of each returned artist' do
|
|
163
|
+
VCR.use_cassette('search') do
|
|
164
|
+
create_valid_artist
|
|
165
|
+
@a.search.each do |k|
|
|
166
|
+
k.id.should_not be_nil
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
162
171
|
it 'should search the specified bucket' do
|
|
163
172
|
VCR.use_cassette('search_2') do
|
|
164
173
|
create_valid_artist
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: echonest-ruby-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max Woolf
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|