Commit 0fef1d4

mo <mo@mokhan.ca>
2018-02-12 18:41:14
`before` is not available in activemodel 4.2
1 parent a77e893
Changed files (2)
lib/saml/kit/assertion.rb
@@ -36,7 +36,8 @@ module Saml
       end
 
       def active?(now = Time.current)
-        now > configuration.clock_drift.seconds.before(started_at) && !expired?
+        drifted_started_at = started_at - configuration.clock_drift.to_i.seconds
+        now > drifted_started_at && !expired?
       end
 
       def attributes
lib/saml/kit/version.rb
@@ -1,5 +1,5 @@
 module Saml
   module Kit
-    VERSION = "1.0.4"
+    VERSION = "1.0.5"
   end
 end