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
@@ -29,7 +29,6 @@ Update `settings/settings.yml` to include your GCM API key:
|
|
29
29
|
:development:
|
30
30
|
:redis: localhost:6379
|
31
31
|
:syncserver: http://localhost:9292/application/
|
32
|
-
:licensefile: settings/license.key
|
33
32
|
:gcm_api_key: your_gcm_api_key_here
|
34
33
|
|
35
34
|
## Enabling the Rhodes Android Client for Push
|
@@ -15,7 +15,6 @@ To set up your RhoConnect application for pushing to an iOS client, you will nee
|
|
15
15
|
:iphoneserver: gateway.sandbox.push.apple.com
|
16
16
|
:iphoneport: 2195
|
17
17
|
:syncserver: http://localhost:9292/application/
|
18
|
-
:licensefile: settings/license.key
|
19
18
|
|
20
19
|
This is for running your application in development mode; for production, you will need all of the iphone settings, and you change the `:iphoneserver:` to:
|
21
20
|
|
@@ -27,7 +27,7 @@ The typical flow of a message using RPS:
|
|
27
27
|
|
28
28
|
### Download and Install Nodejs
|
29
29
|
|
30
|
-
If you are using a Macintosh, go to the [Node.js website](http://nodejs.org/#), and download and install Node.js. (
|
30
|
+
If you are using a Macintosh, go to the [Node.js website](http://nodejs.org/#), and download and install Node.js. (RhoMobile Suite for Windows includes Node.js in its installation.)
|
31
31
|
|
32
32
|
### Starting the Push Service
|
33
33
|
|
@@ -139,9 +139,9 @@ The JSON file has the following parameters.
|
|
139
139
|
|
140
140
|
To use the RhoConnect Push Service in your client application, you must install the rhoconnect-push-service runtime app(s) on your mobile device.
|
141
141
|
|
142
|
-
On the Macintosh, the rhoconnect-push-service runtime apps for Android and for Windows Mobile are located in the
|
142
|
+
On the Macintosh, the rhoconnect-push-service runtime apps for Android and for Windows Mobile are located in the RhoMobile Suite installation package, in a folder called rhoconnect-push-service.
|
143
143
|
|
144
|
-
On Windows, the rhoconnect-push-service runtime apps for Android and for Windows Mobile are located in the
|
144
|
+
On Windows, the rhoconnect-push-service runtime apps for Android and for Windows Mobile are located in the RhoMobile Suite installation, in a directory called rhoconnect-push-service.
|
145
145
|
|
146
146
|
### Installing Runtime Apps on Android Device
|
147
147
|
|
data/doc/push-server-setup.txt
CHANGED
@@ -18,7 +18,6 @@ To set up your RhoConnect application for pushing to an iOS client, you will nee
|
|
18
18
|
:iphoneserver: gateway.sandbox.push.apple.com
|
19
19
|
:iphoneport: 2195
|
20
20
|
:syncserver: http://localhost:9292/application/
|
21
|
-
:licensefile: settings/license.key
|
22
21
|
|
23
22
|
This is for running your application in development mode; for production, you will need all of the iphone settings, and you change the `:iphoneserver:` to:
|
24
23
|
|
@@ -39,7 +38,6 @@ Update `settings/settings.yml` to include your GCM API key:
|
|
39
38
|
:development:
|
40
39
|
:redis: localhost:6379
|
41
40
|
:syncserver: http://localhost:9292/application/
|
42
|
-
:licensefile: settings/license.key
|
43
41
|
:gcm_api_key: your_gcm_api_key_here
|
44
42
|
|
45
43
|
## Setting up RhoConnect Server Push for Android (C2DM)
|
@@ -52,7 +50,6 @@ To set up your RhoConnect application for Android C2DM push, you will need to up
|
|
52
50
|
:development:
|
53
51
|
:redis: localhost:6379
|
54
52
|
:syncserver: http://localhost:9292/application/
|
55
|
-
:licensefile: settings/license.key
|
56
53
|
:c2dm_username: username
|
57
54
|
:c2dm_passwd: passwd
|
58
55
|
:authtoken: authtoken
|
@@ -87,7 +84,7 @@ The typical flow of a message using RPS:
|
|
87
84
|
|
88
85
|
### Download and Install Nodejs
|
89
86
|
|
90
|
-
If you are using a Macintosh, go to the [Node.js website](http://nodejs.org/#), and download and install Node.js. (
|
87
|
+
If you are using a Macintosh, go to the [Node.js website](http://nodejs.org/#), and download and install Node.js. (RhoMobile Suite for Windows includes Node.js in its installation.)
|
91
88
|
|
92
89
|
### Starting the Push Service
|
93
90
|
|
data/doc/rails-plugin.txt
CHANGED
@@ -138,11 +138,6 @@ Some of these values are not used for every API call such as resource_id and dat
|
|
138
138
|
data = {:login=>'username',:password=>'password'}
|
139
139
|
Rhoconnectrb::API::System.post_login(data)
|
140
140
|
|
141
|
-
#### `GET /rc/v1/system/license`
|
142
|
-
|
143
|
-
|
144
|
-
Rhoconnectrb::API::System.get_license
|
145
|
-
|
146
141
|
#### `POST /rc/v1/system/reset`
|
147
142
|
|
148
143
|
|
data/doc/rest-api.txt
CHANGED
@@ -27,10 +27,10 @@ All API calls will return http 200 and requested data (if applied). Otherwise, A
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
handle_api_error("Can't get
|
30
|
+
handle_api_error("Can't get the url of the plugin's backend from the RhoConnect server") do
|
31
31
|
@license_info = JSON.parse(
|
32
32
|
RestClient.get(
|
33
|
-
"#{server}/rc/v1/system/
|
33
|
+
"#{server}/rc/v1/system/appserver",
|
34
34
|
{'X-RhoConnect-API-TOKEN' => @api_token}
|
35
35
|
).body
|
36
36
|
)
|
@@ -52,18 +52,6 @@ Before you can use RhoConnect API you should login to the RhoConnect server and
|
|
52
52
|
|
53
53
|
@api_token = RestClient.post("#{server}/rc/v1/system/login", { :login => login, :password => password }.to_json, :content_type => :json)
|
54
54
|
|
55
|
-
## System Resource - GET license
|
56
|
-
|
57
|
-
GET /rc/v1/system/license
|
58
|
-
|
59
|
-
Returns license information of the currently used license
|
60
|
-
|
61
|
-
:::ruby
|
62
|
-
license_info = RestClient.get(
|
63
|
-
"#{server}/rc/v1/system/license",
|
64
|
-
{'X-RhoConnect-API-TOKEN' => @api_token}
|
65
|
-
).body
|
66
|
-
|
67
55
|
## System Resource - POST reset
|
68
56
|
|
69
57
|
POST /rc/v1/system/reset
|
@@ -301,7 +301,6 @@ Edit your app `settings/settings.yml` file and replace :redis one liner by array
|
|
301
301
|
:::yaml
|
302
302
|
# ...
|
303
303
|
:production:
|
304
|
-
:licensefile: settings/license.key
|
305
304
|
:syncserver: http://localhost:9292/api/application/
|
306
305
|
:push_server: http://appname:secret@localhost:8675/
|
307
306
|
# Two or more redis servers per app
|
data/doc/settings.txt
CHANGED
@@ -12,14 +12,11 @@ Each of the environment categories must have the following entries:
|
|
12
12
|
:::yaml
|
13
13
|
:syncserver: <url>
|
14
14
|
:redis: <url|array_of_urls>
|
15
|
-
:licensefile: <filename>
|
16
15
|
|
17
16
|
`:syncserver`: application's base url.
|
18
17
|
|
19
18
|
`:redis`: Redis url. Can be specified as an Array of URLs. In that case, RhoConnect will use several Redis servers (this can be used in case of high-volume data)
|
20
19
|
|
21
|
-
`:licensefile`: application's license file.
|
22
|
-
|
23
20
|
In addition, you can specify the following settings:
|
24
21
|
|
25
22
|
:::yaml
|
data/doc/supported-platforms.txt
CHANGED
@@ -65,5 +65,4 @@ The components you should have for this environment are:
|
|
65
65
|
|
66
66
|
## Known issues for JRuby:
|
67
67
|
|
68
|
-
* Usually JDK is shipped with only weak encryption, and that simply will not allow the proper key sizes being created by openssl. RhoConnect uses strong encryption for license keys and to function properly in JRuby environment installation of Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction policy files might be required.
|
69
68
|
* Path to user’s gems, warbler data should not include white spaces (i.e. in user's account name).
|
data/doc/tutorial.txt
CHANGED
@@ -12,8 +12,6 @@ Full documentation of all capabilities of RhoConnect is in the [RhoConnect Devel
|
|
12
12
|
|
13
13
|
* Install RhoConnect [from the command line](/rhoconnect/install) or by installing [RhoMobile Suite](/rhomobile-install).
|
14
14
|
|
15
|
-
* If you have a RhoConnect license that has been sent to you, you can replace the settings/license.yml file as described [here](/rhoconnect/licensing).
|
16
|
-
|
17
15
|
Now you are ready to write your RhoConnect app. You can generate an app with RhoStudio, or with the RhoConnect app command.
|
18
16
|
|
19
17
|
### Generating a RhoConnect App with RhoStudio
|
data/examples/simple/config.ru
CHANGED
File without changes
|
@@ -9,16 +9,13 @@
|
|
9
9
|
:poll_interval: 500
|
10
10
|
|
11
11
|
:development:
|
12
|
-
:licensefile: settings/license.key
|
13
12
|
:redis: localhost:6379
|
14
13
|
:syncserver: http://localhost:9292/api/application/
|
15
14
|
:push_server: http://appmike:appmikepwd@localhost:8675/
|
16
15
|
:test:
|
17
|
-
:licensefile: settings/license.key
|
18
16
|
:redis: localhost:6379
|
19
17
|
:syncserver: http://localhost:9292/api/application/
|
20
|
-
:production:
|
21
|
-
:licensefile: settings/license.key
|
18
|
+
:production:
|
22
19
|
:redis: localhost:6379
|
23
20
|
:syncserver: http://localhost:9292/api/application/
|
24
21
|
|
data/generators/rhoconnect.rb
CHANGED
@@ -22,7 +22,6 @@ module Rhoconnect
|
|
22
22
|
copy_file 'rcgemfile', "#{name}/.rcgemfile"
|
23
23
|
copy_file 'Rakefile', "#{name}/Rakefile"
|
24
24
|
copy_file 'settings/settings.yml', "#{name}/settings/settings.yml"
|
25
|
-
copy_file 'settings/license.key', "#{name}/settings/license.key"
|
26
25
|
empty_directory File.join("#{name}", 'public')
|
27
26
|
|
28
27
|
if options[:js]
|
File without changes
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# DO NOT edit this file unless you know what are you doing!
|
3
3
|
|
4
4
|
# v0.7.x removes Process.fork, need this version for now
|
5
|
+
gem 'win32-api', '= 1.4.5'
|
5
6
|
gem 'win32-process', '= 0.6.6', :platforms => [:mswin, :mingw]
|
6
7
|
|
7
8
|
# use thin and eventmachine everywhere except JRuby
|
@@ -1,19 +1,16 @@
|
|
1
1
|
:sources:
|
2
2
|
|
3
3
|
:development:
|
4
|
-
:licensefile: settings/license.key
|
5
4
|
:redis: localhost:6379
|
6
5
|
:syncserver: http://localhost:9292
|
7
6
|
:push_server: http://someappname@localhost:8675/
|
8
7
|
:api_token: my-rhoconnect-token
|
9
8
|
:test:
|
10
|
-
:licensefile: settings/license.key
|
11
9
|
:redis: localhost:6379
|
12
10
|
:syncserver: http://localhost:9292
|
13
11
|
:push_server: http://someappname@localhost:8675/
|
14
12
|
:api_token: my-rhoconnect-token
|
15
13
|
:production:
|
16
|
-
:licensefile: settings/license.key
|
17
14
|
:redis: localhost:6379
|
18
15
|
:syncserver: http://localhost:9292
|
19
16
|
:push_server: http://someappname@localhost:8675/
|
data/install.sh
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -42,8 +42,8 @@ task "build:repos", :build_type, :build_number do |t, args|
|
|
42
42
|
# Create configuration file "ditributions" in deb directory
|
43
43
|
filename = "#{PKG_DIR}/deb/conf"
|
44
44
|
cmd "sudo mkdir -p #{filename}"
|
45
|
-
distributions = "Origin:
|
46
|
-
"Label:
|
45
|
+
distributions = "Origin: Symbol Technologies, Inc.\n" +
|
46
|
+
"Label: Symbol Technologies, Inc.\n" +
|
47
47
|
"Codename: rhoconnect\n" +
|
48
48
|
"Architectures: i386 amd64\n" +
|
49
49
|
"Components: main\n" +
|
File without changes
|
File without changes
|
File without changes
|
data/lib/rhoconnect/api_token.rb
CHANGED
File without changes
|
data/lib/rhoconnect/app.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/rhoconnect/bulk_data.rb
CHANGED
File without changes
|
data/lib/rhoconnect/client.rb
CHANGED
@@ -43,7 +43,6 @@ module Rhoconnect
|
|
43
43
|
:delete_errors_page])
|
44
44
|
|
45
45
|
def self.create(fields,params={})
|
46
|
-
Rhoconnect.license.check_and_use_seat
|
47
46
|
fields[:id] ||= get_random_identifier
|
48
47
|
res = super(fields,params)
|
49
48
|
user = User.load(fields[:user_id])
|
@@ -81,7 +80,6 @@ module Rhoconnect
|
|
81
80
|
|
82
81
|
def delete
|
83
82
|
flush_all_documents
|
84
|
-
Rhoconnect.license.free_seat
|
85
83
|
if Rhoconnect.stats
|
86
84
|
Rhoconnect::Stats::Record.set('clients') { Store.decr('client:count') }
|
87
85
|
else
|
@@ -18,15 +18,6 @@ module Rhoconnect
|
|
18
18
|
Rhoconnect.appserver = params['adapter_url'] || params[:attributes]['adapter_url']
|
19
19
|
end
|
20
20
|
|
21
|
-
get "/license", \
|
22
|
-
:deprecated_route => {:verb => :post, :url => ['/api/get_license_info', '/api/admin/get_license_info']} do
|
23
|
-
{:rhoconnect_version => Rhoconnect.license.rhoconnect_version,
|
24
|
-
:licensee => Rhoconnect.license.licensee,
|
25
|
-
:seats => Rhoconnect.license.seats,
|
26
|
-
:issued => Rhoconnect.license.issued,
|
27
|
-
:available => Rhoconnect.license.available }.to_json
|
28
|
-
end
|
29
|
-
|
30
21
|
post "/login", :rc_handler => :admin_authenticate, :admin_required => false, :deprecated_route => {:verb => :post, :url => ['/login', '/api/admin/login']} do
|
31
22
|
user = User.authenticate(params[:login], params[:password])
|
32
23
|
end
|
File without changes
|
data/lib/rhoconnect/document.rb
CHANGED
File without changes
|