musix_match 0.1.9 → 0.1.10
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 +12 -0
- data/lib/musix_match.rb +2 -2
- data/spec/api/base_spec.rb +2 -2
- metadata +3 -3
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(
|
|
57
|
-
API::Feedback.post_feedback(
|
|
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
|
data/spec/api/base_spec.rb
CHANGED
|
@@ -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
|
|
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
|
|
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:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 10
|
|
10
|
+
version: 0.1.10
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andrea Franz
|