sequence_on 0.0.7 → 0.0.8

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: b610ca5c4ab725754697b7d68306a0d6361d28ed
4
- data.tar.gz: fe6c807b9d340814f3b144e32909fa0091cc06b3
3
+ metadata.gz: e97dce7a7f9809737b7fae8b915e54e22f3beae3
4
+ data.tar.gz: bb16124a73b33420fd7de13cab0384ff49083419
5
5
  SHA512:
6
- metadata.gz: 638b46f917064f5dc9b9395cbbd1c042c5c75d0c21d07a10a2a5dbf1a7aae7e1354a53eee6fe7bcf9af936eaacc063a1c55f1fa0ae2c1cc2a7b84279b8029fc7
7
- data.tar.gz: 80c8b242962c51afc6de7de9afd8fb4a6b9ec9cf49d397885208d72612ec4231d52f799f841c38c6a50b6326aed729fb943f1e774c89938216282a61050a59b0
6
+ metadata.gz: 3c101797f065cda5c73a807275d20a759c8abef47061c63df508484da27c321225bd83e5cddc150cb13baad7cfc41d57a3a2b9a984b8d5c4284b51d84121afa0
7
+ data.tar.gz: ce2350213fe90e58872f2bd37ec39c83b35b6eb6cfdc864e2542b859462d7e0ecefce10fded255bd34620f4d2a5c34ed9f9bf0e62474a9fa55eacb1eaca06772
@@ -35,7 +35,7 @@ module SequenceOn
35
35
  end
36
36
 
37
37
  self.sequential_id = if last_record
38
- last_record.send(options[:column]) + 1
38
+ (last_record.send(options[:column]) || 0) + 1
39
39
  else
40
40
  options[:start_at]
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequence_on
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy SEBAN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport