rhodes 2.2.3 → 2.2.4.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +13 -0
- data/Rakefile +1 -1
- data/bin/c2dm.rb +59 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Rakefile +4 -0
- data/lib/framework/rho/rho.rb +2 -0
- data/lib/framework/rho/rhoapplication.rb +1 -0
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml +1 -1
- data/platform/android/Rhodes/jni/src/callbacks.cpp +21 -0
- data/platform/android/Rhodes/jni/src/nativebar.cpp +4 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoActivity.java +3 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Rhodes.java +68 -7
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +113 -10
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/SplashScreen.java +34 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManager.java +21 -17
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java +29 -5
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/ExternalHttpHandler.java +37 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +0 -1
- data/platform/android/build/RhodesSRC_build.files +24 -23
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +6 -0
- data/platform/bb/RubyVM/src/com/rho/RhoLogger.java +42 -20
- data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +111 -19
- data/platform/bb/RubyVM/src/com/rho/db/IDBStorage.java +2 -0
- data/platform/bb/RubyVM/src/com/rho/net/NetRequest.java +2 -1
- data/platform/bb/RubyVM/src/com/rho/net/URI.java +80 -0
- data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +21 -1
- data/platform/bb/RubyVM/src/com/rho/sync/SyncNotify.java +6 -1
- data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +139 -46
- data/platform/bb/build/bb.rake +8 -3
- data/platform/bb/rhodes/platform/5.0/com/rho/RhodesApplicationPlatform.java +32 -21
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +31 -14
- data/platform/bb/rhodes/src/com/rho/file/Jsr75File.java +3 -2
- data/platform/bb/rhodes/src/com/rho/rubyext/Alert.java +3 -2
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +28 -0
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +111 -26
- data/platform/iphone/Classes/AppManager/AppManager.m +22 -0
- data/platform/iphone/Classes/DateTimePickerDelegate.m +3 -0
- data/platform/iphone/Classes/MapView/MapViewController.h +8 -3
- data/platform/iphone/Classes/MapView/MapViewController.m +63 -12
- data/platform/iphone/Classes/NativeBar.h +4 -3
- data/platform/iphone/Classes/NativeBar.m +28 -1
- data/platform/iphone/Classes/Rhodes.m +87 -20
- data/platform/iphone/Classes/Signature/SignatureView.m +16 -10
- data/platform/iphone/Classes/Signature/SignatureViewController.m +2 -0
- data/platform/iphone/Classes/SimpleMainView.h +2 -0
- data/platform/iphone/Classes/SimpleMainView.m +120 -35
- data/platform/iphone/Classes/SplashViewController.h +8 -1
- data/platform/iphone/Classes/SplashViewController.m +233 -11
- data/platform/iphone/Classes/SplitView/LeftViewController.h +30 -0
- data/platform/iphone/Classes/SplitView/LeftViewController.m +189 -0
- data/platform/iphone/Classes/SplitView/RightViewController.h +54 -0
- data/platform/iphone/Classes/SplitView/RightViewController.m +268 -0
- data/platform/iphone/Classes/SplitView/SplitViewDelegate.h +22 -0
- data/platform/iphone/Classes/SplitView/SplitViewDelegate.m +92 -0
- data/platform/iphone/Classes/SplitView/SplittedMainView.h +65 -0
- data/platform/iphone/Classes/SplitView/SplittedMainView.m +304 -0
- data/platform/iphone/Classes/TabbedMainView.m +23 -6
- data/platform/iphone/Classes/WebView.m +1 -1
- data/platform/iphone/Info.plist +11 -2
- data/platform/iphone/rbuild/iphone.rake +80 -3
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +50 -3
- data/platform/shared/common/RhoConf.cpp +5 -5
- data/platform/shared/db/DBAdapter.cpp +81 -3
- data/platform/shared/db/DBAdapter.h +1 -0
- data/platform/shared/json/JSONIterator.cpp +5 -0
- data/platform/shared/json/JSONIterator.h +1 -0
- data/platform/shared/net/CURLNetRequest.cpp +2 -2
- data/platform/shared/net/URI.cpp +53 -0
- data/platform/shared/net/URI.h +5 -1
- data/platform/shared/ruby/ext/system/system.i +9 -1
- data/platform/shared/ruby/ext/system/system_wrap.c +2632 -2574
- data/platform/shared/ruby/win32/win32.c +2 -0
- data/platform/shared/ruby/wince/direct.c +4 -0
- data/platform/shared/sync/SyncEngine.cpp +20 -1
- data/platform/shared/sync/SyncEngine.h +6 -1
- data/platform/shared/sync/SyncNotify.cpp +6 -1
- data/platform/shared/sync/SyncSource.cpp +130 -74
- data/platform/shared/sync/SyncSource.h +3 -1
- data/platform/wm/rhodes.sln +30 -22
- data/platform/wm/rhodes/Alert.cpp +4 -3
- data/platform/wm/rhodes/MainWindow.cpp +73 -20
- data/platform/wm/rhodes/RingtoneManager.cpp +4 -4
- data/platform/wm/rhodes/RingtoneManager.h +2 -1
- data/platform/wm/rhodes/Vibrate.cpp +1 -2
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +37 -0
- data/platform/wm/rhodes/rhodes.vcproj +219 -5
- data/platform/wm/rhodes/stdafx.h +1 -0
- data/platform/wm/rubylib/rubylib.vcproj +10 -8
- data/platform/wm/sqlite3/sqlite3.vcproj +6 -4
- data/platform/wm/syncengine/syncengine.vcproj +7 -5
- data/platform/wm/tcmalloc/tcmalloc.vcproj +11 -8
- data/rakefile.rb +1 -1
- data/res/generators/templates/application/public/jqtouch/jqtouch.js +9 -1
- data/rhodes.gemspec +1 -1
- data/spec/phone_spec/app/spec/bulksync_spec.rb +71 -1
- metadata +17 -5
data/platform/wm/rhodes/stdafx.h
CHANGED
@@ -35,6 +35,7 @@
|
|
35
35
|
|
36
36
|
#if defined (_WIN32_WCE)
|
37
37
|
// NOTE - this is value is not strongly correlated to the Windows CE OS version being targeted
|
38
|
+
#undef WINVER
|
38
39
|
#define WINVER _WIN32_WCE
|
39
40
|
#else
|
40
41
|
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
@@ -183,10 +183,10 @@
|
|
183
183
|
</Configuration>
|
184
184
|
<Configuration
|
185
185
|
Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
186
|
-
OutputDirectory="
|
187
|
-
IntermediateDirectory="
|
186
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
187
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
188
188
|
ConfigurationType="4"
|
189
|
-
CharacterSet="
|
189
|
+
CharacterSet="2"
|
190
190
|
>
|
191
191
|
<Tool
|
192
192
|
Name="VCPreBuildEventTool"
|
@@ -207,6 +207,7 @@
|
|
207
207
|
Name="VCCLCompilerTool"
|
208
208
|
ExecutionBucket="7"
|
209
209
|
Optimization="0"
|
210
|
+
AdditionalIncludeDirectories="..\..\shared\ruby\.;..\..\shared\ruby\include;..\..\shared\ruby\wince;..\..\shared\ruby\wince\sys;..\..\shared\ruby\win32;..\..\shared\ruby\generated;..\..\shared\ruby\rhoruby;..\..\shared"
|
210
211
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
211
212
|
MinimalRebuild="true"
|
212
213
|
RuntimeLibrary="1"
|
@@ -260,7 +261,7 @@
|
|
260
261
|
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
261
262
|
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
262
263
|
ConfigurationType="4"
|
263
|
-
CharacterSet="
|
264
|
+
CharacterSet="2"
|
264
265
|
>
|
265
266
|
<Tool
|
266
267
|
Name="VCPreBuildEventTool"
|
@@ -281,7 +282,7 @@
|
|
281
282
|
Name="VCCLCompilerTool"
|
282
283
|
ExecutionBucket="7"
|
283
284
|
Optimization="0"
|
284
|
-
AdditionalIncludeDirectories="..\..\shared\ruby\.;..\..\shared\ruby\include;..\..\shared\ruby\wince;..\..\shared\ruby\wince\sys;..\..\shared\ruby\win32;..\..\shared\ruby\generated;..\..\shared\ruby\rhoruby
|
285
|
+
AdditionalIncludeDirectories="..\..\shared\ruby\.;..\..\shared\ruby\include;..\..\shared\ruby\wince;..\..\shared\ruby\wince\sys;..\..\shared\ruby\win32;..\..\shared\ruby\generated;..\..\shared\ruby\rhoruby;..\..\shared"
|
285
286
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
286
287
|
MinimalRebuild="true"
|
287
288
|
RuntimeLibrary="1"
|
@@ -694,10 +695,10 @@
|
|
694
695
|
</Configuration>
|
695
696
|
<Configuration
|
696
697
|
Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
697
|
-
OutputDirectory="
|
698
|
-
IntermediateDirectory="
|
698
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
699
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
699
700
|
ConfigurationType="4"
|
700
|
-
CharacterSet="
|
701
|
+
CharacterSet="2"
|
701
702
|
>
|
702
703
|
<Tool
|
703
704
|
Name="VCPreBuildEventTool"
|
@@ -718,6 +719,7 @@
|
|
718
719
|
Name="VCCLCompilerTool"
|
719
720
|
ExecutionBucket="7"
|
720
721
|
Optimization="2"
|
722
|
+
AdditionalIncludeDirectories="..\..\shared\ruby\.;..\..\shared\ruby\include;..\..\shared\ruby\wince;..\..\shared\ruby\wince\sys;..\..\shared\ruby\win32;..\..\shared\ruby\generated;..\..\shared\ruby\rhoruby;..\..\shared"
|
721
723
|
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
722
724
|
RuntimeLibrary="0"
|
723
725
|
UsePrecompiledHeader="0"
|
@@ -183,8 +183,8 @@
|
|
183
183
|
</Configuration>
|
184
184
|
<Configuration
|
185
185
|
Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
186
|
-
OutputDirectory="
|
187
|
-
IntermediateDirectory="
|
186
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
187
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
188
188
|
ConfigurationType="4"
|
189
189
|
CharacterSet="1"
|
190
190
|
>
|
@@ -207,6 +207,7 @@
|
|
207
207
|
Name="VCCLCompilerTool"
|
208
208
|
ExecutionBucket="7"
|
209
209
|
Optimization="0"
|
210
|
+
AdditionalIncludeDirectories="../../shared"
|
210
211
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
211
212
|
MinimalRebuild="true"
|
212
213
|
RuntimeLibrary="1"
|
@@ -693,8 +694,8 @@
|
|
693
694
|
</Configuration>
|
694
695
|
<Configuration
|
695
696
|
Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
696
|
-
OutputDirectory="
|
697
|
-
IntermediateDirectory="
|
697
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
698
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
698
699
|
ConfigurationType="4"
|
699
700
|
CharacterSet="1"
|
700
701
|
>
|
@@ -717,6 +718,7 @@
|
|
717
718
|
Name="VCCLCompilerTool"
|
718
719
|
ExecutionBucket="7"
|
719
720
|
Optimization="2"
|
721
|
+
AdditionalIncludeDirectories="../../shared"
|
720
722
|
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
721
723
|
RuntimeLibrary="0"
|
722
724
|
UsePrecompiledHeader="0"
|
@@ -183,8 +183,8 @@
|
|
183
183
|
</Configuration>
|
184
184
|
<Configuration
|
185
185
|
Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
186
|
-
OutputDirectory="
|
187
|
-
IntermediateDirectory="
|
186
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
187
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
188
188
|
ConfigurationType="4"
|
189
189
|
CharacterSet="1"
|
190
190
|
>
|
@@ -207,6 +207,7 @@
|
|
207
207
|
Name="VCCLCompilerTool"
|
208
208
|
ExecutionBucket="7"
|
209
209
|
Optimization="0"
|
210
|
+
AdditionalIncludeDirectories="..\..\shared\ruby\wince;..\..\shared\json;..\..\shared"
|
210
211
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
211
212
|
MinimalRebuild="true"
|
212
213
|
RuntimeLibrary="1"
|
@@ -281,7 +282,7 @@
|
|
281
282
|
Name="VCCLCompilerTool"
|
282
283
|
ExecutionBucket="7"
|
283
284
|
Optimization="0"
|
284
|
-
AdditionalIncludeDirectories="..\..\shared\ruby\wince;..\..\shared\json
|
285
|
+
AdditionalIncludeDirectories="..\..\shared\ruby\wince;..\..\shared\json;..\..\shared"
|
285
286
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
286
287
|
MinimalRebuild="true"
|
287
288
|
RuntimeLibrary="1"
|
@@ -694,8 +695,8 @@
|
|
694
695
|
</Configuration>
|
695
696
|
<Configuration
|
696
697
|
Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
697
|
-
OutputDirectory="
|
698
|
-
IntermediateDirectory="
|
698
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
699
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
699
700
|
ConfigurationType="4"
|
700
701
|
CharacterSet="1"
|
701
702
|
>
|
@@ -718,6 +719,7 @@
|
|
718
719
|
Name="VCCLCompilerTool"
|
719
720
|
ExecutionBucket="7"
|
720
721
|
Optimization="2"
|
722
|
+
AdditionalIncludeDirectories="..\..\shared\ruby\wince;..\..\shared\json;..\..\shared"
|
721
723
|
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
722
724
|
RuntimeLibrary="0"
|
723
725
|
UsePrecompiledHeader="0"
|
@@ -29,8 +29,8 @@
|
|
29
29
|
<Configurations>
|
30
30
|
<Configuration
|
31
31
|
Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
32
|
-
OutputDirectory="
|
33
|
-
IntermediateDirectory="
|
32
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
33
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
34
34
|
ConfigurationType="4"
|
35
35
|
CharacterSet="1"
|
36
36
|
>
|
@@ -53,6 +53,7 @@
|
|
53
53
|
Name="VCCLCompilerTool"
|
54
54
|
ExecutionBucket="7"
|
55
55
|
Optimization="0"
|
56
|
+
AdditionalIncludeDirectories="../../shared/tcmalloc;../../shared/tcmalloc/windows;../../shared/ruby/wince;../../shared"
|
56
57
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
57
58
|
MinimalRebuild="true"
|
58
59
|
RuntimeLibrary="1"
|
@@ -103,8 +104,8 @@
|
|
103
104
|
</Configuration>
|
104
105
|
<Configuration
|
105
106
|
Name="Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)"
|
106
|
-
OutputDirectory="
|
107
|
-
IntermediateDirectory="
|
107
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
108
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
108
109
|
ConfigurationType="4"
|
109
110
|
CharacterSet="1"
|
110
111
|
>
|
@@ -127,6 +128,7 @@
|
|
127
128
|
Name="VCCLCompilerTool"
|
128
129
|
ExecutionBucket="7"
|
129
130
|
Optimization="0"
|
131
|
+
AdditionalIncludeDirectories="../../shared/tcmalloc;../../shared/tcmalloc/windows;../../shared/ruby/wince;../../shared"
|
130
132
|
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
131
133
|
MinimalRebuild="true"
|
132
134
|
RuntimeLibrary="1"
|
@@ -392,8 +394,8 @@
|
|
392
394
|
</Configuration>
|
393
395
|
<Configuration
|
394
396
|
Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
395
|
-
OutputDirectory="
|
396
|
-
IntermediateDirectory="
|
397
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
398
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
397
399
|
ConfigurationType="4"
|
398
400
|
CharacterSet="1"
|
399
401
|
>
|
@@ -416,6 +418,7 @@
|
|
416
418
|
Name="VCCLCompilerTool"
|
417
419
|
ExecutionBucket="7"
|
418
420
|
Optimization="2"
|
421
|
+
AdditionalIncludeDirectories="../../shared/tcmalloc;../../shared/tcmalloc/windows;../../shared/ruby/wince;../../shared"
|
419
422
|
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;_LIB;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
420
423
|
RuntimeLibrary="0"
|
421
424
|
UsePrecompiledHeader="0"
|
@@ -465,8 +468,8 @@
|
|
465
468
|
</Configuration>
|
466
469
|
<Configuration
|
467
470
|
Name="Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)"
|
468
|
-
OutputDirectory="
|
469
|
-
IntermediateDirectory="
|
471
|
+
OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
472
|
+
IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
|
470
473
|
ConfigurationType="4"
|
471
474
|
CharacterSet="1"
|
472
475
|
>
|
data/rakefile.rb
CHANGED
@@ -673,7 +673,7 @@ task :set_version, [:version] do |t,args|
|
|
673
673
|
|
674
674
|
File.open(versionfile,"r") { |f| origfile = f.read }
|
675
675
|
File.open(versionfile,"w") do |f|
|
676
|
-
origfile.gsub!(/^(\s*VERSION) = '(\d+\.\d+\.*\d*)'/, '\1 = \''+ verstring + "'")
|
676
|
+
origfile.gsub!(/^(\s*VERSION) = '(\d+\.\d+\.*\d*)'/, '\1 = \''+ verstring + "'")
|
677
677
|
f.write origfile
|
678
678
|
end
|
679
679
|
end
|
@@ -316,9 +316,17 @@
|
|
316
316
|
}
|
317
317
|
}
|
318
318
|
|
319
|
+
var href = $el.attr("href");
|
320
|
+
|
319
321
|
// User clicked an internal link, fullscreen mode
|
320
322
|
if (target == '_webapp') {
|
321
|
-
window.location =
|
323
|
+
window.location = href;
|
324
|
+
}
|
325
|
+
// User clicked on a link that contains a protocol other than http.
|
326
|
+
else if (href.indexOf(":") != -1 &&
|
327
|
+
href.indexOf("http:") != 0 &&
|
328
|
+
href.indexOf("https:") != 0) {
|
329
|
+
window.location = href;
|
322
330
|
}
|
323
331
|
// User clicked a back button
|
324
332
|
else if ($el.is(jQTSettings.backSelector)) {
|
data/rhodes.gemspec
CHANGED
@@ -44,7 +44,7 @@ describe "BulkSync_test" do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
it "should login" do
|
47
|
-
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.login("", "", "/app/Settings/login_callback")
|
47
|
+
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.login("la rs", "", "/app/Settings/login_callback")
|
48
48
|
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
49
49
|
|
50
50
|
SyncEngine.logged_in.should == 1
|
@@ -52,7 +52,34 @@ describe "BulkSync_test" do
|
|
52
52
|
|
53
53
|
it "should bulk sync" do
|
54
54
|
SyncEngine.logged_in.should == 1
|
55
|
+
|
56
|
+
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.dosync
|
57
|
+
res['status'].should == 'complete'
|
58
|
+
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
59
|
+
|
60
|
+
Rho::RhoConfig.bulksync_state.should == '1'
|
61
|
+
|
62
|
+
items = Product.find(:all)
|
63
|
+
items.should_not be_nil
|
64
|
+
items.length().should_not == 0
|
65
|
+
end
|
55
66
|
|
67
|
+
it "should bulk sync with create" do
|
68
|
+
SyncEngine.logged_in.should == 1
|
69
|
+
::Rhom::Rhom.database_full_reset_and_logout
|
70
|
+
|
71
|
+
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.login("la rs", "", "/app/Settings/login_callback")
|
72
|
+
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
73
|
+
SyncEngine.logged_in.should == 1
|
74
|
+
|
75
|
+
Rho::RhoConfig.bulksync_state='1'
|
76
|
+
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.dosync
|
77
|
+
res['status'].should == 'complete'
|
78
|
+
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
79
|
+
|
80
|
+
item1 = Product.create({'name'=>'PhoneSpec', 'sku'=>22})
|
81
|
+
|
82
|
+
Rho::RhoConfig.bulksync_state='0'
|
56
83
|
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.dosync
|
57
84
|
res['status'].should == 'complete'
|
58
85
|
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
@@ -62,6 +89,49 @@ describe "BulkSync_test" do
|
|
62
89
|
items = Product.find(:all)
|
63
90
|
items.should_not be_nil
|
64
91
|
items.length().should_not == 0
|
92
|
+
|
93
|
+
item2 = Product.find(item1.object)
|
94
|
+
item2.should be_nil
|
95
|
+
|
96
|
+
items2 = Product.find(:all, :conditions=>{:name=>'PhoneSpec'} )
|
97
|
+
items2.should_not be_nil
|
98
|
+
items2.length().should_not == 0
|
99
|
+
|
100
|
+
bFound22 = false
|
101
|
+
items2.each do |item|
|
102
|
+
bFound22 = item.sku == '22' if !bFound22
|
103
|
+
|
104
|
+
item.sku = '44'
|
105
|
+
item.save
|
106
|
+
end
|
107
|
+
bFound22.should == true
|
108
|
+
|
109
|
+
Rho::RhoConfig.bulksync_state='0'
|
110
|
+
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.dosync
|
111
|
+
res['status'].should == 'complete'
|
112
|
+
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
113
|
+
Rho::RhoConfig.bulksync_state.should == '1'
|
114
|
+
|
115
|
+
items2 = Product.find(:all, :conditions=>{:name=>'PhoneSpec'} )
|
116
|
+
items2.should_not be_nil
|
117
|
+
items2.length().should_not == 0
|
118
|
+
|
119
|
+
items2.each do |item|
|
120
|
+
item.sku.should == '44'
|
121
|
+
|
122
|
+
item.destroy
|
123
|
+
end
|
124
|
+
|
125
|
+
Rho::RhoConfig.bulksync_state='0'
|
126
|
+
res = ::Rho::RhoSupport::parse_query_parameters SyncEngine.dosync
|
127
|
+
res['status'].should == 'complete'
|
128
|
+
res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
|
129
|
+
Rho::RhoConfig.bulksync_state.should == '1'
|
130
|
+
|
131
|
+
items2 = Product.find(:all, :conditions=>{:name=>'PhoneSpec'} )
|
132
|
+
items2.should_not be_nil
|
133
|
+
items2.length().should == 0
|
134
|
+
|
65
135
|
end
|
66
136
|
|
67
137
|
it "should logout" do
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhodes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 62196449
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
|
9
|
+
- 4
|
10
|
+
- beta
|
11
|
+
- 1
|
12
|
+
version: 2.2.4.beta.1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- Rhomobile
|
@@ -15,7 +17,7 @@ autorequire:
|
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date: 2010-
|
20
|
+
date: 2010-11-08 00:00:00 -08:00
|
19
21
|
default_executable:
|
20
22
|
dependencies:
|
21
23
|
- !ruby/object:Gem::Dependency
|
@@ -112,6 +114,7 @@ extra_rdoc_files:
|
|
112
114
|
- README.textile
|
113
115
|
- LICENSE
|
114
116
|
files:
|
117
|
+
- bin/c2dm.rb
|
115
118
|
- bin/rhodes
|
116
119
|
- bin/rhodes-setup
|
117
120
|
- bin/rhodes-setup.bat
|
@@ -903,6 +906,7 @@ files:
|
|
903
906
|
- platform/android/Rhodes/src/com/rhomobile/rhodes/ui/AboutDialog.java
|
904
907
|
- platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogOptionsDialog.java
|
905
908
|
- platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogViewDialog.java
|
909
|
+
- platform/android/Rhodes/src/com/rhomobile/rhodes/uri/ExternalHttpHandler.java
|
906
910
|
- platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java
|
907
911
|
- platform/android/Rhodes/src/com/rhomobile/rhodes/uri/SmsUriHandler.java
|
908
912
|
- platform/android/Rhodes/src/com/rhomobile/rhodes/uri/TelUriHandler.java
|
@@ -1630,6 +1634,14 @@ files:
|
|
1630
1634
|
- platform/iphone/Classes/SimpleMainView.m
|
1631
1635
|
- platform/iphone/Classes/SplashViewController.h
|
1632
1636
|
- platform/iphone/Classes/SplashViewController.m
|
1637
|
+
- platform/iphone/Classes/SplitView/LeftViewController.h
|
1638
|
+
- platform/iphone/Classes/SplitView/LeftViewController.m
|
1639
|
+
- platform/iphone/Classes/SplitView/RightViewController.h
|
1640
|
+
- platform/iphone/Classes/SplitView/RightViewController.m
|
1641
|
+
- platform/iphone/Classes/SplitView/SplittedMainView.h
|
1642
|
+
- platform/iphone/Classes/SplitView/SplittedMainView.m
|
1643
|
+
- platform/iphone/Classes/SplitView/SplitViewDelegate.h
|
1644
|
+
- platform/iphone/Classes/SplitView/SplitViewDelegate.m
|
1633
1645
|
- platform/iphone/Classes/TabbedMainView.h
|
1634
1646
|
- platform/iphone/Classes/TabbedMainView.m
|
1635
1647
|
- platform/iphone/Classes/Utils/ParamsWrapper.h
|