rhodes 2.3.0.beta.2 → 2.3.0.beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,6 +31,17 @@ List of supported capabilities:
31
31
  * vibrate: allow to use hardware vibration mechanism
32
32
  * bluetooth: allow to use bluetooth hardware
33
33
 
34
+ ### RhoGallery Security Token
35
+
36
+ To restrict access to the application it could be built with a security token. Specify security token in the build.yml and build application. Application built with security token can be started only if you provide this token as a parameter.
37
+
38
+ Specify in build.yml:
39
+
40
+ security_token: 123
41
+
42
+ Run application with special parameter:
43
+ :::ruby
44
+ System::run_app( 'app_name', "security_token=123" )
34
45
 
35
46
  ## Run time configuration
36
47
  Each Rhodes application contains a configuration file called "rhoconfig.txt". A typical rhoconfig.txt will look like the following when an app is generated:
@@ -898,7 +898,7 @@ public class DBAdapter extends RubyBasic
898
898
 
899
899
  copyTable("client_info", m_dbStorage, db.m_dbStorage );
900
900
  copyChangedValues(db);
901
-
901
+ /*
902
902
  //update User partition
903
903
  if ( m_strDbPartition.compareTo(USER_PARTITION_NAME()) == 0 )
904
904
  {
@@ -916,7 +916,8 @@ public class DBAdapter extends RubyBasic
916
916
  dbUser.executeSQL("DELETE FROM sources WHERE partition=?", m_strDbPartition);
917
917
  copyTable("sources", db.m_dbStorage, dbUser.m_dbStorage );
918
918
  dbUser.endTransaction();
919
- }
919
+ }*/
920
+
920
921
  getDBPartitions().put(m_strDbPartition, db);
921
922
  com.rho.sync.SyncThread.getSyncEngine().applyChangedValues(db);
922
923
  getDBPartitions().put(m_strDbPartition, this);
@@ -475,8 +475,8 @@ namespace "run" do
475
475
  Jake.before_run_spec
476
476
 
477
477
  puts 'kill iPhone Simulator'
478
- 'killall -9 "iPhone Simulator"'
479
- 'killall -9 iphonesim'
478
+ `killall -9 "iPhone Simulator"`
479
+ `killall -9 iphonesim`
480
480
 
481
481
  mkdir_p $tmpdir
482
482
  log_name = File.join($tmpdir, 'logout')
@@ -525,8 +525,8 @@ namespace "run" do
525
525
  $stdout.flush
526
526
 
527
527
  puts 'kill iPhone Simulator'
528
- 'killall -9 "iPhone Simulator"'
529
- 'killall -9 iphonesim'
528
+ `killall -9 "iPhone Simulator"`
529
+ `killall -9 iphonesim`
530
530
 
531
531
  $stdout.flush
532
532
 
@@ -322,6 +322,7 @@ void CRhodesApp::restartLocalServer(common::CThreadQueue& waitThread)
322
322
  LOG(INFO) + "restart local server.";
323
323
  m_bRestartServer = true;
324
324
  m_httpServer->stop();
325
+ stopWait();
325
326
  }
326
327
 
327
328
  void CRhodesApp::stopApp()
data/rhodes.gemspec CHANGED
@@ -4,7 +4,7 @@ require "lib/rhodes.rb"
4
4
  Gem::Specification.new do |s|
5
5
  s.name = %q{rhodes}
6
6
  # s.version = Rhodes::VERSION
7
- s.version = "2.3.0.beta.2"
7
+ s.version = "2.3.0.beta.3"
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Rhomobile"]
10
10
  s.date = Time.now
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhodes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196439
4
+ hash: 62196437
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 2
8
8
  - 3
9
9
  - 0
10
10
  - beta
11
- - 2
12
- version: 2.3.0.beta.2
11
+ - 3
12
+ version: 2.3.0.beta.3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Rhomobile
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-02-15 00:00:00 -08:00
20
+ date: 2011-02-16 00:00:00 -08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency