open311 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- require File.expand_path('../open311/configuration', __FILE__)
2
- require File.expand_path('../open311/client', __FILE__)
1
+ require 'open311/configuration'
2
+ require 'open311/client'
3
3
 
4
4
  module Open311
5
5
  extend Configuration
@@ -1,4 +1,6 @@
1
- Dir[File.expand_path('../client/*.rb', __FILE__)].each{|file| require file}
1
+ require 'open311/client/connection'
2
+ require 'open311/client/request'
3
+ require 'open311/client/service'
2
4
 
3
5
  module Open311
4
6
  class Client
@@ -1,5 +1,6 @@
1
1
  require 'faraday_middleware'
2
- Dir[File.expand_path('../../../faraday/*.rb', __FILE__)].each{|file| require file}
2
+ require 'faraday/multipart'
3
+ require 'faraday/raise_error'
3
4
 
4
5
  module Open311
5
6
  class Client
@@ -1,5 +1,5 @@
1
1
  require 'faraday'
2
- require File.expand_path('../version', __FILE__)
2
+ require 'open311/version'
3
3
 
4
4
  module Open311
5
5
  module Configuration
@@ -1,3 +1,3 @@
1
1
  module Open311
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -2,16 +2,15 @@
2
2
  require File.expand_path('../lib/open311/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.add_development_dependency('bundler', '~> 1.0')
6
- s.add_development_dependency('json', '~> 1.4')
5
+ s.add_development_dependency('json', '~> 1.5')
7
6
  s.add_development_dependency('maruku', '~> 0.6')
8
7
  s.add_development_dependency('nokogiri', '~> 1.4')
9
8
  s.add_development_dependency('rake', '~> 0.8')
10
- s.add_development_dependency('rspec', '~> 2.4')
11
- s.add_development_dependency('simplecov', '~> 0.3')
9
+ s.add_development_dependency('rspec', '~> 2.5')
10
+ s.add_development_dependency('simplecov', '~> 0.4')
12
11
  s.add_development_dependency('webmock', '~> 1.5')
13
12
  s.add_development_dependency('yard', '~> 0.6')
14
- s.add_development_dependency('ZenTest', '~> 4.4')
13
+ s.add_development_dependency('ZenTest', '~> 4.5')
15
14
  s.add_runtime_dependency('hashie', '~> 1.0.0')
16
15
  s.add_runtime_dependency('faraday', '~> 0.5.4')
17
16
  s.add_runtime_dependency('faraday_middleware', '~> 0.3.1')
@@ -3,9 +3,7 @@ SimpleCov.start do
3
3
  add_group 'Open311', 'lib/open311'
4
4
  add_group 'Faraday', 'lib/faraday'
5
5
  end
6
-
7
- require File.expand_path('../../lib/open311', __FILE__)
8
-
6
+ require 'open311'
9
7
  require 'rspec'
10
8
  require 'webmock/rspec'
11
9
  RSpec.configure do |config|
@@ -1,6 +1,4 @@
1
- require 'rubygems'
2
- require 'json'
3
- require File.expand_path('../spec_helper', __FILE__)
1
+ require 'helper'
4
2
 
5
3
  describe Open311, ".service_list" do
6
4
  before do
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open311
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
5
+ version: 0.1.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Dan Melton
@@ -16,239 +11,163 @@ autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
13
 
19
- date: 2011-02-03 00:00:00 -05:00
14
+ date: 2011-03-20 00:00:00 -07:00
20
15
  default_executable:
21
16
  dependencies:
22
17
  - !ruby/object:Gem::Dependency
23
- name: bundler
18
+ name: json
24
19
  prerelease: false
25
20
  requirement: &id001 !ruby/object:Gem::Requirement
26
21
  none: false
27
22
  requirements:
28
23
  - - ~>
29
24
  - !ruby/object:Gem::Version
30
- hash: 15
31
- segments:
32
- - 1
33
- - 0
34
- version: "1.0"
25
+ version: "1.5"
35
26
  type: :development
36
27
  version_requirements: *id001
37
28
  - !ruby/object:Gem::Dependency
38
- name: json
29
+ name: maruku
39
30
  prerelease: false
40
31
  requirement: &id002 !ruby/object:Gem::Requirement
41
32
  none: false
42
33
  requirements:
43
34
  - - ~>
44
35
  - !ruby/object:Gem::Version
45
- hash: 7
46
- segments:
47
- - 1
48
- - 4
49
- version: "1.4"
36
+ version: "0.6"
50
37
  type: :development
51
38
  version_requirements: *id002
52
39
  - !ruby/object:Gem::Dependency
53
- name: maruku
40
+ name: nokogiri
54
41
  prerelease: false
55
42
  requirement: &id003 !ruby/object:Gem::Requirement
56
43
  none: false
57
44
  requirements:
58
45
  - - ~>
59
46
  - !ruby/object:Gem::Version
60
- hash: 7
61
- segments:
62
- - 0
63
- - 6
64
- version: "0.6"
47
+ version: "1.4"
65
48
  type: :development
66
49
  version_requirements: *id003
67
50
  - !ruby/object:Gem::Dependency
68
- name: nokogiri
51
+ name: rake
69
52
  prerelease: false
70
53
  requirement: &id004 !ruby/object:Gem::Requirement
71
54
  none: false
72
55
  requirements:
73
56
  - - ~>
74
57
  - !ruby/object:Gem::Version
75
- hash: 7
76
- segments:
77
- - 1
78
- - 4
79
- version: "1.4"
58
+ version: "0.8"
80
59
  type: :development
81
60
  version_requirements: *id004
82
61
  - !ruby/object:Gem::Dependency
83
- name: rake
62
+ name: rspec
84
63
  prerelease: false
85
64
  requirement: &id005 !ruby/object:Gem::Requirement
86
65
  none: false
87
66
  requirements:
88
67
  - - ~>
89
68
  - !ruby/object:Gem::Version
90
- hash: 27
91
- segments:
92
- - 0
93
- - 8
94
- version: "0.8"
69
+ version: "2.5"
95
70
  type: :development
96
71
  version_requirements: *id005
97
72
  - !ruby/object:Gem::Dependency
98
- name: rspec
73
+ name: simplecov
99
74
  prerelease: false
100
75
  requirement: &id006 !ruby/object:Gem::Requirement
101
76
  none: false
102
77
  requirements:
103
78
  - - ~>
104
79
  - !ruby/object:Gem::Version
105
- hash: 11
106
- segments:
107
- - 2
108
- - 4
109
- version: "2.4"
80
+ version: "0.4"
110
81
  type: :development
111
82
  version_requirements: *id006
112
83
  - !ruby/object:Gem::Dependency
113
- name: simplecov
84
+ name: webmock
114
85
  prerelease: false
115
86
  requirement: &id007 !ruby/object:Gem::Requirement
116
87
  none: false
117
88
  requirements:
118
89
  - - ~>
119
90
  - !ruby/object:Gem::Version
120
- hash: 13
121
- segments:
122
- - 0
123
- - 3
124
- version: "0.3"
91
+ version: "1.5"
125
92
  type: :development
126
93
  version_requirements: *id007
127
94
  - !ruby/object:Gem::Dependency
128
- name: webmock
95
+ name: yard
129
96
  prerelease: false
130
97
  requirement: &id008 !ruby/object:Gem::Requirement
131
98
  none: false
132
99
  requirements:
133
100
  - - ~>
134
101
  - !ruby/object:Gem::Version
135
- hash: 5
136
- segments:
137
- - 1
138
- - 5
139
- version: "1.5"
102
+ version: "0.6"
140
103
  type: :development
141
104
  version_requirements: *id008
142
105
  - !ruby/object:Gem::Dependency
143
- name: yard
106
+ name: ZenTest
144
107
  prerelease: false
145
108
  requirement: &id009 !ruby/object:Gem::Requirement
146
109
  none: false
147
110
  requirements:
148
111
  - - ~>
149
112
  - !ruby/object:Gem::Version
150
- hash: 7
151
- segments:
152
- - 0
153
- - 6
154
- version: "0.6"
113
+ version: "4.5"
155
114
  type: :development
156
115
  version_requirements: *id009
157
- - !ruby/object:Gem::Dependency
158
- name: ZenTest
159
- prerelease: false
160
- requirement: &id010 !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ~>
164
- - !ruby/object:Gem::Version
165
- hash: 19
166
- segments:
167
- - 4
168
- - 4
169
- version: "4.4"
170
- type: :development
171
- version_requirements: *id010
172
116
  - !ruby/object:Gem::Dependency
173
117
  name: hashie
174
118
  prerelease: false
175
- requirement: &id011 !ruby/object:Gem::Requirement
119
+ requirement: &id010 !ruby/object:Gem::Requirement
176
120
  none: false
177
121
  requirements:
178
122
  - - ~>
179
123
  - !ruby/object:Gem::Version
180
- hash: 23
181
- segments:
182
- - 1
183
- - 0
184
- - 0
185
124
  version: 1.0.0
186
125
  type: :runtime
187
- version_requirements: *id011
126
+ version_requirements: *id010
188
127
  - !ruby/object:Gem::Dependency
189
128
  name: faraday
190
129
  prerelease: false
191
- requirement: &id012 !ruby/object:Gem::Requirement
130
+ requirement: &id011 !ruby/object:Gem::Requirement
192
131
  none: false
193
132
  requirements:
194
133
  - - ~>
195
134
  - !ruby/object:Gem::Version
196
- hash: 3
197
- segments:
198
- - 0
199
- - 5
200
- - 4
201
135
  version: 0.5.4
202
136
  type: :runtime
203
- version_requirements: *id012
137
+ version_requirements: *id011
204
138
  - !ruby/object:Gem::Dependency
205
139
  name: faraday_middleware
206
140
  prerelease: false
207
- requirement: &id013 !ruby/object:Gem::Requirement
141
+ requirement: &id012 !ruby/object:Gem::Requirement
208
142
  none: false
209
143
  requirements:
210
144
  - - ~>
211
145
  - !ruby/object:Gem::Version
212
- hash: 17
213
- segments:
214
- - 0
215
- - 3
216
- - 1
217
146
  version: 0.3.1
218
147
  type: :runtime
219
- version_requirements: *id013
148
+ version_requirements: *id012
220
149
  - !ruby/object:Gem::Dependency
221
150
  name: multi_json
222
151
  prerelease: false
223
- requirement: &id014 !ruby/object:Gem::Requirement
152
+ requirement: &id013 !ruby/object:Gem::Requirement
224
153
  none: false
225
154
  requirements:
226
155
  - - ~>
227
156
  - !ruby/object:Gem::Version
228
- hash: 21
229
- segments:
230
- - 0
231
- - 0
232
- - 5
233
157
  version: 0.0.5
234
158
  type: :runtime
235
- version_requirements: *id014
159
+ version_requirements: *id013
236
160
  - !ruby/object:Gem::Dependency
237
161
  name: multi_xml
238
162
  prerelease: false
239
- requirement: &id015 !ruby/object:Gem::Requirement
163
+ requirement: &id014 !ruby/object:Gem::Requirement
240
164
  none: false
241
165
  requirements:
242
166
  - - ~>
243
167
  - !ruby/object:Gem::Version
244
- hash: 23
245
- segments:
246
- - 0
247
- - 2
248
- - 0
249
168
  version: 0.2.0
250
169
  type: :runtime
251
- version_requirements: *id015
170
+ version_requirements: *id014
252
171
  description: A Ruby wrapper for the Open311 API v2.
253
172
  email:
254
173
  - dan@codeforamerica.org
@@ -285,8 +204,8 @@ files:
285
204
  - spec/fixtures/service_definition.xml
286
205
  - spec/fixtures/service_requests.xml
287
206
  - spec/fixtures/services.xml
207
+ - spec/helper.rb
288
208
  - spec/open311_spec.rb
289
- - spec/spec_helper.rb
290
209
  has_rdoc: true
291
210
  homepage: http://rubygems.org/gems/open311
292
211
  licenses: []
@@ -304,25 +223,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
304
223
  requirements:
305
224
  - - ">="
306
225
  - !ruby/object:Gem::Version
307
- hash: 3
308
- segments:
309
- - 0
310
226
  version: "0"
311
227
  required_rubygems_version: !ruby/object:Gem::Requirement
312
228
  none: false
313
229
  requirements:
314
230
  - - ">="
315
231
  - !ruby/object:Gem::Version
316
- hash: 23
317
- segments:
318
- - 1
319
- - 3
320
- - 6
321
232
  version: 1.3.6
322
233
  requirements: []
323
234
 
324
235
  rubyforge_project:
325
- rubygems_version: 1.5.0
236
+ rubygems_version: 1.6.2
326
237
  signing_key:
327
238
  specification_version: 3
328
239
  summary: A Ruby wrapper for the Open311 API v2.
@@ -334,5 +245,5 @@ test_files:
334
245
  - spec/fixtures/service_definition.xml
335
246
  - spec/fixtures/service_requests.xml
336
247
  - spec/fixtures/services.xml
248
+ - spec/helper.rb
337
249
  - spec/open311_spec.rb
338
- - spec/spec_helper.rb