rhoconnect 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.1 (2011-10-04)
2
+ * fix to lock in sinatra 1.2.7
3
+
1
4
  ## 3.0.0 (2011-09-30)
2
5
  * #18888077 - implement Redis transactions optimization for push_objects and push_deletes
3
6
  * added 2 rake tasks (build:rpm and build:deb) to generate packaged software for popular linux servers
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rhoconnect (3.0.0)
4
+ rhoconnect (3.0.1)
5
5
  bundler (~> 1.0)
6
6
  json (~> 1.5.0)
7
7
  rake (= 0.9.2)
@@ -9,7 +9,7 @@ PATH
9
9
  resque (~> 1.17.0)
10
10
  rest-client (~> 1.6.1)
11
11
  rubyzip (~> 0.9.4)
12
- sinatra (~> 1.2)
12
+ sinatra (= 1.2.7)
13
13
  templater (~> 1.0.0)
14
14
  uuidtools (>= 2.1.1)
15
15
 
@@ -62,9 +62,9 @@ GEM
62
62
  diff-lcs (~> 1.1.2)
63
63
  rspec-mocks (2.6.0)
64
64
  rubyzip (0.9.4)
65
- sinatra (1.2.6)
65
+ sinatra (1.2.7)
66
66
  rack (~> 1.1)
67
- tilt (< 2.0, >= 1.2.2)
67
+ tilt (>= 1.2.2, < 2.0)
68
68
  sqlite3 (1.3.4)
69
69
  templater (1.0.0)
70
70
  diff-lcs (>= 1.1.2)
@@ -1,19 +1,46 @@
1
+ PATH
2
+ remote: ../../
3
+ specs:
4
+ rhoconnect (3.0.0)
5
+ bundler (~> 1.0)
6
+ json (~> 1.5.0)
7
+ rake (= 0.9.2)
8
+ redis (>= 2.2.0)
9
+ resque (~> 1.17.0)
10
+ rest-client (~> 1.6.1)
11
+ rubyzip (~> 0.9.4)
12
+ sinatra (= 1.2.7)
13
+ templater (~> 1.0.0)
14
+ uuidtools (>= 2.1.1)
15
+
1
16
  GEM
2
17
  remote: http://rubygems.org/
3
18
  specs:
4
19
  SystemTimer (1.2.3)
20
+ bouncy-castle-java (1.5.0146.1)
5
21
  daemons (1.1.4)
22
+ dbd-jdbc (0.1.4)
23
+ dbi (0.4.5)
24
+ deprecated (= 2.0.1)
25
+ deprecated (2.0.1)
6
26
  diff-lcs (1.1.2)
7
27
  eventmachine (0.12.10)
8
28
  extlib (0.9.15)
9
29
  highline (1.6.2)
10
- json (1.5.3)
30
+ jdbc-sqlite3 (3.7.2)
31
+ jruby-jars (1.6.4)
32
+ jruby-openssl (0.7.4)
33
+ bouncy-castle-java
34
+ jruby-rack (1.0.10)
35
+ json (1.5.4)
36
+ json (1.5.4-java)
11
37
  mime-types (1.16)
12
38
  rack (1.3.2)
13
39
  rack-test (0.6.1)
14
40
  rack (>= 1.0)
15
41
  rake (0.9.2)
16
42
  rcov (0.9.10)
43
+ rcov (0.9.10-java)
17
44
  redis (2.2.2)
18
45
  redis-namespace (1.0.3)
19
46
  redis (< 3.0.0)
@@ -24,19 +51,6 @@ GEM
24
51
  vegas (~> 0.1.2)
25
52
  rest-client (1.6.7)
26
53
  mime-types (>= 1.16)
27
- rhoconnect (3.0.0)
28
- SystemTimer (~> 1.2.3)
29
- bundler (~> 1.0)
30
- json (~> 1.5.0)
31
- rake (= 0.9.2)
32
- redis (>= 2.2.0)
33
- resque (~> 1.17.0)
34
- rest-client (~> 1.6.1)
35
- rubyzip (~> 0.9.4)
36
- sinatra (~> 1.2)
37
- sqlite3 (>= 1.3.3)
38
- templater (~> 1.0.0)
39
- uuidtools (>= 2.1.1)
40
54
  rspec (2.6.0)
41
55
  rspec-core (~> 2.6.0)
42
56
  rspec-expectations (~> 2.6.0)
@@ -46,7 +60,7 @@ GEM
46
60
  diff-lcs (~> 1.1.2)
47
61
  rspec-mocks (2.6.0)
48
62
  rubyzip (0.9.4)
49
- sinatra (1.2.6)
63
+ sinatra (1.2.7)
50
64
  rack (~> 1.1)
51
65
  tilt (< 2.0, >= 1.2.2)
52
66
  sqlite3 (1.3.4)
@@ -59,18 +73,34 @@ GEM
59
73
  eventmachine (>= 0.12.6)
60
74
  rack (>= 1.0.0)
61
75
  tilt (1.3.3)
76
+ trinidad (1.2.3)
77
+ jruby-rack (>= 1.0.9)
78
+ trinidad_jars (>= 1.0.1)
79
+ trinidad_jars (1.0.1)
62
80
  uuidtools (2.1.2)
63
81
  vegas (0.1.8)
64
82
  rack (>= 1.0.0)
83
+ warbler (1.3.2)
84
+ jruby-jars (>= 1.4.0)
85
+ jruby-rack (>= 1.0.0)
86
+ rake (>= 0.8.7)
87
+ rubyzip (>= 0.9.4)
65
88
 
66
89
  PLATFORMS
90
+ java
67
91
  ruby
68
92
 
69
93
  DEPENDENCIES
94
+ SystemTimer (~> 1.2.3)
95
+ dbd-jdbc (>= 0.1.4)
96
+ dbi (>= 0.4.5)
97
+ jdbc-sqlite3 (>= 3.7.2)
98
+ jruby-openssl (>= 0.7.4)
70
99
  rack-test (>= 0.5.3)
71
100
  rcov (>= 0.9.8)
72
- rhoconnect (= 3.0.0)
101
+ rhoconnect!
73
102
  rspec (~> 2.6.0)
103
+ sqlite3 (>= 1.3.3)
74
104
  thin
75
105
  trinidad
76
- warbler (~> 1.3.0)
106
+ warbler
data/doc/adapters-crm.txt CHANGED
@@ -186,7 +186,7 @@ These are:
186
186
  Rhoconnect-adapters is not using `OAuth2` scheme at this point.
187
187
 
188
188
  For every source adapter based on CRM object there is a corresponding *'vendor/salesforce/settings/\<CRM\-object\-name\>.yml'*
189
- file containing the descriptions for the OracleOnDemand CRM object.
189
+ file containing the descriptions for the SalesForce CRM object.
190
190
  Every CRM object file has the following entries:
191
191
 
192
192
  Query_Fields: hash of the objects's fields
data/doc/blob-sync.txt CHANGED
@@ -127,4 +127,4 @@ A complete image source adapter that stores files in S3 might look like:
127
127
  end
128
128
 
129
129
  ## Rhodes Sample Code
130
- See controller and view in the `/app/Blob` directory of the [System API Samples application](http://github.com/rhomobile/rhodes-system-api-samples/tree/master) for a complete Rhodes code sample.
130
+ See controller and view in the [app/Blob directory](https://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/Blob) of the [System API Samples application](http://github.com/rhomobile/rhodes-system-api-samples/tree/master) for a complete Rhodes code sample.
data/doc/command-line.txt CHANGED
@@ -53,12 +53,18 @@ Here's a basic rundown of each of the files that were just generated:
53
53
  * **Gemfile** - This file specifies application's dependencies using [bundler](http://gembundler.com/).
54
54
  * **spec/spec_helper.rb** - A helper file which loads the environment for running [specs](/rhoconnect/testing).
55
55
 
56
+ After generating the application, you might be asked to change directories to your application directory and run bundle install. For example, you would run these commands:
57
+
58
+ :::term
59
+ $ cd storeserver
60
+ $ bundle install
61
+
56
62
  ### Add a New Source Adapter
57
63
 
58
- To generate a source for your RhoConnect application, run the `rhoconnect source` command:
64
+ To generate a source for your RhoConnect application, run the `rhoconnect source` command within your application directory:
59
65
 
60
66
  :::term
61
- Usage: rhoconnect source [options] [args]
67
+ Usage: rhoconnect source name [options] [args]
62
68
 
63
69
  Generates a new source adapter.
64
70
 
@@ -76,11 +82,10 @@ To generate a source for your RhoConnect application, run the `rhoconnect source
76
82
  --no-color Don't colorize the output
77
83
  -h, --help Show this message
78
84
  --debug Do not catch errors
79
-
80
- For example:
85
+
86
+ For the storeserver application example, within the sourceserver directory, run:
81
87
 
82
88
  :::term
83
- $ cd storeserver
84
89
  $ rhoconnect source product
85
90
  Generating with source generator:
86
91
  [ADDED] sources/product.rb
@@ -100,21 +105,24 @@ If you're using MacOS / Linux, install [dtach](http://dtach.sourceforge.net/) on
100
105
 
101
106
  :::term
102
107
  $ cd storeserver
103
- $ rake dtach:install
108
+ $ [sudo] rake dtach:install
104
109
 
105
110
  ### Setup Redis
106
111
 
107
112
  Next, you will need to setup and start a [redis](http://redis.io/) server:
108
113
 
109
114
  :::term
110
- $ rake redis:install
115
+ $ [sudo] rake redis:install
111
116
  $ rake redis:start
112
-
117
+
118
+ The server will show that it is running on the console.
119
+
113
120
  ### Start the Application
114
121
 
115
- Now, start the application!
122
+ Open a new console window (since the redis server is running in the previous console window). Then change directories to your rhoconnect applciation and start the application.
116
123
 
117
124
  :::term
125
+ $ cd storeserver
118
126
  $ rake rhoconnect:start
119
127
 
120
128
  If everything went well, you should see the following in your console:
data/doc/install.txt CHANGED
@@ -17,7 +17,7 @@ Your RhoConnect application folder will be located in C:\RhoConnect\rhoconnect b
17
17
 
18
18
  3. Ruby Web Server - We test with [thin](http://code.macournoyer.com/thin/), and [passenger](http://www.modrails.com/). WEBrick, the web server that ships with ruby, is known to cause issues with HTTP headers/cookies and is ***not*** recommended.
19
19
 
20
- 4. [Redis 2.2.14+](http://redis.io/) - RhoConnect includes a simple [rake task](/rhoconnect/command-line#rake-tasks) `redis:install` to install redis, covered in the next section. Alternatively, you can [install redis directly](http://redis.io/download).
20
+ 4. [Redis 2.2.14+](http://redis.io/) - RhoConnect includes a simple [rake task](/rhoconnect/command-line#rake-tasks) `redis:install` to install redis, covered in the [Rake Tasks section](rhoconnect/command-line#rake-tasks). Alternatively, you can [install redis directly](http://redis.io/download).
21
21
 
22
22
  ### Installing RhoConnect Gem
23
23
 
data/doc/net-plugin.txt CHANGED
@@ -22,7 +22,7 @@ After this step is completed, you can add references to the `Rhoconnect.NET` nam
22
22
  using RhoconnectNET.Controllers;
23
23
 
24
24
 
25
- ## Registering `Rhoconnect.NET` routes for your application
25
+ ## Registering Rhoconnect.NET routes for your application
26
26
 
27
27
  To establish the communication channel between ASP.NET MVC 3 application and Rhoconnect server,
28
28
  you need to implement the following `init_rhoconnect` and `rhoconnect_authenticate` methods in the `Global.asax.cs` file
@@ -91,7 +91,7 @@ def start_new_instance
91
91
  # wait for all services to start on remote VM
92
92
  puts "Waiting #{Constants::SLEEP} seconds for services to start on remote VM..."
93
93
  Constants::SLEEP.times do
94
- sleep( 1 )
94
+ sleep 1
95
95
  print "."
96
96
  STDOUT.flush
97
97
  end #do
@@ -162,10 +162,14 @@ def install_package
162
162
  end #install_package
163
163
 
164
164
  def start_servers
165
- puts "Starting Redis server"
166
165
  ssh_cmd "sudo /etc/init.d/redis start"
167
- puts "Starting nginx server"
168
166
  ssh_cmd "sudo /etc/init.d/nginx start"
167
+ puts "Waiting #{Constants::SLEEP} seconds for servers to initialize"
168
+ Constants::SLEEP.times do
169
+ sleep 1
170
+ print '.'
171
+ STDOUT.flush
172
+ end # do
169
173
  puts
170
174
  end # start_servers
171
175
 
@@ -201,13 +205,13 @@ end #compute_time
201
205
  # Create Packages
202
206
 
203
207
  # Creating debian package
204
- cmd "sudo rake build:deb"
208
+ #cmd "sudo rake build:deb"
205
209
  # Make sure package was created successfully
206
- if $? != 0
207
- puts "Debian package was not created successfully" +
208
- "Exiting..."
209
- exit 1
210
- end #if
210
+ #if $? != 0
211
+ # puts "Debian package was not created successfully" +
212
+ # "Exiting..."
213
+ # exit 1
214
+ #end #if
211
215
 
212
216
  # Keep commented until running on a machine with rpm
213
217
  # Creating RPM package
@@ -255,4 +259,4 @@ Constants::STACKS.each do |stack|
255
259
  end #begin
256
260
  end #do
257
261
  end_time = Time.now
258
- puts compute_time start_time end_time
262
+ puts compute_time(start_time, end_time)
@@ -0,0 +1,3 @@
1
+ #! /usr/bin/env ruby
2
+
3
+
@@ -1,3 +1,3 @@
1
1
  module Rhoconnect
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
data/rhoconnect.gemspec CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  ]
38
38
 
39
39
  s.add_dependency('bundler', '~> 1.0')
40
- s.add_dependency("sinatra", '~> 1.2')
40
+ s.add_dependency("sinatra", '= 1.2.7')
41
41
  s.add_dependency('rake', '0.9.2')
42
42
  s.add_dependency('json', '~> 1.5.0')
43
43
  s.add_dependency('rubyzip', '~> 0.9.4')
data/tasks/redis.rake CHANGED
@@ -220,4 +220,4 @@ namespace :dtach do
220
220
  puts "Dtach successfully installed to #{bin_dir}"
221
221
  end
222
222
  end
223
- end
223
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhoconnect
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 0
10
- version: 3.0.0
9
+ - 1
10
+ version: 3.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-30 00:00:00 Z
18
+ date: 2011-10-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime
@@ -38,13 +38,14 @@ dependencies:
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ~>
41
+ - - "="
42
42
  - !ruby/object:Gem::Version
43
- hash: 11
43
+ hash: 17
44
44
  segments:
45
45
  - 1
46
46
  - 2
47
- version: "1.2"
47
+ - 7
48
+ version: 1.2.7
48
49
  version_requirements: *id002
49
50
  name: sinatra
50
51
  - !ruby/object:Gem::Dependency
@@ -324,8 +325,8 @@ files:
324
325
  - installer/unix-like/rho_connect_install_yum.rb
325
326
  - installer/unix-like/rhoinstaller.rb
326
327
  - installer/utils/constants.rb
328
+ - installer/utils/nix_install_test.rb
327
329
  - installer/utils/nix_installation.rake
328
- - installer/utils/unix_install_test.rb
329
330
  - installer/windows/configUi.ini
330
331
  - installer/windows/EnvVarUpdate.nsh
331
332
  - installer/windows/icon.ico