RubyApp 0.7.13 → 0.7.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,14 +49,14 @@
49
49
  now = null;
50
50
  this.sendEvent = function(event, wait) {
51
51
  var _start = new Date();
52
- // RubyApp.log('ENQUEUE event.class=' + event._class);
52
+ // RubyApp.log('ENQUEUE ' + event._class);
53
53
  event.now = RubyApp.now == undefined ? new Date().toString() : RubyApp.now;
54
54
  event.session = RubyApp.getData('session', null);
55
55
  var _wait = wait == undefined ? true : wait;
56
56
  RubyApp.enQueue ( function() {
57
57
  if (_wait)
58
58
  RubyApp.showWait();
59
- // RubyApp.log('DEQUEUE event.class=' + event._class);
59
+ // RubyApp.log('DEQUEUE ' + event._class);
60
60
  request = $.ajax({type:'POST', url:location.href, data:event});
61
61
  request
62
62
  .success( function(event) {
@@ -85,21 +85,21 @@
85
85
  else
86
86
  {
87
87
  var _start = new Date();
88
- // RubyApp.log('ENQUEUE RubyApp.showPage("' + id + '", ...)');
88
+ // RubyApp.log('ENQUEUE RubyApp.showPage(...)');
89
89
  RubyApp.enQueue ( function() {
90
90
  RubyApp.showWait();
91
- // RubyApp.log('DEQUEUE RubyApp.showPage("' + id + '", ...)');
91
+ // RubyApp.log('DEQUEUE RubyApp.showPage(...)');
92
92
  request = $.ajax({type:'GET', url:RubyApp.getData('root', '/').blank_if('/') + '/' + RubyApp.getData('locale', 'en') + '/elements/' + id + '.html'});
93
93
  request
94
94
  .success( function(content) {
95
95
  $('body').prepend(content);
96
96
  $.mobile.changePage($('#' + id), options);
97
97
  var _stop = new Date();
98
- RubyApp.log('SUCCESS RubyApp.showPage("' + id + '", ...) ' + ((_stop - _start) / 1000) + 's');
98
+ RubyApp.log('SUCCESS RubyApp.showPage(...) ' + ((_stop - _start) / 1000) + 's');
99
99
  } )
100
100
  .error( function(request, message, exception) {
101
101
  var _stop = new Date();
102
- RubyApp.log('ERROR RubyApp.showPage("' + id + '", ...) ' + message + ' ' + ((_stop - _start) / 1000) + 's');
102
+ RubyApp.log('ERROR RubyApp.showPage(...) ' + message + ' ' + ((_stop - _start) / 1000) + 's');
103
103
  RubyApp.confirmRefreshBrowser(RubyApp.getData('error_message', null));
104
104
  } )
105
105
  .complete( function() {
@@ -114,10 +114,10 @@
114
114
  };
115
115
  this.updateElement = function(id) {
116
116
  var _start = new Date();
117
- // RubyApp.log('ENQUEUE RubyApp.updateElement("' + id + '")');
117
+ // RubyApp.log('ENQUEUE RubyApp.updateElement(...)');
118
118
  RubyApp.enQueue ( function() {
119
119
  RubyApp.showWait();
120
- // RubyApp.log('DEQUEUE RubyApp.updateElement("' + id + '")');
120
+ // RubyApp.log('DEQUEUE RubyApp.updateElement(...)');
121
121
  request = $.ajax({type:'GET', url:RubyApp.getData('root', '/').blank_if('/') + '/' + RubyApp.getData('locale', 'en') + '/elements/' + id + '.html'});
122
122
  request
123
123
  .success( function(content) {
@@ -128,11 +128,11 @@
128
128
  $(this).val($(this).parents('form.ui-listview-filter').next('ul.list').attr('data-search-value'));
129
129
  });
130
130
  var _stop = new Date();
131
- RubyApp.log('SUCCESS RubyApp.updateElement("' + id + '") ' + ((_stop - _start) / 1000) + 's');
131
+ RubyApp.log('SUCCESS RubyApp.updateElement(...) ' + ((_stop - _start) / 1000) + 's');
132
132
  } )
133
133
  .error( function(request, message, exception) {
134
134
  var _stop = new Date();
135
- RubyApp.log('ERROR RubyApp.updateElement("' + id + '") ' + message + ' ' + ((_stop - _start) / 1000) + 's');
135
+ RubyApp.log('ERROR RubyApp.updateElement(...) ' + message + ' ' + ((_stop - _start) / 1000) + 's');
136
136
  RubyApp.confirmRefreshBrowser(RubyApp.getData('error_message', null));
137
137
  } )
138
138
  .complete( function() {
@@ -15,11 +15,11 @@ page.onAlert = function(message) {
15
15
  console.log('ALERT ' + message);
16
16
  };
17
17
  page.onConfirm = function(message) {
18
- console.log('FAIL ' + message);
18
+ console.log('CONFIRM ' + message);
19
19
  phantom.exit(-1);
20
20
  };
21
21
  page.onClosing = function(page) {
22
- console.log('SUCCESS ' + page.url);
22
+ console.log('CLOSE ' + page.url);
23
23
  phantom.exit(0);
24
24
  };
25
25
 
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.7.13"
2
+ VERSION = "0.7.14"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
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.13
4
+ version: 0.7.14
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-29 00:00:00.000000000 Z
12
+ date: 2013-04-03 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: 4138155495032857180
1564
+ hash: -1186954489530126662
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: 4138155495032857180
1573
+ hash: -1186954489530126662
1574
1574
  requirements: []
1575
1575
  rubyforge_project:
1576
1576
  rubygems_version: 1.8.25