data_shifter 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/data_shifter/shift.rb +1 -1
- data/lib/data_shifter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfa460ab8342cf6f65e212d528b29afe8151e85dc0b39a94bd635eb45806eaf4
|
|
4
|
+
data.tar.gz: 6daed44d528e00a43dc51faac74c8f0b844c75c2aaf6d1f438c15f7b4306ea9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f5b8f11fb96092b6a29ebde6ade766b7df8e0b405963a93c735d1b97f815679bee5e818b4ded727a56d3571e705b4d643786bd39a6adce195eee10b45511b24
|
|
7
|
+
data.tar.gz: 0bdc3fbe77af4d2ffaab68ceade540dbb4adb8917f5852177febbbe3e40b0db5ad59d85383a3e1448ca7a0407d9acc3c0ed4751a577f99e3a66a1f5d7b32e050
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.3.5]
|
|
6
|
+
|
|
7
|
+
* [Changed] `Shift#run!` now wraps its call in `Axn::Extensions::InvokedVia.with(:data_shifter)`, tagging every axn in the run (including nested sub-axns and enqueue-time job tags) with `invoked_via: :data_shifter`. Bumps the minimum `axn` to `>= 0.1.0-alpha.6`, the first release shipping `Axn::Extensions::InvokedVia`.
|
|
8
|
+
* [Fixed] Test suite no longer triggers Sidekiq's `require "sidekiq/testing"` deprecation warning; it now uses `Sidekiq.testing!(:fake)` on Sidekiq >= 8 and falls back to the old `require` on older versions.
|
|
9
|
+
|
|
5
10
|
## [0.3.4]
|
|
6
11
|
|
|
7
12
|
* [Changed] `COMMIT` / `DRY_RUN` are now parsed as real booleans (`1/true/t/yes/y/on` vs `0/false/f/no/n/off`, case- and whitespace-insensitive). **`DRY_RUN=1` now means a dry run** — previously the `DRY_RUN == "true"` compare read `DRY_RUN=1` as "not dry" and committed the shift, which is data loss for a value that is truthy in every other tool. Unrecognized values (e.g. `COMMIT=garbage`) now raise `ArgumentError` instead of silently dry-running. `DRY_RUN=false` / `COMMIT=1` still commit.
|
data/lib/data_shifter/shift.rb
CHANGED
|
@@ -174,7 +174,7 @@ module DataShifter
|
|
|
174
174
|
|
|
175
175
|
def run!
|
|
176
176
|
dry_run = Internal::Env.dry_run?
|
|
177
|
-
result = call(dry_run:)
|
|
177
|
+
result = Axn::Extensions::InvokedVia.with(:data_shifter) { call(dry_run:) }
|
|
178
178
|
raise result.exception if result.exception
|
|
179
179
|
raise StandardError, result.error unless result.ok?
|
|
180
180
|
end
|
data/lib/data_shifter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: data_shifter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kali Donovan
|
|
@@ -43,7 +43,7 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.1.0.pre.alpha.
|
|
46
|
+
version: 0.1.0.pre.alpha.6
|
|
47
47
|
- - "<"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
49
|
version: 0.2.0
|
|
@@ -53,7 +53,7 @@ dependencies:
|
|
|
53
53
|
requirements:
|
|
54
54
|
- - ">="
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 0.1.0.pre.alpha.
|
|
56
|
+
version: 0.1.0.pre.alpha.6
|
|
57
57
|
- - "<"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
59
|
version: 0.2.0
|