martilla 0.2.2 → 0.2.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: 7762784e1d316afe26bfa62f739552de6a94fdc53d8891721d147be01bdc0876
4
- data.tar.gz: 4ed98cb182476da8481827407ba2a0dff28397d1d417403f0b7e6d07779bdba5
3
+ metadata.gz: 833bd7308b73eb148e3b74ff7bed682301a21a05b9df6a6063eb0982ec725ac1
4
+ data.tar.gz: a5ca7834f3938e26e6c6464be8fcdfa1c88503c454789355c2fa6f2a832bd013
5
5
  SHA512:
6
- metadata.gz: ebdf212a3b50ad6b9bdf50d81053d037bad5dd8135d9b7c4c7bd6eb1391e81f5d74a875d6760878b9e0b986724a300388c8be0ad0d7a17a634c87012149faa6e
7
- data.tar.gz: 6245c7de65d755ae72cab8adc8c3948d9a17124df1ad172a4f162c2f4da2c6f63647180df0fde696c020deed5cd5e5977d0f21da816c226fb28bd043b1892181
6
+ metadata.gz: c921185913e1552a4e5f706a44a05e76f26b95b245b601e4cd11fd4fd7fb0968f0f52843d13b16ad1a0ffd462109004a3fa618437e378019a7a13ae77d66ea86
7
+ data.tar.gz: fe9c1b8fadb4e8f7121f727b8cc6b1b4bcb8758e050b6ebbe2d35533266a84a48d41ed09ce883ae9bda1c17fe6a508cc1961169715c7cacc17fe6daaf9b25c0c
data/CHANGELOG.md CHANGED
@@ -1,11 +1,16 @@
1
- # Martilla Change Log
1
+ # Martilla Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 0.2.2
8
+ 2019-10-20
9
+
10
+ - Fixes CLI executable not being setup properly ([PR](https://github.com/fdoxyz/martilla/pull/6))
11
+
7
12
  ## 0.2.1
8
13
  2019-10-20
9
14
 
10
15
  - Adds Slack Notifier support (thanks [anoopmadhav](https://github.com/fdoxyz/martilla/pull/2))
11
- - `pipefail` config when using the pipe operator in Mysql & Postgres database adapters
16
+ - `pipefail` config when using the pipe operator in Mysql & Postgres database adapters ([PR](https://github.com/fdoxyz/martilla/pull/3))
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- martilla (0.2.2)
4
+ martilla (0.2.3)
5
5
  aws-sdk-s3 (~> 1.49)
6
6
  aws-sdk-ses (~> 1.26)
7
7
  memoist (~> 0.16.0)
@@ -13,21 +13,21 @@ GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  aws-eventstream (1.0.3)
16
- aws-partitions (1.226.0)
17
- aws-sdk-core (3.69.1)
16
+ aws-partitions (1.231.0)
17
+ aws-sdk-core (3.72.0)
18
18
  aws-eventstream (~> 1.0, >= 1.0.2)
19
- aws-partitions (~> 1.0)
19
+ aws-partitions (~> 1, >= 1.228.0)
20
20
  aws-sigv4 (~> 1.1)
21
21
  jmespath (~> 1.0)
22
- aws-sdk-kms (1.24.0)
23
- aws-sdk-core (~> 3, >= 3.61.1)
22
+ aws-sdk-kms (1.25.0)
23
+ aws-sdk-core (~> 3, >= 3.71.0)
24
24
  aws-sigv4 (~> 1.1)
25
- aws-sdk-s3 (1.50.0)
26
- aws-sdk-core (~> 3, >= 3.61.1)
25
+ aws-sdk-s3 (1.52.0)
26
+ aws-sdk-core (~> 3, >= 3.71.0)
27
27
  aws-sdk-kms (~> 1)
28
28
  aws-sigv4 (~> 1.1)
29
- aws-sdk-ses (1.26.0)
30
- aws-sdk-core (~> 3, >= 3.61.1)
29
+ aws-sdk-ses (1.27.0)
30
+ aws-sdk-core (~> 3, >= 3.71.0)
31
31
  aws-sigv4 (~> 1.1)
32
32
  aws-sigv4 (1.1.0)
33
33
  aws-eventstream (~> 1.0, >= 1.0.2)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Martilla is a tool to automate your backups. With simple but flexible configuration options you can have a database backup configured to run (using cron jobs or similar). Receive a notification whenever a backup fails, choose multiple ways of getting notified (i.e. email + slack).
4
4
 
5
- The name Martilla comes from a local name for the [Kinkajou](https://en.wikipedia.org/wiki/Kinkajou). This nocturnal animal is goes fairly unnoticed, just like we hope database backups should remain.
5
+ The name Martilla comes from a local name for the [Kinkajou](https://en.wikipedia.org/wiki/Kinkajou). This nocturnal animal goes fairly unnoticed, just like we hope database backups should remain.
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,3 +1,4 @@
1
+ require 'byebug'
1
2
  require 'memoist'
2
3
  require 'martilla/utilities'
3
4
 
@@ -10,7 +11,7 @@ module Martilla
10
11
  attr_reader :file_size
11
12
 
12
13
  def initialize(config)
13
- @options = config['options']
14
+ @options = config['options'] || {}
14
15
  @db = Database.create(config['db'])
15
16
  @storage = Storage.create(config['storage'])
16
17
  @notifiers = config['notifiers'].map { |c| Notifier.create(c) }.compact
@@ -28,7 +29,9 @@ module Martilla
28
29
  end
29
30
 
30
31
  def tmp_file
32
+ # byebug
31
33
  filename = @options.dig('tmp_file') || '/tmp/backup'
34
+ byebug
32
35
  return "#{filename}.gz" if gzip?
33
36
  filename
34
37
  end
@@ -1,3 +1,3 @@
1
1
  module Martilla
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-20 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor