rhodes 2.2.5 → 2.2.6.beta.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/rhodes CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  # First iteration, just alias rhogen
4
- system("#{File.expand_path(File.dirname(__FILE__))}/rhogen #{ARGV.join(' ')}")
4
+ system("rhogen #{ARGV.join(' ')}")
data/bin/rhodes.bat CHANGED
@@ -1 +1 @@
1
- @ruby %~dp0rhogen %*
1
+ @ruby %~dp0rhodes %*
@@ -447,7 +447,12 @@ module Rho
447
447
  start_id = src_id if src_id > start_id
448
448
  end
449
449
 
450
- start_id = Rho::RhoConfig.max_config_srcid()+2 if start_id < Rho::RhoConfig.max_config_srcid
450
+ if start_id < Rho::RhoConfig.max_config_srcid
451
+ start_id = Rho::RhoConfig.max_config_srcid()+2
452
+ else
453
+ start_id += 1
454
+ end
455
+
451
456
  puts "start_id: #{start_id}"
452
457
  start_id
453
458
  end
@@ -1,6 +1,6 @@
1
1
  module Rhodes
2
2
  unless defined? Rhodes::VERSION
3
- VERSION = '2.2.5'
3
+ VERSION = '2.2.6'
4
4
  end
5
5
  unless defined? Rhodes::DBVERSION
6
6
  DBVERSION = '2.2.0'
@@ -1,6 +1,6 @@
1
1
  module RhodesFramework
2
2
  unless defined? RhodesFramework::VERSION
3
- VERSION = '2.2.5'
3
+ VERSION = '2.2.6'
4
4
  end
5
5
  unless defined? RhodesFramework::DBVERSION
6
6
  DBVERSION = '2.2.2'
data/lib/rhodes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Rhodes
2
2
  unless defined? Rhodes::VERSION
3
- VERSION = '2.2.5'
3
+ VERSION = '2.2.6'
4
4
  end
5
5
  unless defined? Rhodes::DBVERSION
6
6
  DBVERSION = '2.2.0'
@@ -2,8 +2,8 @@
2
2
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
3
  package="com.rhomobile.rhodes"
4
4
  android:installLocation="auto"
5
- android:versionCode="26"
6
- android:versionName="2.2.5">
5
+ android:versionCode="27"
6
+ android:versionName="2.2.6">
7
7
  <uses-sdk android:minSdkVersion="3" />
8
8
  <application android:icon="@drawable/icon"
9
9
  android:multiprocess="true"
@@ -38,7 +38,7 @@
38
38
  <key>CFBundleSignature</key>
39
39
  <string>????</string>
40
40
  <key>CFBundleVersion</key>
41
- <string>2.2.5</string>
41
+ <string>2.2.6</string>
42
42
  <key>LSRequiresIPhoneOS</key>
43
43
  <true/>
44
44
  <key>UILaunchImageFile</key>
@@ -389,6 +389,7 @@ struct json_object* rjson_tokener_parse_ex(struct json_tokener *tok,
389
389
  break;
390
390
 
391
391
  case json_tokener_state_escape_unicode:
392
+ c = tolower(c);
392
393
  if(strchr(json_hex_chars, c)) {
393
394
  tok->ucs_char += ((unsigned int)hexdigit(c) << ((3-tok->st_pos++)*4));
394
395
  if(tok->st_pos == 4) {
@@ -346,6 +346,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
346
346
  break;
347
347
 
348
348
  case json_tokener_state_escape_unicode:
349
+ c = tolower(c);
349
350
  if(strchr(json_hex_chars, c)) {
350
351
  tok->ucs_char += ((unsigned int)hexdigit(c) << ((3-tok->st_pos++)*4));
351
352
  if(tok->st_pos == 4) {
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 = Rhodes::VERSION
6
+ s.version = '2.2.6.beta.1'
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Rhomobile"]
@@ -0,0 +1 @@
1
+ {"source":"\u003Ca href=\"http:\/\/www.hootsuite.com\" rel=\"nofollow \"\u003EHootSuite\u003C\/a\u003E", "zendesk" : "Hello, Anglais =\u003E", "zendesk2" : "Hello, Anglais =\u003e"}
@@ -1,4 +1,16 @@
1
1
  describe "Json" do
2
+ it "should parse unicode chars" do
3
+ file_name = File.join(Rho::RhoApplication::get_model_path('app','Data'), 'test_unicode.json')
4
+ content = File.read(file_name)
5
+ parsed = Rho::JSON.parse(content)
6
+
7
+ parsed.is_a?(Hash).should == true
8
+ parsed.length().should == 3
9
+ parsed['source'].should_not be_nil
10
+ parsed['zendesk'].should_not be_nil
11
+ parsed['zendesk2'].should_not be_nil
12
+ end
13
+
2
14
  it "should parse" do
3
15
  file_name = File.join(Rho::RhoApplication::get_model_path('app','Data'), 'test.json')
4
16
  content = File.read(file_name)
@@ -102,7 +114,7 @@ describe "Json" do
102
114
  gen_content.should == "{\"source_id\":#{prod.source_id},\"object\":\"#{prod.object}\",\"test\":\"123\"}"
103
115
 
104
116
  end
105
-
117
+
106
118
  =begin
107
119
  def webservice2_test
108
120
  return unless $is_network_available
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: 13
5
- prerelease: false
4
+ hash: 62196465
5
+ prerelease: true
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 5
10
- version: 2.2.5
9
+ - 6
10
+ - beta
11
+ - 1
12
+ version: 2.2.6.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-12-09 00:00:00 -08:00
20
+ date: 2010-12-15 00:00:00 -08:00
19
21
  default_executable:
20
22
  dependencies:
21
23
  - !ruby/object:Gem::Dependency
@@ -750,6 +752,7 @@ files:
750
752
  - lib/test/rho_stubs.rb
751
753
  - lib/test/syncdb.sqlite
752
754
  - LICENSE
755
+ - Manifest.txt
753
756
  - platform/android/build/android.rake
754
757
  - platform/android/build/androidcommon.rb
755
758
  - platform/android/build/libcurl_build.files
@@ -5755,6 +5758,7 @@ files:
5755
5758
  - spec/phone_spec/app/Data/test.xml
5756
5759
  - spec/phone_spec/app/Data/test1.xml
5757
5760
  - spec/phone_spec/app/Data/test_log.txt
5761
+ - spec/phone_spec/app/Data/test_unicode.json
5758
5762
  - spec/phone_spec/app/Data/testCDATA.xml
5759
5763
  - spec/phone_spec/app/index.erb
5760
5764
  - spec/phone_spec/app/loading.html