hoe-version 1.0.0 → 1.1.0

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/History.txt +8 -0
  2. data/lib/hoe/version.rb +5 -1
  3. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ === 1.1.0 / 2012-07-19
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Adds ability to override auto-bump tasks.
6
+ * Adds prep_release hook task.
7
+
8
+
1
9
  === 1.0.0 / 2012-07-17
2
10
 
3
11
  * 5 unknowns:
data/lib/hoe/version.rb CHANGED
@@ -10,7 +10,7 @@
10
10
  # version:bump:patch:: Writes out version, bumping to next patch level release.
11
11
  #
12
12
  module Hoe::Version
13
- VERSION = '1.0.0'
13
+ VERSION = '1.1.0'
14
14
 
15
15
  def define_version_tasks
16
16
  desc 'print current version'
@@ -45,9 +45,13 @@ module Hoe::Version
45
45
  increment [0, 0, 1]
46
46
  task('version:write').invoke
47
47
  end
48
+
49
+ # hook task
50
+ task 'prep_release' => 'version:bump'
48
51
  end
49
52
 
50
53
  def increment mask
54
+ return if ENV['VERSION']
51
55
  segments = version.split('.')[0,3].map!{|p| p.to_i}
52
56
 
53
57
  mask.each_with_index do |m, i|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-version
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-17 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc