RubyApp 0.0.75 → 0.0.76

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.0.75)
4
+ RubyApp (0.0.76)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -1,5 +1,5 @@
1
1
  Given /^I am viewing "([^"]*)"$/ do |url|
2
- visit("#{url}?show_event_error=false")
2
+ visit("#{url}?event_error=false")
3
3
  end
4
4
 
5
5
  When /^I refresh the page$/ do
@@ -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.pathname);
72
+ location.assign(location.href);
75
73
  },
76
74
  this.confirm_refresh = function(message) {
77
75
  if (confirm(message))
@@ -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, nil, RubyApp::Request.query)
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}
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.0.75"
2
+ VERSION = "0.0.76"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
data/rakefile CHANGED
@@ -15,7 +15,7 @@ namespace :ruby_app do
15
15
  end
16
16
 
17
17
  desc 'Run'
18
- task :run => ['ruby_app:cache:create'] do |task|
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 => ['ruby_app:cache:create'] do |task|
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: 137
4
+ hash: 135
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 75
10
- version: 0.0.75
9
+ - 76
10
+ version: 0.0.76
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar