зеркало из https://github.com/github/ruby.git
* version.h: bump up to 1.9.2 patchlevel -1.
yugui recommend "-1" strongly. * lib/rubygems/version.rb: accept negative patchlevel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5ad05f37a5
Коммит
41eb896e09
|
@ -1,3 +1,10 @@
|
||||||
|
Mon Feb 2 16:06:10 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* version.h: bump up to 1.9.2 patchlevel -1.
|
||||||
|
yugui recommend "-1" strongly.
|
||||||
|
|
||||||
|
* lib/rubygems/version.rb: accept negative patchlevel.
|
||||||
|
|
||||||
Mon Feb 2 14:53:35 2009 Tanaka Akira <akr@fsij.org>
|
Mon Feb 2 14:53:35 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/socket/socket.c (sock_initialize): make 3rd argument, protocol,
|
* ext/socket/socket.c (sock_initialize): make 3rd argument, protocol,
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Gem::Version
|
||||||
|
|
||||||
def self.correct?(version)
|
def self.correct?(version)
|
||||||
case version
|
case version
|
||||||
when Integer, /\A\s*(\d+(\.\d+)*)*\s*\z/ then true
|
when Integer, /\A\s*(\d+(\.-?\d+)*)*\s*\z/ then true
|
||||||
else false
|
else false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -60,7 +60,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_verbose
|
def test_verbose
|
||||||
assert_in_out_err(%w(-vve) + [""]) do |r, e|
|
assert_in_out_err(%w(-vve) + [""]) do |r, e|
|
||||||
assert_match(/^ruby #{RUBY_VERSION}[p ].*? \[#{RUBY_PLATFORM}\]$/, r.join)
|
assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev).*? \[#{RUBY_PLATFORM}\]$/, r.join)
|
||||||
assert_equal RUBY_DESCRIPTION, r.join.chomp
|
assert_equal RUBY_DESCRIPTION, r.join.chomp
|
||||||
assert_equal([], e)
|
assert_equal([], e)
|
||||||
end
|
end
|
||||||
|
@ -106,7 +106,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_version
|
def test_version
|
||||||
assert_in_out_err(%w(--version)) do |r, e|
|
assert_in_out_err(%w(--version)) do |r, e|
|
||||||
assert_match(/^ruby #{RUBY_VERSION}[p ].*? \[#{RUBY_PLATFORM}\]$/, r.join)
|
assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev).*? \[#{RUBY_PLATFORM}\]$/, r.join)
|
||||||
assert_equal RUBY_DESCRIPTION, r.join.chomp
|
assert_equal RUBY_DESCRIPTION, r.join.chomp
|
||||||
assert_equal([], e)
|
assert_equal([], e)
|
||||||
end
|
end
|
||||||
|
|
10
version.h
10
version.h
|
@ -1,11 +1,11 @@
|
||||||
#define RUBY_VERSION "1.9.1"
|
#define RUBY_VERSION "1.9.2"
|
||||||
#define RUBY_RELEASE_DATE "2009-02-02"
|
#define RUBY_RELEASE_DATE "2009-02-02"
|
||||||
#define RUBY_PATCHLEVEL 5000
|
#define RUBY_PATCHLEVEL -1
|
||||||
#define RUBY_BRANCH_NAME "trunk"
|
#define RUBY_BRANCH_NAME "trunk"
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
#define RUBY_VERSION_MINOR 9
|
#define RUBY_VERSION_MINOR 9
|
||||||
#define RUBY_VERSION_TEENY 1
|
#define RUBY_VERSION_TEENY 2
|
||||||
#define RUBY_RELEASE_YEAR 2009
|
#define RUBY_RELEASE_YEAR 2009
|
||||||
#define RUBY_RELEASE_MONTH 2
|
#define RUBY_RELEASE_MONTH 2
|
||||||
#define RUBY_RELEASE_DAY 2
|
#define RUBY_RELEASE_DAY 2
|
||||||
|
@ -24,7 +24,11 @@ RUBY_EXTERN const char ruby_copyright[];
|
||||||
#define RUBY_BIRTH_MONTH 2
|
#define RUBY_BIRTH_MONTH 2
|
||||||
#define RUBY_BIRTH_DAY 24
|
#define RUBY_BIRTH_DAY 24
|
||||||
|
|
||||||
|
#if RUBY_PATCHLEVEL == -1
|
||||||
|
#define RUBY_PATCHLEVEL_STR "dev"
|
||||||
|
#else
|
||||||
#define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
|
#define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef RUBY_REVISION
|
#ifndef RUBY_REVISION
|
||||||
# include "revision.h"
|
# include "revision.h"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче