itunes_parser 1.1.1 → 1.1.2

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: 292f030a09bcd64c436c6b158f00e85200d39deb
4
- data.tar.gz: 177786068c83247dffc9de59b3ae0c69010b6abf
3
+ metadata.gz: 7b30ed94e3dac3afca961f06835eadc20129fcbf
4
+ data.tar.gz: d50f3867f190141974bb101364db50911d7babdf
5
5
  SHA512:
6
- metadata.gz: 56eaa63d036d1b3479b8552de5ee2f594ca8b5ecde9d3283cc39f40793f1a6653932d7a653fd12315d9cb6333b5bfbaf1137a96f574bf8183a0c3f6c484f59e4
7
- data.tar.gz: 5d83cc12d5ff1e4a6787307fc3a1b79020466f45e56d41b961edfc1e85999dd50041206f1f171d99a116f4b7943fc1c8de04100e732939bd1bf01e61ea9d00f9
6
+ metadata.gz: e0578257bfc333cd36b77908d630495c2fdefed9133c836aa70a5733b28bd1b0175b38e777a706e093b80fdcb741d7e5a79b17505ddae37cd8aed15f34d8b061
7
+ data.tar.gz: 86a92aaf0179b72a64366e881e5ad5db99db8ca8c3258e21fe35c5f3c222f2a12096ad893bc248120ca06bb81a710fde6865d22025781e43c279bd5bb579f43a
@@ -5,7 +5,7 @@ module ItunesParser
5
5
  # Returns Array of Hashes, each Hash is a playlist.
6
6
  # Optional param `pretty` returns Array of Hashes with only IDs and Names.
7
7
  def playlists(pretty: false)
8
- _playlists = doc["Playlists"]
8
+ _playlists = self.doc["Playlists"]
9
9
 
10
10
  unless pretty
11
11
  _playlists
@@ -26,7 +26,7 @@ module ItunesParser
26
26
  tracks = []
27
27
 
28
28
  playlist(id)["Playlist Items"].each do |playlist_item|
29
- tracks << self.track(id: playlist_item["Track ID"])
29
+ tracks << self.track(playlist_item["Track ID"])
30
30
  end
31
31
 
32
32
  tracks
@@ -5,7 +5,7 @@ module ItunesParser
5
5
  # Returns Hash { track_id => { <track_information> } }
6
6
  # Optional param `pretty` returns Array of Hashes with only IDs and Names.
7
7
  def tracks pretty: false
8
- _tracks = doc["Tracks"]
8
+ _tracks = self.doc["Tracks"]
9
9
 
10
10
  unless pretty
11
11
  _tracks
@@ -17,7 +17,7 @@ module ItunesParser
17
17
  # Shows one track.
18
18
  # Returns Hash with track info.
19
19
  def track(id)
20
- tracks.select{|pl| pl["#{id}"] }.first[1]
20
+ tracks["#{id}"]
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module ItunesParser
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itunes_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Feña Agar