beeta 0.0.1 → 0.0.2

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