spotifiery 0.0.1
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.
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +50 -0
- data/Rakefile +2 -0
- data/lib/spotifiery/search_result/base.rb +44 -0
- data/lib/spotifiery/search_result.rb +12 -0
- data/lib/spotifiery/searchable/album.rb +40 -0
- data/lib/spotifiery/searchable/artist.rb +13 -0
- data/lib/spotifiery/searchable/base.rb +158 -0
- data/lib/spotifiery/searchable/track.rb +13 -0
- data/lib/spotifiery/searchable.rb +14 -0
- data/lib/spotifiery/version.rb +3 -0
- data/lib/spotifiery.rb +13 -0
- data/spec/fixtures/vcr_cassettes/album_find.yml +816 -0
- data/spec/fixtures/vcr_cassettes/album_lookup_by_uri.yml +1293 -0
- data/spec/fixtures/vcr_cassettes/artist_find.yml +45 -0
- data/spec/fixtures/vcr_cassettes/track_find.yml +1255 -0
- data/spec/fixtures/vcr_cassettes/track_lookup_by_uri.yml +2169 -0
- data/spec/fixtures/vcr_cassettes/with_or_without_you.yml +1240 -0
- data/spec/lib/spotifiery/search_result/base_spec.rb +55 -0
- data/spec/lib/spotifiery/search_result_spec.rb +2 -0
- data/spec/lib/spotifiery/searchable/album_spec.rb +86 -0
- data/spec/lib/spotifiery/searchable/artist_spec.rb +68 -0
- data/spec/lib/spotifiery/searchable/base_spec.rb +41 -0
- data/spec/lib/spotifiery/searchable/track_spec.rb +92 -0
- data/spec/lib/spotifiery/searchable_spec.rb +2 -0
- data/spec/lib/spotifiery_spec.rb +2 -0
- data/spec/spec_helper.rb +11 -0
- data/spotifiery.gemspec +26 -0
- metadata +170 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://ws.spotify.com/search/1/artist.json?page=1&q=Foo%20Fighters
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers: {}
|
|
10
|
+
response:
|
|
11
|
+
status:
|
|
12
|
+
code: 200
|
|
13
|
+
message: OK
|
|
14
|
+
headers:
|
|
15
|
+
Date:
|
|
16
|
+
- Thu, 06 Dec 2012 19:31:10 GMT
|
|
17
|
+
Server:
|
|
18
|
+
- lighttpd smisk/1.1.6
|
|
19
|
+
Vary:
|
|
20
|
+
- Accept-Charset
|
|
21
|
+
Expires:
|
|
22
|
+
- Fri, 07 Dec 2012 19:31:10 GMT
|
|
23
|
+
Last-Modified:
|
|
24
|
+
- Wed, 05 Dec 2012 23:38:17 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json; charset=utf-8
|
|
27
|
+
Content-Length:
|
|
28
|
+
- '332'
|
|
29
|
+
X-Varnish:
|
|
30
|
+
- '1827307223'
|
|
31
|
+
Age:
|
|
32
|
+
- '0'
|
|
33
|
+
Via:
|
|
34
|
+
- 1.1 varnish
|
|
35
|
+
Access-Control-Allow-Origin:
|
|
36
|
+
- ! '*'
|
|
37
|
+
body:
|
|
38
|
+
encoding: US-ASCII
|
|
39
|
+
string: ! '{"info": {"num_results": 2, "limit": 100, "offset": 0, "query": "Foo
|
|
40
|
+
Fighters", "type": "artist", "page": 1}, "artists": [{"href": "spotify:artist:7jy3rLJdDQY21OgRLCZ9sD",
|
|
41
|
+
"name": "Foo Fighters", "popularity": "0.52878"}, {"href": "spotify:artist:7BwOCTBw5XiJ7ZG2xIL8u8",
|
|
42
|
+
"name": "Karaoke - Foo Fighters", "popularity": "0.00036"}]}'
|
|
43
|
+
http_version:
|
|
44
|
+
recorded_at: Thu, 06 Dec 2012 19:31:10 GMT
|
|
45
|
+
recorded_with: VCR 2.3.0
|