spitball 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. data/Rakefile +4 -1
  2. data/lib/spitball/version.rb +1 -1
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -29,19 +29,22 @@ namespace :version do
29
29
  end
30
30
 
31
31
  def commit_version(v)
32
- system "git add #{VERSION_FILE} && git c -m 'release version #{v}' && git tag #{v}"
32
+ system "git add #{VERSION_FILE} && git c -m 'release version #{v}'"
33
33
  end
34
34
 
35
+ desc "Increment the major version and commit"
35
36
  task :incr_major do
36
37
  new_v = update_version {|m,_,_| [m+1, 0, 0] }
37
38
  commit_version(new_v)
38
39
  end
39
40
 
41
+ desc "Increment the minor version and commit"
40
42
  task :incr_minor do
41
43
  new_v = update_version {|ma,mi,_| [ma, mi+1, 0] }
42
44
  commit_version(new_v)
43
45
  end
44
46
 
47
+ desc "Increment the patch version and commit"
45
48
  task :incr_patch do
46
49
  new_v = update_version {|ma,mi,p| [ma, mi, p+1] }
47
50
  commit_version(new_v)
@@ -1,3 +1,3 @@
1
1
  class Spitball
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spitball
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels