itunes 0.5.4 → 0.5.5

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