cap_db_dump 1.3.2 → 1.3.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cap_db_dump/recipes.rb +5 -5
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 634f242534913169dcad7483e973eabf67248bc7615a3efa44db678195e9a9ae
4
- data.tar.gz: 87cd8de8ad173684cee9963b6c14717a6135affb8db7c45cba3959978cd1b7ae
3
+ metadata.gz: 822af40344c861597562ff8fdb51b7ad8af1ed30f34851220cd24441c16d9dc4
4
+ data.tar.gz: 6dab1976b58d667552c715de402cc5cfe6ea832e442e88ece57325a93e21283f
5
5
  SHA512:
6
- metadata.gz: 39108992543cb7bd245f2fbd18ba463599bbd16d5f310675c860b0e5ef3ad37f349bd8f698fe35bb2c5c4180982cb9a354e1169aa110efef200e19a065722e44
7
- data.tar.gz: 4375688a259683891cf56f77c43e3624b50c7ca024a061f09c813432199922758922f801d3019492565b0644badcbd3eaa1f168e69241ee223467ed3866ffdca
6
+ metadata.gz: 28e621ce4e25b43097096957c9203eecc76971477026a351339d7a027e678bed39ecbe649ef43f96a35892faf86bbc8b5f9bb99c10d93659fcb532bc96e8f7dc
7
+ data.tar.gz: 024ab1acf0daf35d58b2564fbedba76d102a702a9d7ffe7f86adc77968cbee0dd8ecd2f20e206d6c75fe98341c3eda0be3ccab6466dbb9b4353cf7e00707b673
@@ -166,7 +166,7 @@ Capistrano::Configuration.instance(:must_exist).load do
166
166
  password_stdin = mysql_password_stdin
167
167
  elsif database_engine == POSTGRES
168
168
  ignored_tables = schema_only_tables.map { |table_name|
169
- "--exclude-table=#{database_name}.#{table_name}"
169
+ "--exclude-table-data=#{table_name}"
170
170
  }
171
171
 
172
172
  ignored_tables = ignored_tables.join(" ")
@@ -194,14 +194,14 @@ Capistrano::Configuration.instance(:must_exist).load do
194
194
  if database_engine == MYSQL
195
195
  command = "mysqldump #{mysql_password_field} -u #{database_username} -h #{database_host} "
196
196
  command << "-Q --add-drop-table --single-transaction --no-data #{database_name} #{table_names} >> #{dump_path}"
197
+
198
+ give_description "Dumping schema for tables: #{schema_only_tables.join(", ")}"
199
+ run_with_password command, mysql_password_stdin
197
200
  elsif database_engine == POSTGRES
198
- raise "not yet supported. PR's welcome! (https://github.com/smtlaissezfaire/cap_db_dump)"
201
+ # pg_dump --exclude-table-data in create_dump already keeps the schema for these tables
199
202
  else
200
203
  raise "Unknown database engine. use one of: #{DATABASE_ENGINES.inspect}"
201
204
  end
202
-
203
- give_description "Dumping schema for tables: #{schema_only_tables.join(", ")}"
204
- run_with_password command, mysql_password_stdin
205
205
  end
206
206
  end
207
207
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap_db_dump
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-09 00:00:00.000000000 Z
11
+ date: 2026-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.5.9
67
+ rubygems_version: 3.5.22
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: cap_db_dump