RubyApp 0.6.68 → 0.6.69
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby_app/element.rb +4 -0
- data/lib/ruby_app/elements/mobile/document.js.haml +12 -10
- data/lib/ruby_app/session.rb +1 -0
- data/lib/ruby_app/version.rb +1 -1
- metadata +4 -4
data/lib/ruby_app/element.rb
CHANGED
@@ -45,14 +45,14 @@
|
|
45
45
|
};
|
46
46
|
now = null;
|
47
47
|
this.sendEvent = function(event, wait) {
|
48
|
-
RubyApp.log('ENQUEUE event.class=' + event._class);
|
48
|
+
// RubyApp.log('ENQUEUE event.class=' + event._class);
|
49
49
|
event.now = RubyApp.now == undefined ? new Date().toString() : RubyApp.now;
|
50
50
|
event.session = RubyApp.getData('session', null);
|
51
51
|
var _wait = wait == undefined ? true : wait;
|
52
52
|
RubyApp.enQueue ( function() {
|
53
53
|
if (_wait)
|
54
54
|
RubyApp.showWait();
|
55
|
-
RubyApp.log('DEQUEUE event.class=' + event._class);
|
55
|
+
// RubyApp.log('DEQUEUE event.class=' + event._class);
|
56
56
|
request = $.ajax({type:'POST', url:location.href, data:event});
|
57
57
|
request
|
58
58
|
.success( function(event) {
|
@@ -60,7 +60,7 @@
|
|
60
60
|
RubyApp.log('EVAL ' + statement)
|
61
61
|
eval(statement);
|
62
62
|
} );
|
63
|
-
RubyApp.log('SUCCESS event.class=' + event._class);
|
63
|
+
// RubyApp.log('SUCCESS event.class=' + event._class);
|
64
64
|
} )
|
65
65
|
.error( function(request, message, exception) {
|
66
66
|
RubyApp.log('ERROR event.class=' + event._class + ' message=' + message);
|
@@ -78,16 +78,16 @@
|
|
78
78
|
$.mobile.changePage($('#' + id), options);
|
79
79
|
else
|
80
80
|
{
|
81
|
-
RubyApp.log('ENQUEUE RubyApp.showPage("' + id + '", ...)');
|
81
|
+
// RubyApp.log('ENQUEUE RubyApp.showPage("' + id + '", ...)');
|
82
82
|
RubyApp.enQueue ( function() {
|
83
83
|
RubyApp.showWait();
|
84
|
-
RubyApp.log('DEQUEUE RubyApp.showPage("' + id + '", ...)');
|
84
|
+
// RubyApp.log('DEQUEUE RubyApp.showPage("' + id + '", ...)');
|
85
85
|
request = $.ajax({type:'GET', url:RubyApp.getData('root', '/').blank_if('/') + '/' + RubyApp.getData('locale', 'en') + '/elements/' + id + '.html'});
|
86
86
|
request
|
87
87
|
.success( function(content) {
|
88
88
|
$('body').prepend(content);
|
89
89
|
$.mobile.changePage($('#' + id), options);
|
90
|
-
RubyApp.log('SUCCESS RubyApp.showPage("' + id + '", ...)');
|
90
|
+
// RubyApp.log('SUCCESS RubyApp.showPage("' + id + '", ...)');
|
91
91
|
} )
|
92
92
|
.error( function(request, message, exception) {
|
93
93
|
RubyApp.log('ERROR RubyApp.showPage("' + id + '", ...) message=' + message);
|
@@ -104,10 +104,10 @@
|
|
104
104
|
$('#' + id).remove();
|
105
105
|
};
|
106
106
|
this.updateElement = function(id) {
|
107
|
-
RubyApp.log('ENQUEUE RubyApp.updateElement("' + id + '")');
|
107
|
+
// RubyApp.log('ENQUEUE RubyApp.updateElement("' + id + '")');
|
108
108
|
RubyApp.enQueue ( function() {
|
109
109
|
RubyApp.showWait();
|
110
|
-
RubyApp.log('DEQUEUE RubyApp.updateElement("' + id + '")');
|
110
|
+
// RubyApp.log('DEQUEUE RubyApp.updateElement("' + id + '")');
|
111
111
|
request = $.ajax({type:'GET', url:RubyApp.getData('root', '/').blank_if('/') + '/' + RubyApp.getData('locale', 'en') + '/elements/' + id + '.html'});
|
112
112
|
request
|
113
113
|
.success( function(content) {
|
@@ -117,7 +117,7 @@
|
|
117
117
|
$('form.ui-listview-filter input').each( function() {
|
118
118
|
$(this).val($(this).parents('form.ui-listview-filter').next('ul.list').attr('data-search-value'));
|
119
119
|
});
|
120
|
-
RubyApp.log('SUCCESS RubyApp.updateElement("' + id + '")');
|
120
|
+
// RubyApp.log('SUCCESS RubyApp.updateElement("' + id + '")');
|
121
121
|
} )
|
122
122
|
.error( function(request, message, exception) {
|
123
123
|
RubyApp.log('ERROR RubyApp.updateElement("' + id + '") message=' + message);
|
@@ -140,7 +140,6 @@
|
|
140
140
|
if ($('#' + id)[0]._trigger) {
|
141
141
|
window.clearInterval($('#' + id)[0]._trigger);
|
142
142
|
$('#' + id)[0]._trigger = undefined;
|
143
|
-
RubyApp.log('SUCCESS RubyApp.destroyTrigger("' + id + '")');
|
144
143
|
}
|
145
144
|
};
|
146
145
|
this.triggerElement = function(id) {
|
@@ -247,6 +246,9 @@
|
|
247
246
|
if ( window.console )
|
248
247
|
window.console.log(message);
|
249
248
|
};
|
249
|
+
this.alert = function(message) {
|
250
|
+
alert(message);
|
251
|
+
};
|
250
252
|
};
|
251
253
|
|
252
254
|
$(window).load(function() {
|
data/lib/ruby_app/session.rb
CHANGED
@@ -97,6 +97,7 @@ module RubyApp
|
|
97
97
|
RubyApp::Log.info('-' * 80)
|
98
98
|
RubyApp::Log.info("STEP Completed #{@steps.length} steps")
|
99
99
|
RubyApp::Log.info('-' * 80)
|
100
|
+
event.alert("Completed #{@steps.length} steps.")
|
100
101
|
else
|
101
102
|
step = @steps[@steps_index]
|
102
103
|
RubyApp::Log.info("STEP Next #{step._class} #{step.file}:#{step.line}#{step.block ? nil : ' (no block)'}")
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 141
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 69
|
10
|
+
version: 0.6.69
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-02-
|
18
|
+
date: 2013-02-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|