rhoconnect 5.1.1 → 5.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -8
- data/CREDITS +100 -100
- data/Gemfile +0 -2
- data/Gemfile.lock +56 -71
- data/LICENSE +5 -72
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bench/bench +0 -0
- data/bench/benchapp/settings/settings.yml +0 -3
- data/bench/blobapp/settings/settings.yml +0 -3
- data/bench/distr_bench/distr_bench +0 -0
- data/bench/distr_bench/distr_bench_main +0 -0
- data/bench/distr_bench/run_distr_client.sh +0 -0
- data/bench/distr_bench/run_test_query_script.sh +0 -0
- data/bench/lib/bench/bench_result_processor.rb +0 -0
- data/bench/lib/bench.rb +0 -8
- data/bench/lib/testdata/images/icon.ico +0 -0
- data/bench/lib/testdata/images/icon.png +0 -0
- data/bench/lib/testdata/images/loading-Landscape.png +0 -0
- data/bench/lib/testdata/images/loading-LandscapeLeft.png +0 -0
- data/bench/lib/testdata/images/loading-LandscapeRight.png +0 -0
- data/bench/lib/testdata/images/loading-Portrait.png +0 -0
- data/bench/lib/testdata/images/loading-PortraitUpsideDown.png +0 -0
- data/bench/lib/testdata/images/loading.png +0 -0
- data/bench/lib/testdata/images/loading@2x.png +0 -0
- data/bench/prepare_bench +0 -0
- data/bench/run_bench.sh +0 -0
- data/bench/run_blob_script.sh +0 -0
- data/bench/run_cud_script.sh +0 -0
- data/bench/run_query_md_script.sh +0 -0
- data/bench/run_query_only_script.sh +0 -0
- data/bench/run_query_script.sh +0 -0
- data/bench/run_test_query_script.sh +0 -0
- data/bench/run_test_source_script.sh +0 -0
- data/bin/rhoconnect-benchmark +0 -22
- data/commands/rhoconnect/restart.rb +0 -1
- data/commands/rhoconnect/start.rb +2 -14
- data/doc/adapters-crm.txt +1 -1
- data/doc/benchmarks-running.txt +1 -1
- data/doc/benchmarks.txt +0 -1
- data/doc/bulk-sync.txt +0 -1
- data/doc/command-line.txt +0 -6
- data/doc/java-plugin.txt +0 -6
- data/doc/preparing-production.txt +1 -7
- data/doc/public/cli.txt +0 -2
- data/doc/public/css/print.css +0 -0
- data/doc/public/css/screen.css +0 -0
- data/doc/public/css/style.css +0 -0
- data/doc/push-client-setup-android.txt +0 -1
- data/doc/push-client-setup-ios.txt +0 -1
- data/doc/push-client-setup-rps.txt +3 -3
- data/doc/push-server-setup.txt +1 -4
- data/doc/rails-plugin.txt +0 -5
- data/doc/rest-api.txt +2 -14
- data/doc/rhoconnect-redis-stack.txt +0 -1
- data/doc/settings.txt +0 -3
- data/doc/supported-platforms.txt +0 -1
- data/doc/tutorial.txt +0 -2
- data/examples/simple/config.ru +0 -0
- data/examples/simple/settings/settings.yml +1 -4
- data/generators/rhoconnect.rb +0 -1
- data/generators/templates/application/config.ru +0 -0
- data/generators/templates/application/rcgemfile +1 -0
- data/generators/templates/application/settings/settings.yml +0 -3
- data/install.sh +0 -0
- data/installer/utils/create_sha1.rb +0 -0
- data/installer/utils/delete_from_s3.rb +0 -0
- data/installer/utils/download_from_s3.rb +0 -0
- data/installer/utils/nix_install_test.rb +0 -0
- data/installer/utils/package_upload/repos.rake +2 -2
- data/installer/utils/package_upload/s3_single_file.rb +0 -0
- data/installer/utils/package_upload/s3_upload.rb +0 -0
- data/installer/utils/verify_checksum.rb +0 -0
- data/lib/rhoconnect/api_token.rb +0 -0
- data/lib/rhoconnect/app.rb +0 -0
- data/lib/rhoconnect/bulk_data/bulk_data.rb +0 -0
- data/lib/rhoconnect/bulk_data/syncdb.index.schema +0 -0
- data/lib/rhoconnect/bulk_data/syncdb.schema +0 -0
- data/lib/rhoconnect/bulk_data.rb +0 -0
- data/lib/rhoconnect/client.rb +0 -2
- data/lib/rhoconnect/controller/system_controller.rb +0 -9
- data/lib/rhoconnect/credential.rb +0 -0
- data/lib/rhoconnect/document.rb +0 -0
- data/lib/rhoconnect/middleware/cors.rb +209 -209
- data/lib/rhoconnect/middleware/x_domain_session_wrapper.rb +57 -57
- data/lib/rhoconnect/model/base.rb +0 -0
- data/lib/rhoconnect/read_state.rb +0 -0
- data/lib/rhoconnect/rho_indifferent_access.rb +0 -0
- data/lib/rhoconnect/server.rb +0 -0
- data/lib/rhoconnect/source.rb +0 -0
- data/lib/rhoconnect/store.rb +2 -0
- data/lib/rhoconnect/store_orm.rb +0 -0
- data/lib/rhoconnect/user.rb +0 -0
- data/lib/rhoconnect/version.rb +1 -1
- data/lib/rhoconnect/web-console/models/doc.js +0 -13
- data/lib/rhoconnect/web-console/models/source.js +0 -31
- data/lib/rhoconnect/web-console/public/logo.png +0 -0
- data/lib/rhoconnect/web-console/server.rb +0 -0
- data/lib/rhoconnect/web-console/templates/index.erb +1 -2
- data/lib/rhoconnect/web-console/views/home.js +4 -6
- data/lib/rhoconnect.rb +1 -3
- data/spec/api/api_helper.rb +0 -0
- data/spec/api/system/login_spec.rb +0 -0
- data/spec/api/system/reset_spec.rb +0 -0
- data/spec/api/user/create_user_spec.rb +0 -0
- data/spec/api/user/update_user_spec.rb +0 -0
- data/spec/api_token_spec.rb +0 -0
- data/spec/app_spec.rb +0 -0
- data/spec/apps/emptyapp/settings/settings.yml +1 -4
- data/spec/apps/jstestapp/settings/settings.yml +0 -3
- data/spec/apps/rhotestapp/controllers/ruby/application_controller.rb +0 -0
- data/spec/apps/rhotestapp/models/ruby/sample_adapter.rb +0 -0
- data/spec/apps/rhotestapp/models/ruby/simple_adapter.rb +0 -0
- data/spec/apps/rhotestapp/settings/settings.yml +0 -3
- data/spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem/mygem.rb +0 -0
- data/spec/apps/rhotestapp/vendor/mygem-0.1.0/lib/mygem.rb +0 -0
- data/spec/bulk_data/bulk_data_spec.rb +0 -0
- data/spec/client_spec.rb +0 -14
- data/spec/client_sync_spec.rb +0 -0
- data/spec/doc/base.html +0 -0
- data/spec/doc/doc_spec.rb +0 -0
- data/spec/doc/footer.html +0 -0
- data/spec/doc/header.html +0 -0
- data/spec/document_spec.rb +0 -0
- data/spec/generator/generator_spec.rb +1 -3
- data/spec/jobs/bulk_data_job_spec.rb +0 -0
- data/spec/perf/bulk_data_perf_spec.rb +0 -0
- data/spec/perf/perf_spec_helper.rb +0 -0
- data/spec/perf/store_perf_spec.rb +0 -0
- data/spec/read_state_spec.rb +0 -0
- data/spec/server/cors_spec.rb +283 -283
- data/spec/server/server_spec.rb +0 -15
- data/spec/server/x_domain_session_wrapper_spec.rb +150 -150
- data/spec/source_adapter_spec.rb +0 -0
- data/spec/source_spec.rb +0 -0
- data/spec/source_sync_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/store_orm_spec.rb +0 -0
- data/spec/store_spec.rb +0 -0
- data/spec/sync_states_spec.rb +0 -0
- data/spec/testdata/1000-data.txt +0 -0
- data/spec/testdata/compressed/compress-data.txt +0 -0
- data/spec/user_spec.rb +0 -9
- metadata +116 -132
- data/bench/benchapp/settings/license.key +0 -1
- data/bench/blobapp/settings/license.key +0 -1
- data/doc/licensing.txt +0 -18
- data/examples/simple/settings/license.key +0 -1
- data/generators/templates/application/settings/license.key +0 -1
- data/lib/rhoconnect/license.rb +0 -94
- data/spec/api/system/get_license_info_spec.rb +0 -15
- data/spec/apps/emptyapp/settings/license.key +0 -1
- data/spec/apps/jstestapp/settings/license.key +0 -1
- data/spec/apps/rhotestapp/settings/license.key +0 -1
- 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 += "
|
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 += "</
|
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, :
|
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
|
data/spec/api/api_helper.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/api_token_spec.rb
CHANGED
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
|
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
|
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)
|
data/spec/client_sync_spec.rb
CHANGED
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
|
data/spec/document_spec.rb
CHANGED
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
|
data/spec/read_state_spec.rb
CHANGED
File without changes
|