limited_sessions 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * 2012-nov-14 - Merge changes from ejdraper
2
+
3
+ - Lower Rack requirement to v1.2.5+ for Rails 3.0 compatibility
4
+ - Fix an issue with scope chaining
5
+
1
6
  * 2012-jun-25 - Rails 3 and generic Rack compatibility; much simplified
2
7
 
3
8
  - LimitedSessions has been broken up into two parts:
@@ -18,10 +18,10 @@ module LimitedSessions
18
18
  self.self_clean_sessions = 1000 # 0 disables
19
19
 
20
20
  scope :active_session, lambda {
21
- recent_activity ? where("updated_at > ?", Time.current - recent_activity) : []
21
+ where("updated_at > ?", Time.current - recent_activity) if recent_activity
22
22
  }
23
23
  scope :current_session, lambda {
24
- max_session ? where("created_at > ?", Time.current - max_session) : []
24
+ where("created_at > ?", Time.current - max_session) if max_session
25
25
  }
26
26
 
27
27
  class << self
@@ -1,3 +1,3 @@
1
1
  module LimitedSessions
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,72 +1,74 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: limited_sessions
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 3
7
- - 0
8
- - 0
9
- version: 3.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - t.e.morgan
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-07-14 00:00:00 -06:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rack
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 4
30
- - 0
31
- version: 1.4.0
20
+ - !ruby/object:Gem::Version
21
+ version: 1.2.5
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: sqlite3
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.2.5
30
+ - !ruby/object:Gem::Dependency
31
+ name: sqlite3
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
44
38
  type: :development
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- name: rails
48
39
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
50
- requirements:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
51
  - - ~>
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 3
55
- - 2
56
- - 6
52
+ - !ruby/object:Gem::Version
57
53
  version: 3.2.6
58
54
  type: :development
59
- version_requirements: *id003
60
- description: "LimitedSessions provides two core features to handle cookie-based session expiry: 1) Rack Middleware for most session stores and 2) an ActiveRecord extension for AR-based session stores. Sessions can be expired on inactivity and/or overall session length."
61
- email:
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.2.6
62
+ description: ! 'LimitedSessions provides two core features to handle cookie-based
63
+ session expiry: 1) Rack Middleware for most session stores and 2) an ActiveRecord
64
+ extension for AR-based session stores. Sessions can be expired on inactivity and/or
65
+ overall session length.'
66
+ email:
62
67
  - tm@iprog.com
63
68
  executables: []
64
-
65
69
  extensions: []
66
-
67
70
  extra_rdoc_files: []
68
-
69
- files:
71
+ files:
70
72
  - lib/limited_sessions/expiry.rb
71
73
  - lib/limited_sessions/self_cleaning_session.rb
72
74
  - lib/limited_sessions/version.rb
@@ -76,37 +78,63 @@ files:
76
78
  - Rakefile
77
79
  - README
78
80
  - CHANGELOG
79
- has_rdoc: true
81
+ - test/dummy/app/assets/javascripts/application.js
82
+ - test/dummy/app/assets/stylesheets/application.css
83
+ - test/dummy/app/controllers/application_controller.rb
84
+ - test/dummy/app/helpers/application_helper.rb
85
+ - test/dummy/app/views/layouts/application.html.erb
86
+ - test/dummy/config/application.rb
87
+ - test/dummy/config/boot.rb
88
+ - test/dummy/config/database.yml
89
+ - test/dummy/config/environment.rb
90
+ - test/dummy/config/environments/development.rb
91
+ - test/dummy/config/environments/production.rb
92
+ - test/dummy/config/environments/test.rb
93
+ - test/dummy/config/initializers/backtrace_silencers.rb
94
+ - test/dummy/config/initializers/inflections.rb
95
+ - test/dummy/config/initializers/mime_types.rb
96
+ - test/dummy/config/initializers/secret_token.rb
97
+ - test/dummy/config/initializers/session_store.rb
98
+ - test/dummy/config/initializers/wrap_parameters.rb
99
+ - test/dummy/config/locales/en.yml
100
+ - test/dummy/config/routes.rb
101
+ - test/dummy/config.ru
102
+ - test/dummy/db/test.sqlite3
103
+ - test/dummy/log/test.log
104
+ - test/dummy/public/404.html
105
+ - test/dummy/public/422.html
106
+ - test/dummy/public/500.html
107
+ - test/dummy/public/favicon.ico
108
+ - test/dummy/Rakefile
109
+ - test/dummy/README.rdoc
110
+ - test/dummy/script/rails
111
+ - test/limited_sessions_test.rb
112
+ - test/test_helper.rb
80
113
  homepage: http://iprog.com/projects#limited_sessions
81
114
  licenses: []
82
-
83
115
  post_install_message:
84
116
  rdoc_options: []
85
-
86
- require_paths:
117
+ require_paths:
87
118
  - lib
88
- required_ruby_version: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- segments:
93
- - 0
94
- version: "0"
95
- required_rubygems_version: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- segments:
100
- - 0
101
- version: "0"
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
102
131
  requirements: []
103
-
104
132
  rubyforge_project:
105
- rubygems_version: 1.3.6
133
+ rubygems_version: 1.8.24
106
134
  signing_key:
107
135
  specification_version: 3
108
136
  summary: Server-side session expiry via either Rack Middleware or ActiveRecord extension
109
- test_files:
137
+ test_files:
110
138
  - test/dummy/app/assets/javascripts/application.js
111
139
  - test/dummy/app/assets/stylesheets/application.css
112
140
  - test/dummy/app/controllers/application_controller.rb