rhodes 3.2.0.beta.2 → 3.2.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/CHANGELOG +1 -0
  2. data/Manifest.txt +3 -0
  3. data/doc/build.txt +1 -1
  4. data/doc/device-caps.txt +4 -0
  5. data/doc/extensions.txt +3 -0
  6. data/doc/install.txt +3 -2
  7. data/lib/framework/date.rb +13 -0
  8. data/lib/framework/dateME.rb +2 -0
  9. data/lib/framework/rho/rhoapplication.rb +3 -1
  10. data/lib/framework/rho/rhoerror.rb +2 -2
  11. data/lib/framework/rho/rhomsg.rb +2 -2
  12. data/lib/framework/rholang/localization_simplified.rb +39 -13
  13. data/platform/bb/RubyVM/src/com/xruby/runtime/lang/RubyRuntime.java +2 -2
  14. data/platform/bb/rhodes/src/com/rho/rubyext/System.java +1 -1
  15. data/platform/iphone/Classes/Rhodes.m +1 -1
  16. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +8 -8
  17. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
  18. data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +39 -0
  19. data/platform/shared/RhoConnectClient/RhoConnectClient.h +2 -0
  20. data/platform/shared/curl/lib/config-mac.h +956 -0
  21. data/platform/shared/curl/lib/setup.h +1 -1
  22. data/platform/shared/curl/lib/ssluse.h +7 -0
  23. data/platform/shared/qt/RhoSimulator.pro +3 -0
  24. data/platform/shared/qt/curl/curl.pro +2 -1
  25. data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +6 -3
  26. data/platform/shared/qt/rhodes/impl/SSLImpl.cpp +69 -0
  27. data/platform/shared/qt/rhodes/impl/SSLImpl.h +49 -0
  28. data/platform/shared/qt/rhodes/rhodes.pro +4 -2
  29. data/platform/symbian/rhodes/rhodes.pro +3 -2
  30. data/platform/symbian/rholib/rholib.pro +6 -0
  31. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  32. data/rhodes.gemspec +1 -1
  33. metadata +7 -4
@@ -50,7 +50,7 @@
50
50
  # endif
51
51
  #endif
52
52
 
53
- #if defined(macintosh) && defined(__MRC__)
53
+ #if (defined(macintosh) && defined(__MRC__)) || defined(__APPLE__) || defined(__APPLE_CC__)
54
54
  # include "config-mac.h"
55
55
  #endif
56
56
 
@@ -28,6 +28,10 @@
28
28
  * This header should only be needed to get included by sslgen.c and ssluse.c
29
29
  */
30
30
 
31
+ #ifdef USE_RHOSSL
32
+ #include "rhossl.h"
33
+ #else
34
+
31
35
  #include "urldata.h"
32
36
  CURLcode Curl_ossl_connect(struct connectdata *conn, int sockindex);
33
37
  CURLcode Curl_ossl_connect_nonblocking(struct connectdata *conn,
@@ -69,7 +73,9 @@ ssize_t Curl_ossl_recv(struct connectdata *conn, /* connection data */
69
73
 
70
74
  size_t Curl_ossl_version(char *buffer, size_t size);
71
75
  int Curl_ossl_check_cxn(struct connectdata *cxn);
76
+ #endif // USE_RHOSSL
72
77
  int Curl_ossl_seed(struct SessionHandle *data);
78
+ #ifndef USE_RHOSSL
73
79
 
74
80
  int Curl_ossl_shutdown(struct connectdata *conn, int sockindex);
75
81
  bool Curl_ossl_data_pending(const struct connectdata *conn,
@@ -93,5 +99,6 @@ bool Curl_ossl_data_pending(const struct connectdata *conn,
93
99
  #define curlssl_check_cxn Curl_ossl_check_cxn
94
100
  #define curlssl_data_pending(x,y) Curl_ossl_data_pending(x,y)
95
101
 
102
+ #endif /* USE_RHOSSL */
96
103
  #endif /* USE_SSLEAY */
97
104
  #endif /* __SSLUSE_H */
@@ -3,5 +3,8 @@ SUBDIRS = rubylib rholib sqlite3 syncengine
3
3
  unix:!macx {
4
4
  # SUBDIRS += curl
5
5
  }
6
+ macx {
7
+ SUBDIRS += curl
8
+ }
6
9
  CONFIG += ordered
7
10
  SUBDIRS += rhodes
@@ -12,12 +12,13 @@ macx {
12
12
  DESTDIR = ../../../osx/bin/curl
13
13
  OBJECTS_DIR = ../../../osx/bin/curl/tmp
14
14
  DEFINES += USE_RHOSSL
15
+ HEADERS += ../../curl/lib/config-mac.h
15
16
  SOURCES += ../../curl/lib/http_ntlm.c\
16
17
  ../../curl/lib/qssl.c\
17
18
  ../../curl/lib/ssluse.c
18
19
  }
19
20
 
20
- unix {
21
+ unix:!macx {
21
22
  DESTDIR = ../../../linux/bin/curl
22
23
  OBJECTS_DIR = ../../../linux/bin/curl/tmp
23
24
  DEFINES += HAVE_CONFIG_H USE_RHOSSL
@@ -42,7 +42,7 @@
42
42
  #else
43
43
  #include "net/CURLNetRequest.h"
44
44
  #include "common/PosixThreadImpl.h"
45
- // #include "net/iphone/sslimpl.h"
45
+ #include "SSLImpl.h"
46
46
  #define CNETREQUESTIMPL new net::CURLNetRequest()
47
47
  #define CRHOTHREADIMPL new CPosixThreadImpl()
48
48
  #define CRHOCRYPTIMPL NULL
@@ -67,8 +67,11 @@ public:
67
67
 
68
68
  net::ISSL* createSSLEngine()
69
69
  {
70
- //TODO: createSSLEngine
71
- return NULL; // new net::SSLImpl();
70
+ #ifdef OS_WINDOWS
71
+ return NULL;
72
+ #else
73
+ return new net::SSLImpl();
74
+ #endif
72
75
  }
73
76
 
74
77
  IRhoCrypt* createRhoCrypt()
@@ -0,0 +1,69 @@
1
+ /*------------------------------------------------------------------------
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008-2011 Rhomobile, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ *
24
+ * http://rhomobile.com
25
+ *------------------------------------------------------------------------*/
26
+
27
+ #include "SSLImpl.h"
28
+
29
+ #import "logging/RhoLog.h"
30
+ #undef DEFAULT_LOGCATEGORY
31
+ #define DEFAULT_LOGCATEGORY "SSL"
32
+
33
+ namespace rho
34
+ {
35
+ namespace net
36
+ {
37
+
38
+ void * SSLImpl::createStorage()
39
+ {
40
+ return NULL;
41
+ }
42
+
43
+ void SSLImpl::freeStorage(void *ptr)
44
+ {
45
+ if (ptr)
46
+ free(ptr);
47
+ }
48
+
49
+ CURLcode SSLImpl::connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage)
50
+ {
51
+ return CURLE_OK;
52
+ }
53
+
54
+ void SSLImpl::shutdown(void *storage)
55
+ {
56
+ }
57
+
58
+ ssize_t SSLImpl::send(const void *mem, size_t len, void *storage)
59
+ {
60
+ return 0;
61
+ }
62
+
63
+ ssize_t SSLImpl::recv(char *buf, size_t size, int *wouldblock, void *storage)
64
+ {
65
+ return -1;
66
+ }
67
+
68
+ } // namespace net
69
+ } // namespace rho
@@ -0,0 +1,49 @@
1
+ /*------------------------------------------------------------------------
2
+ * (The MIT License)
3
+ *
4
+ * Copyright (c) 2008-2011 Rhomobile, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ *
24
+ * http://rhomobile.com
25
+ *------------------------------------------------------------------------*/
26
+
27
+ #pragma once
28
+
29
+ #include "net/ssl.h"
30
+
31
+ namespace rho
32
+ {
33
+ namespace net
34
+ {
35
+
36
+ class SSLImpl : public ISSL
37
+ {
38
+ public:
39
+ void *createStorage();
40
+ void freeStorage(void *ptr);
41
+
42
+ CURLcode connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage);
43
+ void shutdown(void *storage);
44
+ ssize_t send(const void *mem, size_t len, void *storage);
45
+ ssize_t recv(char *buf, size_t size, int *wouldblock, void *storage);
46
+ };
47
+
48
+ } // namespace net
49
+ } // namespace rho
@@ -16,8 +16,10 @@ macx {
16
16
  UI_DIR = ../../../osx/bin/RhoSimulator/generated_files
17
17
  OBJECTS_DIR = ../../../osx/bin/RhoSimulator/tmp
18
18
  RCC_DIR = ../../../osx/bin/RhoSimulator/resources
19
- LIBS += -lcurl
20
- # LIBS += -L../../../osx/bin/curl -lcurl
19
+ HEADERS += impl/SSLImpl.h
20
+ SOURCES += impl/SSLImpl.cpp
21
+ LIBS += -lcrypto -lssl -lz -lldap
22
+ LIBS += -L../../../osx/bin/curl -lcurl
21
23
  LIBS += -L../../../osx/bin/rubylib -lrubylib
22
24
  LIBS += -L../../../osx/bin/rholib -lrholib
23
25
  LIBS += -L../../../osx/bin/sqlite3 -lsqlite3
@@ -12,8 +12,8 @@ db.source = db
12
12
  lib.source = lib
13
13
  DEPLOYMENTFOLDERS = apps db lib
14
14
 
15
- symbian:TARGET = Yookos
16
- symbian:TARGET.UID3 = 0xE15AE169
15
+ symbian:TARGET = AgendaSalute
16
+ symbian:TARGET.UID3 = 3780829545
17
17
  #0xE17AE169
18
18
  #symbian:TARGET.UID3 = 0x20047C9A
19
19
  #0xA00100C8
@@ -64,6 +64,7 @@ SOURCES += ../../shared/qt/rhodes/QtWebInspector.cpp \
64
64
  ../../shared/qt/rhodes/impl/NativeTabbarImpl.cpp \
65
65
  ../../shared/qt/rhodes/impl/MapViewImpl.cpp \
66
66
  ../../shared/qt/rhodes/impl/MainWindowImpl.cpp \
67
+ ../../shared/qt/rhodes/impl/SSLImpl.cpp \
67
68
  ../../shared/qt/rhodes/impl/GeoLocationImpl.cpp \
68
69
  ../../shared/qt/rhodes/impl/DateTimePickerImpl.cpp \
69
70
  ../../shared/qt/rhodes/impl/CameraImpl.cpp \
@@ -32,8 +32,11 @@ SOURCES += \
32
32
  ../../shared/logging/RhoLogSink.cpp \
33
33
  ../../shared/logging/RhoLogConf.cpp \
34
34
  ../../shared/logging/RhoLog.cpp \
35
+ ../../shared/common/map/BaseMapEngine.cpp \
35
36
  ../../shared/common/map/MapEngine.cpp \
37
+ ../../shared/common/map/OSMMapEngine.cpp \
36
38
  ../../shared/common/map/GoogleMapEngine.cpp \
39
+ ../../shared/common/map/GeocodingMapEngine.cpp \
37
40
  ../../shared/common/map/ESRIMapEngine.cpp \
38
41
  ../../shared/net/URI.cpp \
39
42
  ../../shared/net/RawSocket.cpp \
@@ -79,8 +82,11 @@ HEADERS += \
79
82
  ../../shared/logging/RhoLogCat.h \
80
83
  ../../shared/logging/RhoLog.h \
81
84
  ../../shared/logging/RhoATLTrace.h \
85
+ ../../shared/common/map/BaseMapEngine.h \
82
86
  ../../shared/common/map/MapEngine.h \
87
+ ../../shared/common/map/OSMMapEngine.h \
83
88
  ../../shared/common/map/GoogleMapEngine.h \
89
+ ../../shared/common/map/GeocodingMapEngine.h \
84
90
  ../../shared/common/map/ESRIMapEngine.h \
85
91
  ../../shared/net/URI.h \
86
92
  ../../shared/net/RawSocket.h \
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 = "3.2.0.beta.2"
6
+ s.version = "3.2.0.beta.4"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Rhomobile"]
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: 62196455
4
+ hash: 62196459
5
5
  prerelease: true
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
9
  - 0
10
10
  - beta
11
- - 2
12
- version: 3.2.0.beta.2
11
+ - 4
12
+ version: 3.2.0.beta.4
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-10-05 00:00:00 -07:00
20
+ date: 2011-10-06 00:00:00 -07:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -2256,6 +2256,7 @@ files:
2256
2256
  - platform/shared/curl/lib/amigaos.c
2257
2257
  - platform/shared/curl/lib/arpa_telnet.h
2258
2258
  - platform/shared/curl/lib/base64.c
2259
+ - platform/shared/curl/lib/config-mac.h
2259
2260
  - platform/shared/curl/lib/config-symbian.h
2260
2261
  - platform/shared/curl/lib/config-win32.h
2261
2262
  - platform/shared/curl/lib/config-win32ce.h
@@ -2499,6 +2500,8 @@ files:
2499
2500
  - platform/shared/qt/rhodes/impl/RhoThreadImpl.h
2500
2501
  - platform/shared/qt/rhodes/impl/RingtoneManagerImpl.cpp
2501
2502
  - platform/shared/qt/rhodes/impl/SignatureImpl.cpp
2503
+ - platform/shared/qt/rhodes/impl/SSLImpl.cpp
2504
+ - platform/shared/qt/rhodes/impl/SSLImpl.h
2502
2505
  - platform/shared/qt/rhodes/impl/SystemImpl.cpp
2503
2506
  - platform/shared/qt/rhodes/impl/WebViewImpl.cpp
2504
2507
  - platform/shared/qt/rhodes/main.cpp