martilla 0.3.0 → 0.3.1

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: aaf89471f6777ba461ddf9769030ef39b30a019c76e10dc35236cf8bcca03a53
4
- data.tar.gz: 192c63a35a2e7d0381c45643d86defe699bcdaadc750ccbf8c782aeadf52fbbb
3
+ metadata.gz: 6ddec52e6ea8e2f0ae5251811b050dfbb5c514cc2d3c359cb1a744e0f24e058b
4
+ data.tar.gz: e34e08990fd2055561471c3f9ee9b97ba19e15e79aa4d0ffa69211f23979a61b
5
5
  SHA512:
6
- metadata.gz: 596ccdd75c799206a00f363ccd9c203eb93671c70296127efb197087d621e2209fa584f4ef73b1f5fe2fa9ff5d895807e926bf32764e752803eb02eadff320b3
7
- data.tar.gz: dbada619ce14429929942cd842396d5aae9551bcc177e2438b48dabdc79d5623adb63d73db752e23fef0f575579412f5eac4014c0e20a26f153f02b4d8f66efc
6
+ metadata.gz: b60213c9e11b06571ef8d081d1219073622b3f8efdc447a26b8ffc814f0ce626ed740ad41478c6d68143fb52ab4b38492ce90f30b026cb0640b361cac8dbf911
7
+ data.tar.gz: 121370b1a2fd0634cdf3b5e507deac53574e1c1cd20948adb96f8569efa0f2cfcbdcfcc75a27498928004fcee6dbf72f34f177f3a4c8c25a34a0d7ec6f82a217
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ 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.3.0
8
+ 2019-11-10
9
+
10
+ - Lots of bug fixes (by trial & error released as versions 0.2.X)
11
+ - `send_success` & `send_failure` now valid options for Notifiers ([PR](https://github.com/fdoxyz/martilla/pull/13))
12
+ - Now Storage options can configure retention of your backups for S3 & local storages ([PR](https://github.com/fdoxyz/martilla/pull/11))
13
+ - Travis CI in place for the repo ([PR](https://github.com/fdoxyz/martilla/pull/10))
14
+
7
15
  ## 0.2.2
8
16
  2019-10-20
9
17
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- martilla (0.3.0)
4
+ martilla (0.3.1)
5
5
  aws-sdk-s3 (~> 1.49)
6
6
  aws-sdk-ses (~> 1.26)
7
7
  memoist (~> 0.16.0)
data/README.md CHANGED
@@ -4,6 +4,19 @@ Martilla is a tool to automate your backups. With simple but flexible configurat
4
4
 
5
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
+ ## Table of Contents
8
+
9
+ 1. [Installation](https://github.com/fdoxyz/martilla#installation)
10
+ 2. [Usage](https://github.com/fdoxyz/martilla#usage)
11
+ * [Databases](https://github.com/fdoxyz/martilla#databases)
12
+ * [Storages](https://github.com/fdoxyz/martilla#storages)
13
+ * [Notifiers](https://github.com/fdoxyz/martilla#notifiers)
14
+ * [Perform a backup](https://github.com/fdoxyz/martilla#perform-a-backup)
15
+ 3. [Contributing](https://github.com/fdoxyz/martilla#contributing)
16
+ 4. [Development](https://github.com/fdoxyz/martilla#development)
17
+ 5. [License](https://github.com/fdoxyz/martilla#license)
18
+ 6. [Code of Conduct](https://github.com/fdoxyz/martilla#code-of-conduct)
19
+
7
20
  ## Installation
8
21
 
9
22
  To use as a CLI tool
@@ -72,7 +85,7 @@ Currently available DB types to choose from are **postgres** & **mysql**. They b
72
85
 
73
86
  ### Storages
74
87
 
75
- The available Storages types are **local**, **S3**& **SCP**. They each have different available options:
88
+ The available Storages types are **local**, **S3** & **SCP**. They each have different available options:
76
89
  - options for type: **local**
77
90
  - `filename`
78
91
  - The location to where the backup will be stored
@@ -154,15 +167,15 @@ As simple as running the `backup` command on the martilla CLI and passing as arg
154
167
  Help the help command help you
155
168
 
156
169
  $ martilla help
170
+
171
+ ## Contributing
172
+
173
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fdoxyz/martilla. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
157
174
 
158
175
  ## Development
159
176
 
160
177
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
161
178
 
162
- ## Contributing
163
-
164
- Bug reports and pull requests are welcome on GitHub at https://github.com/fdoxyz/martilla. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
165
-
166
179
  ## License
167
180
 
168
181
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/lib/martilla/cli.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'pathname'
1
2
  require 'yaml'
2
3
  require 'thor'
3
4
 
@@ -5,7 +6,8 @@ module Martilla
5
6
  class CLI < Thor
6
7
  desc "backup FILEPATH", "Generates a backup based on a config file located at FILEPATH"
7
8
  def backup(filepath)
8
- file_path = File.join(Dir.pwd, filepath)
9
+ file_path = Pathname.new(filepath)
10
+ file_path = File.join(Dir.pwd, file_path) if file_path.relative?
9
11
  begin
10
12
  backup_config = YAML.load_file(file_path)
11
13
  rescue Psych::SyntaxError
@@ -1,3 +1,3 @@
1
1
  module Martilla
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
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.3.0
4
+ version: 0.3.1
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-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -196,6 +196,7 @@ files:
196
196
  - LICENSE.txt
197
197
  - README.md
198
198
  - Rakefile
199
+ - backups/.keep
199
200
  - bin/console
200
201
  - bin/setup
201
202
  - exe/martilla