moonclerk 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/README.md +118 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/moonclerk.rb +110 -0
- data/lib/moonclerk/api_operations/list.rb +40 -0
- data/lib/moonclerk/api_operations/request.rb +30 -0
- data/lib/moonclerk/api_resource.rb +42 -0
- data/lib/moonclerk/customer.rb +11 -0
- data/lib/moonclerk/errors/api_error.rb +4 -0
- data/lib/moonclerk/errors/authentication_error.rb +4 -0
- data/lib/moonclerk/errors/invalid_request_error.rb +10 -0
- data/lib/moonclerk/errors/moonclerk_error.rb +26 -0
- data/lib/moonclerk/form.rb +5 -0
- data/lib/moonclerk/list_object.rb +98 -0
- data/lib/moonclerk/moonclerk_object.rb +309 -0
- data/lib/moonclerk/payment.rb +10 -0
- data/lib/moonclerk/util.rb +49 -0
- data/lib/moonclerk/version.rb +3 -0
- data/moonclerk.gemspec +34 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/models/moonclerk/customer_spec.rb +8 -0
- data/spec/moonclerk_spec.rb +7 -0
- data/spec/spec_helper.rb +63 -0
- metadata +314 -0
metadata
ADDED
@@ -0,0 +1,314 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moonclerk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Trevor Hinesley
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: factory_girl_rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sqlite3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '4.1'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '4.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: faraday
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: json
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: Gem to wrap MoonClerk.com read-only REST API
|
168
|
+
email:
|
169
|
+
- trevor@trevorhinesley.com
|
170
|
+
executables:
|
171
|
+
- console
|
172
|
+
- setup
|
173
|
+
extensions: []
|
174
|
+
extra_rdoc_files: []
|
175
|
+
files:
|
176
|
+
- ".gitignore"
|
177
|
+
- ".rspec"
|
178
|
+
- ".travis.yml"
|
179
|
+
- Gemfile
|
180
|
+
- README.md
|
181
|
+
- Rakefile
|
182
|
+
- bin/console
|
183
|
+
- bin/setup
|
184
|
+
- lib/moonclerk.rb
|
185
|
+
- lib/moonclerk/api_operations/list.rb
|
186
|
+
- lib/moonclerk/api_operations/request.rb
|
187
|
+
- lib/moonclerk/api_resource.rb
|
188
|
+
- lib/moonclerk/customer.rb
|
189
|
+
- lib/moonclerk/errors/api_error.rb
|
190
|
+
- lib/moonclerk/errors/authentication_error.rb
|
191
|
+
- lib/moonclerk/errors/invalid_request_error.rb
|
192
|
+
- lib/moonclerk/errors/moonclerk_error.rb
|
193
|
+
- lib/moonclerk/form.rb
|
194
|
+
- lib/moonclerk/list_object.rb
|
195
|
+
- lib/moonclerk/moonclerk_object.rb
|
196
|
+
- lib/moonclerk/payment.rb
|
197
|
+
- lib/moonclerk/util.rb
|
198
|
+
- lib/moonclerk/version.rb
|
199
|
+
- moonclerk.gemspec
|
200
|
+
- spec/dummy/README.rdoc
|
201
|
+
- spec/dummy/Rakefile
|
202
|
+
- spec/dummy/app/assets/images/.keep
|
203
|
+
- spec/dummy/app/assets/javascripts/application.js
|
204
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
205
|
+
- spec/dummy/app/controllers/application_controller.rb
|
206
|
+
- spec/dummy/app/controllers/concerns/.keep
|
207
|
+
- spec/dummy/app/helpers/application_helper.rb
|
208
|
+
- spec/dummy/app/mailers/.keep
|
209
|
+
- spec/dummy/app/models/.keep
|
210
|
+
- spec/dummy/app/models/concerns/.keep
|
211
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
212
|
+
- spec/dummy/bin/bundle
|
213
|
+
- spec/dummy/bin/rails
|
214
|
+
- spec/dummy/bin/rake
|
215
|
+
- spec/dummy/bin/setup
|
216
|
+
- spec/dummy/config.ru
|
217
|
+
- spec/dummy/config/application.rb
|
218
|
+
- spec/dummy/config/boot.rb
|
219
|
+
- spec/dummy/config/database.yml
|
220
|
+
- spec/dummy/config/environment.rb
|
221
|
+
- spec/dummy/config/environments/development.rb
|
222
|
+
- spec/dummy/config/environments/production.rb
|
223
|
+
- spec/dummy/config/environments/test.rb
|
224
|
+
- spec/dummy/config/initializers/assets.rb
|
225
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
226
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
227
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
228
|
+
- spec/dummy/config/initializers/inflections.rb
|
229
|
+
- spec/dummy/config/initializers/mime_types.rb
|
230
|
+
- spec/dummy/config/initializers/session_store.rb
|
231
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
232
|
+
- spec/dummy/config/locales/en.yml
|
233
|
+
- spec/dummy/config/routes.rb
|
234
|
+
- spec/dummy/config/secrets.yml
|
235
|
+
- spec/dummy/db/test.sqlite3
|
236
|
+
- spec/dummy/lib/assets/.keep
|
237
|
+
- spec/dummy/log/.keep
|
238
|
+
- spec/dummy/public/404.html
|
239
|
+
- spec/dummy/public/422.html
|
240
|
+
- spec/dummy/public/500.html
|
241
|
+
- spec/dummy/public/favicon.ico
|
242
|
+
- spec/models/moonclerk/customer_spec.rb
|
243
|
+
- spec/moonclerk_spec.rb
|
244
|
+
- spec/spec_helper.rb
|
245
|
+
homepage: https://github.com/TrevorHinesley/moonclerk
|
246
|
+
licenses:
|
247
|
+
- MIT
|
248
|
+
metadata: {}
|
249
|
+
post_install_message:
|
250
|
+
rdoc_options: []
|
251
|
+
require_paths:
|
252
|
+
- lib
|
253
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
|
+
requirements:
|
260
|
+
- - ">="
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '0'
|
263
|
+
requirements: []
|
264
|
+
rubyforge_project:
|
265
|
+
rubygems_version: 2.4.6
|
266
|
+
signing_key:
|
267
|
+
specification_version: 4
|
268
|
+
summary: Gem to wrap MoonClerk.com read-only REST API
|
269
|
+
test_files:
|
270
|
+
- spec/dummy/README.rdoc
|
271
|
+
- spec/dummy/Rakefile
|
272
|
+
- spec/dummy/app/assets/images/.keep
|
273
|
+
- spec/dummy/app/assets/javascripts/application.js
|
274
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
275
|
+
- spec/dummy/app/controllers/application_controller.rb
|
276
|
+
- spec/dummy/app/controllers/concerns/.keep
|
277
|
+
- spec/dummy/app/helpers/application_helper.rb
|
278
|
+
- spec/dummy/app/mailers/.keep
|
279
|
+
- spec/dummy/app/models/.keep
|
280
|
+
- spec/dummy/app/models/concerns/.keep
|
281
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
282
|
+
- spec/dummy/bin/bundle
|
283
|
+
- spec/dummy/bin/rails
|
284
|
+
- spec/dummy/bin/rake
|
285
|
+
- spec/dummy/bin/setup
|
286
|
+
- spec/dummy/config.ru
|
287
|
+
- spec/dummy/config/application.rb
|
288
|
+
- spec/dummy/config/boot.rb
|
289
|
+
- spec/dummy/config/database.yml
|
290
|
+
- spec/dummy/config/environment.rb
|
291
|
+
- spec/dummy/config/environments/development.rb
|
292
|
+
- spec/dummy/config/environments/production.rb
|
293
|
+
- spec/dummy/config/environments/test.rb
|
294
|
+
- spec/dummy/config/initializers/assets.rb
|
295
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
296
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
297
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
298
|
+
- spec/dummy/config/initializers/inflections.rb
|
299
|
+
- spec/dummy/config/initializers/mime_types.rb
|
300
|
+
- spec/dummy/config/initializers/session_store.rb
|
301
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
302
|
+
- spec/dummy/config/locales/en.yml
|
303
|
+
- spec/dummy/config/routes.rb
|
304
|
+
- spec/dummy/config/secrets.yml
|
305
|
+
- spec/dummy/db/test.sqlite3
|
306
|
+
- spec/dummy/lib/assets/.keep
|
307
|
+
- spec/dummy/log/.keep
|
308
|
+
- spec/dummy/public/404.html
|
309
|
+
- spec/dummy/public/422.html
|
310
|
+
- spec/dummy/public/500.html
|
311
|
+
- spec/dummy/public/favicon.ico
|
312
|
+
- spec/models/moonclerk/customer_spec.rb
|
313
|
+
- spec/moonclerk_spec.rb
|
314
|
+
- spec/spec_helper.rb
|