auto-session-timeout 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceab7b469f1cc6c0c87fedf3e5262885138db8b3
4
- data.tar.gz: 569595f33aa3b87e5c8673870e96f9e65b449887
3
+ metadata.gz: 77ae45c61583c38e509d9db9197d0b20043fc183
4
+ data.tar.gz: 0173b194b2ae4b8b1c4dabdb957cf78256cf83da
5
5
  SHA512:
6
- metadata.gz: e1d460ca59ba902da3e3498d947fbde81260fe78b741f28366ee36b99aa1c5c863b0b38103c478c92c91c405826d55232128126350c7252b5e4e810f49917c76
7
- data.tar.gz: 3fea136e0b31699e01f06dac26650ed3af06ff1b191bd0ee3341c95b2cc5a0c2fbc778139e096ed114eb07e9e397c729fd3ec953557d53394405dc73f6f4eb5e
6
+ metadata.gz: 9d70255cc2a19147c9e48cde559c828a396c8936001bb4054703ec42fa837c2e7932d437964bffdcd5edaa1c8934f55694c8ba373a5bdacb4a466870037117b4
7
+ data.tar.gz: cb1b5c13b32213881d94bd7cc329afa6cde3bc13ad0dbd4b25699cd81d52e8fb406dc14172d48131abf4f20510a7545960b56643a56fde6b29d2666f96fd1105
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "rake", "~> 0"
23
23
  spec.add_development_dependency "minitest", "~> 4.2"
24
24
  spec.add_development_dependency "actionpack", "~> 3.2"
25
25
  end
@@ -1,7 +1,7 @@
1
1
  module Auto
2
2
  module Session
3
3
  module Timeout
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.4"
5
5
  end
6
6
  end
7
7
  end
@@ -6,7 +6,7 @@ module AutoSessionTimeout
6
6
 
7
7
  module ClassMethods
8
8
  def auto_session_timeout(seconds=nil)
9
- prepend_before_filter do |c|
9
+ prepend_before_action do |c|
10
10
  if c.session[:auto_session_expires_at] && c.session[:auto_session_expires_at] < Time.now
11
11
  c.send :reset_session
12
12
  else
@@ -26,7 +26,7 @@ module AutoSessionTimeout
26
26
 
27
27
  def render_session_status
28
28
  response.headers["Etag"] = "" # clear etags to prevent caching
29
- render text: !!current_user, status: 200
29
+ render plain: !!current_user, status: 200
30
30
  end
31
31
 
32
32
  def render_session_timeout
@@ -36,4 +36,4 @@ module AutoSessionTimeout
36
36
 
37
37
  end
38
38
 
39
- ActionController::Base.send :include, AutoSessionTimeout
39
+ ActionController::Base.send :include, AutoSessionTimeout
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto-session-timeout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Bass
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency