activerecord-dbsnapshot 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e1622e0e7ec44461ef0dbb0e36def428afdf27e8b27a163b5bb494955ec168d
4
- data.tar.gz: 1fefe1899a23195363a6c0b1af4600a224e515b71777a9403ed34f8b51f1caca
3
+ metadata.gz: 6176a0c48f0c782707247c24aeb2e4d93f9a497729042c9652aeeb3336ee640e
4
+ data.tar.gz: f29644ac30106b66e5b32b691c11990a75c85bd9a6cc461cab6e92c83d2dd133
5
5
  SHA512:
6
- metadata.gz: 6f2ccb151614bf0fc8d9937b05b6187f25dc0e2f9fab8bcc872e5afd8f0613b9e30f43a34091399986b5fd13c6514fec17de5a9815bf43f02f726cbf8bfb4dc6
7
- data.tar.gz: d03777d254b049ca37717b6e33f304f2177886e825ebb54142fa54078f31ca436e355bf8090dc8d564e5d4aedc08075e4ccab35011537b0119057c9d543f8132
6
+ metadata.gz: 341b735fe8abf9069eb08e3950d8869c98ce7a6a0b4159f9cdaebe392e5f537842fb4494dadc3871f460de2681cf5d96247bca9c4f2c3492ee1935686882dfcb
7
+ data.tar.gz: d164865468a7a414588c082d82e9783b08b62c4f6e125cc8fd000112e444339498c0344e34c64f98a63001fbb63af9204725ce48f541907b82f4096eef577b6a
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Activerecord
4
4
  module Dbsnapshot
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -25,7 +25,7 @@ namespace :db do
25
25
  next
26
26
  end
27
27
 
28
- db_config = ActiveRecord::Base.connection_config
28
+ db_config = ActiveRecord::Base.connection_db_config
29
29
  output_file = Rails.root.join('db', 'snapshots', "#{config.snapshot_name}.sql")
30
30
 
31
31
  command = ActiveRecord::DbSnapshot.build_dump_command(config, db_config, output_file)
@@ -60,7 +60,7 @@ namespace :db do
60
60
  end
61
61
 
62
62
  # Restore the SQL file into the database
63
- db_config = ActiveRecord::Base.connection_config
63
+ db_config = ActiveRecord::Base.connection_db_config
64
64
  command = ActiveRecord::DbSnapshot.build_restore_command(db_config, filename)
65
65
  ActiveRecord::DbSnapshot.execute_command(command)
66
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-dbsnapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubygems_version: 3.2.3
59
+ rubygems_version: 3.4.18
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Dump and Restore database snapshots.