itunes 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/itunes.gemspec +11 -11
- data/lib/itunes/client.rb +1 -1
- data/lib/itunes/configuration.rb +5 -5
- data/lib/itunes/request.rb +2 -2
- data/lib/itunes/version.rb +1 -1
- data/spec/spec_helper.rb +3 -3
- metadata +148 -91
data/README.md
CHANGED
data/itunes.gemspec
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path(
|
3
|
-
require
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'itunes/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'itunes'
|
7
7
|
s.version = ITunes::VERSION
|
8
|
-
s.platform
|
9
|
-
s.authors = [
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ['Garrett Bjerkhoel', 'Steve Agalloco']
|
10
10
|
s.email = %q{me@garrettbjerkhoel.com}
|
11
11
|
s.homepage = %q{http://github.com/dewski/itunes}
|
12
12
|
s.summary = %q{iTunes API}
|
13
13
|
|
14
|
-
s.rubyforge_project =
|
14
|
+
s.rubyforge_project = 'itunes'
|
15
15
|
|
16
16
|
s.extra_rdoc_files = [
|
17
|
-
|
18
|
-
|
17
|
+
'MIT-LICENSE',
|
18
|
+
'README.md'
|
19
19
|
]
|
20
|
-
s.rdoc_options = [
|
20
|
+
s.rdoc_options = ['--charset=UTF-8']
|
21
21
|
|
22
22
|
s.add_development_dependency('rake', '~> 0.9')
|
23
23
|
s.add_development_dependency('rspec', '~> 2.7')
|
@@ -29,11 +29,11 @@ Gem::Specification.new do |s|
|
|
29
29
|
|
30
30
|
s.add_runtime_dependency('rash', '~> 0.3')
|
31
31
|
s.add_runtime_dependency('faraday_middleware', '~> 0.7')
|
32
|
-
s.add_runtime_dependency('multi_json', '~> 1.0
|
32
|
+
s.add_runtime_dependency('multi_json', '~> 1.0')
|
33
33
|
|
34
34
|
s.files = `git ls-files`.split("\n")
|
35
35
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
36
36
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
37
|
-
s.require_paths = [
|
37
|
+
s.require_paths = ['lib']
|
38
38
|
end
|
39
39
|
|
data/lib/itunes/client.rb
CHANGED
data/lib/itunes/configuration.rb
CHANGED
@@ -46,11 +46,11 @@ module ITunes
|
|
46
46
|
|
47
47
|
# Reset all configuration options to defaults
|
48
48
|
def reset
|
49
|
-
self.adapter
|
50
|
-
self.endpoint
|
51
|
-
self.limit
|
52
|
-
self.user_agent
|
49
|
+
self.adapter = DEFAULT_ADAPTER
|
50
|
+
self.endpoint = DEFAULT_ENDPOINT
|
51
|
+
self.limit = DEFAULT_LIMIT
|
52
|
+
self.user_agent = DEFAULT_USER_AGENT
|
53
53
|
self
|
54
54
|
end
|
55
55
|
end
|
56
|
-
end
|
56
|
+
end
|
data/lib/itunes/request.rb
CHANGED
@@ -15,7 +15,7 @@ module ITunes
|
|
15
15
|
|
16
16
|
def connection
|
17
17
|
options = {
|
18
|
-
:headers => {'Accept' =>
|
18
|
+
:headers => {'Accept' => 'application/json', 'User-Agent' => user_agent},
|
19
19
|
:url => api_endpoint,
|
20
20
|
}
|
21
21
|
|
@@ -27,4 +27,4 @@ module ITunes
|
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
data/lib/itunes/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,135 +1,184 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: itunes
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 4
|
10
|
+
version: 0.5.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Garrett Bjerkhoel
|
9
14
|
- Steve Agalloco
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2012-02-22 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: rake
|
17
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
25
|
none: false
|
19
|
-
requirements:
|
26
|
+
requirements:
|
20
27
|
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 25
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 9
|
33
|
+
version: "0.9"
|
23
34
|
type: :development
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
27
37
|
name: rspec
|
28
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
40
|
none: false
|
30
|
-
requirements:
|
41
|
+
requirements:
|
31
42
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 13
|
45
|
+
segments:
|
46
|
+
- 2
|
47
|
+
- 7
|
48
|
+
version: "2.7"
|
34
49
|
type: :development
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
38
52
|
name: yard
|
39
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
55
|
none: false
|
41
|
-
requirements:
|
56
|
+
requirements:
|
42
57
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 5
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 7
|
63
|
+
version: "0.7"
|
45
64
|
type: :development
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
49
67
|
name: maruku
|
50
|
-
|
68
|
+
prerelease: false
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
70
|
none: false
|
52
|
-
requirements:
|
71
|
+
requirements:
|
53
72
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 7
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
- 6
|
78
|
+
version: "0.6"
|
56
79
|
type: :development
|
57
|
-
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
60
82
|
name: simplecov
|
61
|
-
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
85
|
none: false
|
63
|
-
requirements:
|
86
|
+
requirements:
|
64
87
|
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 11
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
- 4
|
93
|
+
- 2
|
66
94
|
version: 0.4.2
|
67
95
|
type: :development
|
68
|
-
|
69
|
-
|
70
|
-
- !ruby/object:Gem::Dependency
|
96
|
+
version_requirements: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
71
98
|
name: webmock
|
72
|
-
|
99
|
+
prerelease: false
|
100
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
101
|
none: false
|
74
|
-
requirements:
|
102
|
+
requirements:
|
75
103
|
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
hash: 1
|
106
|
+
segments:
|
107
|
+
- 1
|
108
|
+
- 7
|
109
|
+
version: "1.7"
|
78
110
|
type: :development
|
79
|
-
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Dependency
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
82
113
|
name: vcr
|
83
|
-
|
114
|
+
prerelease: false
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
116
|
none: false
|
85
|
-
requirements:
|
117
|
+
requirements:
|
86
118
|
- - ~>
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 25
|
121
|
+
segments:
|
122
|
+
- 1
|
123
|
+
- 11
|
124
|
+
version: "1.11"
|
89
125
|
type: :development
|
90
|
-
|
91
|
-
|
92
|
-
- !ruby/object:Gem::Dependency
|
126
|
+
version_requirements: *id007
|
127
|
+
- !ruby/object:Gem::Dependency
|
93
128
|
name: rash
|
94
|
-
|
129
|
+
prerelease: false
|
130
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
95
131
|
none: false
|
96
|
-
requirements:
|
132
|
+
requirements:
|
97
133
|
- - ~>
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
hash: 13
|
136
|
+
segments:
|
137
|
+
- 0
|
138
|
+
- 3
|
139
|
+
version: "0.3"
|
100
140
|
type: :runtime
|
101
|
-
|
102
|
-
|
103
|
-
- !ruby/object:Gem::Dependency
|
141
|
+
version_requirements: *id008
|
142
|
+
- !ruby/object:Gem::Dependency
|
104
143
|
name: faraday_middleware
|
105
|
-
|
144
|
+
prerelease: false
|
145
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
106
146
|
none: false
|
107
|
-
requirements:
|
147
|
+
requirements:
|
108
148
|
- - ~>
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
hash: 5
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
- 7
|
154
|
+
version: "0.7"
|
111
155
|
type: :runtime
|
112
|
-
|
113
|
-
|
114
|
-
- !ruby/object:Gem::Dependency
|
156
|
+
version_requirements: *id009
|
157
|
+
- !ruby/object:Gem::Dependency
|
115
158
|
name: multi_json
|
116
|
-
|
159
|
+
prerelease: false
|
160
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
117
161
|
none: false
|
118
|
-
requirements:
|
162
|
+
requirements:
|
119
163
|
- - ~>
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
hash: 15
|
166
|
+
segments:
|
167
|
+
- 1
|
168
|
+
- 0
|
169
|
+
version: "1.0"
|
122
170
|
type: :runtime
|
123
|
-
|
124
|
-
version_requirements: *70171265188760
|
171
|
+
version_requirements: *id010
|
125
172
|
description:
|
126
173
|
email: me@garrettbjerkhoel.com
|
127
174
|
executables: []
|
175
|
+
|
128
176
|
extensions: []
|
129
|
-
|
177
|
+
|
178
|
+
extra_rdoc_files:
|
130
179
|
- MIT-LICENSE
|
131
180
|
- README.md
|
132
|
-
files:
|
181
|
+
files:
|
133
182
|
- .gemtest
|
134
183
|
- .gitignore
|
135
184
|
- .rspec
|
@@ -152,30 +201,38 @@ files:
|
|
152
201
|
- spec/spec_helper.rb
|
153
202
|
homepage: http://github.com/dewski/itunes
|
154
203
|
licenses: []
|
204
|
+
|
155
205
|
post_install_message:
|
156
|
-
rdoc_options:
|
206
|
+
rdoc_options:
|
157
207
|
- --charset=UTF-8
|
158
|
-
require_paths:
|
208
|
+
require_paths:
|
159
209
|
- lib
|
160
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
161
211
|
none: false
|
162
|
-
requirements:
|
163
|
-
- -
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
|
166
|
-
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
hash: 3
|
216
|
+
segments:
|
217
|
+
- 0
|
218
|
+
version: "0"
|
219
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
220
|
none: false
|
168
|
-
requirements:
|
169
|
-
- -
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
hash: 3
|
225
|
+
segments:
|
226
|
+
- 0
|
227
|
+
version: "0"
|
172
228
|
requirements: []
|
229
|
+
|
173
230
|
rubyforge_project: itunes
|
174
|
-
rubygems_version: 1.8.
|
231
|
+
rubygems_version: 1.8.16
|
175
232
|
signing_key:
|
176
233
|
specification_version: 3
|
177
234
|
summary: iTunes API
|
178
|
-
test_files:
|
235
|
+
test_files:
|
179
236
|
- spec/fixtures/ITunes.yml
|
180
237
|
- spec/fixtures/ITunes_Client.yml
|
181
238
|
- spec/itunes/client_spec.rb
|