musix_match 0.1.16 → 0.1.18

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/README.rdoc CHANGED
@@ -65,6 +65,9 @@ The Lyrics object has the following attributes:
65
65
 
66
66
  * lyrics_id
67
67
  * lyrics_body
68
+ * lyrics_language
69
+ * script_tracking_url
70
+ * lyrics_copyright
68
71
  * track_name
69
72
  * artist_name
70
73
 
@@ -74,11 +77,19 @@ The track object has the following attributes:
74
77
 
75
78
  * track_id
76
79
  * track_mbid
77
- * lyrics_id
78
80
  * track_name
81
+ * track_mbid
82
+ * track_length
83
+ * lyrics_id
84
+ * instrumental
85
+ * subtitle_id
79
86
  * artist_id
80
87
  * artist_mbid
81
88
  * artist_name
89
+ * artist_mbid
90
+ * album_name
91
+ * album_id
92
+ * album_coverart_100x100
82
93
 
83
94
  == Sending Feedback
84
95
 
@@ -16,11 +16,15 @@ module MusixMatch
16
16
  end
17
17
 
18
18
  def self.url_for(method, params={})
19
+ URI.escape("#{API_URL}/#{url_path_for(method, params)}")
20
+ end
21
+
22
+ def self.url_path_for(method, params={})
19
23
  params.delete('format')
20
24
  params.delete('apikey')
21
25
  params.merge!({ :apikey => api_key, :format => 'json' })
22
26
  url_params = params.collect{|k, v| "#{k}=#{v}"}.join('&')
23
- URI.escape("#{API_URL}/#{method}?#{url_params}")
27
+ "#{method}?#{url_params}"
24
28
  end
25
29
 
26
30
  def self.get(method, params={})
@@ -6,7 +6,7 @@ module MusixMatch
6
6
 
7
7
  model_with_attributes :track_id, :track_mbid, :track_name, :track_mbid, :track_length, :lyrics_id, :instrumental, :subtitle_id,
8
8
  :artist_id, :artist_mbid, :artist_name, :artist_mbid,
9
- :album_name, :album_id, :album_coverart_100x100
9
+ :album_name, :album_id, :album_coverart_100x100
10
10
 
11
11
  def self.get_chart(options={})
12
12
  API::TrackChart.get_chart(options)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: musix_match
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.16
5
+ version: 0.1.18
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrea Franz