wolcanus-simple_captcha 0.1.5 → 0.1.6
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.
@@ -4,7 +4,7 @@ module SimpleCaptcha
|
|
4
4
|
|
5
5
|
field :key, :type => String
|
6
6
|
field :value, :type => String
|
7
|
-
field :created_at, :type => Time, :
|
7
|
+
field :created_at, :type => Time, default: -> { Time.now }
|
8
8
|
|
9
9
|
class << self
|
10
10
|
def get_data(key)
|
@@ -18,7 +18,7 @@ module SimpleCaptcha
|
|
18
18
|
|
19
19
|
def clear_old_data(time = 1.hour.ago)
|
20
20
|
return unless Time === time
|
21
|
-
SimpleCaptchaData.where(:updated_at.lt => time).delete_all
|
21
|
+
SimpleCaptchaData.where(:updated_at.lt => time.utc).delete_all
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolcanus-simple_captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-18 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
16
|
-
requirement: &
|
16
|
+
requirement: &70279430797600 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 2.3.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70279430797600
|
25
25
|
description: SimpleCaptcha is available to be used with Rails 3 or above and also
|
26
26
|
it provides the backward compatibility with previous versions of Rails.
|
27
27
|
email: weverton@wolcan.us
|