rhodes 2.0.0.rc1 → 2.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +24 -17
- data/platform/android/build/android.rake +19 -1
- data/platform/bb/build/rhodes_build.files +1 -0
- data/platform/bb/rhodes/rhodes.jdp +1 -0
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +12 -0
- data/platform/iphone/Classes/GeoLocation/LocationController.h +1 -0
- data/platform/iphone/Classes/GeoLocation/LocationController.m +15 -7
- data/platform/iphone/Classes/Rhodes.m +6 -3
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +7 -4
- data/platform/iphone/Tests/Tests.xcodeproj/project.pbxproj +2 -2
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +7 -3
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +10 -3
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +5 -4
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +11 -7
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +10 -5
- data/platform/iphone/tcmalloc/tcmalloc.xcodeproj/project.pbxproj +6 -6
- data/platform/shared/common/RhoFile.cpp +0 -7
- data/platform/shared/common/RhoPort.h +9 -2
- data/platform/shared/common/RhodesApp.cpp +2 -2
- data/platform/shared/common/stat.h +6 -0
- data/platform/shared/curl/lib/setup_once.h +1 -1
- data/platform/shared/json/json_util.c +1 -1
- data/platform/shared/net/CompatWince.cpp +5 -3
- data/platform/shared/net/CompatWince.h +2 -2
- data/platform/shared/net/HttpServer.cpp +11 -3
- data/platform/shared/ruby/dir.c +3 -1
- data/platform/shared/ruby/dln.c +3 -1
- data/platform/shared/ruby/eval_intern.h +3 -1
- data/platform/shared/ruby/file.c +3 -1
- data/platform/shared/ruby/io.c +3 -1
- data/platform/shared/ruby/process.c +3 -1
- data/platform/shared/ruby/random.c +3 -1
- data/platform/shared/ruby/util.c +3 -1
- data/platform/shared/rubyJVM/src/com/rho/RhoConf.java +4 -3
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncEngine.java +14 -0
- data/platform/shared/sync/SyncEngine.cpp +13 -0
- data/platform/shared/sync/SyncEngine.h +1 -0
- data/platform/shared/unzip/unzip.cpp +3 -1
- data/res/generators/templates/application/rhoconfig.txt +3 -0
- data/rhodes.gemspec +1 -1
- data/spec/phone_spec/app/Spec/asynchttp_spec.rb +4 -2
- data/spec/phone_spec/app/Spec/controller.rb +2 -2
- data/spec/phone_spec/app/Spec/json_spec.rb +28 -0
- data/spec/phone_spec/app/Spec/rhofile_spec.rb +5 -5
- data/spec/phone_spec/build.yml +5 -2
- data/spec/phone_spec/rhoconfig.txt +5 -1
- metadata +4 -3
@@ -304,11 +304,13 @@
|
|
304
304
|
GCC_OPTIMIZATION_LEVEL = 0;
|
305
305
|
HEADER_SEARCH_PATHS = ../../shared;
|
306
306
|
INSTALL_PATH = /usr/local/lib;
|
307
|
+
ONLY_ACTIVE_ARCH = YES;
|
307
308
|
OTHER_CPLUSPLUSFLAGS = (
|
308
309
|
"$(OTHER_CFLAGS)",
|
309
310
|
"-fvisibility=hidden",
|
310
311
|
);
|
311
312
|
PRODUCT_NAME = rhosynclib;
|
313
|
+
SDKROOT = iphonesimulator3.2;
|
312
314
|
};
|
313
315
|
name = Debug;
|
314
316
|
};
|
@@ -326,7 +328,7 @@
|
|
326
328
|
"-fvisibility=hidden",
|
327
329
|
);
|
328
330
|
PRODUCT_NAME = rhosynclib;
|
329
|
-
SDKROOT =
|
331
|
+
SDKROOT = iphoneos3.2;
|
330
332
|
};
|
331
333
|
name = Release;
|
332
334
|
};
|
@@ -338,9 +340,10 @@
|
|
338
340
|
GCC_OPTIMIZATION_LEVEL = 0;
|
339
341
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
340
342
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
343
|
+
HEADER_SEARCH_PATHS = ../../shared;
|
341
344
|
ONLY_ACTIVE_ARCH = YES;
|
342
345
|
PREBINDING = NO;
|
343
|
-
SDKROOT = iphonesimulator3.
|
346
|
+
SDKROOT = iphonesimulator3.2;
|
344
347
|
SYMROOT = ../build;
|
345
348
|
};
|
346
349
|
name = Debug;
|
@@ -352,9 +355,10 @@
|
|
352
355
|
GCC_C_LANGUAGE_STANDARD = c99;
|
353
356
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
354
357
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
358
|
+
HEADER_SEARCH_PATHS = ../../shared;
|
355
359
|
ONLY_ACTIVE_ARCH = YES;
|
356
360
|
PREBINDING = NO;
|
357
|
-
SDKROOT =
|
361
|
+
SDKROOT = iphoneos3.2;
|
358
362
|
SYMROOT = ../build;
|
359
363
|
};
|
360
364
|
name = Release;
|
@@ -366,9 +370,10 @@
|
|
366
370
|
GCC_C_LANGUAGE_STANDARD = c99;
|
367
371
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
368
372
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
373
|
+
HEADER_SEARCH_PATHS = ../../shared;
|
369
374
|
ONLY_ACTIVE_ARCH = YES;
|
370
375
|
PREBINDING = NO;
|
371
|
-
SDKROOT =
|
376
|
+
SDKROOT = iphoneos3.2;
|
372
377
|
SYMROOT = ../build;
|
373
378
|
};
|
374
379
|
name = Distribution;
|
@@ -387,7 +392,7 @@
|
|
387
392
|
"-fvisibility=hidden",
|
388
393
|
);
|
389
394
|
PRODUCT_NAME = rhosynclib;
|
390
|
-
SDKROOT =
|
395
|
+
SDKROOT = iphoneos3.2;
|
391
396
|
};
|
392
397
|
name = Distribution;
|
393
398
|
};
|
@@ -287,7 +287,7 @@
|
|
287
287
|
INSTALL_PATH = /usr/local/lib;
|
288
288
|
ONLY_ACTIVE_ARCH = YES;
|
289
289
|
PRODUCT_NAME = tcmalloc;
|
290
|
-
SDKROOT =
|
290
|
+
SDKROOT = iphoneos3.2;
|
291
291
|
SYMROOT = ../build;
|
292
292
|
};
|
293
293
|
name = Debug;
|
@@ -306,7 +306,7 @@
|
|
306
306
|
INSTALL_PATH = /usr/local/lib;
|
307
307
|
ONLY_ACTIVE_ARCH = YES;
|
308
308
|
PRODUCT_NAME = tcmalloc;
|
309
|
-
SDKROOT =
|
309
|
+
SDKROOT = iphoneos3.2;
|
310
310
|
SYMROOT = ../build;
|
311
311
|
};
|
312
312
|
name = Release;
|
@@ -321,7 +321,7 @@
|
|
321
321
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
322
322
|
ONLY_ACTIVE_ARCH = YES;
|
323
323
|
PREBINDING = NO;
|
324
|
-
SDKROOT = iphonesimulator3.
|
324
|
+
SDKROOT = iphonesimulator3.2;
|
325
325
|
};
|
326
326
|
name = Debug;
|
327
327
|
};
|
@@ -334,7 +334,7 @@
|
|
334
334
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
335
335
|
ONLY_ACTIVE_ARCH = YES;
|
336
336
|
PREBINDING = NO;
|
337
|
-
SDKROOT =
|
337
|
+
SDKROOT = iphoneos3.2;
|
338
338
|
};
|
339
339
|
name = Release;
|
340
340
|
};
|
@@ -347,7 +347,7 @@
|
|
347
347
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
348
348
|
ONLY_ACTIVE_ARCH = YES;
|
349
349
|
PREBINDING = NO;
|
350
|
-
SDKROOT =
|
350
|
+
SDKROOT = iphoneos3.2;
|
351
351
|
};
|
352
352
|
name = Distribution;
|
353
353
|
};
|
@@ -365,7 +365,7 @@
|
|
365
365
|
INSTALL_PATH = /usr/local/lib;
|
366
366
|
ONLY_ACTIVE_ARCH = YES;
|
367
367
|
PRODUCT_NAME = tcmalloc;
|
368
|
-
SDKROOT =
|
368
|
+
SDKROOT = iphoneos3.2;
|
369
369
|
SYMROOT = ../build;
|
370
370
|
};
|
371
371
|
name = Distribution;
|
@@ -8,6 +8,13 @@
|
|
8
8
|
#include <windows.h>
|
9
9
|
#include <time.h>
|
10
10
|
|
11
|
+
#if defined(OS_WINCE)
|
12
|
+
#include "ruby/wince/sys/types.h"
|
13
|
+
#include "ruby/wince/sys/stat.h"
|
14
|
+
#else
|
15
|
+
#include <sys/stat.h>
|
16
|
+
#endif
|
17
|
+
|
11
18
|
#define LOG_NEWLINE "\r\n"
|
12
19
|
#define LOG_NEWLINELEN 2
|
13
20
|
|
@@ -39,6 +46,7 @@ typedef unsigned __int64 uint64;
|
|
39
46
|
# include <string.h>
|
40
47
|
# include <pthread.h>
|
41
48
|
# include <fcntl.h>
|
49
|
+
# include <common/stat.h>
|
42
50
|
|
43
51
|
#undef ASSERT
|
44
52
|
#define ASSERT RHO_ASSERT
|
@@ -73,6 +81,5 @@ char* str_assign(char* data);
|
|
73
81
|
#ifdef __cplusplus
|
74
82
|
}
|
75
83
|
#endif
|
76
|
-
|
77
|
-
|
84
|
+
|
78
85
|
#endif //_RHOPORT_H_
|
@@ -539,7 +539,7 @@ String CRhodesApp::canonicalizeRhoUrl(const String& strUrl)
|
|
539
539
|
boolean CRhodesApp::sendLog()
|
540
540
|
{
|
541
541
|
String strDevicePin = rho::sync::CClientRegister::getInstance() ? rho::sync::CClientRegister::getInstance()->getDevicePin() : "";
|
542
|
-
String strClientID = rho::sync::CSyncThread::getSyncEngine().
|
542
|
+
String strClientID = rho::sync::CSyncThread::getSyncEngine().readClientID();
|
543
543
|
|
544
544
|
String strLogUrl = RHOCONF().getPath("logserver");
|
545
545
|
if ( strLogUrl.length() == 0 )
|
@@ -559,7 +559,7 @@ boolean CRhodesApp::sendLog()
|
|
559
559
|
|
560
560
|
if ( !resp.isOK() )
|
561
561
|
{
|
562
|
-
LOG(ERROR) + "send_log failed : network error";
|
562
|
+
LOG(ERROR) + "send_log failed : network error - " + resp.getRespCode() + "; Body - " + resp.getCharData();
|
563
563
|
return false;
|
564
564
|
}
|
565
565
|
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
//#include <windows.h>
|
2
|
+
//#include <time.h>
|
3
|
+
#include "common/RhoPort.h"
|
3
4
|
#include "CompatWince.h"
|
4
5
|
|
5
6
|
#ifdef _WIN32_WCE
|
@@ -284,7 +285,7 @@ static FILETIME *Convert_tm_To_FILETIME(struct tm *tm)
|
|
284
285
|
SystemTimeToFileTime(&System_Time, &File_Time);
|
285
286
|
return(&File_Time);
|
286
287
|
}
|
287
|
-
|
288
|
+
#if 0
|
288
289
|
int
|
289
290
|
_wstat(const WCHAR *path, struct stat *buffer)
|
290
291
|
{
|
@@ -364,6 +365,7 @@ int stat(const char *path, struct stat *st)
|
|
364
365
|
|
365
366
|
return (_wstat(wbuf, (struct stat *) st));
|
366
367
|
}
|
368
|
+
#endif //0
|
367
369
|
|
368
370
|
/*** strftime() from newlib libc/time/strftime.c ***/
|
369
371
|
|
@@ -20,7 +20,7 @@ void __WinCE_Errno_Thread_Exit(void);
|
|
20
20
|
extern int *(*__WinCE_Errno_Pointer_Function)(void);
|
21
21
|
|
22
22
|
#define errno (*(*__WinCE_Errno_Pointer_Function)())
|
23
|
-
|
23
|
+
/*
|
24
24
|
struct stat {
|
25
25
|
unsigned long st_size;
|
26
26
|
unsigned long st_ino;
|
@@ -34,7 +34,7 @@ struct stat {
|
|
34
34
|
unsigned short st_gid;
|
35
35
|
};
|
36
36
|
|
37
|
-
int stat(const char *path, struct stat *st);
|
37
|
+
int stat(const char *path, struct stat *st); */
|
38
38
|
|
39
39
|
#define _S_IFMT 0170000
|
40
40
|
#define _S_IFDIR 0040000
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#include <algorithm>
|
7
7
|
|
8
8
|
#if !defined(OS_WINCE)
|
9
|
-
#include <
|
9
|
+
#include <common/stat.h>
|
10
10
|
#else
|
11
11
|
#include "CompatWince.h"
|
12
12
|
|
@@ -706,7 +706,11 @@ bool CHttpServer::parse_startline(String const &line, String &method, String &ur
|
|
706
706
|
if (*e != '\0')
|
707
707
|
query.assign(s, e);
|
708
708
|
}
|
709
|
-
|
709
|
+
|
710
|
+
const char* frag = strrchr(uri.c_str(), '#');
|
711
|
+
if (frag)
|
712
|
+
uri = uri.substr(0, frag-uri.c_str());
|
713
|
+
|
710
714
|
return true;
|
711
715
|
}
|
712
716
|
|
@@ -758,7 +762,7 @@ bool CHttpServer::parse_route(String const &line, Route &route)
|
|
758
762
|
|
759
763
|
if (*s == '/')
|
760
764
|
++s;
|
761
|
-
|
765
|
+
|
762
766
|
String aoi(actionorid_begin, actionorid_end);
|
763
767
|
if (isid(aoi)) {
|
764
768
|
route.id = aoi;
|
@@ -769,6 +773,10 @@ bool CHttpServer::parse_route(String const &line, Route &route)
|
|
769
773
|
route.action = aoi;
|
770
774
|
}
|
771
775
|
|
776
|
+
//const char* frag = strrchr(route.action.c_str(), '#');
|
777
|
+
//if (frag)
|
778
|
+
// route.action = route.action.substr(0, frag-route.action.c_str());
|
779
|
+
|
772
780
|
return true;
|
773
781
|
}
|
774
782
|
|
data/platform/shared/ruby/dir.c
CHANGED
data/platform/shared/ruby/dln.c
CHANGED
@@ -97,7 +97,9 @@ NORETURN(void _longjmp(jmp_buf, int));
|
|
97
97
|
#include <sys/param.h>
|
98
98
|
#endif
|
99
99
|
|
100
|
-
|
100
|
+
/* RHO BEGIN */
|
101
|
+
#include <common/stat.h>
|
102
|
+
/* RHO END */
|
101
103
|
|
102
104
|
#define SAVE_ROOT_JMPBUF(th, stmt) do \
|
103
105
|
if (ruby_setjmp((th)->root_jmpbuf) == 0) { \
|
data/platform/shared/ruby/file.c
CHANGED
data/platform/shared/ruby/io.c
CHANGED
data/platform/shared/ruby/util.c
CHANGED
@@ -269,10 +269,10 @@ public class RhoConf {
|
|
269
269
|
}
|
270
270
|
|
271
271
|
try{
|
272
|
-
strClientID = com.rho.sync.SyncThread.getSyncEngine().
|
272
|
+
strClientID = com.rho.sync.SyncThread.getSyncEngine().readClientID();
|
273
273
|
}catch(Exception exc)
|
274
274
|
{
|
275
|
-
LOG.ERROR("send_log:
|
275
|
+
LOG.ERROR("send_log:readClientID failed", exc);
|
276
276
|
}
|
277
277
|
|
278
278
|
String strLogUrl = RhoConf.getInstance().getPath("logserver");
|
@@ -300,7 +300,8 @@ public class RhoConf {
|
|
300
300
|
|
301
301
|
if ( resp == null || !resp.isOK() )
|
302
302
|
{
|
303
|
-
|
303
|
+
LOG.ERROR("send_log failed : network error - " + resp.getRespCode() + "; Body - " + resp.getCharData());
|
304
|
+
|
304
305
|
return false;
|
305
306
|
}
|
306
307
|
|
@@ -434,6 +434,20 @@ public class SyncEngine implements NetRequest.IRhoSession
|
|
434
434
|
}
|
435
435
|
}
|
436
436
|
|
437
|
+
public String readClientID()throws Exception
|
438
|
+
{
|
439
|
+
String clientID = "";
|
440
|
+
|
441
|
+
synchronized( m_mxLoadClientID )
|
442
|
+
{
|
443
|
+
IDBResult res = getUserDB().executeSQL("SELECT client_id,reset from client_info");
|
444
|
+
if ( !res.isEnd() )
|
445
|
+
clientID = res.getStringByIdx(0);
|
446
|
+
}
|
447
|
+
|
448
|
+
return clientID;
|
449
|
+
}
|
450
|
+
|
437
451
|
public String loadClientID()throws Exception
|
438
452
|
{
|
439
453
|
String clientID = "";
|
@@ -320,6 +320,19 @@ void CSyncEngine::loadAllSources()
|
|
320
320
|
}
|
321
321
|
}
|
322
322
|
|
323
|
+
String CSyncEngine::readClientID()
|
324
|
+
{
|
325
|
+
String clientID = "";
|
326
|
+
synchronized(m_mxLoadClientID)
|
327
|
+
{
|
328
|
+
DBResult( res, getUserDB().executeSQL("SELECT client_id,reset from client_info limit 1") );
|
329
|
+
if ( !res.isEnd() )
|
330
|
+
clientID = res.getStringByIdx(0);
|
331
|
+
}
|
332
|
+
|
333
|
+
return clientID;
|
334
|
+
}
|
335
|
+
|
323
336
|
String CSyncEngine::loadClientID()
|
324
337
|
{
|
325
338
|
String clientID = "";
|
@@ -88,6 +88,7 @@ public:
|
|
88
88
|
VectorPtr<CSyncSource*>& getSources(){ return m_sources; }
|
89
89
|
int getStartSource();
|
90
90
|
String loadClientID();
|
91
|
+
String readClientID();
|
91
92
|
String requestClientIDByNet();
|
92
93
|
boolean resetClientIDByNet(const String& strClientID);//throws Exception
|
93
94
|
void doBulkSync();//throws Exception
|
@@ -21,3 +21,6 @@ LastVisitedPage = ''
|
|
21
21
|
# Sync server url. Typically this will look like 'http://<hostname>:<port>/application'
|
22
22
|
# For example: 'http://localhost:9292/application'
|
23
23
|
syncserver = '<%=syncserver%>'
|
24
|
+
|
25
|
+
logserver = 'http://rhologs.heroku.com'
|
26
|
+
logname='<%=@app_name%>'
|
data/rhodes.gemspec
CHANGED
@@ -62,7 +62,9 @@ class AsyncHttpTest
|
|
62
62
|
Test_equal(File.exists?(file_name), true)
|
63
63
|
=end
|
64
64
|
end
|
65
|
-
|
65
|
+
|
66
|
+
# TODO: Fix this test!
|
67
|
+
=begin
|
66
68
|
def httpsget_test
|
67
69
|
return unless $is_network_available
|
68
70
|
|
@@ -81,7 +83,7 @@ class AsyncHttpTest
|
|
81
83
|
end
|
82
84
|
|
83
85
|
end
|
84
|
-
|
86
|
+
=end
|
85
87
|
def clear
|
86
88
|
file_name = File.join(Rho::RhoApplication::get_base_app_path(), 'test.jpg')
|
87
89
|
File.delete(file_name) if File.exists?(file_name)
|
@@ -44,8 +44,8 @@ class SpecController < Rho::RhoController
|
|
44
44
|
testObj.send meth
|
45
45
|
rescue Exception => e
|
46
46
|
@exc_count += 1
|
47
|
-
puts "
|
48
|
-
|
47
|
+
puts "FAIL: '#{name}:#{meth}' failed: Error: #{e}\n" +
|
48
|
+
"#{e.backtrace[1]}" if e.backtrace && e.backtrace.length > 0
|
49
49
|
#e.backtrace.each do |item|
|
50
50
|
# puts item
|
51
51
|
#end
|
@@ -69,6 +69,34 @@ class JsonTest
|
|
69
69
|
|
70
70
|
end
|
71
71
|
|
72
|
+
=begin
|
73
|
+
def webservice2_test
|
74
|
+
return unless $is_network_available
|
75
|
+
|
76
|
+
res = Rho::AsyncHttp.get( :url => 'http://www.glutenfreechecklist.com/Mob_API/GetCat_MnfsList.aspx?checkListId=17&CategoryID=0&ManfName=&startindex=1&endindex=10' )
|
77
|
+
puts "res : #{res}"
|
78
|
+
Test_equal(res['status'],'ok')
|
79
|
+
|
80
|
+
parsed = res['body']
|
81
|
+
Test_equal( parsed.is_a?(Hash), true )
|
82
|
+
Test_equal( parsed["Manufacturer List"].is_a?(Array), true )
|
83
|
+
|
84
|
+
manf = parsed["Manufacturer List"][10]["Manufacturer"]
|
85
|
+
puts "manf : #{manf}"
|
86
|
+
|
87
|
+
url2 = "http://www.glutenfreechecklist.com/Mob_API/GetCat_MnfsList.aspx?checkListId=17&CategoryID=0&ManfName=" +
|
88
|
+
Rho::RhoSupport.url_encode(manf) + "&startindex=1&endindex=10"
|
89
|
+
|
90
|
+
res = Rho::AsyncHttp.get( :url => url2 )
|
91
|
+
puts "res : #{res}"
|
92
|
+
Test_equal(res['status'],'ok')
|
93
|
+
|
94
|
+
parsed = res['body']
|
95
|
+
Test_equal( parsed.is_a?(Hash), true )
|
96
|
+
Test_equal( parsed["Manufacturer List"].is_a?(Array), true )
|
97
|
+
|
98
|
+
end
|
99
|
+
=end
|
72
100
|
def clear
|
73
101
|
end
|
74
102
|
end
|
@@ -39,10 +39,10 @@ class RhoFileTest
|
|
39
39
|
files = Dir.entries(dir_name)
|
40
40
|
#puts "files: #{files}"
|
41
41
|
dd = files.size - 2 #skip . and ..
|
42
|
-
if dd ==
|
42
|
+
if dd == 2
|
43
43
|
return "limit"
|
44
44
|
else
|
45
|
-
# if less than
|
45
|
+
# if less than 2, save record of file in model Save, open a new file, write content to file.
|
46
46
|
content = "TEST cache"
|
47
47
|
content = File.new("#{f}", "w")
|
48
48
|
content.write(content)
|
@@ -57,7 +57,7 @@ class RhoFileTest
|
|
57
57
|
dir_name = Rho::RhoApplication::get_model_path('app', 'cache')
|
58
58
|
Dir.mkdir(dir_name) unless Dir.exists?(dir_name)
|
59
59
|
|
60
|
-
(1..
|
60
|
+
(1..2).each do |n|
|
61
61
|
res = create_file_in_cache(dir_name, "cache_test", n.to_s())
|
62
62
|
Test_equal( res, "saved" )
|
63
63
|
end
|
@@ -65,13 +65,13 @@ class RhoFileTest
|
|
65
65
|
res = create_file_in_cache(dir_name, "cache_test", "1")
|
66
66
|
Test_equal( res, "exist" )
|
67
67
|
|
68
|
-
res = create_file_in_cache(dir_name, "cache_test", "
|
68
|
+
res = create_file_in_cache(dir_name, "cache_test", "3")
|
69
69
|
Test_equal( res, "limit" )
|
70
70
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def clear
|
74
|
-
(1..
|
74
|
+
(1..2).each do |n|
|
75
75
|
file_name = File.join(Rho::RhoApplication::get_model_path('app', 'cache'), "cache_test"+ n.to_s())
|
76
76
|
File.delete(file_name) if File.exists?(file_name)
|
77
77
|
end
|
data/spec/phone_spec/build.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
name: phone_spec
|
3
|
-
bbver:
|
3
|
+
bbver: 5.1
|
4
4
|
sdk: /Users/crystax/work/rhomobile/rhodes
|
5
5
|
applog: rholog.txt
|
6
6
|
version: 1.0.0
|
@@ -17,5 +17,8 @@ android:
|
|
17
17
|
capabilities:
|
18
18
|
- network_state
|
19
19
|
- pim
|
20
|
-
|
20
|
+
|
21
|
+
capabilities:
|
22
|
+
- push
|
23
|
+
|
21
24
|
extensions: ["json", "rhoxml"]
|
@@ -23,4 +23,8 @@ sync_poll_interval=0
|
|
23
23
|
#syncserver = 'http://192.168.0.185:9292/apps/framework_spec/sources'
|
24
24
|
#syncserver = 'http://dev.rhosync.rhohub.com/apps/Store/sources/'
|
25
25
|
#syncserver = 'http://rhosyncnew.staging.rhohub.com/apps/store_server'
|
26
|
-
syncserver = 'http://rhosyncnew.staging.rhohub.com/application'
|
26
|
+
syncserver = 'http://rhosyncnew.staging.rhohub.com/application'
|
27
|
+
|
28
|
+
activate_at_startup = 1
|
29
|
+
logserver = 'http://rhologs.heroku.com'
|
30
|
+
logname=phone_spec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhodes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 977940591
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.0.0.
|
10
|
+
- rc2
|
11
|
+
version: 2.0.0.rc2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Rhomobile
|
@@ -925,6 +925,7 @@ files:
|
|
925
925
|
- platform/shared/common/RhoTime.h
|
926
926
|
- platform/shared/common/SplashScreen.cpp
|
927
927
|
- platform/shared/common/SplashScreen.h
|
928
|
+
- platform/shared/common/stat.h
|
928
929
|
- platform/shared/common/StringConverter.h
|
929
930
|
- platform/shared/common/ThreadQueue.cpp
|
930
931
|
- platform/shared/common/ThreadQueue.h
|