wolfe 1.0.0 → 1.1.0

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: 5f3507d28088e498ba540c4cbe92f6e510f17d01
4
- data.tar.gz: 8ee66841f21b71d418dca828b3b44fc7de7a0541
3
+ metadata.gz: 30f410460fa95a629c1acd64bd0051b893460d0e
4
+ data.tar.gz: 249c09dc7c8566f343a269c639e135df319648c8
5
5
  SHA512:
6
- metadata.gz: 63e9c6f52d05dba90bd22c62fdc10de05b2be85ada6da2af1c4dff75dbd16cdf52527ad1c67dfda75b1234d51585c28dc7f225bb145821262ebe28bffd2467de
7
- data.tar.gz: 3a1156453f097e830adf7f94d109569a1aa740d095d889a76428e2b829f36cf17201bd30bda4397a5495c2d61600ecd3bf33091727e4fbd9e08868c6401d92ca
6
+ metadata.gz: 05ef52985efd463839b82e48a47fe2292b4bae807f206a0d36707f6c41f62ebfeb8c11d61b3aed78e16940556181e2d84e1a40a2e6d4f38d206b9cca0886dad2
7
+ data.tar.gz: 164fd3eb6dc552347046b638697fce9eea3d9f38046a2ecfa7918cefd0571adfa03614358392db831d981cc27e1e6edf7a72f2a178ca16fe4b44be3c4b23452e
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 1.0.1 (2015-10-08)
2
+
3
+ Changes:
4
+
5
+ - BUGFIX: The one backup kept per timespan was dependent on the cleaning of the other intervals. Now the one backup left alone is always the backup of the last day in the timespan.
6
+
7
+ ## 1.0.1 (2015-10-08)
8
+
9
+ Changes:
10
+
11
+ - Version 1.0. yay! 🎉
data/README.md CHANGED
@@ -37,6 +37,8 @@ backup_name:
37
37
 
38
38
  To configure the timespans we rely on ``active support``'s [time extensions](http://guides.rubyonrails.org/active_support_core_extensions.html#time) to ``Numeric``, so something like ``1.month``, ``2.years``, etc. will work. No spaces or ruby code please.
39
39
 
40
+ Note: The file kept for a timespan is always the file of the last day of the timespan, e.g. the backup file kept for every year will always be the one of 31st, Dec.
41
+
40
42
  ## Contributing
41
43
 
42
44
  Bug reports and pull requests are welcome on GitHub at https://github.com/lomography/wolfe. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
data/lib/wolfe/cleanup.rb CHANGED
@@ -63,13 +63,13 @@ module Wolfe
63
63
  end
64
64
 
65
65
  def clean_monthly( monthly_date, daily_date, config )
66
- daily_date.downto( monthly_date ) do |date|
66
+ monthly_date.upto( daily_date ) do |date|
67
67
  delete_but_keep_one_per_month( config['path'], config['filename'], date )
68
68
  end
69
69
  end
70
70
 
71
71
  def clean_yearly( first_relevant_date, monthly_date, config )
72
- monthly_date.downto( first_relevant_date ) do |date|
72
+ first_relevant_date.upto( monthly_date ) do |date|
73
73
  delete_but_keep_one_per_year( config['path'], config['filename'], date )
74
74
  end
75
75
  end
data/lib/wolfe/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wolfe
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolfe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Emhofer
@@ -108,6 +108,7 @@ extra_rdoc_files: []
108
108
  files:
109
109
  - ".gitignore"
110
110
  - ".travis.yml"
111
+ - CHANGELOG.md
111
112
  - CODE_OF_CONDUCT.md
112
113
  - Gemfile
113
114
  - LICENSE.txt