backupper 0.4.1 → 0.4.2

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: 573331f34a1bce133cd5b9d021e888fec59d07d2aedbc206a2ed3966effb030e
4
- data.tar.gz: bdce765523c2b93efeb1b95cf3c5f9ef39a0e4adc634ac720fb765c0d416d1ad
3
+ metadata.gz: 6732c30468e86071392cbc1545ade2132f75f10fc10a5c5ef603309c1c8778a0
4
+ data.tar.gz: 6277da7cf00f5ce107dca80ac6a703f94890be3aa0d4c1eb920cd3bb59826b88
5
5
  SHA512:
6
- metadata.gz: 9b662880a0de3b61521ebec6bf58323ca392a0561679b9ff57cabbf2bb7475670cc64975844fa6abd3b4c76d1cc62bacf88dfe828ff9062e723e257daf23c62f
7
- data.tar.gz: 253addc17de4fb4381a3d1c1912a922efd721b9c3409374aaa7a0c3630736e7ccf67e49be7f77a986c65d71796a068d8815107f581906b65f0beb67f73f38867
6
+ metadata.gz: 37f1f3d7417ad9b7603eee7dcedbacd51efa4d9e5c9cf5df795cbedb9638421a9ed3fd02a658bc0e69bbcbcefd0e4ea9ec98b8f6f75e5a8f54be3729da5e8c4d
7
+ data.tar.gz: 132024ca21163d430a93f864fee2b97411041446955ef1834f2d79b7eaffdc848cc3ec1efa376a053a402f7401082f9d247bb6785b5a24f0385465fa8d8e9df3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- backupper (0.4.1)
4
+ backupper (0.4.2)
5
5
  mail (~> 2.7)
6
6
  sshkit (~> 1.15)
7
7
 
@@ -11,12 +11,12 @@ GEM
11
11
  byebug (11.0.1)
12
12
  mail (2.7.1)
13
13
  mini_mime (>= 0.1.1)
14
- mini_mime (1.0.2)
15
- net-scp (2.0.0)
16
- net-ssh (>= 2.6.5, < 6.0.0)
17
- net-ssh (5.2.0)
14
+ mini_mime (1.1.2)
15
+ net-scp (3.0.0)
16
+ net-ssh (>= 2.6.5, < 7.0.0)
17
+ net-ssh (6.1.0)
18
18
  rake (10.5.0)
19
- sshkit (1.20.0)
19
+ sshkit (1.21.2)
20
20
  net-scp (>= 1.1.2)
21
21
  net-ssh (>= 2.8.0)
22
22
 
@@ -31,4 +31,4 @@ DEPENDENCIES
31
31
  rake (~> 10.0)
32
32
 
33
33
  BUNDLED WITH
34
- 2.0.2
34
+ 2.3.8
@@ -2,17 +2,17 @@ module DumpCommand
2
2
  def self.mysql(database:, username: 'root', password: nil, dump_options: nil, outfile:)
3
3
  params = []
4
4
  params << "--databases '#{database}'"
5
- params << "-u#{username}"
6
- params << "-p#{password}" if password
5
+ params << "-u'#{username}'"
6
+ params << "-p'#{password}'" if password
7
7
  params << dump_options if dump_options
8
8
  return "mysqldump #{params.join(' ')} | bzip2 > '#{outfile}'"
9
9
  end
10
10
 
11
11
  def self.postgresql(database:, username: 'root', password: nil, dump_options: nil, outfile:)
12
12
  params = []
13
- params << "-U #{username}"
13
+ params << "-U '#{username}'"
14
14
  params << "'#{database}'"
15
15
  params << dump_options if dump_options
16
- return "PGPASSWORD=#{password} pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
16
+ return "PGPASSWORD='#{password}' pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  class Backupper
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backupper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pioz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.0.2
125
+ rubygems_version: 3.0.1
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Tool to backup databases