musix_match 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,9 @@
1
1
  module MusixMatch
2
2
  class FeedbackResult
3
- attr_reader :status_code, :execute_time
3
+ attr_reader :response, :status_code, :execute_time
4
4
 
5
5
  def initialize(response)
6
+ @response = response
6
7
  parse_response(response)
7
8
  end
8
9
 
@@ -1,8 +1,9 @@
1
1
  module MusixMatch
2
2
  class LyricsFindResult
3
- attr_reader :status_code, :execute_time, :lyrics
3
+ attr_reader :response, :status_code, :execute_time, :lyrics
4
4
 
5
5
  def initialize(response)
6
+ @response = response
6
7
  parse_response(response)
7
8
  end
8
9
 
@@ -1,8 +1,9 @@
1
1
  module MusixMatch
2
2
  class LyricsSearchResult
3
- attr_reader :status_code, :execute_time, :available, :lyrics_list
3
+ attr_reader :response, :status_code, :execute_time, :available, :lyrics_list
4
4
 
5
5
  def initialize(response)
6
+ @response = response
6
7
  @lyrics_list = []
7
8
  parse_response(response)
8
9
  end
@@ -1,8 +1,9 @@
1
1
  module MusixMatch
2
2
  class TrackFindResult
3
- attr_reader :status_code, :execute_time, :track
3
+ attr_reader :response, :status_code, :execute_time, :track
4
4
 
5
5
  def initialize(response)
6
+ @response = response
6
7
  parse_response(response)
7
8
  end
8
9
 
@@ -1,8 +1,9 @@
1
1
  module MusixMatch
2
2
  class TrackSearchResult
3
- attr_reader :status_code, :execute_time, :available, :track_list
3
+ attr_reader :response, :status_code, :execute_time, :available, :track_list
4
4
 
5
5
  def initialize(response)
6
+ @response = response
6
7
  @track_list = []
7
8
  parse_response(response)
8
9
  end
@@ -2,7 +2,7 @@ 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?apikey=&format=json'
5
+ expected_url = MusixMatch::API::Base::API_URL + '/lyrics.get?format=json&apikey='
6
6
  MusixMatch::API::Base.url_for('lyrics.get', :format => 'xml').should == expected_url
7
7
  end
8
8
 
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musix_match
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 10
10
- version: 0.1.10
8
+ - 11
9
+ version: 0.1.11
11
10
  platform: ruby
12
11
  authors:
13
12
  - Andrea Franz
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-11-27 00:00:00 -05:00
17
+ date: 2011-01-07 00:00:00 +01:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -40,7 +38,6 @@ dependencies:
40
38
  requirements:
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
43
- hash: 5
44
41
  segments:
45
42
  - 0
46
43
  - 6
@@ -106,7 +103,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
103
  requirements:
107
104
  - - ">="
108
105
  - !ruby/object:Gem::Version
109
- hash: 3
110
106
  segments:
111
107
  - 0
112
108
  version: "0"
@@ -115,7 +111,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
111
  requirements:
116
112
  - - ">="
117
113
  - !ruby/object:Gem::Version
118
- hash: 3
119
114
  segments:
120
115
  - 0
121
116
  version: "0"