RubyApp 0.7.4 → 0.7.5

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.
@@ -60,7 +60,7 @@
60
60
  request
61
61
  .success( function(event) {
62
62
  $.each(event.statements, function(index, statement) {
63
- RubyApp.log('EVAL ' + statement)
63
+ // RubyApp.log('EVAL ' + statement)
64
64
  eval(statement);
65
65
  } );
66
66
  // RubyApp.log('SUCCESS event.class=' + event._class);
@@ -239,6 +239,7 @@
239
239
  RubyApp.assert('selector=' + selector + ', not visible', RubyApp.isVisible(selector) == false);
240
240
  };
241
241
  this.assert = function(name, value) {
242
+ RubyApp.log('ASSERT ' + name + ' is ' + value)
242
243
  RubyApp.sendEvent({_class:'RubyApp::Element::AssertedEvent', source:$('html').attr('id'), name:name, value:eval(value)});
243
244
  };
244
245
  this.getData = function(name, _default) {
@@ -9,7 +9,10 @@ page.onNavigationRequested = function(url, type, willNavigate, mainFrame) {
9
9
  console.log('NAVIGATE ' + url);
10
10
  };
11
11
  page.onConsoleMessage = function(message) {
12
- console.log(' ' + message);
12
+ console.log('LOG ' + message);
13
+ };
14
+ page.onAlert = function(message) {
15
+ console.log('ALERT ' + message);
13
16
  };
14
17
  page.onConfirm = function(message) {
15
18
  console.log('FAIL ' + message);
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
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.4
4
+ version: 0.7.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -1545,7 +1545,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1545
1545
  version: '0'
1546
1546
  segments:
1547
1547
  - 0
1548
- hash: -338997606630914219
1548
+ hash: -854809488971136124
1549
1549
  required_rubygems_version: !ruby/object:Gem::Requirement
1550
1550
  none: false
1551
1551
  requirements:
@@ -1554,7 +1554,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1554
1554
  version: '0'
1555
1555
  segments:
1556
1556
  - 0
1557
- hash: -338997606630914219
1557
+ hash: -854809488971136124
1558
1558
  requirements: []
1559
1559
  rubyforge_project:
1560
1560
  rubygems_version: 1.8.25