data_taster 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11d56e26a4a1c6e622d7ef2e520cb8f613a25fe2d85913d4848040cf8353fbb1
4
- data.tar.gz: 0623f9f5543eef0469b11f9dbf22cefd489ef849fb4bb7809449d5cff10c1e1b
3
+ metadata.gz: a78a2fcd415d03830f1fdd08ed9ae8230c284501f265594b9ba9295b6d26e3b4
4
+ data.tar.gz: 381f2629b8577df802de57d63d9cd46a4ab053e171b067f3ce1e5d8584b4b76d
5
5
  SHA512:
6
- metadata.gz: f5e1334b7a9c32432f8441a81f99c430672b72709755e8a23844b39b57fb8b11ddeb438e4ac48e33cabebe5de4233d44a787c445210aacad029cf8bbeeb3f933
7
- data.tar.gz: 4834fee985c8e849b5e0c29022539e8e6b6edcbefb474d207d75ec6426d93d3428cbbb6118e98139e4a825c85707c95f583306a02894583f674c30f73a038255
6
+ metadata.gz: 13a97b5ee7cff7b8250a41719e0818bb828e76e509fac19727045f5f73a314e53efdf79269e7ad92a19ec0a0201a62a8d2e56dc0ab8b2bb4dfe41ae327c9302d
7
+ data.tar.gz: 1e75e66bda81aebadacac1d28b257596d0960ad239ee64a725ddc3708f9a5939a80950ddb561dc24f3f9b3ddbf24d2ba0a0a2b1308be43a0c695c1a9b3ed7786
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- data_taster (0.5.0)
14
+ data_taster (0.5.1)
15
15
  rails (>= 6.1, < 8)
16
16
 
17
17
  GEM
data/docs/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.5.0] - 2026-07-08
3
+ ### Dependencies and platform support
4
+
5
+ - Update rainbow to v3.x [#372](https://github.com/powerhome/power-tools/pull/372)
6
+ - Update yard to 0.9.38 to address [Cross-site Scripting vulnerability](https://github.com/powerhome/power-tools/security/dependabot/544) [#394](https://github.com/powerhome/power-tools/pull/394)
7
+ - Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
8
+ - Remove more Rails 6.0 config handling
9
+ - Standardize all libs to support ruby 3.0, ruby 3.3 x rails 6.1 through rails 7.2 [#359](https://github.com/powerhome/power-tools/pull/359)
10
+ - Lock activesupport requirement to ~> 7.0.8
11
+ - Setup test environment and add simple specs
12
+ - Fix issue reading database config to support Rails 6.0
13
+ - Add more specs, including actual run of a dump for default sanitization
14
+
15
+ ## [0.5.1] - 2026-07-16
4
16
 
5
17
  ### Breaking changes
6
18
 
@@ -29,17 +41,9 @@
29
41
 
30
42
  - Correctly treat JSON column values as quoted strings instead of binary hex literals
31
43
 
32
- ### Dependencies and platform support
44
+ ## [0.5.0] - 2026-07-08
33
45
 
34
- - Update rainbow to v3.x [#372](https://github.com/powerhome/power-tools/pull/372)
35
- - Update yard to 0.9.38 to address [Cross-site Scripting vulnerability](https://github.com/powerhome/power-tools/security/dependabot/544) [#394](https://github.com/powerhome/power-tools/pull/394)
36
- - Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
37
- - Remove more Rails 6.0 config handling
38
- - Standardize all libs to support ruby 3.0, ruby 3.3 x rails 6.1 through rails 7.2 [#359](https://github.com/powerhome/power-tools/pull/359)
39
- - Lock activesupport requirement to ~> 7.0.8
40
- - Setup test environment and add simple specs
41
- - Fix issue reading database config to support Rails 6.0
42
- - Add more specs, including actual run of a dump for default sanitization
46
+ - Published in the wrong order and produced errors. Use 0.5.1 instead.
43
47
 
44
48
  ## [0.4.3] - 2025-07-28
45
49
 
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- data_taster (0.5.0)
14
+ data_taster (0.5.1)
15
15
  rails (>= 6.1, < 8)
16
16
 
17
17
  GEM
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- data_taster (0.5.0)
14
+ data_taster (0.5.1)
15
15
  rails (>= 6.1, < 8)
16
16
 
17
17
  GEM
@@ -6,9 +6,8 @@ module DataTaster
6
6
 
7
7
  def sample!
8
8
  start_export
9
-
10
9
  process_export
11
-
10
+ ensure
12
11
  finish_export
13
12
  end
14
13
 
@@ -48,6 +47,8 @@ module DataTaster
48
47
  end
49
48
 
50
49
  def finish_export
50
+ return unless @io && !@io.closed?
51
+
51
52
  @io.puts "SET FOREIGN_KEY_CHECKS=1;"
52
53
  @io.close
53
54
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DataTaster
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
data/lib/data_taster.rb CHANGED
@@ -37,6 +37,7 @@ module DataTaster
37
37
  end
38
38
 
39
39
  def self.setup(source:, output:, months: nil, list: nil)
40
+ @confection = nil
40
41
  self.config = Config.new(
41
42
  source,
42
43
  output,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_taster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jill Klang