Skip to content

Commit

Permalink
Merge a NEWS entry from ruby_1_8.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed May 18, 2008
1 parent 8480bcc commit d1372ae
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions NEWS
Expand Up @@ -351,6 +351,24 @@ with all sufficient information, see the ChangeLog file.

=== Compatibility issues (excluding feature bug fixes)

* String#to_i, String#hex and String#oct no longer accept a sequence
of underscores (`__') as part of a number.

# Ruby 1.8.6
'1__0'.to_i #=> 10
'1__0'.to_i(2) #=> 2 # 0b10
'1__0'.oct #=> 8 # 010
'1__0'.hex #=> 16 # 0x10

# Ruby 1.8.7
'1__0'.to_i #=> 1
'1__0'.to_i(2) #=> 1
'1__0'.oct #=> 1
'1__0'.hex #=> 1

The old behavior was inconsistent with Ruby syntax and considered as
a bug.

* tempfile

* The file name format has changed. No dots are included by default
Expand Down
6 changes: 3 additions & 3 deletions version.h
@@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.7"
#define RUBY_RELEASE_DATE "2008-05-18"
#define RUBY_RELEASE_DATE "2008-05-19"
#define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20080518
#define RUBY_RELEASE_CODE 20080519
#define RUBY_PATCHLEVEL 0

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 7
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 5
#define RUBY_RELEASE_DAY 18
#define RUBY_RELEASE_DAY 19

#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Expand Down

0 comments on commit d1372ae

Please sign in to comment.