emailbutler 0.8.9 → 0.8.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ada5504f96c4edb97d8ce9606a9e9d41e73ee2d28307918b0c23b3bfdba1098e
4
- data.tar.gz: 5a222397cfb2c5f8c0e509aed7630bab475756c17ed739c1cc624721a72ab174
3
+ metadata.gz: c2e8776bbe8308af355830c505f91681a0b84303f06d7b12f508783d53c554c7
4
+ data.tar.gz: a296c909ff18e2467ecd48b6a6cd20e8909f52455957d3f237e76bf2d4202a42
5
5
  SHA512:
6
- metadata.gz: 61c6168bfc761ca9771a72ec0922e005aaaa1fd712740d94d1e59c9ac3bc29ff513c91aa6218dd7192da744adc7b4325b0a09a17ee20d90ef78f3cbbe54fd4b7
7
- data.tar.gz: 77841a5f4db98c6ef57c6176e2f280ea111e3b07d0072336119ecc6252ebd96c6ab41f81078b2127c71fd617687a9f14f47732fd19a21b8e5fc67bf6ffc67d6e
6
+ metadata.gz: ef035730c3748e89e332e84cebe9373e6be45d9b0a163f4f8bd0314118ea8b2dd026770fb1e29f57ffcac86878998d8f3f37289d925d04c3821aeac0d22d1784
7
+ data.tar.gz: 4264b8cb57e49239b27f0998d5e543b02d1218442a77422b9ba55e86816536c38582856322b4c0016b5da68561f09939ba436da73649ffd5b3d2f4b979a0f730
@@ -21,7 +21,11 @@ module Emailbutler
21
21
  FAILED = 'failed'
22
22
  DELIVERED = 'delivered'
23
23
 
24
- enum :status, { CREATED => 0, REJECTED => 1, PROCESSED => 2, FAILED => 3, DELIVERED => 4 }
24
+ if Gem.loaded_specs['activerecord'].version < Gem::Version.create('7.0')
25
+ enum status: { CREATED => 0, REJECTED => 1, PROCESSED => 2, FAILED => 3, DELIVERED => 4 }
26
+ else
27
+ enum :status, { CREATED => 0, REJECTED => 1, PROCESSED => 2, FAILED => 3, DELIVERED => 4 }
28
+ end
25
29
 
26
30
  after_initialize :generate_uuid
27
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Emailbutler
4
- VERSION = '0.8.9'
4
+ VERSION = '0.8.10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailbutler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdanov Anton