smartkiosk-client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/Gemfile +5 -0
  2. data/Gemfile.lock +176 -0
  3. data/Rakefile +4 -0
  4. data/app/controllers/banners.rb +14 -0
  5. data/app/controllers/collections.rb +10 -0
  6. data/app/controllers/config.rb +23 -0
  7. data/app/controllers/payments.rb +30 -0
  8. data/app/controllers/receipts.rb +13 -0
  9. data/app/controllers/terminal.rb +104 -0
  10. data/app/models/admin.rb +3 -0
  11. data/app/models/banner.rb +5 -0
  12. data/app/models/collection.rb +53 -0
  13. data/app/models/customer.rb +3 -0
  14. data/app/models/group.rb +37 -0
  15. data/app/models/order.rb +25 -0
  16. data/app/models/payment.rb +80 -0
  17. data/app/models/phone_range.rb +3 -0
  18. data/app/models/promotion.rb +11 -0
  19. data/app/models/provider.rb +42 -0
  20. data/app/models/receipt.rb +21 -0
  21. data/app/models/receipt_template.rb +5 -0
  22. data/app/models/terminal.rb +152 -0
  23. data/app/uploaders/icon_uploader.rb +9 -0
  24. data/app/views/banners.haml +50 -0
  25. data/app/workers/orders/acknowledge_worker.rb +22 -0
  26. data/app/workers/orders/complete_worker.rb +20 -0
  27. data/app/workers/orders/disable_worker.rb +16 -0
  28. data/app/workers/orders/enable_worker.rb +16 -0
  29. data/app/workers/orders/reboot_worker.rb +18 -0
  30. data/app/workers/orders/reload_worker.rb +18 -0
  31. data/app/workers/orders/upgrade_worker.rb +108 -0
  32. data/app/workers/payments/check_worker.rb +35 -0
  33. data/app/workers/payments/collect_worker.rb +23 -0
  34. data/app/workers/payments/pay_worker.rb +21 -0
  35. data/app/workers/ping_worker.rb +180 -0
  36. data/app/workers/startup_worker.rb +11 -0
  37. data/app/workers/sync/icons_worker.rb +20 -0
  38. data/app/workers/sync/receipt_templates_worker.rb +27 -0
  39. data/config/boot.rb +104 -0
  40. data/config/services/application.yml +4 -0
  41. data/config/services/database.yml +17 -0
  42. data/config/services/database.yml.sample +33 -0
  43. data/config/services/smartware.yml +28 -0
  44. data/config/services/smartware.yml.sample +13 -0
  45. data/config/sidekiq.yml +12 -0
  46. data/db/development.sqlite3 +0 -0
  47. data/db/migrate/20121230080152_create_customers.rb +8 -0
  48. data/db/migrate/20121230080159_create_admins.rb +11 -0
  49. data/db/migrate/20130106150707_create_orders.rb +14 -0
  50. data/db/migrate/20130106155321_create_providers.rb +19 -0
  51. data/db/migrate/20130106160834_create_groups.rb +11 -0
  52. data/db/migrate/20130106181512_create_receipt_templates.rb +9 -0
  53. data/db/migrate/20130106181548_create_payments.rb +26 -0
  54. data/db/migrate/20130106181729_create_collections.rb +10 -0
  55. data/db/migrate/20130106181803_create_receipts.rb +15 -0
  56. data/db/migrate/20130106181844_create_phone_ranges.rb +14 -0
  57. data/db/migrate/20130108110546_create_promotions.rb +9 -0
  58. data/db/migrate/20130110025256_create_banners.rb +12 -0
  59. data/init.rb +1 -0
  60. data/lib/pinger.rb +22 -0
  61. data/lib/sidekiq.rb +20 -0
  62. data/lib/smartkiosk/client/version.rb +7 -0
  63. data/lib/smartkiosk/client.rb +1 -0
  64. data/lib/smartkiosk/config/chunk.rb +7 -0
  65. data/lib/smartkiosk/config/yaml.rb +26 -0
  66. data/lib/tasks/db.rb +15 -0
  67. data/lib/tasks/pack.rb +27 -0
  68. data/lib/tasks/scheduler.rb +27 -0
  69. data/lib/tasks/services.rb +20 -0
  70. data/server.rb +11 -0
  71. data/smartkiosk-client.gemspec +55 -0
  72. data/tmp/pids/.gitkeep +0 -0
  73. data/tmp/pids/sidekiq.pid +1 -0
  74. data/vendor/assets/javascripts/jquery.js +9555 -0
  75. metadata +444 -0
metadata ADDED
@@ -0,0 +1,444 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smartkiosk-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Boris Staal
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &70219456722980 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 10.0.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70219456722980
25
+ - !ruby/object:Gem::Dependency
26
+ name: thin
27
+ requirement: &70219456722000 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
32
+ version: 1.5.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70219456722000
36
+ - !ruby/object:Gem::Dependency
37
+ name: sinatra
38
+ requirement: &70219456721520 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.4
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70219456721520
47
+ - !ruby/object:Gem::Dependency
48
+ name: sinatra-activerecord
49
+ requirement: &70219456720820 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - =
53
+ - !ruby/object:Gem::Version
54
+ version: 1.2.1
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70219456720820
58
+ - !ruby/object:Gem::Dependency
59
+ name: sinatra-contrib
60
+ requirement: &70219456720320 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - =
64
+ - !ruby/object:Gem::Version
65
+ version: 1.3.2
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70219456720320
69
+ - !ruby/object:Gem::Dependency
70
+ name: haml
71
+ requirement: &70219456719820 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - =
75
+ - !ruby/object:Gem::Version
76
+ version: 3.1.7
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *70219456719820
80
+ - !ruby/object:Gem::Dependency
81
+ name: sass
82
+ requirement: &70219456719260 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - =
86
+ - !ruby/object:Gem::Version
87
+ version: 3.2.5
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *70219456719260
91
+ - !ruby/object:Gem::Dependency
92
+ name: sprockets
93
+ requirement: &70219456718620 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - =
97
+ - !ruby/object:Gem::Version
98
+ version: 2.8.2
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *70219456718620
102
+ - !ruby/object:Gem::Dependency
103
+ name: sprockets-sass
104
+ requirement: &70219456718100 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - =
108
+ - !ruby/object:Gem::Version
109
+ version: 0.9.1
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *70219456718100
113
+ - !ruby/object:Gem::Dependency
114
+ name: sprockets-helpers
115
+ requirement: &70219456717620 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - =
119
+ - !ruby/object:Gem::Version
120
+ version: 0.8.0
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *70219456717620
124
+ - !ruby/object:Gem::Dependency
125
+ name: activesupport
126
+ requirement: &70219456717080 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - =
130
+ - !ruby/object:Gem::Version
131
+ version: 3.2.11
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: *70219456717080
135
+ - !ruby/object:Gem::Dependency
136
+ name: smartkiosk-common
137
+ requirement: &70219456716580 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - =
141
+ - !ruby/object:Gem::Version
142
+ version: 0.0.2
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: *70219456716580
146
+ - !ruby/object:Gem::Dependency
147
+ name: sqlite3
148
+ requirement: &70219456732460 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - =
152
+ - !ruby/object:Gem::Version
153
+ version: 1.3.6
154
+ type: :runtime
155
+ prerelease: false
156
+ version_requirements: *70219456732460
157
+ - !ruby/object:Gem::Dependency
158
+ name: pg
159
+ requirement: &70219456732000 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - =
163
+ - !ruby/object:Gem::Version
164
+ version: 0.14.1
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: *70219456732000
168
+ - !ruby/object:Gem::Dependency
169
+ name: redis
170
+ requirement: &70219456731520 !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - =
174
+ - !ruby/object:Gem::Version
175
+ version: 3.0.2
176
+ type: :runtime
177
+ prerelease: false
178
+ version_requirements: *70219456731520
179
+ - !ruby/object:Gem::Dependency
180
+ name: redis-objects
181
+ requirement: &70219456731020 !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - =
185
+ - !ruby/object:Gem::Version
186
+ version: 0.6.1
187
+ type: :runtime
188
+ prerelease: false
189
+ version_requirements: *70219456731020
190
+ - !ruby/object:Gem::Dependency
191
+ name: carrierwave
192
+ requirement: &70219456730240 !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - =
196
+ - !ruby/object:Gem::Version
197
+ version: 0.7.1
198
+ type: :runtime
199
+ prerelease: false
200
+ version_requirements: *70219456730240
201
+ - !ruby/object:Gem::Dependency
202
+ name: rest-client
203
+ requirement: &70219456729360 !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - =
207
+ - !ruby/object:Gem::Version
208
+ version: 1.6.7
209
+ type: :runtime
210
+ prerelease: false
211
+ version_requirements: *70219456729360
212
+ - !ruby/object:Gem::Dependency
213
+ name: recursive-open-struct
214
+ requirement: &70219456728060 !ruby/object:Gem::Requirement
215
+ none: false
216
+ requirements:
217
+ - - =
218
+ - !ruby/object:Gem::Version
219
+ version: 0.2.1
220
+ type: :runtime
221
+ prerelease: false
222
+ version_requirements: *70219456728060
223
+ - !ruby/object:Gem::Dependency
224
+ name: liquid
225
+ requirement: &70219456726320 !ruby/object:Gem::Requirement
226
+ none: false
227
+ requirements:
228
+ - - =
229
+ - !ruby/object:Gem::Version
230
+ version: 2.4.1
231
+ type: :runtime
232
+ prerelease: false
233
+ version_requirements: *70219456726320
234
+ - !ruby/object:Gem::Dependency
235
+ name: file-tail
236
+ requirement: &70219456724660 !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - =
240
+ - !ruby/object:Gem::Version
241
+ version: 1.0.12
242
+ type: :runtime
243
+ prerelease: false
244
+ version_requirements: *70219456724660
245
+ - !ruby/object:Gem::Dependency
246
+ name: rubyzip
247
+ requirement: &70219456740200 !ruby/object:Gem::Requirement
248
+ none: false
249
+ requirements:
250
+ - - =
251
+ - !ruby/object:Gem::Version
252
+ version: 0.9.9
253
+ type: :runtime
254
+ prerelease: false
255
+ version_requirements: *70219456740200
256
+ - !ruby/object:Gem::Dependency
257
+ name: pry
258
+ requirement: &70219456739700 !ruby/object:Gem::Requirement
259
+ none: false
260
+ requirements:
261
+ - - =
262
+ - !ruby/object:Gem::Version
263
+ version: 0.9.10
264
+ type: :runtime
265
+ prerelease: false
266
+ version_requirements: *70219456739700
267
+ - !ruby/object:Gem::Dependency
268
+ name: smartware
269
+ requirement: &70219456739220 !ruby/object:Gem::Requirement
270
+ none: false
271
+ requirements:
272
+ - - =
273
+ - !ruby/object:Gem::Version
274
+ version: 0.2.8
275
+ type: :runtime
276
+ prerelease: false
277
+ version_requirements: *70219456739220
278
+ - !ruby/object:Gem::Dependency
279
+ name: smartguard
280
+ requirement: &70219456738720 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - =
284
+ - !ruby/object:Gem::Version
285
+ version: 0.3.8
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: *70219456738720
289
+ - !ruby/object:Gem::Dependency
290
+ name: amqp
291
+ requirement: &70219456738220 !ruby/object:Gem::Requirement
292
+ none: false
293
+ requirements:
294
+ - - =
295
+ - !ruby/object:Gem::Version
296
+ version: 0.9.8
297
+ type: :runtime
298
+ prerelease: false
299
+ version_requirements: *70219456738220
300
+ - !ruby/object:Gem::Dependency
301
+ name: sidekiq
302
+ requirement: &70219456737760 !ruby/object:Gem::Requirement
303
+ none: false
304
+ requirements:
305
+ - - =
306
+ - !ruby/object:Gem::Version
307
+ version: 2.6.5
308
+ type: :runtime
309
+ prerelease: false
310
+ version_requirements: *70219456737760
311
+ - !ruby/object:Gem::Dependency
312
+ name: slim
313
+ requirement: &70219456737220 !ruby/object:Gem::Requirement
314
+ none: false
315
+ requirements:
316
+ - - =
317
+ - !ruby/object:Gem::Version
318
+ version: 1.3.4
319
+ type: :runtime
320
+ prerelease: false
321
+ version_requirements: *70219456737220
322
+ - !ruby/object:Gem::Dependency
323
+ name: rufus-scheduler
324
+ requirement: &70219456736740 !ruby/object:Gem::Requirement
325
+ none: false
326
+ requirements:
327
+ - - =
328
+ - !ruby/object:Gem::Version
329
+ version: 2.0.17
330
+ type: :runtime
331
+ prerelease: false
332
+ version_requirements: *70219456736740
333
+ description: Smartkiosk client application
334
+ email:
335
+ - boris@roundlake.ru
336
+ executables: []
337
+ extensions: []
338
+ extra_rdoc_files: []
339
+ files:
340
+ - Gemfile
341
+ - Gemfile.lock
342
+ - Rakefile
343
+ - app/controllers/banners.rb
344
+ - app/controllers/collections.rb
345
+ - app/controllers/config.rb
346
+ - app/controllers/payments.rb
347
+ - app/controllers/receipts.rb
348
+ - app/controllers/terminal.rb
349
+ - app/models/admin.rb
350
+ - app/models/banner.rb
351
+ - app/models/collection.rb
352
+ - app/models/customer.rb
353
+ - app/models/group.rb
354
+ - app/models/order.rb
355
+ - app/models/payment.rb
356
+ - app/models/phone_range.rb
357
+ - app/models/promotion.rb
358
+ - app/models/provider.rb
359
+ - app/models/receipt.rb
360
+ - app/models/receipt_template.rb
361
+ - app/models/terminal.rb
362
+ - app/uploaders/icon_uploader.rb
363
+ - app/views/banners.haml
364
+ - app/workers/orders/acknowledge_worker.rb
365
+ - app/workers/orders/complete_worker.rb
366
+ - app/workers/orders/disable_worker.rb
367
+ - app/workers/orders/enable_worker.rb
368
+ - app/workers/orders/reboot_worker.rb
369
+ - app/workers/orders/reload_worker.rb
370
+ - app/workers/orders/upgrade_worker.rb
371
+ - app/workers/payments/check_worker.rb
372
+ - app/workers/payments/collect_worker.rb
373
+ - app/workers/payments/pay_worker.rb
374
+ - app/workers/ping_worker.rb
375
+ - app/workers/startup_worker.rb
376
+ - app/workers/sync/icons_worker.rb
377
+ - app/workers/sync/receipt_templates_worker.rb
378
+ - config/boot.rb
379
+ - config/services/application.yml
380
+ - config/services/database.yml
381
+ - config/services/database.yml.sample
382
+ - config/services/smartware.yml
383
+ - config/services/smartware.yml.sample
384
+ - config/sidekiq.yml
385
+ - db/development.sqlite3
386
+ - db/migrate/20121230080152_create_customers.rb
387
+ - db/migrate/20121230080159_create_admins.rb
388
+ - db/migrate/20130106150707_create_orders.rb
389
+ - db/migrate/20130106155321_create_providers.rb
390
+ - db/migrate/20130106160834_create_groups.rb
391
+ - db/migrate/20130106181512_create_receipt_templates.rb
392
+ - db/migrate/20130106181548_create_payments.rb
393
+ - db/migrate/20130106181729_create_collections.rb
394
+ - db/migrate/20130106181803_create_receipts.rb
395
+ - db/migrate/20130106181844_create_phone_ranges.rb
396
+ - db/migrate/20130108110546_create_promotions.rb
397
+ - db/migrate/20130110025256_create_banners.rb
398
+ - init.rb
399
+ - lib/pinger.rb
400
+ - lib/sidekiq.rb
401
+ - lib/smartkiosk/client.rb
402
+ - lib/smartkiosk/client/version.rb
403
+ - lib/smartkiosk/config/chunk.rb
404
+ - lib/smartkiosk/config/yaml.rb
405
+ - lib/tasks/db.rb
406
+ - lib/tasks/pack.rb
407
+ - lib/tasks/scheduler.rb
408
+ - lib/tasks/services.rb
409
+ - server.rb
410
+ - smartkiosk-client.gemspec
411
+ - tmp/pids/.gitkeep
412
+ - tmp/pids/sidekiq.pid
413
+ - vendor/assets/javascripts/jquery.js
414
+ homepage: https://github.com/smartkiosk/smartkiosk-client
415
+ licenses: []
416
+ post_install_message:
417
+ rdoc_options: []
418
+ require_paths:
419
+ - lib
420
+ required_ruby_version: !ruby/object:Gem::Requirement
421
+ none: false
422
+ requirements:
423
+ - - ! '>='
424
+ - !ruby/object:Gem::Version
425
+ version: '0'
426
+ segments:
427
+ - 0
428
+ hash: 4194601099991325097
429
+ required_rubygems_version: !ruby/object:Gem::Requirement
430
+ none: false
431
+ requirements:
432
+ - - ! '>='
433
+ - !ruby/object:Gem::Version
434
+ version: '0'
435
+ segments:
436
+ - 0
437
+ hash: 4194601099991325097
438
+ requirements: []
439
+ rubyforge_project:
440
+ rubygems_version: 1.8.15
441
+ signing_key:
442
+ specification_version: 3
443
+ summary: Smartkiosk client application
444
+ test_files: []