Skip to content

Commit

Permalink
Fixed prepare task.
Browse files Browse the repository at this point in the history
Release task now depends on 'prepare' doing all the dirty job.
Version 1.1.0 rc1
  • Loading branch information
thesp0nge committed Mar 27, 2014
1 parent 968e86d commit 08e7a40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ Cucumber::Rake::Task.new(:features) do |t|
t.fork = false
end

RSpec::Core::RakeTask.new do |t|
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["--color"]
end


task :default => [ :spec, :features, :kb ]
task :test => :spec
task :release => [:build, :'checksum:calculate', :'checksum:commit']
task :prepare => [:build, :'checksum:calculate', :'checksum:commit']
task :release => [:prepare]

desc "Create a new CVE test"
task :cve, :name do |t,args|
task :cve, :name do |t,args|
name = args.name
SRC_DIR = "./lib/codesake/dawn/kb/"
SPEC_DIR = "./spec/lib/kb/"
Expand Down Expand Up @@ -88,7 +89,7 @@ end


desc "Create a new Generic security check"
task :check, :name do |t,args|
task :check, :name do |t,args|
name = args.name
SRC_DIR = "./lib/codesake/dawn/kb/"
SPEC_DIR = "./spec/lib/kb/"
Expand Down Expand Up @@ -184,6 +185,7 @@ end
desc 'Add and commit latest checksum'
task :commit do
checksum_path = "checksum/codesake-dawn-#{Codesake::Dawn::VERSION}.gem.sha512"
system "git --add #{checksum_path} -m \"Adding #{Codesake::Dawn::VERSION} checksum to repo\""
system "git add #{checksum_path}"
system "git commit -v #{checksum_path} -m \"Adding #{Codesake::Dawn::VERSION} checksum to repo\""
end
end
6 changes: 3 additions & 3 deletions lib/codesake/dawn/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ module Dawn
# | "Guido" | 6.0.0 |
# | "Luigi" | 7.0.0 |

VERSION = "1.1.0"
VERSION = "1.1.0.rc1"
CODENAME = "Lightning McQueen"
RELEASE = "(development)"
# RELEASE = "20140125"
#RELEASE = "(development)"
RELEASE = "20140326"

end
end

0 comments on commit 08e7a40

Please sign in to comment.