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.
Files changed (3) hide show
  1. data/Rakefile +9 -1
  2. data/lib/version.rb +1 -1
  3. 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}"
@@ -1,3 +1,3 @@
1
1
  module Beeta
2
- VERSION = ""
2
+ VERSION = "0.0.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pete Elmore