sequel_tools 0.1.11 → 0.1.12

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: 6d598579322a3645ebc25cdf804f53b478016a68a6c479b30d46e30ce6019cf2
4
- data.tar.gz: 82f122492e419faf2b9a03ca463ab79593eafdb689186e66d61de0a8a4873489
3
+ metadata.gz: 3668a069d02fe15d3bb54d054ad64dd0eab240ba4f6e65023aa8a6f92b3008cf
4
+ data.tar.gz: '019eefc9bf0565c54126fd54670da7623094a133dcddf34cbcaf75498f282c9e'
5
5
  SHA512:
6
- metadata.gz: 7e40f95a57ef0b23e708e5060f517b98bd6a774622afa61c64e2d3f77dd39ed8a5fcc61ddcd3cac38c8756fb24f8f0b99ca963277eaf89182d20e00ac73ab8d3
7
- data.tar.gz: 23830ae52f9c3518eb5bce1fe9b471906e1e45e04ba58fb3efe88b170e32399c59d96625ad5abd6b710355cab9675c60f473f7d1fc5a24eb447aeb342c322726
6
+ metadata.gz: bf9dcaa9cea96bbcec7afaf439e9b32d95baa36181769dd0a954e9a7da25a4f04594483757aedea620bd1fd2899e83d4553682c3e6e193e7463dc26615db03af
7
+ data.tar.gz: ef6078623ab39f8d58f78c1f836b08081b4c4ab1b94981cf9fea6d3a47efb7d1c887af77d381e55c9c79f8d9f9dcf695c401eec1a14906612f57b15a04c84885
@@ -15,8 +15,11 @@ class SequelTools::ActionsManager
15
15
  migrations_table = c[:migrations_table]
16
16
  if (migrations_table ? content.include?(migrations_table) :
17
17
  (content =~ /schema_(migrations|info)/))
18
- table_options = migrations_table ? "-t #{migrations_table}" :
19
- '-t schema_migrations -t schema_info'
18
+ include_tables = migrations_table ? [migrations_table] :
19
+ ['schema_migrations', 'schema_info']
20
+ extra_tables = c[:extra_tables_in_dump]
21
+ include_tables.concat extra_tables if extra_tables
22
+ table_options = include_tables.map{|t| "-t #{t}"}.join(' ')
20
23
  stdout, stderr, success =
21
24
  PgHelper.run_pg_command c, "#{pg_dump} -a #{table_options} --inserts"
22
25
  unless success
@@ -1,5 +1,5 @@
1
1
  # frozen-string-literal: true
2
2
 
3
3
  module SequelTools
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  end
data/lib/sequel_tools.rb CHANGED
@@ -21,6 +21,7 @@ module SequelTools
21
21
  log_level: nil,
22
22
  sql_log_level: :debug,
23
23
  migrations_table: nil,
24
+ extra_tables_in_dump: nil,
24
25
  } # unfrozen on purpose so that one might want to update the defaults
25
26
 
26
27
  REQUIRED_KEYS = [ :project_root, :dbadapter, :dbname, :username ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas