wolcanus-simple_captcha 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, :default -> { Time.now }
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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module SimpleCaptcha
3
- VERSION = "0.1.5".freeze
3
+ VERSION = "0.1.6".freeze
4
4
  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.5
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: &70322792340720 !ruby/object:Gem::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: *70322792340720
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