pg_export 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 582b9ccff99309d82d35609d48757d70740bc05a
4
- data.tar.gz: 00b6753ef7582aa36a198ff4280fe0edfef60280
3
+ metadata.gz: 161ed692783949b0244223c939a8d0619ebffdd7
4
+ data.tar.gz: d0311270534576cff699df326e418cc470390f38
5
5
  SHA512:
6
- metadata.gz: 2e3dbe76eb29497c5e386736dc741e63ee1611fa7c69ea7ea2ac504bdac60b0f09e2c274d6f6aa291552984a102f4080bf8d0704cbee5b884653c1dea5659ea6
7
- data.tar.gz: db3a0d6ce04243b3ec59e059c9f77fc17ba60ad03a1d78843b2398b2982eabd967d52dc1b28d88a738657d9590b2eb9a882f82040cc2817f97e95ad26867e7b2
6
+ metadata.gz: 7e8a24fa7c67cdcfb1b1e304bfe6cd68cc5ed653ef858610d0b34d4eae82041e31ef2dd2b833be80bf4cb6a4222f732123093de29afdec97fdfa6f29cf5d5a8f
7
+ data.tar.gz: 081942d1a37567873a72a5ad36387e644b7aa45fc8878e72f579da19da0e4f07e8f1bdf2a4d1e69f6d569bf969357d5a83ef4f06750e8c04e84ab2aaf14793cb
@@ -4,7 +4,7 @@ class PgExport
4
4
 
5
5
  def initialize(dump, keep_dumps_count)
6
6
  @dump = dump
7
- @keep_dumps_count = keep_dumps_count
7
+ @keep_dumps_count = keep_dumps_count.to_i
8
8
  end
9
9
 
10
10
  def call
@@ -5,7 +5,7 @@ class PgExport
5
5
  def initialize(dump, ftp_service, keep_dumps)
6
6
  @dump = dump
7
7
  @ftp_service = ftp_service
8
- @keep_dumps = keep_dumps
8
+ @keep_dumps = keep_dumps.to_i
9
9
  end
10
10
 
11
11
  def call
@@ -3,8 +3,8 @@ class PgExport
3
3
  DEFAULTS = {
4
4
  database: nil,
5
5
  dumpfile_dir: ENV['DUMPFILE_DIR'] || 'tmp/dumps',
6
- keep_dumps: ENV['KEEP_DUMPS'].to_i || 10,
7
- keep_ftp_dumps: ENV['KEEP_FTP_DUMPS'].to_i || 10,
6
+ keep_dumps: ENV['KEEP_DUMPS'] || 10,
7
+ keep_ftp_dumps: ENV['KEEP_FTP_DUMPS'] || 10,
8
8
  ftp_host: ENV['BACKUP_FTP_HOST'],
9
9
  ftp_user: ENV['BACKUP_FTP_USER'],
10
10
  ftp_password: ENV['BACKUP_FTP_PASSWORD']
@@ -1,3 +1,3 @@
1
1
  class PgExport
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_export
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
  - Krzysztof Maicher