acidic_job 0.2.1 → 0.2.2

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: ed6991438cd55a757d0c3606591dd3e39cf470a2fca7486afea1d9efbb948aa6
4
- data.tar.gz: d5f078c2111b538ebc7b16df70b2986fa7e1c958716806ad4778c81817b9d3f4
3
+ metadata.gz: efbbe68a5d9822e76723f8724743f58b6566706937fa1e939f1fba67ccb8fece
4
+ data.tar.gz: 48a2cc89d6c9cc0bc13dc95abcce456b5be78bb15ae583e68fd9c72b86ed466a
5
5
  SHA512:
6
- metadata.gz: 24aa6c22959133bd68f3947bd15a742b6b314e7fb174b45fede5b598a85a63f04c2ba95a96e53ad3167fbfa1b9c9dcb981c7d59786be87d36520bab825255605
7
- data.tar.gz: 02fad1948a7a17b81c2a6be0e48c271563fc7ce84a8de5ec5b84d3e1bb2ca65dbe6e838c4f4eb3c05eb2497424fe33fb5ea0e2c8e1001861ec75cb0c835a153a
6
+ metadata.gz: 5f095c6a40548b07d4216e8939f52b533778071e4eef2df4090e35f681766a391805a394966d39a3e809e6d1c48094bbb39e768e986401a847882fe8b61ce5ef
7
+ data.tar.gz: e05b1a3f238492038c40e1a3d51110c52f7062b0143b12d78ac3aace525ea225a13db139f951bc6cf46cc04b14429beaa55c99b0f772c806014b746b88e14897
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acidic_job (0.2.1)
4
+ acidic_job (0.2.2)
5
5
  activerecord (>= 4.0.0)
6
6
  activesupport
7
7
 
data/lib/acidic_job.rb CHANGED
@@ -23,7 +23,6 @@ module AcidicJob
23
23
 
24
24
  self.table_name = "acidic_job_keys"
25
25
 
26
- serialize :job_args, Hash
27
26
  serialize :error_object
28
27
 
29
28
  validates :job_name, presence: true
@@ -157,7 +156,7 @@ module AcidicJob
157
156
  if @key
158
157
  # Programs enqueuing multiple jobs with different parameters but the
159
158
  # same idempotency key is a bug.
160
- raise MismatchedIdempotencyKeyAndJobArguments if @key.job_args != job_args.as_json
159
+ raise MismatchedIdempotencyKeyAndJobArguments if @key.job_args != job_args.deep_stringify_keys.inspect
161
160
 
162
161
  # Only acquire a lock if the key is unlocked or its lock has expired
163
162
  # because the original job was long enough ago.
@@ -172,7 +171,7 @@ module AcidicJob
172
171
  last_run_at: Time.current,
173
172
  recovery_point: first_step,
174
173
  job_name: self.class.name,
175
- job_args: job_args.as_json
174
+ job_args: job_args.inspect
176
175
  )
177
176
  end
178
177
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AcidicJob
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acidic_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fractaledmind
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2021-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport