beeta 0.0.2 → 0.0.3
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.
- data/Rakefile +9 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -136,9 +136,17 @@ def increment_ver
|
|
136
136
|
puts "Reading the current Beeta version"
|
137
137
|
specs = Gem::SpecFetcher.fetcher.fetch(Gem::Dependency.new("beeta"))
|
138
138
|
versions = specs.map {|spec,| spec.version}.sort
|
139
|
-
new_version = versions.last.to_s
|
139
|
+
new_version = versions.last.to_s.strip
|
140
140
|
|
141
|
+
new_version = if new_version.nil
|
142
|
+
"0.0.1"
|
143
|
+
else
|
144
|
+
digits = Beeta::VERSION.scan(/(\d+)/).map { |x| x.first.to_i }
|
145
|
+
digits[-1] += 1
|
146
|
+
end
|
147
|
+
|
141
148
|
puts "New Version is going to be #{new_version}"
|
149
|
+
|
142
150
|
version_file =<<-EOT
|
143
151
|
module Beeta
|
144
152
|
VERSION = "#{new_version}"
|
data/lib/version.rb
CHANGED