geoffreywiseman-prune 1.2.0.rc2 → 1.2.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -1
  2. data/lib/prune/cli.rb +2 -2
  3. data/spec/cli_spec.rb +1 -1
  4. metadata +3 -3
data/Rakefile CHANGED
@@ -4,6 +4,7 @@ require 'rspec/core/rake_task'
4
4
  require 'rspec'
5
5
  require 'rubygems'
6
6
  require 'rubygems/package_task'
7
+ require 'prune'
7
8
 
8
9
  CLEAN.include( 'coverage', 'pkg' )
9
10
 
@@ -21,7 +22,7 @@ end
21
22
 
22
23
  spec = Gem::Specification.new do |spec|
23
24
  spec.name = 'geoffreywiseman-prune'
24
- spec.version = '1.2.0.rc2'
25
+ spec.version = Prune::VERSION
25
26
  spec.date = '2011-09-09'
26
27
  spec.summary = 'Prunes files from a folder based on a retention policy, often time-based.'
27
28
  spec.description = 'Prune is meant to analyze a folder full of files, run them against a retention policy and decide which to keep, which to remove and which to archive. It is extensible and embeddable.'
data/lib/prune/cli.rb CHANGED
@@ -4,7 +4,7 @@ require 'optparse'
4
4
  require 'date'
5
5
 
6
6
  module Prune
7
- VERSION = [1,0,0]
7
+ VERSION = Gem::Version.new '1.2.0.rc3'
8
8
 
9
9
  class CommandLineInterface
10
10
 
@@ -21,7 +21,7 @@ module Prune
21
21
  opts.on( "--config", "Configure the retention policy for the specified folder." ) { options[:configure] = true }
22
22
  opts.on_tail( "--version", "Displays version information." ) do
23
23
  options[:did_work] = true
24
- print "Prune #{VERSION.join('.')}, by Geoffrey Wiseman."
24
+ print "Prune #{VERSION}, by Geoffrey Wiseman.\n"
25
25
  end
26
26
  opts.on_tail( "-?", "--help", "Shows quick help about using prune." ) do
27
27
  options[:did_work] = true
data/spec/cli_spec.rb CHANGED
@@ -189,7 +189,7 @@ describe Prune::CommandLineInterface do
189
189
  it "should print version number" do
190
190
  $stderr.stub( :print ) { |message| @messages << message }
191
191
  Prune::CommandLineInterface::parse_and_run
192
- @messages.should include_match( /Prune 1.0.0/ )
192
+ @messages.should include_match( /Prune #{Prune::VERSION}/ )
193
193
  end
194
194
 
195
195
  it "should not invoke prune" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoffreywiseman-prune
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc2
4
+ version: 1.2.0.rc3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitar
16
- requirement: &70326072103840 !ruby/object:Gem::Requirement
16
+ requirement: &70115417584560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.5.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70326072103840
24
+ version_requirements: *70115417584560
25
25
  description: Prune is meant to analyze a folder full of files, run them against a
26
26
  retention policy and decide which to keep, which to remove and which to archive.
27
27
  It is extensible and embeddable.