effective_qb_sync 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +94 -0
  4. data/Rakefile +21 -0
  5. data/app/controllers/admin/qb_syncs_controller.rb +60 -0
  6. data/app/controllers/effective/qb_sync_controller.rb +40 -0
  7. data/app/models/effective/access_denied.rb +17 -0
  8. data/app/models/effective/datatables/qb_syncs.rb +30 -0
  9. data/app/models/effective/qb_log.rb +13 -0
  10. data/app/models/effective/qb_machine.rb +281 -0
  11. data/app/models/effective/qb_order_item.rb +13 -0
  12. data/app/models/effective/qb_order_items_form.rb +55 -0
  13. data/app/models/effective/qb_request.rb +262 -0
  14. data/app/models/effective/qb_ticket.rb +55 -0
  15. data/app/models/effective/qbwc_supervisor.rb +89 -0
  16. data/app/views/admin/qb_syncs/_actions.html.haml +2 -0
  17. data/app/views/admin/qb_syncs/_qb_item_names.html.haml +9 -0
  18. data/app/views/admin/qb_syncs/index.html.haml +24 -0
  19. data/app/views/admin/qb_syncs/instructions.html.haml +136 -0
  20. data/app/views/admin/qb_syncs/show.html.haml +52 -0
  21. data/app/views/effective/orders_mailer/qb_sync_error.html.haml +56 -0
  22. data/app/views/effective/qb_sync/authenticate.erb +12 -0
  23. data/app/views/effective/qb_sync/clientVersion.erb +8 -0
  24. data/app/views/effective/qb_sync/closeConnection.erb +8 -0
  25. data/app/views/effective/qb_sync/connectionError.erb +9 -0
  26. data/app/views/effective/qb_sync/getLastError.erb +9 -0
  27. data/app/views/effective/qb_sync/receiveResponseXML.erb +8 -0
  28. data/app/views/effective/qb_sync/sendRequestXML.erb +8 -0
  29. data/app/views/effective/qb_sync/serverVersion.erb +8 -0
  30. data/app/views/effective/qb_web_connector/quickbooks.qwc.erb +12 -0
  31. data/config/routes.rb +16 -0
  32. data/db/migrate/01_create_effective_qb_sync.rb.erb +68 -0
  33. data/lib/effective_qb_sync/engine.rb +42 -0
  34. data/lib/effective_qb_sync/version.rb +3 -0
  35. data/lib/effective_qb_sync.rb +42 -0
  36. data/lib/generators/effective_qb_sync/install_generator.rb +42 -0
  37. data/lib/generators/templates/effective_qb_sync.rb +61 -0
  38. data/lib/generators/templates/effective_qb_sync_mailer_preview.rb +39 -0
  39. data/spec/dummy/README.rdoc +8 -0
  40. data/spec/dummy/Rakefile +6 -0
  41. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  42. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  43. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  44. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  45. data/spec/dummy/app/models/product.rb +14 -0
  46. data/spec/dummy/app/models/product_with_float_price.rb +13 -0
  47. data/spec/dummy/app/models/user.rb +14 -0
  48. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  49. data/spec/dummy/bin/bundle +3 -0
  50. data/spec/dummy/bin/rails +4 -0
  51. data/spec/dummy/bin/rake +4 -0
  52. data/spec/dummy/config/application.rb +32 -0
  53. data/spec/dummy/config/boot.rb +5 -0
  54. data/spec/dummy/config/database.yml +25 -0
  55. data/spec/dummy/config/environment.rb +5 -0
  56. data/spec/dummy/config/environments/development.rb +37 -0
  57. data/spec/dummy/config/environments/production.rb +80 -0
  58. data/spec/dummy/config/environments/test.rb +36 -0
  59. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  60. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  61. data/spec/dummy/config/initializers/devise.rb +254 -0
  62. data/spec/dummy/config/initializers/effective_addresses.rb +15 -0
  63. data/spec/dummy/config/initializers/effective_orders.rb +154 -0
  64. data/spec/dummy/config/initializers/effective_qb_sync.rb +41 -0
  65. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/spec/dummy/config/initializers/inflections.rb +16 -0
  67. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  68. data/spec/dummy/config/initializers/session_store.rb +3 -0
  69. data/spec/dummy/config/initializers/simple_form.rb +189 -0
  70. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  71. data/spec/dummy/config/locales/en.yml +23 -0
  72. data/spec/dummy/config/routes.rb +3 -0
  73. data/spec/dummy/config/secrets.yml +22 -0
  74. data/spec/dummy/config.ru +4 -0
  75. data/spec/dummy/db/schema.rb +208 -0
  76. data/spec/dummy/db/test.sqlite3 +0 -0
  77. data/spec/dummy/log/development.log +90 -0
  78. data/spec/dummy/log/test.log +1 -0
  79. data/spec/dummy/public/404.html +67 -0
  80. data/spec/dummy/public/422.html +67 -0
  81. data/spec/dummy/public/500.html +66 -0
  82. data/spec/dummy/public/favicon.ico +0 -0
  83. data/spec/fixtures/qbxml_response_error.xml +6 -0
  84. data/spec/fixtures/qbxml_response_success.xml +621 -0
  85. data/spec/models/acts_as_purchasable_spec.rb +131 -0
  86. data/spec/models/factories_spec.rb +32 -0
  87. data/spec/models/qb_machine_spec.rb +554 -0
  88. data/spec/models/qb_request_spec.rb +327 -0
  89. data/spec/models/qb_ticket_spec.rb +62 -0
  90. data/spec/spec_helper.rb +45 -0
  91. data/spec/support/factories.rb +97 -0
  92. metadata +397 -0
metadata ADDED
@@ -0,0 +1,397 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: effective_qb_sync
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Code and Effect
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jquery-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
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: devise
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
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: haml-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
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: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
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: sass-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
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: simple_form
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
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: effective_orders
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.0.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.0.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: factory_girl_rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
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: rspec-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: sqlite3
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: pry
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: pry-stack_explorer
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: pry-byebug
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: Synchronize EffectiveOrders with QuickBooks Web Connector.
224
+ email:
225
+ - info@codeandeffect.com
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - MIT-LICENSE
231
+ - README.md
232
+ - Rakefile
233
+ - app/controllers/admin/qb_syncs_controller.rb
234
+ - app/controllers/effective/qb_sync_controller.rb
235
+ - app/models/effective/access_denied.rb
236
+ - app/models/effective/datatables/qb_syncs.rb
237
+ - app/models/effective/qb_log.rb
238
+ - app/models/effective/qb_machine.rb
239
+ - app/models/effective/qb_order_item.rb
240
+ - app/models/effective/qb_order_items_form.rb
241
+ - app/models/effective/qb_request.rb
242
+ - app/models/effective/qb_ticket.rb
243
+ - app/models/effective/qbwc_supervisor.rb
244
+ - app/views/admin/qb_syncs/_actions.html.haml
245
+ - app/views/admin/qb_syncs/_qb_item_names.html.haml
246
+ - app/views/admin/qb_syncs/index.html.haml
247
+ - app/views/admin/qb_syncs/instructions.html.haml
248
+ - app/views/admin/qb_syncs/show.html.haml
249
+ - app/views/effective/orders_mailer/qb_sync_error.html.haml
250
+ - app/views/effective/qb_sync/authenticate.erb
251
+ - app/views/effective/qb_sync/clientVersion.erb
252
+ - app/views/effective/qb_sync/closeConnection.erb
253
+ - app/views/effective/qb_sync/connectionError.erb
254
+ - app/views/effective/qb_sync/getLastError.erb
255
+ - app/views/effective/qb_sync/receiveResponseXML.erb
256
+ - app/views/effective/qb_sync/sendRequestXML.erb
257
+ - app/views/effective/qb_sync/serverVersion.erb
258
+ - app/views/effective/qb_web_connector/quickbooks.qwc.erb
259
+ - config/routes.rb
260
+ - db/migrate/01_create_effective_qb_sync.rb.erb
261
+ - lib/effective_qb_sync.rb
262
+ - lib/effective_qb_sync/engine.rb
263
+ - lib/effective_qb_sync/version.rb
264
+ - lib/generators/effective_qb_sync/install_generator.rb
265
+ - lib/generators/templates/effective_qb_sync.rb
266
+ - lib/generators/templates/effective_qb_sync_mailer_preview.rb
267
+ - spec/dummy/README.rdoc
268
+ - spec/dummy/Rakefile
269
+ - spec/dummy/app/assets/javascripts/application.js
270
+ - spec/dummy/app/assets/stylesheets/application.css
271
+ - spec/dummy/app/controllers/application_controller.rb
272
+ - spec/dummy/app/helpers/application_helper.rb
273
+ - spec/dummy/app/models/product.rb
274
+ - spec/dummy/app/models/product_with_float_price.rb
275
+ - spec/dummy/app/models/user.rb
276
+ - spec/dummy/app/views/layouts/application.html.erb
277
+ - spec/dummy/bin/bundle
278
+ - spec/dummy/bin/rails
279
+ - spec/dummy/bin/rake
280
+ - spec/dummy/config.ru
281
+ - spec/dummy/config/application.rb
282
+ - spec/dummy/config/boot.rb
283
+ - spec/dummy/config/database.yml
284
+ - spec/dummy/config/environment.rb
285
+ - spec/dummy/config/environments/development.rb
286
+ - spec/dummy/config/environments/production.rb
287
+ - spec/dummy/config/environments/test.rb
288
+ - spec/dummy/config/initializers/backtrace_silencers.rb
289
+ - spec/dummy/config/initializers/cookies_serializer.rb
290
+ - spec/dummy/config/initializers/devise.rb
291
+ - spec/dummy/config/initializers/effective_addresses.rb
292
+ - spec/dummy/config/initializers/effective_orders.rb
293
+ - spec/dummy/config/initializers/effective_qb_sync.rb
294
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
295
+ - spec/dummy/config/initializers/inflections.rb
296
+ - spec/dummy/config/initializers/mime_types.rb
297
+ - spec/dummy/config/initializers/session_store.rb
298
+ - spec/dummy/config/initializers/simple_form.rb
299
+ - spec/dummy/config/initializers/wrap_parameters.rb
300
+ - spec/dummy/config/locales/en.yml
301
+ - spec/dummy/config/routes.rb
302
+ - spec/dummy/config/secrets.yml
303
+ - spec/dummy/db/schema.rb
304
+ - spec/dummy/db/test.sqlite3
305
+ - spec/dummy/log/development.log
306
+ - spec/dummy/log/test.log
307
+ - spec/dummy/public/404.html
308
+ - spec/dummy/public/422.html
309
+ - spec/dummy/public/500.html
310
+ - spec/dummy/public/favicon.ico
311
+ - spec/fixtures/qbxml_response_error.xml
312
+ - spec/fixtures/qbxml_response_success.xml
313
+ - spec/models/acts_as_purchasable_spec.rb
314
+ - spec/models/factories_spec.rb
315
+ - spec/models/qb_machine_spec.rb
316
+ - spec/models/qb_request_spec.rb
317
+ - spec/models/qb_ticket_spec.rb
318
+ - spec/spec_helper.rb
319
+ - spec/support/factories.rb
320
+ homepage: https://github.com/code-and-effect/effective_qb_sync
321
+ licenses:
322
+ - MIT
323
+ metadata: {}
324
+ post_install_message:
325
+ rdoc_options: []
326
+ require_paths:
327
+ - lib
328
+ required_ruby_version: !ruby/object:Gem::Requirement
329
+ requirements:
330
+ - - ">="
331
+ - !ruby/object:Gem::Version
332
+ version: '0'
333
+ required_rubygems_version: !ruby/object:Gem::Requirement
334
+ requirements:
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ version: '0'
338
+ requirements: []
339
+ rubyforge_project:
340
+ rubygems_version: 2.4.6
341
+ signing_key:
342
+ specification_version: 4
343
+ summary: Synchronize EffectiveOrders with QuickBooks Web Connector.
344
+ test_files:
345
+ - spec/dummy/app/assets/javascripts/application.js
346
+ - spec/dummy/app/assets/stylesheets/application.css
347
+ - spec/dummy/app/controllers/application_controller.rb
348
+ - spec/dummy/app/helpers/application_helper.rb
349
+ - spec/dummy/app/models/product.rb
350
+ - spec/dummy/app/models/product_with_float_price.rb
351
+ - spec/dummy/app/models/user.rb
352
+ - spec/dummy/app/views/layouts/application.html.erb
353
+ - spec/dummy/bin/bundle
354
+ - spec/dummy/bin/rails
355
+ - spec/dummy/bin/rake
356
+ - spec/dummy/config/application.rb
357
+ - spec/dummy/config/boot.rb
358
+ - spec/dummy/config/database.yml
359
+ - spec/dummy/config/environment.rb
360
+ - spec/dummy/config/environments/development.rb
361
+ - spec/dummy/config/environments/production.rb
362
+ - spec/dummy/config/environments/test.rb
363
+ - spec/dummy/config/initializers/backtrace_silencers.rb
364
+ - spec/dummy/config/initializers/cookies_serializer.rb
365
+ - spec/dummy/config/initializers/devise.rb
366
+ - spec/dummy/config/initializers/effective_addresses.rb
367
+ - spec/dummy/config/initializers/effective_orders.rb
368
+ - spec/dummy/config/initializers/effective_qb_sync.rb
369
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
370
+ - spec/dummy/config/initializers/inflections.rb
371
+ - spec/dummy/config/initializers/mime_types.rb
372
+ - spec/dummy/config/initializers/session_store.rb
373
+ - spec/dummy/config/initializers/simple_form.rb
374
+ - spec/dummy/config/initializers/wrap_parameters.rb
375
+ - spec/dummy/config/locales/en.yml
376
+ - spec/dummy/config/routes.rb
377
+ - spec/dummy/config/secrets.yml
378
+ - spec/dummy/config.ru
379
+ - spec/dummy/db/schema.rb
380
+ - spec/dummy/db/test.sqlite3
381
+ - spec/dummy/log/development.log
382
+ - spec/dummy/log/test.log
383
+ - spec/dummy/public/404.html
384
+ - spec/dummy/public/422.html
385
+ - spec/dummy/public/500.html
386
+ - spec/dummy/public/favicon.ico
387
+ - spec/dummy/Rakefile
388
+ - spec/dummy/README.rdoc
389
+ - spec/fixtures/qbxml_response_error.xml
390
+ - spec/fixtures/qbxml_response_success.xml
391
+ - spec/models/acts_as_purchasable_spec.rb
392
+ - spec/models/factories_spec.rb
393
+ - spec/models/qb_machine_spec.rb
394
+ - spec/models/qb_request_spec.rb
395
+ - spec/models/qb_ticket_spec.rb
396
+ - spec/spec_helper.rb
397
+ - spec/support/factories.rb