rhodes 2.2.0.beta.1 → 2.2.0.beta.2
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.
- data/lib/framework/rhom/rhom_db_adapter.rb +2 -2
- data/platform/android/Rhodes/gen/com/rhomobile/rhodes/Manifest.java +14 -0
- data/platform/android/build/android.rake +8 -10
- data/rhodes.gemspec +1 -1
- data/spec/phone_spec/app/spec/rhom_object_spec.rb +43 -0
- data/spec/phone_spec/app/spec_runner.rb +2 -1
- metadata +5 -4
@@ -216,7 +216,7 @@ class RhomDbAdapter
|
|
216
216
|
quests << ' ' << op << ' '
|
217
217
|
end
|
218
218
|
|
219
|
-
quests << "#{key}=?"
|
219
|
+
quests << "\"#{key}\"=?"
|
220
220
|
vals << val
|
221
221
|
end
|
222
222
|
|
@@ -327,7 +327,7 @@ class RhomDbAdapter
|
|
327
327
|
quests << ','
|
328
328
|
end
|
329
329
|
|
330
|
-
quests << "#{key}=?"
|
330
|
+
quests << "\"#{key}\"=?"
|
331
331
|
vals << val
|
332
332
|
end
|
333
333
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
|
2
|
+
*
|
3
|
+
* This class was automatically generated by the
|
4
|
+
* aapt tool from the resource data it found. It
|
5
|
+
* should not be modified by hand.
|
6
|
+
*/
|
7
|
+
|
8
|
+
package com.rhomobile.rhodes;
|
9
|
+
|
10
|
+
public final class Manifest {
|
11
|
+
public static final class permission {
|
12
|
+
public static final String C2D_MESSAGE="com.rhomobile.rhodes.permission.C2D_MESSAGE";
|
13
|
+
}
|
14
|
+
}
|
@@ -1286,14 +1286,13 @@ namespace "run" do
|
|
1286
1286
|
Thread.new {
|
1287
1287
|
sleep 1000
|
1288
1288
|
|
1289
|
-
if RUBY_PLATFORM =~ /
|
1290
|
-
# OS X:
|
1291
|
-
`killall -9 adb`
|
1292
|
-
`killall -9 emulator`
|
1293
|
-
else
|
1289
|
+
if RUBY_PLATFORM =~ /windows|cygwin|mingw/
|
1294
1290
|
# Windows
|
1295
1291
|
`taskkill /F /IM adb.exe`
|
1296
1292
|
`taskkill /F /IM emulator.exe`
|
1293
|
+
else
|
1294
|
+
`killall -9 adb`
|
1295
|
+
`killall -9 emulator`
|
1297
1296
|
end
|
1298
1297
|
}
|
1299
1298
|
|
@@ -1331,14 +1330,13 @@ namespace "run" do
|
|
1331
1330
|
Jake.process_spec_results(start)
|
1332
1331
|
|
1333
1332
|
# stop app
|
1334
|
-
if RUBY_PLATFORM =~ /
|
1335
|
-
# OS X:
|
1336
|
-
`killall -9 adb`
|
1337
|
-
`killall -9 emulator`
|
1338
|
-
else
|
1333
|
+
if RUBY_PLATFORM =~ /windows|cygwin|mingw/
|
1339
1334
|
# Windows
|
1340
1335
|
`taskkill /F /IM adb.exe`
|
1341
1336
|
`taskkill /F /IM emulator.exe`
|
1337
|
+
else
|
1338
|
+
`killall -9 adb`
|
1339
|
+
`killall -9 emulator`
|
1342
1340
|
end
|
1343
1341
|
|
1344
1342
|
$stdout.flush
|
data/rhodes.gemspec
CHANGED
@@ -3,7 +3,7 @@ require "lib/rhodes.rb"
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{rhodes}
|
6
|
-
s.version = '2.2.0.beta.
|
6
|
+
s.version = '2.2.0.beta.2'
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Rhomobile"]
|
@@ -433,9 +433,52 @@ describe "Rhom::RhomObject" do
|
|
433
433
|
|
434
434
|
item2.propOne.should == '1'
|
435
435
|
item2.TwoProps.should == '2'
|
436
|
+
|
437
|
+
new_attributes = {'propOne'=>'4', 'TwoProps'=>'3'}
|
438
|
+
item2.update_attributes(new_attributes)
|
439
|
+
|
440
|
+
item3 = getAccount.find(item.object)
|
441
|
+
item3.propOne.should == new_attributes['propOne']
|
442
|
+
item3.TwoProps.should == new_attributes['TwoProps']
|
443
|
+
end
|
444
|
+
|
445
|
+
it "should make new record diff case name" do
|
446
|
+
new_attributes = {'propOne'=>'1', 'TwoProps'=>'2'}
|
447
|
+
item = getAccount.new( new_attributes )
|
448
|
+
item.propOne.should == '1'
|
449
|
+
item.TwoProps.should == '2'
|
450
|
+
item.save
|
451
|
+
|
452
|
+
item2 = getAccount.find(item.object)
|
453
|
+
item.vars.should == item2.vars
|
454
|
+
|
455
|
+
item2.propOne.should == '1'
|
456
|
+
item2.TwoProps.should == '2'
|
457
|
+
|
458
|
+
item2.propOne = '3'
|
459
|
+
item2.TwoProps = '4'
|
460
|
+
item2.save
|
461
|
+
|
462
|
+
item3 = getAccount.find(item.object)
|
463
|
+
item3.propOne.should == item2.propOne
|
464
|
+
item3.TwoProps.should == item2.TwoProps
|
436
465
|
|
437
466
|
end
|
438
467
|
|
468
|
+
it "should update a record diff case name" do
|
469
|
+
new_attributes = {"name"=>"Mobio US"}
|
470
|
+
@account = getAccount.find("44e804f2-4933-4e20-271c-48fcecd9450d")
|
471
|
+
@account.update_attributes(new_attributes)
|
472
|
+
@new_acct = getAccount.find("44e804f2-4933-4e20-271c-48fcecd9450d")
|
473
|
+
@new_acct.name.should == "Mobio US"
|
474
|
+
@new_acct.industry.should == "Technology"
|
475
|
+
|
476
|
+
if $spec_settings[:sync_model]
|
477
|
+
records = ::Rho::RHO.get_user_db().select_from_table('changed_values','*', 'update_type' => 'update')
|
478
|
+
records.length.should == 1
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
439
482
|
it "should update a record with full mode" do
|
440
483
|
records = ::Rho::RHO.get_user_db().select_from_table('changed_values','*', 'update_type' => 'update')
|
441
484
|
records.length.should == 0
|
@@ -19,7 +19,8 @@ class SpecRunner < MSpecScript
|
|
19
19
|
{:schema_model=>false, :sync_model=>true}, {:schema_model=>false, :sync_model=>false} ] ]
|
20
20
|
|
21
21
|
config[:files] << "spec/contacts_spec" unless System.get_property('device_name') == 'Win32'
|
22
|
-
|
22
|
+
# Disable events specs on Android because emulator doesn't contain Calendar provider
|
23
|
+
config[:files] << "spec/events_spec" unless System.get_property('device_name') == 'Win32' or System.get_property('platform') == 'ANDROID'
|
23
24
|
|
24
25
|
config[:files] << "spec/barcode_spec" unless System.get_property('device_name') == 'Win32'
|
25
26
|
config[:files] << "spec/mapview_spec" unless System.get_property('platform') == 'WINDOWS'
|
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:
|
4
|
+
hash: 62196423
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 2.2.0.beta.
|
11
|
+
- 2
|
12
|
+
version: 2.2.0.beta.2
|
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: 2010-10-
|
20
|
+
date: 2010-10-14 00:00:00 -07:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -766,6 +766,7 @@ files:
|
|
766
766
|
- platform/android/build/RhodesGEN_build.files
|
767
767
|
- platform/android/build/RhodesSRC_build.files
|
768
768
|
- platform/android/Rhodes/AndroidManifest.xml
|
769
|
+
- platform/android/Rhodes/gen/com/rhomobile/rhodes/Manifest.java
|
769
770
|
- platform/android/Rhodes/gen/com/rhomobile/rhodes/R.java
|
770
771
|
- platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc
|
771
772
|
- platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_alert_Alert.h
|