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
@@ -9,7 +9,6 @@ App.Views.Home = Backbone.View.extend({
9
9
 
10
10
  initialize: function() {
11
11
  var domain = $('input#domain').val();
12
- this.model.get_license_info();
13
12
  this.model.set('partition_type','app')
14
13
  this.model.fetch({
15
14
  error: function(model,resp)
@@ -27,7 +26,6 @@ App.Views.Home = Backbone.View.extend({
27
26
  var session = new Session();
28
27
  if(confirm("Are you sure you want to reset?")){
29
28
  session.reset();
30
- this.model.get_license_info();
31
29
  }
32
30
  },
33
31
 
@@ -103,13 +101,13 @@ App.Views.Home = Backbone.View.extend({
103
101
  out += "<tr><td><p style='margin-top:10px'>Sync Server</p></td>";
104
102
  out += "<td><p style='margin-top:10px'><code style='margin:0'>"+domain+"</code></p></td>";
105
103
  out += "<td><p style='margin-top:10px'>Paste this url into your client app configuration to sync with this RhoConnect instance.</p></td>"
106
- out += "<form>"
104
+ out += "</tr>"
107
105
  out += "<tr>"
108
106
  out += "<td width='20%'><p style='margin-top:10px'>Change Admin Password</p></td>"
109
- out += "<td width='40%'><p style='margin-top:10px'><input id='password2' type='password' name='password' value='' class='input-xlarge' placeholder='Enter new password' style='margin:0'/>"
110
- out += "<input type='submit' class='btn btn-primary' value='Save' style='margin-left:10px'/><div class='edituser-status' style='display:inline;margin-left:10px;visibility:hidden'><span class=''></span></div></p></td>"
107
+ out += "<td width='40%'><form><p style='margin-top:10px'><input id='password2' type='password' name='password' value='' class='input-xlarge' placeholder='Enter new password' style='margin:0'/>"
108
+ out += "<input type='submit' class='btn btn-primary' value='Save' style='margin-left:10px'/><div class='edituser-status' style='display:inline;margin-left:10px;visibility:hidden'><span class=''></span></div></p></form></td>"
111
109
  out += "<td width='40%'><p style='margin-top:10px'>By default the admin password is blank.</p></td>"
112
- out += "</form>"
110
+ out += "</tr>"
113
111
  out += "<tr>"
114
112
  out += "<td width='20%'><p style='margin-top:10px'>API Token</p></td>"
115
113
  out += "<td width='40%'><p id='api_token' style='margin-top:10px;display:none'><code>"+ session.getApiKey() +"</code></p>";
data/lib/rhoconnect.rb CHANGED
@@ -5,7 +5,6 @@ require 'base64'
5
5
  require 'securerandom'
6
6
  require 'zip'
7
7
  require 'yaml'
8
- require 'rhoconnect/license'
9
8
  require 'rhoconnect/version'
10
9
  require 'rhoconnect/document'
11
10
  require 'rhoconnect/lock_ops'
@@ -53,7 +52,7 @@ module Rhoconnect
53
52
 
54
53
  class << self
55
54
  attr_accessor :base_directory, :app_directory, :data_directory, :vendor_directory, :redis,
56
- :log_disabled, :license, :bulk_sync_poll_interval, :stats, :appserver, :api_token,
55
+ :log_disabled, :bulk_sync_poll_interval, :stats, :appserver, :api_token,
57
56
  :raise_on_expired_lock, :lock_duration, :cookie_expire, :predefined_sources,
58
57
  :connection_pool_size, :connection_pool_timeout, :redis_timeout, :store_key_ttl,
59
58
  :disable_resque_console, :disable_rc_console, :use_node, :restart_node_on_error, :redis_url,
@@ -119,7 +118,6 @@ module Rhoconnect
119
118
  Rhoconnect.data_directory ||= File.join(Rhoconnect.base_directory,'data')
120
119
  Rhoconnect.vendor_directory ||= File.join(Rhoconnect.base_directory,'vendor')
121
120
  Rhoconnect.stats ||= false
122
- Rhoconnect.license = License.new
123
121
  Rhoconnect.disable_rc_console ||= false
124
122
  Rhoconnect.disable_resque_console ||= false
125
123
  Rhoconnect.use_node = Rhoconnect.use_node.nil? ? true : Rhoconnect.use_node
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/app_spec.rb CHANGED
File without changes
@@ -1,14 +1,11 @@
1
1
  :sources:
2
2
 
3
3
  :development:
4
- :licensefile: settings/license.key
5
4
  :redis: localhost:6379
6
5
  :syncserver: http://localhost:9292/application/
7
6
  :test:
8
- :licensefile: settings/license.key
9
7
  :redis: localhost:6379
10
8
  :syncserver: http://localhost:9292/application/
11
- :production:
12
- :licensefile: settings/license.key
9
+ :production:
13
10
  :redis: localhost:6379
14
11
  :syncserver: http://localhost:9292/application/
@@ -1,15 +1,12 @@
1
1
  :sources:
2
2
  :development:
3
- :licensefile: settings/license.key
4
3
  :redis: localhost:6379
5
4
  :syncserver: http://localhost:9292/
6
5
  :test:
7
- :licensefile: settings/license.key
8
6
  :redis: localhost:6379
9
7
  :syncserver: http://localhost:9292/
10
8
  # set :node_channel_timeout to 60 secs.
11
9
  :node_channel_timeout: 60
12
10
  :production:
13
- :licensefile: settings/license.key
14
11
  :redis: localhost:6379
15
12
  :syncserver: http://localhost:9292/
File without changes
File without changes
@@ -18,12 +18,10 @@
18
18
  JsSample:
19
19
  :poll_interval: 100
20
20
  :development:
21
- :licensefile: settings/license.key
22
21
  :bulk_sync_poll_interval: 3600
23
22
  :redis: localhost:6379
24
23
  :syncserver: http://localhost:9292/application/
25
24
  :test:
26
- :licensefile: settings/license.key
27
25
  :iphonecertfile: settings/apple_fake_cert.pem
28
26
  :iphonepassphrase: certpassword
29
27
  :iphoneserver: gateway.sandbox.push.apple.com
@@ -36,7 +34,6 @@
36
34
  :cookie_expire: 9999999
37
35
  :poll_interval_default: 201
38
36
  :production:
39
- :licensefile: settings/license.key
40
37
  :bulk_sync_poll_interval: 3600
41
38
  :redis: localhost:6379
42
39
  :syncserver: http://localhost:9292/application/
File without changes
File without changes
data/spec/client_spec.rb CHANGED
@@ -35,20 +35,6 @@ describe "Client" do
35
35
  }.should raise_error(InvalidSourceNameError, 'Invalid Source Name For Client')
36
36
  end
37
37
 
38
- it "should raise exception if license seats exceeded" do
39
- Store.put_value(License::CLIENT_DOCKEY,100)
40
- lambda { Client.create(@c_fields,{}) }.should raise_error(
41
- LicenseSeatsExceededException, "WARNING: Maximum # of devices exceeded for this license."
42
- )
43
- end
44
-
45
- it "should free seat when client is deleted" do
46
- current = Store.get_value(License::CLIENT_DOCKEY).to_i
47
- @c.delete
48
- Store.get_value('client:count').should == '0'
49
- Store.get_value(License::CLIENT_DOCKEY).to_i.should == current - 1
50
- end
51
-
52
38
  it "should delete client and all associated documents" do
53
39
  @c.put_data(:cd, @data)
54
40
  docname = @c.docname(:cd)
File without changes
data/spec/doc/base.html CHANGED
File without changes
data/spec/doc/doc_spec.rb CHANGED
File without changes
data/spec/doc/footer.html CHANGED
File without changes
data/spec/doc/header.html CHANGED
File without changes
File without changes
@@ -35,7 +35,6 @@ describe "Generator" do
35
35
  'config.ru',
36
36
  'public',
37
37
  'settings/settings.yml',
38
- 'settings/license.key',
39
38
  'spec/spec_helper.rb'
40
39
  ].each do |template|
41
40
  File.exist?("/tmp/#{appname}/#{template}").should be_true
@@ -60,8 +59,7 @@ describe "Generator" do
60
59
  'controllers/js/application_controller.js',
61
60
  'config.ru',
62
61
  'public',
63
- 'settings/settings.yml',
64
- 'settings/license.key'
62
+ 'settings/settings.yml'
65
63
  ].each do |template|
66
64
  File.exist?("/tmp/#{appname}/#{template}").should be_true
67
65
  end
File without changes
File without changes
File without changes
File without changes
File without changes