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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6973ea1d95b1e5b83d0f9c141f3b9dcc90e55493
4
- data.tar.gz: ab72b549e5e177393998f4c157dac3feb7a12b9e
3
+ metadata.gz: 40f06a51124c5fda9ccb13f768b64a10cb26c347
4
+ data.tar.gz: 1f43f0e3b9834d712819c8638f95f11b51a20311
5
5
  SHA512:
6
- metadata.gz: 241b76c80fb7257379988a8858fbc3dfa3c49bef444c76d8673d2fca2f507adf9a220416e7b45144ec8d60837051db4c2c29b48c1b43812e8e1915f9ce435efb
7
- data.tar.gz: c5cda9d1dcf0885d13e620ddfdfa42099f3bd8ff689fb1717261f85555aea4d6ae600a4780723dc7c70a9755ecc8aadb5bddb996952356f6e88fbc3a15b6c167
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)
@@ -1,3 +1,3 @@
1
1
  module Echonest
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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-09-02 00:00:00.000000000 Z
11
+ date: 2013-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty