RubyApp 0.0.75 → 0.0.76
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/features/step_definitions/default_steps.rb +1 -1
- data/lib/ruby_app/elements/base/base_page.html.haml +4 -0
- data/lib/ruby_app/elements/base/base_page.js.haml +2 -4
- data/lib/ruby_app/session.rb +1 -1
- data/lib/ruby_app/templates/application/Rakefile +1 -1
- data/lib/ruby_app/themes/mobile/base/base_page.html.haml +4 -0
- data/lib/ruby_app/version.rb +1 -1
- data/rakefile +2 -2
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -19,6 +19,10 @@
|
|
19
19
|
%meta{:name => :session_id, :content => RubyApp::Session.session_id}
|
20
20
|
- RubyApp::Session.data.each do |name, value|
|
21
21
|
%meta{:name => name, :content => value}
|
22
|
+
/
|
23
|
+
RubyApp::Request.query
|
24
|
+
- RubyApp::Request.query.each do |name, value|
|
25
|
+
%meta{:name => name, :content => value}
|
22
26
|
/
|
23
27
|
RubyApp::Language
|
24
28
|
%meta{:name => :locale, :content => RubyApp::Language.locale.code}
|
@@ -38,8 +38,6 @@
|
|
38
38
|
$('ul.log > li.status').text(new Date().toString() + ' - ' + message);
|
39
39
|
$('ul.log').append('<li>' + new Date().toString() + ' - ' + message + '</li>');
|
40
40
|
},
|
41
|
-
this.status = function(message) {
|
42
|
-
},
|
43
41
|
this.queueEvent = function(event, wait) {
|
44
42
|
event.session_id = RubyApp.getData('session_id', null);
|
45
43
|
event.now = new Date().toString();
|
@@ -56,7 +54,7 @@
|
|
56
54
|
} )
|
57
55
|
.error( function(request, message, exception) {
|
58
56
|
RubyApp.log('RubyApp.queueEvent ERROR event.class=' + event._class + ' wait=' + wait);
|
59
|
-
if (RubyApp.getData('event_error', true) == true)
|
57
|
+
if ($.parseJSON(RubyApp.getData('event_error', 'true')) == true)
|
60
58
|
RubyApp.confirm_refresh(RubyApp.getData('event_error_message', null));
|
61
59
|
} )
|
62
60
|
.complete( function() {
|
@@ -71,7 +69,7 @@
|
|
71
69
|
this.refresh = function() {
|
72
70
|
RubyApp.showWait();
|
73
71
|
$(window).clearQueue();
|
74
|
-
location.assign(location.
|
72
|
+
location.assign(location.href);
|
75
73
|
},
|
76
74
|
this.confirm_refresh = function(message) {
|
77
75
|
if (confirm(message))
|
data/lib/ruby_app/session.rb
CHANGED
@@ -75,7 +75,7 @@ module RubyApp
|
|
75
75
|
|
76
76
|
def self.create!
|
77
77
|
RubyApp::Request.session[:_initialize] = true
|
78
|
-
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
|
78
|
+
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)
|
79
79
|
if block_given?
|
80
80
|
begin
|
81
81
|
yield
|
@@ -23,7 +23,7 @@ namespace :_APPLICATION_DOWNCODE_ do
|
|
23
23
|
|
24
24
|
desc 'Create element cache'
|
25
25
|
task :create do |task|
|
26
|
-
_APPLICATION_UPCODE_::Application.create_cache(File.join(File.dirname(__FILE__), %w[lib _APPLICATION_DOWNCODE_ elements]), File.join(File.dirname(__FILE__), %w[lib]))
|
26
|
+
_APPLICATION_UPCODE_::Application.create_cache(File.join(File.dirname(__FILE__), %w[lib _APPLICATION_DOWNCODE_ elements pages]), File.join(File.dirname(__FILE__), %w[lib]))
|
27
27
|
end
|
28
28
|
|
29
29
|
desc 'Delete element cache'
|
@@ -29,6 +29,10 @@
|
|
29
29
|
%meta{:name => :session_id, :content => RubyApp::Session.session_id}
|
30
30
|
- RubyApp::Session.data.each do |name, value|
|
31
31
|
%meta{:name => name, :content => value}
|
32
|
+
/
|
33
|
+
RubyApp::Request.query
|
34
|
+
- RubyApp::Request.query.each do |name, value|
|
35
|
+
%meta{:name => name, :content => value}
|
32
36
|
/
|
33
37
|
RubyApp::Language
|
34
38
|
%meta{:name => :locale, :content => RubyApp::Language.locale.code}
|
data/lib/ruby_app/version.rb
CHANGED
data/rakefile
CHANGED
@@ -15,7 +15,7 @@ namespace :ruby_app do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
desc 'Run'
|
18
|
-
task :run
|
18
|
+
task :run do |task|
|
19
19
|
system("cd ./lib/ruby_app && clear && bundle exec ../../bin/ruby_app run")
|
20
20
|
end
|
21
21
|
|
@@ -25,7 +25,7 @@ namespace :ruby_app do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
desc 'Push to master, release, and increment version'
|
28
|
-
task :release
|
28
|
+
task :release do |task|
|
29
29
|
system "git push origin master && rake release"
|
30
30
|
version_file = File.join(RubyApp::ROOT, %w[version.rb])
|
31
31
|
RubyApp::VERSION =~ /(\d+)\.(\d+)\.(\d+)/
|
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: 135
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 76
|
10
|
+
version: 0.0.76
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|