RubyApp 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.0.15)
4
+ RubyApp (0.0.16)
5
5
  BlueCloth
6
6
  chronic_duration
7
7
  facets
@@ -67,7 +67,7 @@ module RubyApp
67
67
  execute("RubyApp.go(#{url.to_json});")
68
68
  end
69
69
 
70
- def set_cookie(name, value, expires)
70
+ def set_cookie(name, value, expires = Time.now + 365*24*60*60)
71
71
  execute("RubyApp.setCookie(#{name.to_json}, #{value.to_json}, new Date(#{expires.year}, #{expires.month - 1}, #{expires.day}, #{expires.hour}, #{expires.min}, #{expires.sec}));")
72
72
  end
73
73
 
@@ -36,7 +36,7 @@ module RubyApp
36
36
 
37
37
  @input = RubyApp::Elements::Input.new
38
38
  @input.changed do |element, event|
39
- event.set_cookie('_cookie', @input.value, Time.now + 60*60*24)
39
+ event.set_cookie('_cookie', @input.value)
40
40
  RubyApp::Session.show(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title,
41
41
  self.translate.message_dialog.message.message(@input.value)))
42
42
  end
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
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: 1
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar