grooveshark 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,6 +2,9 @@ require 'bundler'
2
2
  require 'bundler/gem_tasks'
3
3
  require "rspec/core/rake_task"
4
4
 
5
- RSpec::Core::RakeTask.new(:test) do |spec|
6
- spec.pattern = 'spec/*_spec.rb'
7
- end
5
+ RSpec::Core::RakeTask.new(:test) do |t|
6
+ t.pattern = 'spec/*_spec.rb'
7
+ t.verbose = false
8
+ end
9
+
10
+ task :default => :test
data/grooveshark.gemspec CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ['lib']
17
17
 
18
18
  s.add_development_dependency 'rspec', '~> 2.6'
19
+ s.add_development_dependency 'rake', '~> 0.9'
19
20
 
20
21
  s.add_runtime_dependency 'json', '>= 1.4.6'
21
22
  s.add_runtime_dependency 'rest-client', '>= 1.5.1'
@@ -16,7 +16,7 @@ module Grooveshark
16
16
  def get_session_and_country
17
17
  response = RestClient.get('http://grooveshark.com')
18
18
  session = response.headers[:set_cookie].to_s.scan(/PHPSESSID=([a-z\d]{32});/i).flatten.first
19
- config_json = response.to_s.scan(/window.gsConfig = ({.*?});/).flatten.first
19
+ config_json = response.to_s.scan(/window.gsConfig = (\{.*?\});/).flatten.first
20
20
  raise GeneralError, "gsConfig not found" if not config_json
21
21
  config = JSON.parse(config_json)
22
22
  [session, config['country']]
@@ -1,3 +1,3 @@
1
1
  module Grooveshark
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grooveshark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-27 00:00:00.000000000Z
12
+ date: 2012-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2165860020 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,31 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2165860020
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.6'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '0.9'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '0.9'
25
46
  - !ruby/object:Gem::Dependency
26
47
  name: json
27
- requirement: &2165859380 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
28
49
  none: false
29
50
  requirements:
30
51
  - - ! '>='
@@ -32,10 +53,15 @@ dependencies:
32
53
  version: 1.4.6
33
54
  type: :runtime
34
55
  prerelease: false
35
- version_requirements: *2165859380
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.4.6
36
62
  - !ruby/object:Gem::Dependency
37
63
  name: rest-client
38
- requirement: &2165858760 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
39
65
  none: false
40
66
  requirements:
41
67
  - - ! '>='
@@ -43,10 +69,15 @@ dependencies:
43
69
  version: 1.5.1
44
70
  type: :runtime
45
71
  prerelease: false
46
- version_requirements: *2165858760
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.5.1
47
78
  - !ruby/object:Gem::Dependency
48
79
  name: uuid
49
- requirement: &2165851980 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
50
81
  none: false
51
82
  requirements:
52
83
  - - ~>
@@ -54,7 +85,12 @@ dependencies:
54
85
  version: '2.0'
55
86
  type: :runtime
56
87
  prerelease: false
57
- version_requirements: *2165851980
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '2.0'
58
94
  description: Unofficial ruby library for consuming the Grooveshark API.
59
95
  email: dan.sosedoff@gmail.com
60
96
  executables: []
@@ -92,15 +128,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
128
  - - ! '>='
93
129
  - !ruby/object:Gem::Version
94
130
  version: '0'
131
+ segments:
132
+ - 0
133
+ hash: -1817251716244594771
95
134
  required_rubygems_version: !ruby/object:Gem::Requirement
96
135
  none: false
97
136
  requirements:
98
137
  - - ! '>='
99
138
  - !ruby/object:Gem::Version
100
139
  version: '0'
140
+ segments:
141
+ - 0
142
+ hash: -1817251716244594771
101
143
  requirements: []
102
144
  rubyforge_project:
103
- rubygems_version: 1.8.15
145
+ rubygems_version: 1.8.24
104
146
  signing_key:
105
147
  specification_version: 3
106
148
  summary: Grooveshark API
@@ -109,4 +151,3 @@ test_files:
109
151
  - spec/helper.rb
110
152
  - spec/request_spec.rb
111
153
  - spec/utils_spec.rb
112
- has_rdoc: