buildar 0.1.0.2 → 0.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/rakefile.rb +12 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0.2
1
+ 0.2.0.1
@@ -20,6 +20,14 @@ def version
20
20
  File.read(VERSION_FILE).chomp
21
21
  end
22
22
 
23
+ task :message do
24
+ unless ENV['message']
25
+ puts "Enter a one-line message:"
26
+ print " > "
27
+ ENV['message'] = $stdin.gets.chomp
28
+ end
29
+ end
30
+
23
31
  task :version do
24
32
  puts "#{PROJECT_NAME} #{version}"
25
33
  end
@@ -27,7 +35,8 @@ end
27
35
  task :tag => [:test] do
28
36
  if USE_GIT
29
37
  tagname = "v#{version}"
30
- sh "git tag -a #{tagname} -m 'auto-tagged #{tagname} by Rake'"
38
+ message = ENV['message'] || "auto-tagged #{tagname} by Rake"
39
+ sh "git tag -a #{tagname} -m '#{message}'"
31
40
  sh "git push origin --tags"
32
41
  end
33
42
  end
@@ -140,7 +149,8 @@ task :gitpush do
140
149
  # consider a timeout?
141
150
  end
142
151
 
143
- task :release => [:build, :tag, :publish, :gitpush]
152
+ task :release => [:message, :build, :tag, :publish, :gitpush]
153
+
144
154
  task :release_patch => [:bump_patch, :release]
145
155
  task :release_minor => [:bump_minor, :release]
146
156
  task :release_major => [:bump_major, :release]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.2
4
+ version: 0.2.0.1
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: 2013-07-05 00:00:00.000000000 Z
12
+ date: 2013-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest