musix_match 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -97,6 +97,18 @@ The track object has the following attributes:
97
97
  * artist_mbid
98
98
  * artist_name
99
99
 
100
+ == Sending Feedback
101
+
102
+ MusixMatch.post_feedback(track_id, lyrics_id, feedback_type)
103
+
104
+ Feedback type should be one of the following:
105
+
106
+ * *wrong_attribution* (the lyrics shown are not by the artist that I selected.)
107
+ * *bad_characters* (there are strange characters and/or words that are partially scrambled.)
108
+ * *lines_too_long* (the text for each verse is too long!)
109
+ * *wrong_verses* (there are some verses missing from the beginning or at the end.)
110
+ * *wrong_formatting* (the text looks horrible, please fix it!)
111
+
100
112
  == Links
101
113
 
102
114
  * Repository: git://github.com/pilu/musix_match.git
data/lib/musix_match.rb CHANGED
@@ -53,7 +53,7 @@ module MusixMatch
53
53
  result.found? ? result.lyrics.lyrics_body : 'Lyrics not found'
54
54
  end
55
55
 
56
- def self.post_feedback(*args)
57
- API::Feedback.post_feedback(*args)
56
+ def self.post_feedback(track_id, lyrics_id, feedback_type)
57
+ API::Feedback.post_feedback(track_id, lyrics_id, feedback_type)
58
58
  end
59
59
  end
@@ -2,12 +2,12 @@ require 'spec_helper'
2
2
 
3
3
  describe MusixMatch::API::Base do
4
4
  it "should always use JSON as format" do
5
- expected_url = MusixMatch::API::Base::API_URL + '/lyrics.get?format=json&apikey='
5
+ expected_url = MusixMatch::API::Base::API_URL + '/lyrics.get?apikey=&format=json'
6
6
  MusixMatch::API::Base.url_for('lyrics.get', :format => 'xml').should == expected_url
7
7
  end
8
8
 
9
9
  it "should use JSON as format even if the format key is a string" do
10
- expected_url = MusixMatch::API::Base::API_URL + '/lyrics.get?format=json&apikey='
10
+ expected_url = MusixMatch::API::Base::API_URL + '/lyrics.get?apikey=&format=json'
11
11
  MusixMatch::API::Base.url_for('lyrics.get', 'format' => 'xml').should == expected_url
12
12
  end
13
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musix_match
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrea Franz