mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Tweak version number handling, and update changelog and version number, releasing prerelease as I want the contributors to test theis before it goes mainline
This commit is contained in:
parent
f1d91f3b89
commit
92bf8df157
4 changed files with 32 additions and 9 deletions
26
CHANGELOG
26
CHANGELOG
|
@ -1,3 +1,29 @@
|
||||||
|
## 2.6.1 / June 25 2011
|
||||||
|
|
||||||
|
A short maintenance release, Some fixes to the verbose flag inside the Git SCM
|
||||||
|
as well as another argument for the (internal) `variable()` command, offering
|
||||||
|
a default. The Git SCM is now verbose by default, but can be disabled by
|
||||||
|
setting `:scm_verbose` to false.
|
||||||
|
|
||||||
|
There has been an additional method added to string, within the context of the
|
||||||
|
test suite, I'm always sketchy about adding additional methods to core
|
||||||
|
classes, but it's a short term fix until I make the time to patch the test
|
||||||
|
suite not to compare strings literally. The method is `String#compact`, and is
|
||||||
|
implemented simply as `self.gsub(/\s+/, ' ')`.
|
||||||
|
|
||||||
|
Here's the run-down of changes, and their committers, as always - a huge thank
|
||||||
|
you to the community that continues to drive Capistrano's development.
|
||||||
|
|
||||||
|
* `deploy:setup` now respects `:group_writable` (Mathew Davies)
|
||||||
|
* Fixes to `:scm_verbose` for the Git module (defaults to On.) (Daniel Duvall)
|
||||||
|
* Will now copy hidden files in the project's root into the release
|
||||||
|
directory (Mark Jaquith)
|
||||||
|
* Now handles closing already-dead connections in a sane way (does not raise
|
||||||
|
an exception) (Will Bryant)
|
||||||
|
* Renamed `Capistrano::VERSION::TINY` to `Capistrano::VERSION::PATCH` (Lee
|
||||||
|
Hambley)
|
||||||
|
* Removed the `VERSION` file (Lee Hambley)
|
||||||
|
|
||||||
## 2.6.0 / May 3 2011
|
## 2.6.0 / May 3 2011
|
||||||
|
|
||||||
A rather large release, feature-version bump because of the new
|
A rather large release, feature-version bump because of the new
|
||||||
|
|
1
VERSION
1
VERSION
|
@ -1 +0,0 @@
|
||||||
2.6.0
|
|
|
@ -3,16 +3,14 @@ module Capistrano
|
||||||
|
|
||||||
class Version
|
class Version
|
||||||
|
|
||||||
CURRENT = File.read(File.dirname(__FILE__) + '/../../VERSION')
|
MAJOR = 2
|
||||||
|
MINOR = 6
|
||||||
MAJOR, MINOR, TINY = CURRENT.scanf('%d.%d.%d')
|
PATCH = 1
|
||||||
|
|
||||||
STRING = CURRENT.to_s
|
|
||||||
|
|
||||||
def self.to_s
|
def self.to_s
|
||||||
CURRENT
|
"#{MAJOR}.#{MINOR}.#{PATCH}.pre"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -198,7 +198,7 @@ class CLIOptionsTest < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_parse_options_with_V_should_show_version_and_exit
|
def test_parse_options_with_V_should_show_version_and_exit
|
||||||
@cli.args << "-V"
|
@cli.args << "-V"
|
||||||
@cli.expects(:puts).with { |s| s.include?(Capistrano::Version::STRING) }
|
@cli.expects(:puts).with { |s| s.include?(Capistrano::Version.to_s) }
|
||||||
@cli.expects(:exit).raises(ExitException)
|
@cli.expects(:exit).raises(ExitException)
|
||||||
assert_raises(ExitException) { @cli.parse_options! }
|
assert_raises(ExitException) { @cli.parse_options! }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue