RubyApp 0.5.11 → 0.5.12

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.5.11)
4
+ RubyApp (0.5.12)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -1,4 +1,4 @@
1
- #\ --warn --port 8008 --pid ./rack.pid --debug true
1
+ #\ --port 8008 --pid ./rack.pid
2
2
  require 'rubygems'
3
3
  require 'bundler/setup'
4
4
 
@@ -40,7 +40,7 @@ module RubyApp
40
40
  @exception_link = RubyApp::Elements::Mobile::Button.new
41
41
  @exception_link.clicked do |element, event|
42
42
  RubyApp::Elements::Mobile::Dialogs::ExceptionDialog.show_on_exception(event, :transition => 'pop') do
43
- raise RubyApp::Exceptions::AssertFailedException.new('false')
43
+ raise 'This is an exception.'
44
44
  end
45
45
  end
46
46
 
@@ -26,7 +26,7 @@ module RubyApp
26
26
  def self.show_on_exception(event, options = {})
27
27
  begin
28
28
  yield
29
- rescue Exception => exception
29
+ rescue => exception
30
30
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
31
31
  self.show(event, RubyApp::Elements::Mobile::Dialogs::ExceptionDialog.new(exception), options)
32
32
  end
@@ -16,7 +16,7 @@ module RubyApp
16
16
  def call(environment)
17
17
  begin
18
18
  return @application.call(environment)
19
- rescue Exception => exception
19
+ rescue => exception
20
20
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
21
21
  raise exception
22
22
  end
@@ -28,7 +28,7 @@ module RubyApp
28
28
  RubyApp::Response.redirect(RubyApp::Request.query['go'])
29
29
  end
30
30
  end
31
- rescue Exception => exception
31
+ rescue => exception
32
32
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
33
33
  raise
34
34
  end
@@ -42,7 +42,7 @@ module RubyApp
42
42
  RubyApp::Response.write_from_cache(element, format.to_sym)
43
43
  #RubyApp::Response.write(element.render(format.to_sym))
44
44
  end
45
- rescue Exception => exception
45
+ rescue => exception
46
46
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
47
47
  raise
48
48
  end
@@ -56,7 +56,7 @@ module RubyApp
56
56
  RubyApp::Response.write_from_cache(document, format.to_sym)
57
57
  #RubyApp::Response.write(document.render(format.to_sym))
58
58
  end
59
- rescue Exception => exception
59
+ rescue => exception
60
60
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
61
61
  raise
62
62
  end
@@ -79,7 +79,7 @@ module RubyApp
79
79
  RubyApp::Response['Content-Type'] = 'application/json'
80
80
  RubyApp::Response.write(Yajl::Encoder.new.encode(event.to_hash))
81
81
  end
82
- rescue Exception => exception
82
+ rescue => exception
83
83
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
84
84
  RubyApp::Response['Content-Type'] = 'application/json'
85
85
  RubyApp::Response.write(Yajl::Encoder.new.encode(RubyApp::Element::ExceptionEvent.new(exception).to_hash))
@@ -58,7 +58,7 @@ add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
58
58
  end
59
59
 
60
60
  add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
61
- event.assert_exists_text('The assertion false failed')
61
+ event.assert_exists_text('This is an exception.')
62
62
  event.assert_exists_link('Close')
63
63
  event.tap_link('Close')
64
64
  end
@@ -97,7 +97,7 @@ module RubyApp
97
97
  RubyApp::Log.info("STEP Completed #{@steps.length} steps")
98
98
  end
99
99
  end
100
- rescue Exception => exception
100
+ rescue => exception
101
101
  RubyApp::Log.info("STEP Exception occurred at #{step.file}:#{step.line}")
102
102
  @steps_index = @steps.length
103
103
  raise
@@ -177,7 +177,7 @@ module RubyApp
177
177
  end
178
178
  sleep(RubyApp::Session.configuration.interval)
179
179
  end
180
- rescue Exception => exception
180
+ rescue => exception
181
181
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
182
182
  end
183
183
  end
@@ -185,7 +185,7 @@ module RubyApp
185
185
  at_exit do
186
186
  begin
187
187
  RubyApp::Session.stop_thread!
188
- rescue Exception => exception
188
+ rescue => exception
189
189
  RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
190
190
  end
191
191
  end
@@ -1,4 +1,4 @@
1
- #\ --warn --port 8008 --pid ./rack.pid
1
+ #\ --port 8008 --pid ./rack.pid
2
2
  $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[lib]))
3
3
 
4
4
  require 'rubygems'
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.5.11"
2
+ VERSION = "0.5.12"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
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: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 11
10
- version: 0.5.11
9
+ - 12
10
+ version: 0.5.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar