RubyApp 0.7.12 → 0.7.13
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.
@@ -48,6 +48,7 @@
|
|
48
48
|
};
|
49
49
|
now = null;
|
50
50
|
this.sendEvent = function(event, wait) {
|
51
|
+
var _start = new Date();
|
51
52
|
// RubyApp.log('ENQUEUE event.class=' + event._class);
|
52
53
|
event.now = RubyApp.now == undefined ? new Date().toString() : RubyApp.now;
|
53
54
|
event.session = RubyApp.getData('session', null);
|
@@ -63,10 +64,12 @@
|
|
63
64
|
// RubyApp.log('EVAL ' + statement)
|
64
65
|
eval(statement);
|
65
66
|
} );
|
66
|
-
|
67
|
+
var _stop = new Date();
|
68
|
+
RubyApp.log('SUCCESS ' + event._class + ' ' + ((_stop - _start) / 1000) + 's');
|
67
69
|
} )
|
68
70
|
.error( function(request, message, exception) {
|
69
|
-
|
71
|
+
var _stop = new Date();
|
72
|
+
RubyApp.log('ERROR ' + event._class + ' ' + message + ' ' + ((_stop - _start) / 1000) + 's');
|
70
73
|
RubyApp.confirmRefreshBrowser(RubyApp.getData('error_message', null));
|
71
74
|
} )
|
72
75
|
.complete( function() {
|
@@ -81,6 +84,7 @@
|
|
81
84
|
$.mobile.changePage($('#' + id), options);
|
82
85
|
else
|
83
86
|
{
|
87
|
+
var _start = new Date();
|
84
88
|
// RubyApp.log('ENQUEUE RubyApp.showPage("' + id + '", ...)');
|
85
89
|
RubyApp.enQueue ( function() {
|
86
90
|
RubyApp.showWait();
|
@@ -90,10 +94,12 @@
|
|
90
94
|
.success( function(content) {
|
91
95
|
$('body').prepend(content);
|
92
96
|
$.mobile.changePage($('#' + id), options);
|
93
|
-
|
97
|
+
var _stop = new Date();
|
98
|
+
RubyApp.log('SUCCESS RubyApp.showPage("' + id + '", ...) ' + ((_stop - _start) / 1000) + 's');
|
94
99
|
} )
|
95
100
|
.error( function(request, message, exception) {
|
96
|
-
|
101
|
+
var _stop = new Date();
|
102
|
+
RubyApp.log('ERROR RubyApp.showPage("' + id + '", ...) ' + message + ' ' + ((_stop - _start) / 1000) + 's');
|
97
103
|
RubyApp.confirmRefreshBrowser(RubyApp.getData('error_message', null));
|
98
104
|
} )
|
99
105
|
.complete( function() {
|
@@ -107,6 +113,7 @@
|
|
107
113
|
$('#' + id).remove();
|
108
114
|
};
|
109
115
|
this.updateElement = function(id) {
|
116
|
+
var _start = new Date();
|
110
117
|
// RubyApp.log('ENQUEUE RubyApp.updateElement("' + id + '")');
|
111
118
|
RubyApp.enQueue ( function() {
|
112
119
|
RubyApp.showWait();
|
@@ -120,10 +127,12 @@
|
|
120
127
|
$('form.ui-listview-filter input').each( function() {
|
121
128
|
$(this).val($(this).parents('form.ui-listview-filter').next('ul.list').attr('data-search-value'));
|
122
129
|
});
|
123
|
-
|
130
|
+
var _stop = new Date();
|
131
|
+
RubyApp.log('SUCCESS RubyApp.updateElement("' + id + '") ' + ((_stop - _start) / 1000) + 's');
|
124
132
|
} )
|
125
133
|
.error( function(request, message, exception) {
|
126
|
-
|
134
|
+
var _stop = new Date();
|
135
|
+
RubyApp.log('ERROR RubyApp.updateElement("' + id + '") ' + message + ' ' + ((_stop - _start) / 1000) + 's');
|
127
136
|
RubyApp.confirmRefreshBrowser(RubyApp.getData('error_message', null));
|
128
137
|
} )
|
129
138
|
.complete( function() {
|
@@ -239,7 +248,7 @@
|
|
239
248
|
RubyApp.assert('selector=' + selector + ', not visible', RubyApp.isVisible(selector) == false);
|
240
249
|
};
|
241
250
|
this.assert = function(name, value) {
|
242
|
-
RubyApp.log('ASSERT ' + name + ' is ' + value)
|
251
|
+
// RubyApp.log('ASSERT ' + name + ' is ' + value)
|
243
252
|
RubyApp.sendEvent({_class:'RubyApp::Element::AssertedEvent', source:$('html').attr('id'), name:name, value:eval(value)});
|
244
253
|
};
|
245
254
|
this.getData = function(name, _default) {
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bluecloth
|
@@ -1561,7 +1561,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1561
1561
|
version: '0'
|
1562
1562
|
segments:
|
1563
1563
|
- 0
|
1564
|
-
hash:
|
1564
|
+
hash: 4138155495032857180
|
1565
1565
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1566
1566
|
none: false
|
1567
1567
|
requirements:
|
@@ -1570,7 +1570,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1570
1570
|
version: '0'
|
1571
1571
|
segments:
|
1572
1572
|
- 0
|
1573
|
-
hash:
|
1573
|
+
hash: 4138155495032857180
|
1574
1574
|
requirements: []
|
1575
1575
|
rubyforge_project:
|
1576
1576
|
rubygems_version: 1.8.25
|