grooveshark 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/grooveshark.gemspec +1 -1
- data/lib/grooveshark/client.rb +3 -3
- data/lib/grooveshark/request.rb +1 -1
- data/lib/grooveshark/version.rb +1 -1
- metadata +41 -50
data/grooveshark.gemspec
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/grooveshark/version', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "grooveshark"
|
6
|
-
s.version = Grooveshark::VERSION
|
6
|
+
s.version = Grooveshark::VERSION
|
7
7
|
s.description = "Unofficial ruby library for consuming the Grooveshark API."
|
8
8
|
s.summary = "Grooveshark API"
|
9
9
|
s.authors = ["Dan Sosedoff"]
|
data/lib/grooveshark/client.rb
CHANGED
@@ -6,9 +6,9 @@ module Grooveshark
|
|
6
6
|
attr_reader :user
|
7
7
|
attr_reader :comm_token_ttl
|
8
8
|
|
9
|
-
SALT = '
|
9
|
+
SALT = 'imOnAHorse'
|
10
10
|
METHOD_SALTS = {
|
11
|
-
'getStreamKeyFromSongIDEx' => '
|
11
|
+
'getStreamKeyFromSongIDEx' => 'theTicketsAreNowDiamonds'
|
12
12
|
}
|
13
13
|
|
14
14
|
def initialize(session=nil)
|
@@ -116,4 +116,4 @@ module Grooveshark
|
|
116
116
|
get_song_url_by_id(song.id)
|
117
117
|
end
|
118
118
|
end
|
119
|
-
end
|
119
|
+
end
|
data/lib/grooveshark/request.rb
CHANGED
@@ -3,7 +3,7 @@ module Grooveshark
|
|
3
3
|
API_BASE = 'cowbell.grooveshark.com'
|
4
4
|
UUID = 'A3B724BA-14F5-4932-98B8-8D375F85F266'
|
5
5
|
CLIENT = 'htmlshark'
|
6
|
-
CLIENT_REV = '
|
6
|
+
CLIENT_REV = '20110906'
|
7
7
|
COUNTRY = {"CC2" => "0", "IPR" => "353", "CC4" => "1073741824", "CC3" => "0", "CC1" => "0", "ID" => "223"}
|
8
8
|
TOKEN_TTL = 120 # 2 minutes
|
9
9
|
|
data/lib/grooveshark/version.rb
CHANGED
metadata
CHANGED
@@ -1,60 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: grooveshark
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Dan Sosedoff
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-01-02 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: rspec
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2156701500 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
18
|
+
requirements:
|
22
19
|
- - ~>
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.6'
|
25
22
|
type: :development
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: json
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: *2156701500
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: json
|
27
|
+
requirement: &2156690880 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
35
32
|
version: 1.4.6
|
36
33
|
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: rest-client
|
40
34
|
prerelease: false
|
41
|
-
|
35
|
+
version_requirements: *2156690880
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rest-client
|
38
|
+
requirement: &2156689280 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
46
43
|
version: 1.5.1
|
47
44
|
type: :runtime
|
48
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2156689280
|
49
47
|
description: Unofficial ruby library for consuming the Grooveshark API.
|
50
48
|
email: dan.sosedoff@gmail.com
|
51
49
|
executables: []
|
52
|
-
|
53
50
|
extensions: []
|
54
|
-
|
55
51
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
52
|
+
files:
|
58
53
|
- .gitignore
|
59
54
|
- .rspec
|
60
55
|
- README.rdoc
|
@@ -73,35 +68,31 @@ files:
|
|
73
68
|
- spec/helper.rb
|
74
69
|
- spec/request_spec.rb
|
75
70
|
- spec/utils_spec.rb
|
76
|
-
has_rdoc: true
|
77
71
|
homepage: http://github.com/sosedoff/grooveshark
|
78
72
|
licenses: []
|
79
|
-
|
80
73
|
post_install_message:
|
81
74
|
rdoc_options: []
|
82
|
-
|
83
|
-
require_paths:
|
75
|
+
require_paths:
|
84
76
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
78
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version:
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
84
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version:
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
97
89
|
requirements: []
|
98
|
-
|
99
90
|
rubyforge_project:
|
100
|
-
rubygems_version: 1.
|
91
|
+
rubygems_version: 1.8.10
|
101
92
|
signing_key:
|
102
93
|
specification_version: 3
|
103
94
|
summary: Grooveshark API
|
104
|
-
test_files:
|
95
|
+
test_files:
|
105
96
|
- spec/client_spec.rb
|
106
97
|
- spec/helper.rb
|
107
98
|
- spec/request_spec.rb
|