tarsnap_pruner 0.1.4 → 0.1.5

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: d3f5182330f65d131f09aca83bbd3e7cb6629843
4
- data.tar.gz: a5f8f9e2758f93b48dd3d7dae45248e1455d7500
3
+ metadata.gz: 2b26acc762b83d905ccd041d65ae5229c26285af
4
+ data.tar.gz: 52d9d628892b43f98fe35a523235e3838da671c2
5
5
  SHA512:
6
- metadata.gz: 1625accd0cfc12222f87f00aa9094598350721ef8933ae5fde0b083ea95fdaf7685f08b562f535ce699efd245dded8ae26ab2fcaf42901bd225b74390db5f7db
7
- data.tar.gz: 4812057b94c53417b2f1f5cf7bdad4feb65cbc6eeb26e3a92acb84493a29d7299fa7d6ee88d70971360b95bbd8580d6eea6e346191f01c2b7cc386b2f22618ec
6
+ metadata.gz: b5e27a06626f488896aae3d74953707fb94e16ad1c0b6f49fa78e893414f828021e00e32400a82ca51f12eca9031e34f05c971b565eb4515cee006da3706e33d
7
+ data.tar.gz: f30606380ff82fce98de854d29e4cb8656879e278c82db84eee3d1b872160c5bf7b05e08c09d86e739a4675e3c85d67aa77f665b4d5c062295591d4145282ce8
data/bin/rspec ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'rspec' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require "pathname"
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require "rubygems"
15
+ require "bundler/setup"
16
+
17
+ load Gem.bin_path("rspec-core", "rspec")
@@ -37,7 +37,7 @@ module TarsnapPruner
37
37
  end
38
38
 
39
39
  def monthlies_to_keep
40
- monthlies.group_by { |a| a.date.month }.values.map(&:last)
40
+ monthlies.group_by { |a| [a.date.year, a.date.month] }.values.map(&:last)
41
41
  end
42
42
 
43
43
  def monthlies_to_prune
@@ -1,3 +1,3 @@
1
1
  module TarsnapPruner
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarsnap_pruner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Woods
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -100,6 +100,7 @@ files:
100
100
  - README.md
101
101
  - Rakefile
102
102
  - bin/console
103
+ - bin/rspec
103
104
  - bin/setup
104
105
  - exe/tarsnap_pruner
105
106
  - lib/tarsnap_pruner.rb