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
@@ -0,0 +1,55 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'smartkiosk/client/version'
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = 'smartkiosk-client'
7
+ gem.version = Smartkiosk::Client::VERSION
8
+ gem.authors = ['Boris Staal']
9
+ gem.email = ['boris@roundlake.ru']
10
+ gem.description = %q{Smartkiosk client application}
11
+ gem.summary = gem.description
12
+ gem.homepage = 'https://github.com/smartkiosk/smartkiosk-client'
13
+ gem.files = `git ls-files`.split($/)
14
+
15
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
+ gem.require_paths = ['lib']
18
+
19
+ gem.add_dependency 'rake', '10.0.3'
20
+ gem.add_dependency 'thin', '1.5.0'
21
+ gem.add_dependency 'sinatra', '1.3.4'
22
+ gem.add_dependency 'sinatra-activerecord', '1.2.1'
23
+ gem.add_dependency 'sinatra-contrib', '1.3.2'
24
+ gem.add_dependency 'haml', '3.1.7'
25
+ gem.add_dependency 'sass', '3.2.5'
26
+ gem.add_dependency 'sprockets', '2.8.2'
27
+ gem.add_dependency 'sprockets-sass', '0.9.1'
28
+ gem.add_dependency 'sprockets-helpers', '0.8.0'
29
+
30
+ gem.add_dependency 'activesupport', '3.2.11'
31
+ gem.add_dependency 'smartkiosk-common', '0.0.2'
32
+
33
+ gem.add_dependency 'sqlite3', '1.3.6'
34
+ gem.add_dependency 'pg', '0.14.1'
35
+ gem.add_dependency 'redis', '3.0.2'
36
+ gem.add_dependency 'redis-objects', '0.6.1'
37
+ gem.add_dependency 'carrierwave', '0.7.1'
38
+
39
+ gem.add_dependency 'rest-client', '1.6.7'
40
+ gem.add_dependency 'recursive-open-struct', '0.2.1'
41
+
42
+ gem.add_dependency 'liquid', '2.4.1'
43
+ gem.add_dependency 'file-tail', '1.0.12'
44
+
45
+ gem.add_dependency 'rubyzip', '0.9.9'
46
+ gem.add_dependency 'pry', '0.9.10'
47
+
48
+ gem.add_dependency 'smartware', '0.2.8'
49
+ gem.add_dependency 'smartguard', '0.3.8'
50
+ gem.add_dependency 'amqp', '0.9.8'
51
+
52
+ gem.add_dependency 'sidekiq', '2.6.5'
53
+ gem.add_dependency 'slim', '1.3.4'
54
+ gem.add_dependency 'rufus-scheduler', '2.0.17'
55
+ end
data/tmp/pids/.gitkeep ADDED
File without changes
@@ -0,0 +1 @@
1
+ 58171