geo_monitor 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 579cb4bf30246ce0036e37a1ddda3a4a1208352a
4
- data.tar.gz: 306039fef4be166bd345bc1d45cd2c5cb9a3ff87
3
+ metadata.gz: e0dee5fad19eb247218be04745c1d5796bc1131c
4
+ data.tar.gz: 96b4c55bfc9e97bddd0487609d2742c16ed3b3fb
5
5
  SHA512:
6
- metadata.gz: 4ffd3dfccc04baecd9ad5dc322a251c3a1b4c9ca2484938cd76582a081e2237e615daf8b823b155585dc489d41860b9cc562b3808f6119965f1d28f71e6594c4
7
- data.tar.gz: 8ea2dc1e61783dc6b5e35dfedb4fdc3813702248efd8747c87ba20ebae91fa5f1e28f803375144d3d9429714a2c527812582c6e8a223c2e09c133e1a856a86ce
6
+ metadata.gz: 5907cefc468dea339132b359c2618fcfdf908da0dbcb7f89415be76bafa14c75a327e2d0cfa16cf8ecdb670b052bc7025d7909ba1d1a7b0ce0158b874261206a
7
+ data.tar.gz: e30e44e79232cd1655a588ed660b13c8b7bc5c89de37d0514f7dacd28629cb7e0c22b3849756e40fe1ca512872659ba79a2e29ae27d2af9ac45b0a436c7018b1
@@ -10,7 +10,7 @@ module GeoMonitor
10
10
  max = ::GeoMonitor::Engine.config.max_status_per_layer
11
11
  self.class
12
12
  .where(layer: layer)
13
- .last(statuses_by_layer - max + 1)
13
+ .first(statuses_by_layer - max + 1)
14
14
  .map(&:destroy) if statuses_by_layer >= max
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module GeoMonitor
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2018-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails