rhoconnect 5.1.1 → 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -8
  3. data/CREDITS +100 -100
  4. data/Gemfile +0 -2
  5. data/Gemfile.lock +56 -71
  6. data/LICENSE +5 -72
  7. data/README.md +0 -0
  8. data/Rakefile +0 -0
  9. data/bench/bench +0 -0
  10. data/bench/benchapp/settings/settings.yml +0 -3
  11. data/bench/blobapp/settings/settings.yml +0 -3
  12. data/bench/distr_bench/distr_bench +0 -0
  13. data/bench/distr_bench/distr_bench_main +0 -0
  14. data/bench/distr_bench/run_distr_client.sh +0 -0
  15. data/bench/distr_bench/run_test_query_script.sh +0 -0
  16. data/bench/lib/bench/bench_result_processor.rb +0 -0
  17. data/bench/lib/bench.rb +0 -8
  18. data/bench/lib/testdata/images/icon.ico +0 -0
  19. data/bench/lib/testdata/images/icon.png +0 -0
  20. data/bench/lib/testdata/images/loading-Landscape.png +0 -0
  21. data/bench/lib/testdata/images/loading-LandscapeLeft.png +0 -0
  22. data/bench/lib/testdata/images/loading-LandscapeRight.png +0 -0
  23. data/bench/lib/testdata/images/loading-Portrait.png +0 -0
  24. data/bench/lib/testdata/images/loading-PortraitUpsideDown.png +0 -0
  25. data/bench/lib/testdata/images/loading.png +0 -0
  26. data/bench/lib/testdata/images/loading@2x.png +0 -0
  27. data/bench/prepare_bench +0 -0
  28. data/bench/run_bench.sh +0 -0
  29. data/bench/run_blob_script.sh +0 -0
  30. data/bench/run_cud_script.sh +0 -0
  31. data/bench/run_query_md_script.sh +0 -0
  32. data/bench/run_query_only_script.sh +0 -0
  33. data/bench/run_query_script.sh +0 -0
  34. data/bench/run_test_query_script.sh +0 -0
  35. data/bench/run_test_source_script.sh +0 -0
  36. data/bin/rhoconnect-benchmark +0 -22
  37. data/commands/rhoconnect/restart.rb +0 -1
  38. data/commands/rhoconnect/start.rb +2 -14
  39. data/doc/adapters-crm.txt +1 -1
  40. data/doc/benchmarks-running.txt +1 -1
  41. data/doc/benchmarks.txt +0 -1
  42. data/doc/bulk-sync.txt +0 -1
  43. data/doc/command-line.txt +0 -6
  44. data/doc/java-plugin.txt +0 -6
  45. data/doc/preparing-production.txt +1 -7
  46. data/doc/public/cli.txt +0 -2
  47. data/doc/public/css/print.css +0 -0
  48. data/doc/public/css/screen.css +0 -0
  49. data/doc/public/css/style.css +0 -0
  50. data/doc/push-client-setup-android.txt +0 -1
  51. data/doc/push-client-setup-ios.txt +0 -1
  52. data/doc/push-client-setup-rps.txt +3 -3
  53. data/doc/push-server-setup.txt +1 -4
  54. data/doc/rails-plugin.txt +0 -5
  55. data/doc/rest-api.txt +2 -14
  56. data/doc/rhoconnect-redis-stack.txt +0 -1
  57. data/doc/settings.txt +0 -3
  58. data/doc/supported-platforms.txt +0 -1
  59. data/doc/tutorial.txt +0 -2
  60. data/examples/simple/config.ru +0 -0
  61. data/examples/simple/settings/settings.yml +1 -4
  62. data/generators/rhoconnect.rb +0 -1
  63. data/generators/templates/application/config.ru +0 -0
  64. data/generators/templates/application/rcgemfile +1 -0
  65. data/generators/templates/application/settings/settings.yml +0 -3
  66. data/install.sh +0 -0
  67. data/installer/utils/create_sha1.rb +0 -0
  68. data/installer/utils/delete_from_s3.rb +0 -0
  69. data/installer/utils/download_from_s3.rb +0 -0
  70. data/installer/utils/nix_install_test.rb +0 -0
  71. data/installer/utils/package_upload/repos.rake +2 -2
  72. data/installer/utils/package_upload/s3_single_file.rb +0 -0
  73. data/installer/utils/package_upload/s3_upload.rb +0 -0
  74. data/installer/utils/verify_checksum.rb +0 -0
  75. data/lib/rhoconnect/api_token.rb +0 -0
  76. data/lib/rhoconnect/app.rb +0 -0
  77. data/lib/rhoconnect/bulk_data/bulk_data.rb +0 -0
  78. data/lib/rhoconnect/bulk_data/syncdb.index.schema +0 -0
  79. data/lib/rhoconnect/bulk_data/syncdb.schema +0 -0
  80. data/lib/rhoconnect/bulk_data.rb +0 -0
  81. data/lib/rhoconnect/client.rb +0 -2
  82. data/lib/rhoconnect/controller/system_controller.rb +0 -9
  83. data/lib/rhoconnect/credential.rb +0 -0
  84. data/lib/rhoconnect/document.rb +0 -0
  85. data/lib/rhoconnect/middleware/cors.rb +209 -209
  86. data/lib/rhoconnect/middleware/x_domain_session_wrapper.rb +57 -57
  87. data/lib/rhoconnect/model/base.rb +0 -0
  88. data/lib/rhoconnect/read_state.rb +0 -0
  89. data/lib/rhoconnect/rho_indifferent_access.rb +0 -0
  90. data/lib/rhoconnect/server.rb +0 -0
  91. data/lib/rhoconnect/source.rb +0 -0
  92. data/lib/rhoconnect/store.rb +2 -0
  93. data/lib/rhoconnect/store_orm.rb +0 -0
  94. data/lib/rhoconnect/user.rb +0 -0
  95. data/lib/rhoconnect/version.rb +1 -1
  96. data/lib/rhoconnect/web-console/models/doc.js +0 -13
  97. data/lib/rhoconnect/web-console/models/source.js +0 -31
  98. data/lib/rhoconnect/web-console/public/logo.png +0 -0
  99. data/lib/rhoconnect/web-console/server.rb +0 -0
  100. data/lib/rhoconnect/web-console/templates/index.erb +1 -2
  101. data/lib/rhoconnect/web-console/views/home.js +4 -6
  102. data/lib/rhoconnect.rb +1 -3
  103. data/spec/api/api_helper.rb +0 -0
  104. data/spec/api/system/login_spec.rb +0 -0
  105. data/spec/api/system/reset_spec.rb +0 -0
  106. data/spec/api/user/create_user_spec.rb +0 -0
  107. data/spec/api/user/update_user_spec.rb +0 -0
  108. data/spec/api_token_spec.rb +0 -0
  109. data/spec/app_spec.rb +0 -0
  110. data/spec/apps/emptyapp/settings/settings.yml +1 -4
  111. data/spec/apps/jstestapp/settings/settings.yml +0 -3
  112. data/spec/apps/rhotestapp/controllers/ruby/application_controller.rb +0 -0
  113. data/spec/apps/rhotestapp/models/ruby/sample_adapter.rb +0 -0
  114. data/spec/apps/rhotestapp/models/ruby/simple_adapter.rb +0 -0
  115. data/spec/apps/rhotestapp/settings/settings.yml +0 -3
  116. data/spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem/mygem.rb +0 -0
  117. data/spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem.rb +0 -0
  118. data/spec/bulk_data/bulk_data_spec.rb +0 -0
  119. data/spec/client_spec.rb +0 -14
  120. data/spec/client_sync_spec.rb +0 -0
  121. data/spec/doc/base.html +0 -0
  122. data/spec/doc/doc_spec.rb +0 -0
  123. data/spec/doc/footer.html +0 -0
  124. data/spec/doc/header.html +0 -0
  125. data/spec/document_spec.rb +0 -0
  126. data/spec/generator/generator_spec.rb +1 -3
  127. data/spec/jobs/bulk_data_job_spec.rb +0 -0
  128. data/spec/perf/bulk_data_perf_spec.rb +0 -0
  129. data/spec/perf/perf_spec_helper.rb +0 -0
  130. data/spec/perf/store_perf_spec.rb +0 -0
  131. data/spec/read_state_spec.rb +0 -0
  132. data/spec/server/cors_spec.rb +283 -283
  133. data/spec/server/server_spec.rb +0 -15
  134. data/spec/server/x_domain_session_wrapper_spec.rb +150 -150
  135. data/spec/source_adapter_spec.rb +0 -0
  136. data/spec/source_spec.rb +0 -0
  137. data/spec/source_sync_spec.rb +0 -0
  138. data/spec/spec_helper.rb +0 -0
  139. data/spec/store_orm_spec.rb +0 -0
  140. data/spec/store_spec.rb +0 -0
  141. data/spec/sync_states_spec.rb +0 -0
  142. data/spec/testdata/1000-data.txt +0 -0
  143. data/spec/testdata/compressed/compress-data.txt +0 -0
  144. data/spec/user_spec.rb +0 -9
  145. metadata +116 -132
  146. data/bench/benchapp/settings/license.key +0 -1
  147. data/bench/blobapp/settings/license.key +0 -1
  148. data/doc/licensing.txt +0 -18
  149. data/examples/simple/settings/license.key +0 -1
  150. data/generators/templates/application/settings/license.key +0 -1
  151. data/lib/rhoconnect/license.rb +0 -94
  152. data/spec/api/system/get_license_info_spec.rb +0 -15
  153. data/spec/apps/emptyapp/settings/license.key +0 -1
  154. data/spec/apps/jstestapp/settings/license.key +0 -1
  155. data/spec/apps/rhotestapp/settings/license.key +0 -1
  156. data/spec/license_spec.rb +0 -67
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhoconnect
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rhomobile
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -167,8 +167,8 @@ dependencies:
167
167
  description: RhoConnect App Integration Server and related command-line utilities
168
168
  email: dev@rhomobile.com
169
169
  executables:
170
- - rhoconnect-benchmark
171
170
  - rhoconnect
171
+ - rhoconnect-benchmark
172
172
  extensions: []
173
173
  extra_rdoc_files:
174
174
  - LICENSE
@@ -192,7 +192,6 @@ files:
192
192
  - bench/benchapp/controllers/ruby/queue_mock_adapter_controller.rb
193
193
  - bench/benchapp/models/ruby/mock_adapter.rb
194
194
  - bench/benchapp/models/ruby/queue_mock_adapter.rb
195
- - bench/benchapp/settings/license.key
196
195
  - bench/benchapp/settings/settings.yml
197
196
  - bench/benchapp/spec/models/ruby/mock_adapter_spec.rb
198
197
  - bench/benchapp/spec/models/ruby/queue_mock_adapter_spec.rb
@@ -203,7 +202,6 @@ files:
203
202
  - bench/blobapp/controllers/ruby/application_controller.rb
204
203
  - bench/blobapp/controllers/ruby/blob_adapter_controller.rb
205
204
  - bench/blobapp/models/ruby/blob_adapter.rb
206
- - bench/blobapp/settings/license.key
207
205
  - bench/blobapp/settings/settings.yml
208
206
  - bench/blobapp/spec/models/ruby/blob_adapter_spec.rb
209
207
  - bench/blobapp/spec/spec_helper.rb
@@ -319,7 +317,6 @@ files:
319
317
  - doc/install.txt
320
318
  - doc/introduction.txt
321
319
  - doc/java-plugin.txt
322
- - doc/licensing.txt
323
320
  - doc/metadata.txt
324
321
  - doc/migration.txt
325
322
  - doc/net-plugin.txt
@@ -356,7 +353,6 @@ files:
356
353
  - examples/simple/application.rb
357
354
  - examples/simple/config.ru
358
355
  - examples/simple/my_server.rb
359
- - examples/simple/settings/license.key
360
356
  - examples/simple/settings/settings.yml
361
357
  - examples/simple/sources/product.rb
362
358
  - examples/simple/sources/sample_adapter.rb
@@ -370,7 +366,6 @@ files:
370
366
  - generators/templates/application/gitignore
371
367
  - generators/templates/application/package.json
372
368
  - generators/templates/application/rcgemfile
373
- - generators/templates/application/settings/license.key
374
369
  - generators/templates/application/settings/settings.yml
375
370
  - generators/templates/application/spec/application_controller_spec.rb
376
371
  - generators/templates/application/spec/js_spec.rb
@@ -488,7 +483,6 @@ files:
488
483
  - lib/rhoconnect/jobs/bulk_data_job.rb
489
484
  - lib/rhoconnect/jobs/ping_job.rb
490
485
  - lib/rhoconnect/jobs/source_job.rb
491
- - lib/rhoconnect/license.rb
492
486
  - lib/rhoconnect/lock_ops.rb
493
487
  - lib/rhoconnect/middleware/body_content_type_parser.rb
494
488
  - lib/rhoconnect/middleware/cors.rb
@@ -586,7 +580,6 @@ files:
586
580
  - spec/api/store/get_db_doc_spec.rb
587
581
  - spec/api/store/set_db_doc_spec.rb
588
582
  - spec/api/system/adapter_spec.rb
589
- - spec/api/system/get_license_info_spec.rb
590
583
  - spec/api/system/login_spec.rb
591
584
  - spec/api/system/reset_spec.rb
592
585
  - spec/api/system/stats_spec.rb
@@ -604,12 +597,10 @@ files:
604
597
  - spec/api_token_spec.rb
605
598
  - spec/app_spec.rb
606
599
  - spec/apps/emptyapp/application.rb
607
- - spec/apps/emptyapp/settings/license.key
608
600
  - spec/apps/emptyapp/settings/settings.yml
609
601
  - spec/apps/jstestapp/Rakefile
610
602
  - spec/apps/jstestapp/config.ru
611
603
  - spec/apps/jstestapp/controllers/js/application_controller.js
612
- - spec/apps/jstestapp/settings/license.key
613
604
  - spec/apps/jstestapp/settings/settings.yml
614
605
  - spec/apps/rhotestapp/Rakefile
615
606
  - spec/apps/rhotestapp/config.ru
@@ -626,7 +617,6 @@ files:
626
617
  - spec/apps/rhotestapp/models/ruby/simple_adapter.rb
627
618
  - spec/apps/rhotestapp/models/ruby/sub_adapter.rb
628
619
  - spec/apps/rhotestapp/settings/apple_fake_cert.pem
629
- - spec/apps/rhotestapp/settings/license.key
630
620
  - spec/apps/rhotestapp/settings/settings.yml
631
621
  - spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem.rb
632
622
  - spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem/mygem.rb
@@ -670,7 +660,6 @@ files:
670
660
  - spec/jobs/bulk_data_job_spec.rb
671
661
  - spec/jobs/ping_job_spec.rb
672
662
  - spec/jobs/source_job_spec.rb
673
- - spec/license_spec.rb
674
663
  - spec/models/js_base_spec.rb
675
664
  - spec/node_spec.rb
676
665
  - spec/perf/bulk_data_perf_spec.rb
@@ -727,146 +716,141 @@ required_rubygems_version: !ruby/object:Gem::Requirement
727
716
  version: '0'
728
717
  requirements: []
729
718
  rubyforge_project:
730
- rubygems_version: 2.2.2
719
+ rubygems_version: 2.4.5.1
731
720
  signing_key:
732
721
  specification_version: 4
733
722
  summary: RhoConnect App Integration Server
734
723
  test_files:
735
- - spec/jobs/source_job_spec.rb
736
- - spec/jobs/ping_job_spec.rb
737
- - spec/jobs/bulk_data_job_spec.rb
738
- - spec/node_spec.rb
739
- - spec/read_state_spec.rb
740
- - spec/client_sync_spec.rb
741
- - spec/app_spec.rb
742
- - spec/factories/factories.rb
743
- - spec/testdata/5-data.txt
744
- - spec/testdata/10000-data.txt
745
- - spec/testdata/5000-data.txt
746
- - spec/testdata/compressed/compress-data.txt
747
- - spec/testdata/1000-data.txt
748
- - spec/testdata/upload1.txt
749
- - spec/testdata/upload2.txt
750
- - spec/async_spec.rb
751
- - spec/client_spec.rb
752
- - spec/store_spec.rb
753
- - spec/sync_states_spec.rb
754
- - spec/api_token_spec.rb
755
- - spec/cli/cli_spec.rb
756
- - spec/doc/header.html
757
- - spec/doc/base.html
758
- - spec/doc/footer.html
759
- - spec/doc/doc_spec.rb
760
- - spec/bulk_data/bulk_data_spec.rb
761
- - spec/support/shared_examples.rb
762
- - spec/spec_helper.rb
763
- - spec/source_spec.rb
764
- - spec/generator/generator_spec.rb
765
- - spec/source_sync_spec.rb
766
- - spec/perf/bulk_data_perf_spec.rb
767
- - spec/perf/perf_spec_helper.rb
768
- - spec/perf/store_perf_spec.rb
769
- - spec/rhoconnect_spec.rb
770
- - spec/user_spec.rb
771
- - spec/predefined_adapters/rho_internal_js_bench_adapter_js_spec.rb
772
- - spec/predefined_adapters/rho_internal_bench_adapter_controller_js_spec.rb
773
- - spec/models/js_base_spec.rb
774
- - spec/server/cors_spec.rb
775
- - spec/server/x_domain_session_wrapper_spec.rb
776
- - spec/server/stats_spec.rb
777
- - spec/server/server_spec.rb
778
- - spec/dynamic_adapter_spec.rb
779
- - spec/stats/record_spec.rb
780
724
  - spec/api/api_helper.rb
781
- - spec/api/system/adapter_spec.rb
782
- - spec/api/system/reset_spec.rb
783
- - spec/api/system/get_license_info_spec.rb
784
- - spec/api/system/stats_spec.rb
785
- - spec/api/system/login_spec.rb
786
- - spec/api/user/update_user_spec.rb
787
- - spec/api/user/list_users_spec.rb
788
- - spec/api/user/list_clients_spec.rb
789
- - spec/api/user/show_user_spec.rb
790
- - spec/api/user/delete_client_spec.rb
791
- - spec/api/user/ping_spec.rb
792
- - spec/api/user/list_source_docs_spec.rb
793
- - spec/api/user/delete_user_spec.rb
794
- - spec/api/user/user_set_db_doc_spec.rb
795
- - spec/api/user/user_get_db_doc_spec.rb
796
- - spec/api/user/create_user_spec.rb
725
+ - spec/api/app/fast_delete_spec.rb
726
+ - spec/api/app/fast_insert_spec.rb
727
+ - spec/api/app/fast_update_spec.rb
728
+ - spec/api/app/push_deletes_spec.rb
729
+ - spec/api/app/push_objects_spec.rb
730
+ - spec/api/client/client_get_db_doc_spec.rb
797
731
  - spec/api/client/client_set_db_doc_spec.rb
798
732
  - spec/api/client/get_client_params_spec.rb
799
- - spec/api/client/client_get_db_doc_spec.rb
800
- - spec/api/client/reset_spec.rb
801
733
  - spec/api/client/list_client_docs_spec.rb
802
- - spec/api/app/fast_insert_spec.rb
803
- - spec/api/app/push_objects_spec.rb
804
- - spec/api/app/push_deletes_spec.rb
805
- - spec/api/app/fast_delete_spec.rb
806
- - spec/api/app/fast_update_spec.rb
734
+ - spec/api/client/reset_spec.rb
807
735
  - spec/api/readstate/set_refresh_time_spec.rb
808
736
  - spec/api/source/get_source_params_spec.rb
809
- - spec/api/source/update_source_params_spec.rb
810
737
  - spec/api/source/list_sources_spec.rb
738
+ - spec/api/source/update_source_params_spec.rb
811
739
  - spec/api/store/get_db_doc_spec.rb
812
740
  - spec/api/store/set_db_doc_spec.rb
813
- - spec/javascripts/PlayerSpec.js
741
+ - spec/api/system/adapter_spec.rb
742
+ - spec/api/system/login_spec.rb
743
+ - spec/api/system/reset_spec.rb
744
+ - spec/api/system/stats_spec.rb
745
+ - spec/api/user/create_user_spec.rb
746
+ - spec/api/user/delete_client_spec.rb
747
+ - spec/api/user/delete_user_spec.rb
748
+ - spec/api/user/list_clients_spec.rb
749
+ - spec/api/user/list_source_docs_spec.rb
750
+ - spec/api/user/list_users_spec.rb
751
+ - spec/api/user/ping_spec.rb
752
+ - spec/api/user/show_user_spec.rb
753
+ - spec/api/user/update_user_spec.rb
754
+ - spec/api/user/user_get_db_doc_spec.rb
755
+ - spec/api/user/user_set_db_doc_spec.rb
756
+ - spec/api_token_spec.rb
757
+ - spec/app_spec.rb
758
+ - spec/apps/emptyapp/application.rb
759
+ - spec/apps/emptyapp/settings/settings.yml
760
+ - spec/apps/jstestapp/config.ru
761
+ - spec/apps/jstestapp/controllers/js/application_controller.js
762
+ - spec/apps/jstestapp/Rakefile
763
+ - spec/apps/jstestapp/settings/settings.yml
764
+ - spec/apps/rhotestapp/config.ru
765
+ - spec/apps/rhotestapp/controllers/js/js_sample_controller.js
766
+ - spec/apps/rhotestapp/controllers/js/sample2_controller.js
767
+ - spec/apps/rhotestapp/controllers/ruby/application_controller.rb
768
+ - spec/apps/rhotestapp/controllers/ruby/sample_adapter_controller.rb
769
+ - spec/apps/rhotestapp/models/js/js_sample.js
770
+ - spec/apps/rhotestapp/models/js/sample2.js
771
+ - spec/apps/rhotestapp/models/ruby/base_adapter.rb
772
+ - spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
773
+ - spec/apps/rhotestapp/models/ruby/other_adapter.rb
774
+ - spec/apps/rhotestapp/models/ruby/sample_adapter.rb
775
+ - spec/apps/rhotestapp/models/ruby/simple_adapter.rb
776
+ - spec/apps/rhotestapp/models/ruby/sub_adapter.rb
777
+ - spec/apps/rhotestapp/Rakefile
778
+ - spec/apps/rhotestapp/settings/apple_fake_cert.pem
779
+ - spec/apps/rhotestapp/settings/settings.yml
780
+ - spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem/mygem.rb
781
+ - spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem.rb
782
+ - spec/async_spec.rb
783
+ - spec/bulk_data/bulk_data_spec.rb
784
+ - spec/cli/cli_spec.rb
785
+ - spec/client_spec.rb
786
+ - spec/client_sync_spec.rb
787
+ - spec/controllers/js_base_spec.rb
788
+ - spec/doc/base.html
789
+ - spec/doc/doc_spec.rb
790
+ - spec/doc/footer.html
791
+ - spec/doc/header.html
792
+ - spec/document_spec.rb
793
+ - spec/dynamic_adapter_spec.rb
794
+ - spec/factories/factories.rb
795
+ - spec/generator/generator_spec.rb
796
+ - spec/javascripts/admins_routes_spec.js
797
+ - spec/javascripts/admins_spec.js
814
798
  - spec/javascripts/doc_view_spec.js
815
- - spec/javascripts/home_view_spec.js
816
- - spec/javascripts/helpers/sinon-1.3.2.js
817
- - spec/javascripts/helpers/SpecHelper.js
799
+ - spec/javascripts/edit_user_view_spec.js
818
800
  - spec/javascripts/helpers/jasmine-jquery.js
819
801
  - spec/javascripts/helpers/jasmine-sinon.js
820
- - spec/javascripts/set_adapter_view_spec.js
802
+ - spec/javascripts/helpers/sinon-1.3.2.js
803
+ - spec/javascripts/helpers/SpecHelper.js
804
+ - spec/javascripts/home_view_spec.js
821
805
  - spec/javascripts/index_view_spec.js
822
- - spec/javascripts/show_device_view_spec.js
823
- - spec/javascripts/admins_spec.js
824
- - spec/javascripts/server_doc_view_spec.js
825
- - spec/javascripts/new_user_view_spec.js
826
806
  - spec/javascripts/new_ping_view_spec.js
827
- - spec/javascripts/support/jasmine_runner.rb
828
- - spec/javascripts/support/jasmine_config.rb
829
- - spec/javascripts/support/jasmine.yml
807
+ - spec/javascripts/new_user_view_spec.js
808
+ - spec/javascripts/PlayerSpec.js
809
+ - spec/javascripts/server_doc_view_spec.js
830
810
  - spec/javascripts/session_spec.js
811
+ - spec/javascripts/set_adapter_view_spec.js
812
+ - spec/javascripts/show_device_view_spec.js
831
813
  - spec/javascripts/show_user_view_spec.js
832
- - spec/javascripts/admins_routes_spec.js
833
- - spec/javascripts/edit_user_view_spec.js
834
814
  - spec/javascripts/source_docs_view_spec.js
815
+ - spec/javascripts/support/jasmine.yml
816
+ - spec/javascripts/support/jasmine_config.rb
817
+ - spec/javascripts/support/jasmine_runner.rb
835
818
  - spec/javascripts/users_view_spec.js
836
- - spec/controllers/js_base_spec.rb
837
- - spec/document_spec.rb
819
+ - spec/jobs/bulk_data_job_spec.rb
820
+ - spec/jobs/ping_job_spec.rb
821
+ - spec/jobs/source_job_spec.rb
822
+ - spec/models/js_base_spec.rb
823
+ - spec/node_spec.rb
824
+ - spec/perf/bulk_data_perf_spec.rb
825
+ - spec/perf/perf_spec_helper.rb
826
+ - spec/perf/store_perf_spec.rb
827
+ - spec/ping/apple_spec.rb
828
+ - spec/ping/gcm_spec.rb
829
+ - spec/ping/rhoconnect_push_spec.rb
830
+ - spec/predefined_adapters/rho_internal_bench_adapter_controller_js_spec.rb
831
+ - spec/predefined_adapters/rho_internal_js_bench_adapter_js_spec.rb
832
+ - spec/read_state_spec.rb
833
+ - spec/rhoconnect_spec.rb
834
+ - spec/server/cors_spec.rb
835
+ - spec/server/server_spec.rb
836
+ - spec/server/stats_spec.rb
837
+ - spec/server/x_domain_session_wrapper_spec.rb
838
838
  - spec/source_adapter_spec.rb
839
+ - spec/source_spec.rb
840
+ - spec/source_sync_spec.rb
841
+ - spec/spec.opts
842
+ - spec/spec_helper.rb
843
+ - spec/stats/record_spec.rb
839
844
  - spec/store_orm_spec.rb
845
+ - spec/store_spec.rb
846
+ - spec/support/shared_examples.rb
847
+ - spec/sync_states_spec.rb
840
848
  - spec/test_methods_spec.rb
841
- - spec/spec.opts
842
- - spec/ping/rhoconnect_push_spec.rb
843
- - spec/ping/apple_spec.rb
844
- - spec/ping/gcm_spec.rb
845
- - spec/license_spec.rb
846
- - spec/apps/jstestapp/settings/settings.yml
847
- - spec/apps/jstestapp/settings/license.key
848
- - spec/apps/jstestapp/config.ru
849
- - spec/apps/jstestapp/controllers/js/application_controller.js
850
- - spec/apps/jstestapp/Rakefile
851
- - spec/apps/emptyapp/application.rb
852
- - spec/apps/emptyapp/settings/settings.yml
853
- - spec/apps/emptyapp/settings/license.key
854
- - spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem/mygem.rb
855
- - spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem.rb
856
- - spec/apps/rhotestapp/settings/settings.yml
857
- - spec/apps/rhotestapp/settings/apple_fake_cert.pem
858
- - spec/apps/rhotestapp/settings/license.key
859
- - spec/apps/rhotestapp/models/js/sample2.js
860
- - spec/apps/rhotestapp/models/js/js_sample.js
861
- - spec/apps/rhotestapp/models/ruby/sample_adapter.rb
862
- - spec/apps/rhotestapp/models/ruby/other_adapter.rb
863
- - spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
864
- - spec/apps/rhotestapp/models/ruby/base_adapter.rb
865
- - spec/apps/rhotestapp/models/ruby/simple_adapter.rb
866
- - spec/apps/rhotestapp/models/ruby/sub_adapter.rb
867
- - spec/apps/rhotestapp/config.ru
868
- - spec/apps/rhotestapp/controllers/js/sample2_controller.js
869
- - spec/apps/rhotestapp/controllers/js/js_sample_controller.js
870
- - spec/apps/rhotestapp/controllers/ruby/sample_adapter_controller.rb
871
- - spec/apps/rhotestapp/controllers/ruby/application_controller.rb
872
- - spec/apps/rhotestapp/Rakefile
849
+ - spec/testdata/1000-data.txt
850
+ - spec/testdata/10000-data.txt
851
+ - spec/testdata/5-data.txt
852
+ - spec/testdata/5000-data.txt
853
+ - spec/testdata/compressed/compress-data.txt
854
+ - spec/testdata/upload1.txt
855
+ - spec/testdata/upload2.txt
856
+ - spec/user_spec.rb
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
data/doc/licensing.txt DELETED
@@ -1,18 +0,0 @@
1
- Licensing Your RhoConnect Application
2
- ===
3
-
4
- ## RhoHub License
5
- If you plan to deploy your RhoConnect application on RhoHub under a premium or enterprise plan, just click on the **"Live app ON/OFF"** button on the RhoHub page for that RhoConnect app to enable your paid-level license.
6
-
7
- **NOTE: Toggling this button will re-deploy your RhoConnect application to a new redis database. Make sure you __backup all critical data__ before doing this!**
8
-
9
- ## On-Premise License
10
- Your RhoConnect application was generated with a default license which supports up to 10 devices. After [purchasing](http://rhomobile.com/products/rhoconnect/) a license, you can save the new license text in settings/license.key. Just restart the application and it will pick up the new license automatically.
11
-
12
- If you want to load the license file in a different location, you can edit `:licensefile:` in settings/settings.yml:
13
-
14
- :::yaml
15
- :development:
16
- :licensefile: settings/license.key
17
- :redis: localhost:6379
18
- :syncserver: http://localhost:9292/application/
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
@@ -1,94 +0,0 @@
1
- require 'openssl'
2
- require 'pathname'
3
-
4
- module Rhoconnect
5
- class LicenseException < RuntimeError; end
6
- class LicenseSeatsExceededException < LicenseException; end
7
-
8
- class License
9
- attr_reader :rhoconnect_version, :licensee, :seats, :issued
10
- attr_accessor :license
11
-
12
- # ships with rhoconnect
13
- RHO_PUBLICKEY = "99068e3a2708e6fe918252be8880eac539a1d2b2402651d75de5c7a2333a1cb2"
14
- CLIENT_DOCKEY = 'rho_client_count'
15
-
16
- def initialize
17
- begin
18
- if ENV['RHOCONNECT_LICENSE']
19
- @license = ENV['RHOCONNECT_LICENSE']
20
- elsif ENV['RHOSYNC_LICENSE']
21
- @license = ENV['RHOSYNC_LICENSE']
22
- else
23
- # app_config = Rhoconnect.get_config(Rhoconnect.base_directory)
24
- settings = Rhoconnect.get_config(Rhoconnect.base_directory)[Rhoconnect.environment]
25
- licensefile = settings[:licensefile]
26
- if licensefile
27
- path_to_license = (Pathname.new(licensefile).absolute?) ? licensefile : File.join(Rhoconnect.base_directory, licensefile)
28
- else
29
- path_to_license = File.join(File.dirname(__FILE__), '..', '..', 'generators', 'templates', 'application', 'settings', 'license.key')
30
- end
31
- @license = IO.read(path_to_license).strip
32
- end
33
- _decrypt
34
- rescue Exception => e
35
- log e.message
36
- log e.backtrace.join("\n")
37
- raise LicenseException.new("Error verifying license.")
38
- end
39
- end
40
-
41
- def check_and_use_seat
42
- incr = false
43
- Store.lock(CLIENT_DOCKEY) do
44
- current = Store.get_value(CLIENT_DOCKEY)
45
- current = current ? current.to_i : 0
46
- if current < self.seats
47
- Store.put_value CLIENT_DOCKEY, current + 1
48
- incr = true
49
- end
50
- end
51
- unless incr
52
- msg = "WARNING: Maximum # of devices exceeded for this license."
53
- log msg; raise LicenseSeatsExceededException.new(msg)
54
- end
55
- end
56
-
57
- def free_seat
58
- Store.lock(CLIENT_DOCKEY) do
59
- current = Store.get_value(CLIENT_DOCKEY)
60
- current = current ? current.to_i : 0
61
- if current > 0
62
- Store.put_value CLIENT_DOCKEY, current - 1
63
- end
64
- end
65
- end
66
-
67
- def available
68
- current = Store.get_value(CLIENT_DOCKEY)
69
- current = current ? current.to_i : 0
70
- available = self.seats - current
71
- available > 0 ? available : 0
72
- end
73
-
74
- private
75
-
76
- def _decrypt
77
- cipher = OpenSSL::Cipher::Cipher.new("aes-256-ecb")
78
- cipher.key = _extract_str(RHO_PUBLICKEY)
79
- cipher.decrypt
80
-
81
- decrypted = cipher.update(_extract_str(@license))
82
- decrypted << cipher.final
83
- parts = decrypted.split(',')
84
- @rhoconnect_version = parts[0].strip
85
- @licensee = parts[1].strip
86
- @seats = parts[2].strip.to_i
87
- @issued = parts[3].strip
88
- end
89
-
90
- def _extract_str(str)
91
- str.gsub(/(..)/){|h| h.hex.chr}
92
- end
93
- end
94
- end
@@ -1,15 +0,0 @@
1
- require File.join(File.dirname(__FILE__),'..','api_helper')
2
-
3
- describe "RhoconnectApiGetLicenseInfo" do
4
- include_examples "ApiHelper"
5
-
6
- it "should get license info" do
7
- get "/rc/#{Rhoconnect::API_VERSION}/system/license", {}, {Rhoconnect::API_TOKEN_HEADER => @api_token}
8
- JSON.parse(last_response.body).should == {
9
- "available" => 9,
10
- "issued" => "Fri Apr 23 17:20:13 -0700 2010",
11
- "seats" => 10,
12
- "rhoconnect_version" => "Version 1",
13
- "licensee" => "Rhomobile" }
14
- end
15
- end
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
@@ -1 +0,0 @@
1
- 858fc60fadfde40273d0ac505906969318aa4931d1a2c4aeb24d98393c74379f60e226651601969874257f7f1fbda9b099ecd551a641519aa46819947fda0191
data/spec/license_spec.rb DELETED
@@ -1,67 +0,0 @@
1
- require File.join(File.dirname(__FILE__),'spec_helper')
2
-
3
- describe "License" do
4
- include_examples "SharedRhoconnectHelper", :rhoconnect_data => false
5
-
6
- before(:each) do
7
- Store.put_value(License::CLIENT_DOCKEY,nil)
8
- end
9
-
10
- it "should decrypt license" do
11
- license = License.new
12
- license.rhoconnect_version.should == 'Version 1'
13
- license.licensee.should == 'Rhomobile'
14
- license.seats.should == 10
15
- license.issued.should == 'Fri Apr 23 17:20:13 -0700 2010'
16
- end
17
-
18
- it "should use generator license file when there is license load error" do
19
- path_to_license = File.join(File.dirname(__FILE__), '..', 'generators', 'templates', 'application', 'settings', 'license.key')
20
- license = IO.read(path_to_license).strip
21
- Rhoconnect.stub(:get_config).and_return({Rhoconnect.environment.to_sym => {}})
22
- License.new.license.should == license
23
- # lambda { License.new }.should raise_error(LicenseException, "Error verifying license.")
24
- end
25
-
26
- it "should verify # of seats before adding" do
27
- License.new.check_and_use_seat
28
- Store.get_value(License::CLIENT_DOCKEY).to_i.should == 1
29
- end
30
-
31
- it "should raise exception when seats are exceeded" do
32
- Store.put_value(License::CLIENT_DOCKEY,10)
33
- lambda { License.new.check_and_use_seat }.should raise_error(
34
- LicenseSeatsExceededException, "WARNING: Maximum # of devices exceeded for this license."
35
- )
36
- end
37
-
38
- it "should free license seat" do
39
- Store.put_value(License::CLIENT_DOCKEY,5)
40
- License.new.free_seat
41
- Store.get_value(License::CLIENT_DOCKEY).to_i.should == 4
42
- end
43
-
44
- it "should get # of available seats" do
45
- license = License.new
46
- license.check_and_use_seat
47
- license.available.should == 9
48
- end
49
-
50
- it "should use RHOCONNECT_LICENSE env var" do
51
- ENV['RHOCONNECT_LICENSE'] = 'b749cbe6e029400e688360468624388e2cb7f6a1e72c91d4686a1b8c9d37b72c3e1872ec9f369d481220e10759c18e16'
52
- license = License.new
53
- license.licensee.should == 'Rhohub'
54
- license.seats.should == 5
55
- license.issued.should == 'Tue Aug 10 16:14:24 -0700 2010'
56
- ENV.delete('RHOCONNECT_LICENSE')
57
- end
58
-
59
- it "should use RHOSYNC_LICENSE env var" do
60
- ENV['RHOSYNC_LICENSE'] = 'b749cbe6e029400e688360468624388e2cb7f6a1e72c91d4686a1b8c9d37b72c3e1872ec9f369d481220e10759c18e16'
61
- license = License.new
62
- license.licensee.should == 'Rhohub'
63
- license.seats.should == 5
64
- license.issued.should == 'Tue Aug 10 16:14:24 -0700 2010'
65
- ENV.delete('RHOSYNC_LICENSE')
66
- end
67
- end