beeta 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +10 -1
- data/lib/version.rb +3 -3
- metadata +2 -2
data/Rakefile
CHANGED
@@ -107,6 +107,12 @@ task(:newb) {
|
|
107
107
|
MSG
|
108
108
|
}
|
109
109
|
|
110
|
+
def run_commands(*cmds)
|
111
|
+
cmds.flatten.each do |c|
|
112
|
+
system(c) or raise "Command "#{c}" failed to execute; aborting!"
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
110
116
|
desc "Perform project release check-in and tag with a version number. Each new release version will be automatically."
|
111
117
|
task(:release) {
|
112
118
|
puts 'Running release task, may take a few minutes'
|
@@ -115,7 +121,9 @@ task(:release) {
|
|
115
121
|
"git add lib/version.rb" &&
|
116
122
|
"git commit -am 'Bump to Beeta version #{new_version}'" &&
|
117
123
|
"git tag v#{new_version} HEAD^" &&
|
118
|
-
"gem build beeta.gemspec"
|
124
|
+
"gem build beeta.gemspec" &&
|
125
|
+
"Checking if there are any uncommitted files, should display no files" &&
|
126
|
+
"git diff")
|
119
127
|
|
120
128
|
puts '********************************************************************************'
|
121
129
|
puts
|
@@ -129,6 +137,7 @@ def increment_ver
|
|
129
137
|
specs = Gem::SpecFetcher.fetcher.fetch(Gem::Dependency.new("beeta"))
|
130
138
|
versions = specs.map {|spec,| spec.version}.sort
|
131
139
|
new_version = versions.last.to_s
|
140
|
+
|
132
141
|
puts "New Version is going to be #{new_version}"
|
133
142
|
version_file =<<-EOT
|
134
143
|
module Beeta
|
data/lib/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Beeta
|
2
|
-
|
3
|
-
end
|
1
|
+
module Beeta
|
2
|
+
VERSION = ""
|
3
|
+
end
|