spot_tracks 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87ba8908127509416ab4ad0f69ec37639b0e587c
4
- data.tar.gz: 22d6b68a94494f4181bfe441b3225da06a47c0ad
3
+ metadata.gz: 751e29992280103a7d11ef5734e7fb99b9362bc3
4
+ data.tar.gz: e14a859f556aa33a31bdc48fc143751d1d6bce04
5
5
  SHA512:
6
- metadata.gz: 3a48d2ecf46903f0cb479053524b255ab98d195dbdeedc3bcc6c95273316612e11e6d8af007867a03129c71966580bbb869f74c27004c8878fd2b1dad4aa2982
7
- data.tar.gz: 9287079d9fbf4bbd6284f58dcd95c6a624514b374309df3a0b5e4351f86bb3fd45ddccaf84c2cec219ede152b4e80463816175973e46b49b1acd62ed5aa3a3d7
6
+ metadata.gz: 930c1717ee05a7ac7479ab2645a3a3d3bbbc1f4cc70a705d9d908a0236553e3cab217132052d40cb3f083229065d399e767de6f1d51e4614ca9bf461b34955c5
7
+ data.tar.gz: 37cd453ac5d9078f1f3f246c10d7c7be986a2bcc4d02ffbac3d0e29fbbf932953eab027cedaf63fcf1295b15497d846e9906d7e3b0ea1977d21c8736a107aa2f
data/README.md CHANGED
@@ -20,24 +20,8 @@ Or install it yourself as:
20
20
 
21
21
  SpotTracks pulls your Last.fm RSS feed, and looks up those tracks on Spotify. It returns a json hash with your data:
22
22
 
23
- SpotTracks::Feed.new('mttwrnr').to_json
24
- #=> {
25
- "title":"mttwrnr's Recently Played Tracks",
26
- "url":"http://www.last.fm/user/mttwrnr",
27
- "entries":[{
28
- "title":"Duck Sauce – NRG - Radio Edit",
29
- "urls":{
30
- "lastfm":"http://www.last.fm/music/Duck+Sauce/_/NRG+-+Radio+Edit",
31
- "spotify":"spotify:track:6MbFmc3lDtnlihb7DEabRA"
32
- }
33
- },{
34
- "title":"The Magician – When The Night Is Over - Clancy Remix [feat. Newtimers]",
35
- "urls":{
36
- "lastfm":"http://www.last.fm/music/The+Magician/_/When+The+Night+Is+Over+-+Clancy+Remix+%5Bfeat.+Newtimers%5D",
37
- "spotify":"spotify:track:58ScEoCoWkICs0HD7xHYKI"
38
- }
39
- }]
40
- }
23
+ SpotTracks::Feed.new('mttwrnr')
24
+ #=> [#<SpotTracks::Track:0x0000010329bb30 @name="Intro", @artist="The xx", @image="https://i.scdn.co/image/3631f331aa9a65dd93f78f8797d8a27cbba53f5f", @uri="spotify:track:0bXpmJyHHYPk6QBFj25bYF">]
41
25
 
42
26
  Enjoy!
43
27
 
@@ -20,7 +20,7 @@ module SpotTracks
20
20
 
21
21
  album = item['album']
22
22
  artist = item['artists'].first
23
- image = album['images'].first
23
+ image = album['images'].detect{|i| i['height'] == 300 }
24
24
 
25
25
  new({
26
26
  name: item['name'],
@@ -1,3 +1,3 @@
1
1
  module SpotTracks
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spot_tracks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Werner