aranha-rails 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49f04cc5c0a957bc1aec7617dc1a6e736d860d80905afa04844587b8c57dd2bd
4
- data.tar.gz: 18c6a92f2c28731b7224ea7a99a3521c684c56e33446f29601fcab4bf2de3a68
3
+ metadata.gz: 9c2bfb595a37e39eb60a336df45502b5efdd52ef26b1c488fb60500cc2ca93c1
4
+ data.tar.gz: 983c14439b792dbd495578a57fcc8960468cb6d126d07f7635b030cc78aa12aa
5
5
  SHA512:
6
- metadata.gz: a0cf36bd155c0ccdea28701d96d385eb28d3e80a09a9a37e273b1b372f1598c27030a89d040492a707eefea98caf043972e86dc00b90e68f034cb60ef0cd59ab
7
- data.tar.gz: 7947c879299d9ee6f0104fe7b6577a8ecc544f6bbccb59cc92f3799b951b98c2f8cd1fc7579b348d69eaa3780f70399008b901a196b42a00a15a7394bb85a2f8
6
+ metadata.gz: 8e56125aa6b80634a9e9f43db75184868edf4081245157a1949b559c7aaf8e919fa63d6f2a1d210eb5229368eec478918d429d83960719db1bb0d4a28f09c4a5
7
+ data.tar.gz: 55d5cedac52545c011fdcab381029bdb680db791ee8855e7dd15b9cd4b7aa1a0aa290f713ae8be27bdb9d4cd84cb0116a4d6b90a04e2224c9dfddd41ba66608e
@@ -22,9 +22,9 @@ module Aranha
22
22
  end
23
23
 
24
24
  def clear_expired_addresses
25
- q = ::Aranha::Address.by_created_at_lt(Time.zone.now - 12.hours)
25
+ q = ::Aranha::Address.expired(::Time.zone.now)
26
26
  ::Rails.logger.info("Addresses expired: #{q.count}")
27
- q.destroy_all
27
+ q.each(&:destroy)
28
28
  end
29
29
 
30
30
  def log_info(message)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Rails
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aranha-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-08 00:00:00.000000000 Z
11
+ date: 2021-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_scaffold