kschrader-authlogic 2.1.2 → 2.1.3

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.
@@ -1,6 +1,9 @@
1
- == 2.1.2
1
+ == 2.1.3
2
2
 
3
3
  * Use Rails Timezones
4
+
5
+ == 2.1.2
6
+
4
7
  * Return the newly create object for the class level create method, instead of a boolean
5
8
  * Add a model_name class method for Authlogic::Session for rails 3 compatibility. Will be using ActiveModel eventually, but this should be a quick fix.
6
9
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
3
  :major: 2
4
- :patch: 2
4
+ :patch: 3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{authlogic}
5
- s.version = "2.1.2"
5
+ s.version = "2.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Johnson of Binary Logic"]
@@ -52,7 +52,7 @@ module Authlogic
52
52
 
53
53
  if record.respond_to?(:current_login_at)
54
54
  record.last_login_at = record.current_login_at if record.respond_to?(:last_login_at)
55
- record.current_login_at = klass.default_timezone == :utc ? Time.zone.now.utc : Time.zone.now
55
+ record.current_login_at = Time.zone.now
56
56
  end
57
57
 
58
58
  if record.respond_to?(:current_login_ip)
@@ -82,7 +82,7 @@ module Authlogic
82
82
  end
83
83
 
84
84
  def set_last_request_at
85
- record.last_request_at = klass.default_timezone == :utc ? Time.zone.now.utc : Time.zone.now
85
+ record.last_request_at = Time.zone.now
86
86
  end
87
87
 
88
88
  def last_request_at_threshold
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kschrader-authlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic