tropo_rest 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.gitignore +6 -0
  2. data/.rspec +3 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +88 -0
  5. data/LICENSE +19 -0
  6. data/README.md +104 -0
  7. data/Rakefile +35 -0
  8. data/autotest/discover.rb +1 -0
  9. data/lib/faraday/request/serialize_json.rb +17 -0
  10. data/lib/faraday/response/raise_http_errors.rb +52 -0
  11. data/lib/faraday/response/resource.rb +26 -0
  12. data/lib/hashie/twash.rb +61 -0
  13. data/lib/tropo_rest/client/address.rb +76 -0
  14. data/lib/tropo_rest/client/application.rb +72 -0
  15. data/lib/tropo_rest/client/exchange.rb +18 -0
  16. data/lib/tropo_rest/client/session.rb +20 -0
  17. data/lib/tropo_rest/client/signal.rb +26 -0
  18. data/lib/tropo_rest/client.rb +27 -0
  19. data/lib/tropo_rest/configuration.rb +61 -0
  20. data/lib/tropo_rest/connection.rb +28 -0
  21. data/lib/tropo_rest/error.rb +33 -0
  22. data/lib/tropo_rest/request.rb +66 -0
  23. data/lib/tropo_rest/resource/address.rb +20 -0
  24. data/lib/tropo_rest/resource/application.rb +15 -0
  25. data/lib/tropo_rest/resource/exchange.rb +13 -0
  26. data/lib/tropo_rest/utils.rb +33 -0
  27. data/lib/tropo_rest/version.rb +3 -0
  28. data/lib/tropo_rest.rb +31 -0
  29. data/script/console +8 -0
  30. data/spec/spec_helper.rb +64 -0
  31. data/spec/tropo_rest/client/address_spec.rb +172 -0
  32. data/spec/tropo_rest/client/application_spec.rb +210 -0
  33. data/spec/tropo_rest/client/exchange_spec.rb +71 -0
  34. data/spec/tropo_rest/client/session_spec.rb +47 -0
  35. data/spec/tropo_rest/client/signal_spec.rb +34 -0
  36. data/spec/tropo_rest/client_spec.rb +246 -0
  37. data/spec/tropo_rest/resource/address_spec.rb +12 -0
  38. data/spec/tropo_rest/resource/application_spec.rb +12 -0
  39. data/spec/tropo_rest/resource/exchange_spec.rb +12 -0
  40. data/spec/tropo_rest_spec.rb +22 -0
  41. data/tropo_rest.gemspec +50 -0
  42. metadata +343 -0
@@ -0,0 +1,50 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path("../lib/tropo_rest/version", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "tropo_rest"
6
+ s.version = TropoRest::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Christopher Durtschi"]
9
+ s.email = ["christopher.durtschi@gmail.com"]
10
+ s.homepage = "http://rubygems.org/gems/tropo_rest"
11
+ s.summary = "Library to interact with Tropo's REST API"
12
+ s.description = "A simple wrapper for the Tropo REST API to manipulate applications, addresses, exchanges, sessions."
13
+
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ s.rubyforge_project = "tropo_rest"
16
+
17
+ s.add_development_dependency "bundler", ">= 1.0.0"
18
+ s.add_development_dependency "rake", "~> 0.8.7"
19
+ s.add_development_dependency "rspec", "~> 2.3.0"
20
+ s.add_development_dependency "webmock", "~> 1.6.1"
21
+ s.add_development_dependency "autotest", "~> 4.3.2"
22
+ s.add_development_dependency "json", "~> 1.4"
23
+ s.add_development_dependency "nokogiri", "~> 1.4.4"
24
+ s.add_development_dependency "yard", "~> 0.6.4"
25
+
26
+ case RUBY_PLATFORM
27
+ when /darwin/
28
+ s.add_development_dependency "autotest-fsevent", "~> 0.2.4"
29
+ s.add_development_dependency "autotest-growl", "~> 0.2.9"
30
+ when /java/
31
+ s.add_development_dependency "jruby-openssl", "~> 0.7.2"
32
+ end
33
+
34
+ case RUBY_VERSION
35
+ when /^1\.9/
36
+ s.add_development_dependency "ruby-debug19"
37
+ when /^1\.8/
38
+ s.add_development_dependency "ruby-debug" unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
39
+ end
40
+
41
+ s.add_runtime_dependency "faraday", "~> 0.5.3"
42
+ s.add_runtime_dependency "faraday_middleware", "~> 0.3.1"
43
+ s.add_runtime_dependency "multi_json", "~> 0.0.5"
44
+ s.add_runtime_dependency "multi_xml", "~> 0.2.0"
45
+ s.add_runtime_dependency "hashie", "~> 0.4.0"
46
+
47
+ s.files = `git ls-files`.split("\n")
48
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
49
+ s.require_path = 'lib'
50
+ end
metadata ADDED
@@ -0,0 +1,343 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tropo_rest
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Christopher Durtschi
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-01-10 00:00:00 -07:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: bundler
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 0
31
+ - 0
32
+ version: 1.0.0
33
+ type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rake
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 0
45
+ - 8
46
+ - 7
47
+ version: 0.8.7
48
+ type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: rspec
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ segments:
59
+ - 2
60
+ - 3
61
+ - 0
62
+ version: 2.3.0
63
+ type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: webmock
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ~>
72
+ - !ruby/object:Gem::Version
73
+ segments:
74
+ - 1
75
+ - 6
76
+ - 1
77
+ version: 1.6.1
78
+ type: :development
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: autotest
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ segments:
89
+ - 4
90
+ - 3
91
+ - 2
92
+ version: 4.3.2
93
+ type: :development
94
+ version_requirements: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ name: json
97
+ prerelease: false
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ segments:
104
+ - 1
105
+ - 4
106
+ version: "1.4"
107
+ type: :development
108
+ version_requirements: *id006
109
+ - !ruby/object:Gem::Dependency
110
+ name: nokogiri
111
+ prerelease: false
112
+ requirement: &id007 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ segments:
118
+ - 1
119
+ - 4
120
+ - 4
121
+ version: 1.4.4
122
+ type: :development
123
+ version_requirements: *id007
124
+ - !ruby/object:Gem::Dependency
125
+ name: yard
126
+ prerelease: false
127
+ requirement: &id008 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ~>
131
+ - !ruby/object:Gem::Version
132
+ segments:
133
+ - 0
134
+ - 6
135
+ - 4
136
+ version: 0.6.4
137
+ type: :development
138
+ version_requirements: *id008
139
+ - !ruby/object:Gem::Dependency
140
+ name: autotest-fsevent
141
+ prerelease: false
142
+ requirement: &id009 !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ~>
146
+ - !ruby/object:Gem::Version
147
+ segments:
148
+ - 0
149
+ - 2
150
+ - 4
151
+ version: 0.2.4
152
+ type: :development
153
+ version_requirements: *id009
154
+ - !ruby/object:Gem::Dependency
155
+ name: autotest-growl
156
+ prerelease: false
157
+ requirement: &id010 !ruby/object:Gem::Requirement
158
+ none: false
159
+ requirements:
160
+ - - ~>
161
+ - !ruby/object:Gem::Version
162
+ segments:
163
+ - 0
164
+ - 2
165
+ - 9
166
+ version: 0.2.9
167
+ type: :development
168
+ version_requirements: *id010
169
+ - !ruby/object:Gem::Dependency
170
+ name: ruby-debug19
171
+ prerelease: false
172
+ requirement: &id011 !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ type: :development
181
+ version_requirements: *id011
182
+ - !ruby/object:Gem::Dependency
183
+ name: faraday
184
+ prerelease: false
185
+ requirement: &id012 !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ~>
189
+ - !ruby/object:Gem::Version
190
+ segments:
191
+ - 0
192
+ - 5
193
+ - 3
194
+ version: 0.5.3
195
+ type: :runtime
196
+ version_requirements: *id012
197
+ - !ruby/object:Gem::Dependency
198
+ name: faraday_middleware
199
+ prerelease: false
200
+ requirement: &id013 !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ~>
204
+ - !ruby/object:Gem::Version
205
+ segments:
206
+ - 0
207
+ - 3
208
+ - 1
209
+ version: 0.3.1
210
+ type: :runtime
211
+ version_requirements: *id013
212
+ - !ruby/object:Gem::Dependency
213
+ name: multi_json
214
+ prerelease: false
215
+ requirement: &id014 !ruby/object:Gem::Requirement
216
+ none: false
217
+ requirements:
218
+ - - ~>
219
+ - !ruby/object:Gem::Version
220
+ segments:
221
+ - 0
222
+ - 0
223
+ - 5
224
+ version: 0.0.5
225
+ type: :runtime
226
+ version_requirements: *id014
227
+ - !ruby/object:Gem::Dependency
228
+ name: multi_xml
229
+ prerelease: false
230
+ requirement: &id015 !ruby/object:Gem::Requirement
231
+ none: false
232
+ requirements:
233
+ - - ~>
234
+ - !ruby/object:Gem::Version
235
+ segments:
236
+ - 0
237
+ - 2
238
+ - 0
239
+ version: 0.2.0
240
+ type: :runtime
241
+ version_requirements: *id015
242
+ - !ruby/object:Gem::Dependency
243
+ name: hashie
244
+ prerelease: false
245
+ requirement: &id016 !ruby/object:Gem::Requirement
246
+ none: false
247
+ requirements:
248
+ - - ~>
249
+ - !ruby/object:Gem::Version
250
+ segments:
251
+ - 0
252
+ - 4
253
+ - 0
254
+ version: 0.4.0
255
+ type: :runtime
256
+ version_requirements: *id016
257
+ description: A simple wrapper for the Tropo REST API to manipulate applications, addresses, exchanges, sessions.
258
+ email:
259
+ - christopher.durtschi@gmail.com
260
+ executables: []
261
+
262
+ extensions: []
263
+
264
+ extra_rdoc_files: []
265
+
266
+ files:
267
+ - .gitignore
268
+ - .rspec
269
+ - Gemfile
270
+ - Gemfile.lock
271
+ - LICENSE
272
+ - README.md
273
+ - Rakefile
274
+ - autotest/discover.rb
275
+ - lib/faraday/request/serialize_json.rb
276
+ - lib/faraday/response/raise_http_errors.rb
277
+ - lib/faraday/response/resource.rb
278
+ - lib/hashie/twash.rb
279
+ - lib/tropo_rest.rb
280
+ - lib/tropo_rest/client.rb
281
+ - lib/tropo_rest/client/address.rb
282
+ - lib/tropo_rest/client/application.rb
283
+ - lib/tropo_rest/client/exchange.rb
284
+ - lib/tropo_rest/client/session.rb
285
+ - lib/tropo_rest/client/signal.rb
286
+ - lib/tropo_rest/configuration.rb
287
+ - lib/tropo_rest/connection.rb
288
+ - lib/tropo_rest/error.rb
289
+ - lib/tropo_rest/request.rb
290
+ - lib/tropo_rest/resource/address.rb
291
+ - lib/tropo_rest/resource/application.rb
292
+ - lib/tropo_rest/resource/exchange.rb
293
+ - lib/tropo_rest/utils.rb
294
+ - lib/tropo_rest/version.rb
295
+ - script/console
296
+ - spec/spec_helper.rb
297
+ - spec/tropo_rest/client/address_spec.rb
298
+ - spec/tropo_rest/client/application_spec.rb
299
+ - spec/tropo_rest/client/exchange_spec.rb
300
+ - spec/tropo_rest/client/session_spec.rb
301
+ - spec/tropo_rest/client/signal_spec.rb
302
+ - spec/tropo_rest/client_spec.rb
303
+ - spec/tropo_rest/resource/address_spec.rb
304
+ - spec/tropo_rest/resource/application_spec.rb
305
+ - spec/tropo_rest/resource/exchange_spec.rb
306
+ - spec/tropo_rest_spec.rb
307
+ - tropo_rest.gemspec
308
+ has_rdoc: true
309
+ homepage: http://rubygems.org/gems/tropo_rest
310
+ licenses: []
311
+
312
+ post_install_message:
313
+ rdoc_options: []
314
+
315
+ require_paths:
316
+ - lib
317
+ required_ruby_version: !ruby/object:Gem::Requirement
318
+ none: false
319
+ requirements:
320
+ - - ">="
321
+ - !ruby/object:Gem::Version
322
+ segments:
323
+ - 0
324
+ version: "0"
325
+ required_rubygems_version: !ruby/object:Gem::Requirement
326
+ none: false
327
+ requirements:
328
+ - - ">="
329
+ - !ruby/object:Gem::Version
330
+ segments:
331
+ - 1
332
+ - 3
333
+ - 6
334
+ version: 1.3.6
335
+ requirements: []
336
+
337
+ rubyforge_project: tropo_rest
338
+ rubygems_version: 1.3.7
339
+ signing_key:
340
+ specification_version: 3
341
+ summary: Library to interact with Tropo's REST API
342
+ test_files: []
343
+