session-check 0.1.9 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 24830dfb42af4ee2bde0875deb428f69c7990ab75de29aaf35c6a153622a306d
4
+ data.tar.gz: eb214d1d4b3b430b11287cc96fcb69f7afb4712d92c35f927cde90e7fdf023f3
5
+ SHA512:
6
+ metadata.gz: d2064b4a1d4e1bc4568bbeae4caa652e8a35a666f36c62c713d0a66a1540575b9fb42c5ee2a011386442ea1f49156995e02979bc10b4b365b3b35b3284dce54e
7
+ data.tar.gz: 970f0aab87a62de6e2634f4261512dbbab144637a7e39dfb3a2a0b300535da8a62e81e117b30e7b6d5c23653ba0b0b70ca9ee3b0838e8c42051e24640f831f6a
data/README.md CHANGED
@@ -27,4 +27,8 @@ No server ping requests are made until the moment the session is expected to be
27
27
  If a user is not lot logged in, then no server pings will be perfomed. If, however, you application logs a user in without refreshing
28
28
  their browser, you can start the ping process by calling:
29
29
 
30
- SessionCheck.should_session_check = true;
30
+ SessionCheck.should_session_check = true;
31
+
32
+ # Changelog
33
+
34
+ Version 0.2.1 : Added explicit reference to Devise (which is required)
@@ -2,7 +2,7 @@ class SessionChecksController < ActionController::Base
2
2
 
3
3
  skip_authorization_check if defined?(CanCan)
4
4
 
5
- prepend_before_filter :dont_update_request_time
5
+ prepend_before_action :dont_update_request_time
6
6
 
7
7
  # Find it there is a session, and if it has any warden information. If so, the user is logged in.
8
8
  def time_to_session_expiry
@@ -16,8 +16,8 @@ class SessionChecksController < ActionController::Base
16
16
  render json: {session_exists: session_exists, session_expires_in: session_expires_in}
17
17
  end
18
18
 
19
- # This ensures this requeust ping doesn't update their last access time.
19
+ # This ensures this request ping doesn't update their last access time.
20
20
  def dont_update_request_time
21
- env['devise.skip_trackable'] = true
21
+ request.env['devise.skip_trackable'] = true
22
22
  end
23
23
  end
@@ -1,5 +1,5 @@
1
1
  module Session
2
2
  module Check
3
- VERSION = '0.1.9'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,32 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: session-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
5
- prerelease:
4
+ version: 0.2.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Harry Lascelles
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-03 00:00:00.000000000 Z
11
+ date: 2020-08-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
14
  name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ type: :runtime
17
21
  prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '5.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: devise
18
29
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
30
  requirements:
21
- - - ! '>'
31
+ - - ">="
22
32
  - !ruby/object:Gem::Version
23
- version: '3.0'
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
37
  requirements:
27
- - - ! '>'
38
+ - - ">="
28
39
  - !ruby/object:Gem::Version
29
- version: '3.0'
40
+ version: '0'
30
41
  description:
31
42
  email:
32
43
  - harry@harrylascelles.com
@@ -34,38 +45,36 @@ executables: []
34
45
  extensions: []
35
46
  extra_rdoc_files: []
36
47
  files:
48
+ - README.md
37
49
  - app/controllers/session_checks_controller.rb
38
- - app/views/_session_check.html.erb
39
50
  - app/helpers/session_check_helper.rb
51
+ - app/views/_session_check.html.erb
52
+ - config/routes.rb
53
+ - lib/session-check.rb
54
+ - lib/session/check.rb
40
55
  - lib/session/check/engine.rb
41
56
  - lib/session/check/version.rb
42
- - lib/session/check.rb
43
- - lib/session-check.rb
44
- - config/routes.rb
45
- - README.md
46
57
  homepage: https://github.com/firstbanco/session-check
47
- licenses: []
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
48
61
  post_install_message:
49
62
  rdoc_options: []
50
63
  require_paths:
51
64
  - lib
52
65
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
66
  requirements:
55
- - - ! '>='
67
+ - - ">="
56
68
  - !ruby/object:Gem::Version
57
69
  version: '0'
58
70
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
71
  requirements:
61
- - - ! '>='
72
+ - - ">="
62
73
  - !ruby/object:Gem::Version
63
74
  version: '0'
64
75
  requirements: []
65
- rubyforge_project:
66
- rubygems_version: 1.8.25
76
+ rubygems_version: 3.0.3
67
77
  signing_key:
68
- specification_version: 3
78
+ specification_version: 4
69
79
  summary: A gem for JS clients to check if their session has expired.
70
80
  test_files: []
71
- has_rdoc: