rhodes 3.2.0.beta.2 → 3.2.0.beta.4
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/CHANGELOG +1 -0
- data/Manifest.txt +3 -0
- data/doc/build.txt +1 -1
- data/doc/device-caps.txt +4 -0
- data/doc/extensions.txt +3 -0
- data/doc/install.txt +3 -2
- data/lib/framework/date.rb +13 -0
- data/lib/framework/dateME.rb +2 -0
- data/lib/framework/rho/rhoapplication.rb +3 -1
- data/lib/framework/rho/rhoerror.rb +2 -2
- data/lib/framework/rho/rhomsg.rb +2 -2
- data/lib/framework/rholang/localization_simplified.rb +39 -13
- data/platform/bb/RubyVM/src/com/xruby/runtime/lang/RubyRuntime.java +2 -2
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +1 -1
- data/platform/iphone/Classes/Rhodes.m +1 -1
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +8 -8
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
- data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +39 -0
- data/platform/shared/RhoConnectClient/RhoConnectClient.h +2 -0
- data/platform/shared/curl/lib/config-mac.h +956 -0
- data/platform/shared/curl/lib/setup.h +1 -1
- data/platform/shared/curl/lib/ssluse.h +7 -0
- data/platform/shared/qt/RhoSimulator.pro +3 -0
- data/platform/shared/qt/curl/curl.pro +2 -1
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +6 -3
- data/platform/shared/qt/rhodes/impl/SSLImpl.cpp +69 -0
- data/platform/shared/qt/rhodes/impl/SSLImpl.h +49 -0
- data/platform/shared/qt/rhodes/rhodes.pro +4 -2
- data/platform/symbian/rhodes/rhodes.pro +3 -2
- data/platform/symbian/rholib/rholib.pro +6 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/rhodes.gemspec +1 -1
- metadata +7 -4
@@ -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 */
|
@@ -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
|
-
|
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
|
-
|
71
|
-
return NULL;
|
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
|
-
|
20
|
-
|
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 =
|
16
|
-
symbian:TARGET.UID3 =
|
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 \
|
Binary file
|
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.
|
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:
|
4
|
+
hash: 62196459
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 3.2.0.beta.
|
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-
|
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
|