postburner 0.6.2 → 0.6.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
  SHA256:
3
- metadata.gz: 6d47898f4be7a93d1643ba6ff32db238b341a2ceed09bbc18de2774d3048d9cd
4
- data.tar.gz: 934f5a102f6644e679c2bf30d4708e171f01d88b5652fe6bcef2cac8b6fe4c50
3
+ metadata.gz: a63bf3c67a22be147995ab0fbe4464052a3d1aa733a537154045cd9f877659e4
4
+ data.tar.gz: cada05ac83afe59868738069c37b2d0cd4146fccff113f8652457c63101de6e6
5
5
  SHA512:
6
- metadata.gz: cb29ebe178b4675552a441c335fd95867a9a26c0a15235c42d5dff0f8ab72c40c417c728bc171ecf461ef3e78c9672364b89fae3b91419dceac59f80ad4c9986
7
- data.tar.gz: 807cb26488522a5a3becdc53fbc43b44a9123d1355ee31d2b79dc2d1d479ce714a6b3a5f20c60b74e2f2fc22753736e6fde9822fe59e83feab69024e34e60deb
6
+ metadata.gz: 1ef155f03796765abe928ca1bf4bad33d02baa477b89228ceb6a60b7dfd8f0fb53c971514f768f37d2da5d1c6e448979c1518d4432f41df52996cc0f7c5ec970
7
+ data.tar.gz: 195c508533acc42cef7d680b60af1ac2f7c29648ce4a3df5b2ba0cf866d2879d9410ea0f35f528d55ca173e5d02d5f536252621c935a557620fd0250d8f708e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.6.3 - 2021-11-02
4
+
5
+ ### Fixed
6
+ - fix #remove! to allow removal even if no beanstalkd job present.
7
+
3
8
  ## v0.6.2 - 2021-11-01
4
9
 
5
10
  ### Fixed
@@ -166,12 +166,9 @@ module Postburner
166
166
  end
167
167
 
168
168
  def remove!
169
- if self.beanstalk_job
170
- self.delete!
171
- self.update_column(:removed_at, Time.zone.now)
172
- else
173
- false
174
- end
169
+ return if self.removed_at
170
+ self.delete!
171
+ self.update_column(:removed_at, Time.zone.now)
175
172
  end
176
173
 
177
174
  def beanstalk_job
@@ -1,3 +1,3 @@
1
1
  module Postburner
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postburner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-01 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails