rdux 0.3.0 → 0.4.0

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: 56611332f7071f2e1b9975e05c8886ff05f6b7107817ee5b71bb36d97e6b720d
4
- data.tar.gz: 210f46fd573288d20dbdc38f4fa62c3ecef064ff7cafa48ee0f8549ab631ebcc
3
+ metadata.gz: 32c03f6ef68f19c9b2a00f688e995f085d01e8adddca45615a19349a5c4dc602
4
+ data.tar.gz: 42298a7b25fa3de1f8c11b572f7c8248f28343d88962811e266744c8de873b49
5
5
  SHA512:
6
- metadata.gz: 140e8bb81c6ad284a931a3d5565777c76e57bbc20405e8220846e2d4691635939f4fa0069ce2a22756b5f79e4788a9a873895de36a7b5f7ad07cac3b23d28d35
7
- data.tar.gz: e61e3931c6ddd9b206ba58d1eb95d2ca375f6343a61c293198bb24be9f119f2020aebee9a35be2aa664ea59b1a8b8f3372b394b2e2e0748fcde61c17025c3e47
6
+ metadata.gz: 44b54602854ba8f15ff235892f9f34c585c0b54291e14622af0be5cb289eb44cd9f8bcd31d40c8d39390ad20da701cd3a08abf020c34e803cb8ac3183be8e4b9
7
+ data.tar.gz: fa8d26cc9d9ef09d6205bbdb722692f48780d4124ce802feaee630631c82bb21de9af13f55de812aa7690b85408bb11c824c6dde345ccc1a91be49be9208a450
@@ -28,8 +28,9 @@ module Rdux
28
28
  return false unless down_at.nil?
29
29
  return false unless can_down?
30
30
 
31
- perform_action(:down, down_payload, build_opts)
31
+ res = perform_action(:down, down_payload, build_opts)
32
32
  update(down_at: Time.current)
33
+ res
33
34
  end
34
35
 
35
36
  def to_failed_action
@@ -5,7 +5,7 @@ class CreateRduxFailedActions < ActiveRecord::Migration[7.0]
5
5
  create_table :rdux_failed_actions do |t|
6
6
  t.string :name, null: false
7
7
  t.column :up_payload, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text), null: false
8
- t.boolean :up_payload_sanitized, default: false
8
+ t.boolean :up_payload_sanitized, default: false, null: false
9
9
  t.column :up_result, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text)
10
10
  t.column :meta, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text)
11
11
  t.string :stream_hash
@@ -7,7 +7,7 @@ class CreateRduxActions < ActiveRecord::Migration[7.0]
7
7
  t.column :up_payload, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text), null: false
8
8
  t.column :down_payload, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text)
9
9
  t.datetime :down_at
10
- t.boolean :up_payload_sanitized, default: false
10
+ t.boolean :up_payload_sanitized, default: false, null: false
11
11
  t.column :up_result, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text)
12
12
  t.column :meta, (ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' ? :jsonb : :text)
13
13
  t.string :stream_hash
data/lib/rdux/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rdux
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zbigniew Humeniuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-31 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 1.54.1
53
+ version: 1.55.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 1.54.1
60
+ version: 1.55.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rubocop-rails
63
63
  requirement: !ruby/object:Gem::Requirement