backhoe 0.10.0 → 0.10.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: 779de972f23a178e054d789eb0f09c70b7200b87468a4c85d14b53de9eddcfb8
4
- data.tar.gz: 9621e4f611daa56dc8d34abc4285b9e86dbc79d3391b0463b39cdb663b02eee2
3
+ metadata.gz: 77326a186f91c5bf3d2f47475d05bb64922b1df6039a8ee3d151779fafde9c85
4
+ data.tar.gz: ce066cade2bb20be3d146ac30086116a7780619b8ecef4edb3a40f677b0f0857
5
5
  SHA512:
6
- metadata.gz: f1ee8947074606e2d4e4eca671883cd0c3ceab65de25dfd2228eada96888c316cd756dac556c3dd0a5ee16442dee8163155cb14498917355de67201bc505a8f5
7
- data.tar.gz: e050249511d82941b33713b915399f51264608f32a40ae9cbf7bd58dd592eafe45a9ee99e22ec6e9c80df372211ee57534b6dcf831ca6ab4c29a3d305e7968e3
6
+ metadata.gz: e8f17f5ce5699cc9d4c8fd6eab4ab93881cfb6d01e723a3f7383c7506a483a29b8b170f0ff23c528e25f4b9f21b5d0b547208c5390a35403cbf7e0c7901ce5a9
7
+ data.tar.gz: 6352b47008307ecd5f300c2f577a2ab1e92c4164af9f97ae9aefd7b03ab53f60161cc4c9c29b29bd8bef40fecf1f7ead833157838e3cf81f9532b83d2b837b7e
@@ -5,8 +5,8 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- gemfile: [ activerecord_6.0, activerecord_6.1, activerecord_7.0, activerecord_7.1 ]
9
- ruby: [ '3.0', 3.1, 3.2, 3.3 ]
8
+ gemfile: [ activerecord_7.0, activerecord_7.1, activerecore_7.2 ]
9
+ ruby: [ 3.1, 3.2, 3.3 ]
10
10
 
11
11
  runs-on: ubuntu-22.04
12
12
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
data/Appraisals CHANGED
@@ -1,11 +1,3 @@
1
- appraise "activerecord-6.0" do
2
- gem "activerecord", "~>6.0.0"
3
- end
4
-
5
- appraise "activerecord-6.1" do
6
- gem "activerecord", "~>6.1.0"
7
- end
8
-
9
1
  appraise "activerecord-7.0" do
10
2
  gem "activerecord", "~>7.0.0"
11
3
  end
@@ -14,3 +6,7 @@ appraise "activerecord-7.1" do
14
6
  gem "activerecord", "~>7.1.0"
15
7
  end
16
8
 
9
+ appraise "activerecord-7.2" do
10
+ gem "activerecord", "~>7.2.0"
11
+ end
12
+
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Backhoe
2
- [![CI Status](https://github.com/botandrose/backhoe/workflows/CI/badge.svg?branch=master)](https://github.com/botandrose/backhoe/actions?query=workflow%3ACI+branch%3Amaster)
2
+ [![CI Status](https://github.com/botandrose/backhoe/actions/workflows/ci.yml/badge.svg)](https://github.com/botandrose/backhoe/actions/workflows/ci.yml)
3
3
 
4
4
  Dump and load current ActiveRecord database to and from a file.
5
5
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~>6.0.0"
5
+ gem "activerecord", "~>7.2.0"
6
6
 
7
7
  gemspec path: "../"
data/lib/backhoe/dump.rb CHANGED
@@ -29,14 +29,22 @@ module Backhoe
29
29
 
30
30
  def dump
31
31
  if database.mysql?
32
- sh "#{mysqldump} --no-create-db --single-transaction --quick -e #{skip_table_options} #{database.to_mysql_options} #{database.name} | #{pipe} #{target}"
32
+ bash_sh "#{mysqldump} --no-create-db --single-transaction --quick -e #{skip_table_options} #{database.to_mysql_options} #{database.name} | #{pipe} #{target}"
33
33
  elsif database.postgresql?
34
- sh "#{pg_dump} --column-inserts #{database.name} | #{pipe} #{target}"
34
+ bash_sh "#{pg_dump} --column-inserts #{database.name} | #{pipe} #{target}"
35
35
  else
36
36
  raise "don't know how to dump #{database.adapter}"
37
37
  end
38
38
  end
39
39
 
40
+ def bash_sh(command)
41
+ sh <<~EOS
42
+ /bin/bash -xeu <<'BASH'
43
+ set -o pipefail && #{command}
44
+ BASH
45
+ EOS
46
+ end
47
+
40
48
  private
41
49
 
42
50
  def target
@@ -1,3 +1,3 @@
1
1
  module Backhoe
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backhoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -155,10 +155,9 @@ files:
155
155
  - bin/console
156
156
  - bin/setup
157
157
  - gemfiles/.bundle/config
158
- - gemfiles/activerecord_6.0.gemfile
159
- - gemfiles/activerecord_6.1.gemfile
160
158
  - gemfiles/activerecord_7.0.gemfile
161
159
  - gemfiles/activerecord_7.1.gemfile
160
+ - gemfiles/activerecord_7.2.gemfile
162
161
  - lib/backhoe.rb
163
162
  - lib/backhoe/database.rb
164
163
  - lib/backhoe/dump.rb
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~>6.1.0"
6
-
7
- gemspec path: "../"