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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4041a344bd53943f281696cafdd0b0a7fa05969b33ac849475f39efd9333018
4
- data.tar.gz: 73a7b1175df2b8e8b7ce6e89cbc13bce208e575b662a31ea03f11ed66fbd0961
3
+ metadata.gz: 64a311e997f51bcd3ddf92571120c63976f32c35c9da22d3acd1e844ca4b152e
4
+ data.tar.gz: 68482f3ef456a7e677bfdd3bd9da93ccec5cf3029a9b21a78820cf0d1f210249
5
5
  SHA512:
6
- metadata.gz: bb042126f12c372d0d3767d785d095aa68b48bb71faa10866fa7de6216b47ff7e885ef55611b10cd1d65f9d53aff515a7723fc429ee3095dc3b6ac749e0f761d
7
- data.tar.gz: 8cbf5b168781b8ea1125382b998492e6f6d38cf1b46dc8c766b432e93f19e786547dc5dfc8f5437b5623d33970d67d090857abdcd58a5eb5e80804fc682efd36
6
+ metadata.gz: c15a9b5155db86ea3fc43323bcb2ed37e82a2fff199077861a1c7698c998fb4ccd08b7ba70f3f9a190f1d2f5e14430caf880ce0a3d468d83f20941c3d9b41f8e
7
+ data.tar.gz: 8248faf77812deb4a073c4215d6796ac60932e97c0fc3efe36ce8a11eb79b5e06a41f7a7dab13c9759ffc79d296ad6d82a85340a59f388a7d19b966b5a6d631a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acidic_job (0.5.3)
4
+ acidic_job (0.5.4)
5
5
  activerecord (>= 4.0.0)
6
6
  activesupport
7
7
 
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AcidicJob
4
- VERSION = "0.5.3"
4
+ VERSION = "0.5.4"
5
5
  end
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, ensure that `Key#attr_accessors` is populated with initial values
170
- key.update_column(:attr_accessors, passed_arguments)
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
- passed_arguments.each do |accessor, value|
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
@@ -4,6 +4,7 @@ class CreateStagedAcidicJobs < <%= migration_class %>
4
4
  t.string :adapter, null: false
5
5
  t.string :job_name, null: false
6
6
  t.text :job_args, null: true
7
+ t.timestamps
7
8
  end
8
9
  end
9
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acidic_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - fractaledmind