echowrap 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.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/echowrap.gemspec +2 -2
- data/lib/echowrap/version.rb +1 -1
- data/spec/echonest/api/playlist_spec.rb +3 -3
- data/spec/echonest/api/taste_profile_spec.rb +5 -5
- data/spec/echonest_spec.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 090c743e795da6d8e04daeef1df02d72de62280d
|
4
|
+
data.tar.gz: ac303706a49b511bea90d0ce6c977e1eb6b38a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfd77326c1e4280cf69ddb28910991f9cb5a15f428fca263358dd66aecb538c80f892dd052bf8ddc5092317aadb50ac000e2cf044348958f7cffead14b34073c
|
7
|
+
data.tar.gz: e370233b8729b1a3ad1f3a5dda8c76cfc1676932da14e5dfb1220ba9cb36bf43d9030d17f32224a03fd6a619bf29ae4f91ef717cf095a99b4aa7128bb39ad7ac
|
data/Gemfile
CHANGED
data/echowrap.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency 'faraday', '~> 0.9
|
22
|
-
gem.add_dependency 'multi_json', '~> 1.
|
21
|
+
gem.add_dependency 'faraday', '~> 0.9'
|
22
|
+
gem.add_dependency 'multi_json', '~> 1.0'
|
23
23
|
gem.add_dependency 'simple_oauth', '~> 0.2'
|
24
24
|
|
25
25
|
end
|
data/lib/echowrap/version.rb
CHANGED
@@ -2,7 +2,7 @@ module Echowrap
|
|
2
2
|
class Version
|
3
3
|
MAJOR = 0 unless defined? Echowrap::Version::MAJOR
|
4
4
|
MINOR = 1 unless defined? Echowrap::Version::MINOR
|
5
|
-
PATCH =
|
5
|
+
PATCH = 4 unless defined? Echowrap::Version::PATCH
|
6
6
|
PRE = nil unless defined? Echowrap::Version::PRE
|
7
7
|
|
8
8
|
class << self
|
@@ -172,7 +172,7 @@ describe Echowrap::API::Playlist do
|
|
172
172
|
|
173
173
|
it "returns boolean with response result" do
|
174
174
|
result = @client.playlist_dynamic_feedback(:session_id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :favorite_song => 'SOCZMFK12AC468668F')
|
175
|
-
expect(result).to
|
175
|
+
expect(result).to be_truthy
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
@@ -196,7 +196,7 @@ describe Echowrap::API::Playlist do
|
|
196
196
|
|
197
197
|
it "returns boolean with response result" do
|
198
198
|
result = @client.playlist_dynamic_steer(:session_id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :min_danceability => 0.5)
|
199
|
-
expect(result).to
|
199
|
+
expect(result).to be_truthy
|
200
200
|
end
|
201
201
|
end
|
202
202
|
|
@@ -268,7 +268,7 @@ describe Echowrap::API::Playlist do
|
|
268
268
|
|
269
269
|
it "returns boolean with response result" do
|
270
270
|
result = @client.playlist_dynamic_delete(:session_id => 'a8cddde7afdf4ac09b510aa1c1c50bf9')
|
271
|
-
expect(result).to
|
271
|
+
expect(result).to be_truthy
|
272
272
|
end
|
273
273
|
end
|
274
274
|
end
|
@@ -221,7 +221,7 @@ describe Echowrap::API::TasteProfile do
|
|
221
221
|
|
222
222
|
it "returns boolean with response result" do
|
223
223
|
result = @client.taste_profile_play(:id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :item => 'myitemid')
|
224
|
-
expect(result).to
|
224
|
+
expect(result).to be_truthy
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
@@ -244,7 +244,7 @@ describe Echowrap::API::TasteProfile do
|
|
244
244
|
|
245
245
|
it "returns boolean with response result" do
|
246
246
|
result = @client.taste_profile_skip(:id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :item => 'myitemid')
|
247
|
-
expect(result).to
|
247
|
+
expect(result).to be_truthy
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
@@ -267,7 +267,7 @@ describe Echowrap::API::TasteProfile do
|
|
267
267
|
|
268
268
|
it "returns boolean with response result" do
|
269
269
|
result = @client.taste_profile_ban(:id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :item => 'myitemid')
|
270
|
-
expect(result).to
|
270
|
+
expect(result).to be_truthy
|
271
271
|
end
|
272
272
|
end
|
273
273
|
|
@@ -290,7 +290,7 @@ describe Echowrap::API::TasteProfile do
|
|
290
290
|
|
291
291
|
it "returns boolean with response result" do
|
292
292
|
result = @client.taste_profile_favorite(:id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :item => 'myitemid')
|
293
|
-
expect(result).to
|
293
|
+
expect(result).to be_truthy
|
294
294
|
end
|
295
295
|
end
|
296
296
|
|
@@ -313,7 +313,7 @@ describe Echowrap::API::TasteProfile do
|
|
313
313
|
|
314
314
|
it "returns boolean with response result" do
|
315
315
|
result = @client.taste_profile_rate(:id => 'a8cddde7afdf4ac09b510aa1c1c50bf9', :item => 'myitemid', :rating => 5)
|
316
|
-
expect(result).to
|
316
|
+
expect(result).to be_truthy
|
317
317
|
end
|
318
318
|
end
|
319
319
|
|
data/spec/echonest_spec.rb
CHANGED
@@ -32,10 +32,10 @@ describe Echowrap do
|
|
32
32
|
|
33
33
|
describe ".respond_to?" do
|
34
34
|
it "delegates to Echowrap::Client" do
|
35
|
-
expect(Echowrap.respond_to?(:song_search)).to
|
35
|
+
expect(Echowrap.respond_to?(:song_search)).to be_truthy
|
36
36
|
end
|
37
37
|
it "takes an optional argument" do
|
38
|
-
expect(Echowrap.respond_to?(:client, true)).to
|
38
|
+
expect(Echowrap.respond_to?(:client, true)).to be_truthy
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echowrap
|
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
|
- Tim Case
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9
|
19
|
+
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9
|
26
|
+
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: multi_json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: simple_oauth
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|