RubyApp 0.0.54 → 0.0.55
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 +1 -1
- data/features/step_definitions/default_steps.rb +1 -1
- data/lib/ruby_app/elements/base/base_page.js.haml +2 -1
- data/lib/ruby_app/session.rb +5 -7
- data/lib/ruby_app/templates/application/lib/_APPLICATION_DOWNCODE_/session.rb +2 -2
- data/lib/ruby_app/translations/en.yml +2 -2
- data/lib/ruby_app/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -49,7 +49,8 @@
|
|
49
49
|
} );
|
50
50
|
} )
|
51
51
|
.error( function(request, message, exception) {
|
52
|
-
|
52
|
+
if (#{RubyApp::Session['show_event_error'] || 'false'} == true)
|
53
|
+
RubyApp.confirm_refresh(#{RubyApp::Elements::Base::BasePage.translate.error.to_json});
|
53
54
|
} )
|
54
55
|
.complete( function() {
|
55
56
|
$(window).dequeue();
|
data/lib/ruby_app/session.rb
CHANGED
@@ -25,16 +25,14 @@ module RubyApp
|
|
25
25
|
attr_reader :session_id, :pages
|
26
26
|
attr_accessor :identity, :data
|
27
27
|
|
28
|
-
def initialize(session_id, page = nil)
|
28
|
+
def initialize(session_id, page = nil, data = {})
|
29
|
+
require 'ruby_app/elements/pages/default_page'
|
29
30
|
@session_id = session_id
|
30
31
|
@pages = []
|
32
|
+
@pages.push(page || RubyApp::Elements::Pages::DefaultPage.new)
|
31
33
|
@dialogs = []
|
34
|
+
@data = data
|
32
35
|
@identity = nil
|
33
|
-
@data = {}
|
34
|
-
|
35
|
-
require 'ruby_app/elements/pages/default_page'
|
36
|
-
@pages.push(page || RubyApp::Elements::Pages::DefaultPage.new)
|
37
|
-
|
38
36
|
end
|
39
37
|
|
40
38
|
def [](key)
|
@@ -76,7 +74,7 @@ module RubyApp
|
|
76
74
|
|
77
75
|
def self.create!
|
78
76
|
RubyApp::Request.session[:_initialize] = true
|
79
|
-
Thread.current[:_session] = RubyApp::Request.session[:_session] ||= RubyApp::Application.options.session_class.new(RubyApp::Request.env['rack.session.options'] ? RubyApp::Request.env['rack.session.options'][:id] : nil)
|
77
|
+
Thread.current[:_session] = RubyApp::Request.session[:_session] ||= RubyApp::Application.options.session_class.new(RubyApp::Request.env['rack.session.options'] ? RubyApp::Request.env['rack.session.options'][:id] : nil, nil, RubyApp::Request.query)
|
80
78
|
if block_given?
|
81
79
|
begin
|
82
80
|
yield
|
@@ -7,9 +7,9 @@ module _APPLICATION_UPCODE_
|
|
7
7
|
|
8
8
|
class Session < RubyApp::Session
|
9
9
|
|
10
|
-
def initialize(session_id, page = nil)
|
10
|
+
def initialize(session_id, page = nil, data = {})
|
11
11
|
require '_APPLICATION_DOWNCODE_/elements/pages/default_page'
|
12
|
-
super(session_id, page || _APPLICATION_UPCODE_::Elements::Pages::DefaultPage.new)
|
12
|
+
super(session_id, page || _APPLICATION_UPCODE_::Elements::Pages::DefaultPage.new, data)
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
ruby_app:
|
2
2
|
element:
|
3
3
|
exception_event:
|
4
|
-
message: %1.
|
4
|
+
message: %1. The page will refresh so you can try again.
|
5
5
|
elements:
|
6
6
|
base:
|
7
7
|
base_page:
|
8
|
-
error: An error occurred sending the event.
|
8
|
+
error: An error occurred sending the event. The page will refresh so you can try again.
|
9
9
|
dialogs:
|
10
10
|
base:
|
11
11
|
base_close_dialog:
|
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: 113
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 55
|
10
|
+
version: 0.0.55
|
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: 2012-01-
|
18
|
+
date: 2012-01-05 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|