RubyApp 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/ruby_app/configuration.ru +1 -1
- data/lib/ruby_app/elements/mobile/default/features/dialogs_page.rb +1 -1
- data/lib/ruby_app/elements/mobile/dialogs/exception_dialog.rb +1 -1
- data/lib/ruby_app/rack/application.rb +1 -1
- data/lib/ruby_app/rack/route.rb +4 -4
- data/lib/ruby_app/scripts/elements/dialogs.rb +1 -1
- data/lib/ruby_app/session.rb +3 -3
- data/lib/ruby_app/templates/application/configuration.ru +1 -1
- data/lib/ruby_app/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -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
|
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
|
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
|
data/lib/ruby_app/rack/route.rb
CHANGED
@@ -28,7 +28,7 @@ module RubyApp
|
|
28
28
|
RubyApp::Response.redirect(RubyApp::Request.query['go'])
|
29
29
|
end
|
30
30
|
end
|
31
|
-
rescue
|
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
|
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
|
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
|
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('
|
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
|
data/lib/ruby_app/session.rb
CHANGED
@@ -97,7 +97,7 @@ module RubyApp
|
|
97
97
|
RubyApp::Log.info("STEP Completed #{@steps.length} steps")
|
98
98
|
end
|
99
99
|
end
|
100
|
-
rescue
|
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
|
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
|
188
|
+
rescue => exception
|
189
189
|
RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
|
190
190
|
end
|
191
191
|
end
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 12
|
10
|
+
version: 0.5.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|