rockstar 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -20,7 +20,7 @@ module Rockstar
20
20
 
21
21
  @user = args[:user] # last.fm username
22
22
  @password = args[:password] # last.fm password
23
- @client_id = 'rbs' # Client ID assigned by last.fm; Don't change this!
23
+ @client_id = 'rck' # Client ID assigned by last.fm; Don't change this!
24
24
  @client_ver = Rockstar::Version
25
25
 
26
26
  raise ArgumentError, 'Missing required argument' if @user.blank? || @password.blank?
@@ -41,7 +41,7 @@ module Rockstar
41
41
  def initialize(args = {})
42
42
  @user = args[:username] # last.fm user
43
43
  @token = args[:token] # last.fm token
44
- @client_id = 'rbs' # Client ID assigned by last.fm; Don't change this!
44
+ @client_id = 'rck' # Client ID assigned by last.fm; Don't change this!
45
45
  @client_ver = Rockstar::Version
46
46
 
47
47
  raise ArgumentError, 'Missing required argument' if @user.blank? || @token.blank?
data/rockstar.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rockstar}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bodo Tasche"]
12
- s.date = %q{2010-08-11}
12
+ s.date = %q{2010-09-07}
13
13
  s.description = %q{This gem is an updated version of jnunemakers scrobbler gem. Rockstar uses v2.0 of the last.fm api.}
14
14
  s.email = %q{bodo@bitboxer.de}
15
15
  s.extra_rdoc_files = [
data/test/mocks/rest.rb CHANGED
@@ -28,14 +28,14 @@ module Rockstar
28
28
 
29
29
  elsif @base_url == Rockstar::AUTH_URL
30
30
  # Test Simple Auth
31
- if args[:hs] == "true" && args[:p] == Rockstar::AUTH_VER.to_s && args[:c] == 'rbs' &&
31
+ if args[:hs] == "true" && args[:p] == Rockstar::AUTH_VER.to_s && args[:c] == 'rck' &&
32
32
  args[:v] == Rockstar::Version.to_s && args[:u] == 'chunky' && !args[:t].blank?
33
33
 
34
34
  "OK\n#{@session_id}\n#{@now_playing_url}\n#{@submission_url}"
35
35
 
36
36
  # Test Token Auth
37
37
  elsif args[:u]=="chunky" && args[:a]==Digest::MD5.hexdigest("secret#{Time.now.to_i}") && args[:v]=="0.3.0" &&
38
- args[:c]=="rbs" && args[:sk]=="bacon" && args[:hs]=="true" &&
38
+ args[:c]=="rck" && args[:sk]=="bacon" && args[:hs]=="true" &&
39
39
  args[:p]=="1.2.1" && args[:t]==Time.now.to_i.to_s
40
40
 
41
41
  "OK\n#{@session_id}\n#{@now_playing_url}\n#{@submission_url}"
@@ -15,7 +15,7 @@ class TestSimpleAuth < Test::Unit::TestCase
15
15
  end
16
16
 
17
17
  test 'should have the right client id' do
18
- assert_equal('rbs', @auth.client_id)
18
+ assert_equal('rck', @auth.client_id)
19
19
  end
20
20
 
21
21
  test 'should have the right version' do
@@ -16,7 +16,7 @@ class TestTokenAuth < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  test 'should have the right client id' do
19
- assert_equal('rbs', @auth.client_id)
19
+ assert_equal('rck', @auth.client_id)
20
20
  end
21
21
 
22
22
  test 'should have the right version' do
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rockstar
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 11
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 4
8
- - 1
9
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Bodo Tasche
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-11 00:00:00 +02:00
18
+ date: 2010-09-07 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 163
28
30
  segments:
29
31
  - 0
30
32
  - 4
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ">="
42
44
  - !ruby/object:Gem::Version
45
+ hash: 3
43
46
  segments:
44
47
  - 1
45
48
  - 4
@@ -155,6 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
158
  requirements:
156
159
  - - ">="
157
160
  - !ruby/object:Gem::Version
161
+ hash: 3
158
162
  segments:
159
163
  - 0
160
164
  version: "0"
@@ -163,6 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
167
  requirements:
164
168
  - - ">="
165
169
  - !ruby/object:Gem::Version
170
+ hash: 3
166
171
  segments:
167
172
  - 0
168
173
  version: "0"