lockdown 0.1.0 → 0.1.1

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/History.txt CHANGED
@@ -1,4 +1,10 @@
1
+ == 0.1.1 2008-04-18
2
+ * Fixed bug with session cleanup.
3
+
4
+ == 0.1.0 2008-04-18
5
+ * Nearing public release status. Will release at a minor version of 1
6
+ * In bug testing mode now.
7
+
1
8
  == 0.0.1 2008-04-18
2
9
 
3
- * 1 major enhancement:
4
- * Initial release
10
+ * initial add of gem
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/lockdown.rb CHANGED
@@ -111,8 +111,8 @@ module Lockdown
111
111
  include Lockdown::Helper
112
112
 
113
113
  def nil_lockdown_values
114
- session.each do |key,value|
115
- session[key] = nil if key.to_s =~ /^user_|access_|expiry/
114
+ %w(user_id user_name user_profile_id access_rights).each do |val|
115
+ session[val] = nil if session[val]
116
116
  end
117
117
  end
118
118
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FIXME full name