acidic_job 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/console +2 -1
- data/lib/acidic_job/version.rb +1 -1
- data/lib/acidic_job.rb +6 -3
- data/lib/generators/templates/create_staged_acidic_jobs_migration.rb.erb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64a311e997f51bcd3ddf92571120c63976f32c35c9da22d3acd1e844ca4b152e
|
4
|
+
data.tar.gz: 68482f3ef456a7e677bfdd3bd9da93ccec5cf3029a9b21a78820cf0d1f210249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c15a9b5155db86ea3fc43323bcb2ed37e82a2fff199077861a1c7698c998fb4ccd08b7ba70f3f9a190f1d2f5e14430caf880ce0a3d468d83f20941c3d9b41f8e
|
7
|
+
data.tar.gz: 8248faf77812deb4a073c4215d6796ac60932e97c0fc3efe36ce8a11eb79b5e06a41f7a7dab13c9759ffc79d296ad6d82a85340a59f388a7d19b966b5a6d631a
|
data/Gemfile.lock
CHANGED
data/bin/console
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
|
4
4
|
require "bundler/setup"
|
5
5
|
require "acidic_job"
|
6
|
-
require_relative "../test/setup"
|
6
|
+
require_relative "../test/support/setup"
|
7
|
+
require_relative "../test/support/ride_create_job"
|
7
8
|
|
8
9
|
# You can add fixtures and/or initialization code here to make experimenting
|
9
10
|
# with your gem easier. You can also use a different console, if you like.
|
data/lib/acidic_job/version.rb
CHANGED
data/lib/acidic_job.rb
CHANGED
@@ -166,10 +166,13 @@ module AcidicJob
|
|
166
166
|
end
|
167
167
|
|
168
168
|
def define_accessors_for_passed_arguments(passed_arguments, key)
|
169
|
-
# first,
|
170
|
-
key.
|
169
|
+
# first, get the current state of all accessors for both previously persisted and initialized values
|
170
|
+
current_accessors = passed_arguments.stringify_keys.merge(key.attr_accessors)
|
171
171
|
|
172
|
-
|
172
|
+
# next, ensure that `Key#attr_accessors` is populated with initial values
|
173
|
+
key.update_column(:attr_accessors, current_accessors)
|
174
|
+
|
175
|
+
current_accessors.each do |accessor, value|
|
173
176
|
# the reader method may already be defined
|
174
177
|
self.class.attr_reader accessor unless respond_to?(accessor)
|
175
178
|
# but we should always update the value to match the current value
|