mame
f398d750ea
* lib/pathname.rb (each_filename): return Enumerator if no block
...
given.
* test/pathname/test_pathname.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 00:03:42 +00:00
matz
1c9b4b8c74
* test/ruby/test_env.rb (TestEnv#test_aset): test updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 23:38:04 +00:00
matz
3256a4dc21
* hash.c (env_aset): allow nil value to remove an entry.
...
[ruby-dev:36465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 23:27:33 +00:00
matz
fb01457265
* misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. a
...
patch from Hiroshi Moriyama <hiroshi at kvd.biglobe.ne.jp> in
[ruby-dev:36471].
* misc/ruby-mode.el (ruby-in-ppss-context-p): ditto.
* misc/ruby-mode.el (ruby-here-doc-end-syntax):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 23:09:21 +00:00
kouji
433095e50e
* doc/NEWS: fixed typo, Readline.HISTORY::clear -> Readline::HISTORY.clear.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 17:16:15 +00:00
kouji
b043284bfe
* test/readline/test_readline_history.rb
...
(Readline::TestHistory#test_each): checked return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 17:13:25 +00:00
svn
c3eecb35d8
* 2008-09-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 17:07:26 +00:00
kouji
925e6852b2
* ext/readline/readline.c (Init_readline): used remove_history to
...
check offset of history if unsupported clear_history.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 17:07:22 +00:00
matz
2c6e46896a
* lib/tempfile.rb (Tempfile#open): should return a value from the
...
block (if given). [ruby-core:18394]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 09:01:22 +00:00
shyouhei
260c0e6a2f
* include/ruby/encoding.h (enum): ISO C forbids comma at end of
...
enumerator list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 02:47:05 +00:00
matz
a5a92315a1
* LEGAL: updated file names removed and added. [ruby-dev:36426]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 01:16:06 +00:00
svn
b6c7768be1
* 2008-09-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 17:52:23 +00:00
naruse
163ac54f13
* encoding.c (get_default_external): add description.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 17:52:18 +00:00
tadf
bdf81563bf
* math.c (math_log): should check argc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 12:53:40 +00:00
tadf
83b381752e
fixed previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 12:32:33 +00:00
tadf
cbae6d0911
* complex.c: added two macros.
...
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 12:21:32 +00:00
tadf
a46544a4f9
* complex.c (nucomp_s_convert): checks argc.
...
* rational.c (nurat_s_convert): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 09:07:25 +00:00
tadf
2897cdae9b
trivial changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 04:59:53 +00:00
tadf
28a04df7bb
fixed indentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 03:37:30 +00:00
tadf
72565402d9
* complex.c (nucomp_s_canonicalize_internal): checks exactness of
...
imag only.
* rational.c (nurat_s_convert): accepts non real value
(Rational(a,b) as a/b).
* complex.c (nucomp_s_convert): refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 01:30:25 +00:00
jeg2
280cbe0b1f
* lib/csv/csv.rb: Reworked CSV's parser and generator to be m17n. Data
...
is now parsed in the Encoding it is in without need for translation.
* lib/csv/csv.rb: Improved inspect() messages for better IRb support.
* lib/csv/csv.rb: Fixed header writing bug reported by Dov Murik.
* lib/csv/csv.rb: Use custom separators in parsing header Strings as
suggested by Shmulik Regev.
* lib/csv/csv.rb: Added a :write_headers option for outputting headers.
* lib/csv/csv.rb: Handle open() calls in binary mode whenever we can to
workaround a Windows issue where line-ending translation can cause an
off-by-one error in seeking back to a non-zero starting position after
auto-discovery for :row_sep as suggested by Robert Battle.
* lib/csv/csv.rb: Improved the parser to fail faster when fed some forms
of invalid CSV that can be detected without reading ahead.
* lib/csv/csv.rb: Added a :field_size_limit option to control CSV's
lookahead and prevent the parser from biting off more data than
it can chew.
* lib/csv/csv.rb: Added readers for CSV attributes: col_sep(), row_sep(),
quote_char(), field_size_limit(), converters(), unconverted_fields?(),
headers(), return_headers?(), write_headers?(), header_converters(),
skip_blanks?(), and force_quotes?().
* lib/csv/csv.rb: Cleaned up code syntax to be more inline with
Ruby 1.9 than 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-21 00:39:03 +00:00
tadf
31eacb6ed1
* lib/complex.rb: provides some obsolate methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 22:55:59 +00:00
tadf
9467d7a024
* complex.c: an instance method image has been removed and
...
uses "imag" instead of "image".
* complex.c: two instance method re and im are removed.
* rational.c: follows the above changes.
* include/ruby/ruby.h: ditto.
* gc.c: ditto.
* lib/cmath.rb: ditto.
* lib/mathn.rb: ditto.
* lib/complex.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 22:49:56 +00:00
naruse
67526f3090
* ext/json/ext/parser/parse.c: use ruby_xfree().
...
* ext/json/ext/parser/parse.rl: ditto.
* ext/json/ext/parser/unicode.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 17:57:51 +00:00
naruse
55f9cc806d
* ext/json/ext/parser/parse.c: use ruby_xfree().
...
* ext/json/ext/parser/parse.rl: ditto.
* ext/json/ext/parser/unicode.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 17:54:46 +00:00
naruse
e8eb95ec33
* ext/json: import JSON v 1.1.3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 17:41:14 +00:00
mame
a91cd48aa1
* lib/optparse.rb (summarize): separator "" should output new line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 02:44:49 +00:00
naruse
cfadd72532
* parse.y: strings which contain only US-ASCII don't force to have
...
US-ASCII encoding. [ruby-dev:36400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 23:09:33 +00:00
naruse
00cdba732f
* re.c (rb_reg_desc): Regexps of ASCII Compatible encoding may
...
contain non-ASCII characters. So in that case its encoding
must keep original encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 23:07:22 +00:00
naruse
48aad600ba
* common.mk: prec.c is removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 23:05:52 +00:00
tadf
f2cb79ffee
* complex.c: uses f_(in)?exact_p macro.
...
* rational.c: ditto.
* bignum.c (rb_big_pow): bignum**bignum - should calculate without
rational.
* lib/complex.rb: should override Math module at most once.
* lib/mathn.rb: requires 'cmath' directly.
-この行以下は無視されます --
M complex.c
M ChangeLog
M lib/mathn.rb
M lib/complex.rb
M bignum.c
M rational.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 13:55:52 +00:00
yugui
396650e0bd
* prec.c: removed. Precision will be redesigned and be back again.
...
c.f. [ruby-dev:36352].
* common.mk (COMMON_OBJS): removed prec.o.
* inits.c (rb_call_inits): removed Init_Precision.
* numeric.c (Init_Numeric): removed inclusion of Precision.
removed #induced_from from each class.
* rational.c: ditto.
* ext/bigdecimal/bigdecimal.c: ditto.
* lib/rdoc/knwon_classes.rb: removed the entry for Precision.
* test/ruby/test_prec.rb: removed.
* test/ruby/test_integer.rb: removed tests for Precision.
* test/ruby/test_fixnum.rb: ditto.
* test/ruby/test_float.rb: ditto.
* test/ruby/test_rational.rb: ditto.
* test/ruby/test_complex.rb: ditto.
* test/bigdecimal/test_bigdecimal.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 13:10:54 +00:00
yugui
e6ad87c3ba
* common.mk : Reverts the changeset 18994.
...
Uses the official repository of rubyspec again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 13:10:45 +00:00
matz
69b4c69a72
* configure.in: applied OS/2 support patch from Brendan Oakley
...
<gentux2@gmail.com> in [ruby-core:18707].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 08:43:04 +00:00
matz
d7de44a8fc
* dln.c: newer BeOS support. a patch from Pete Goodeve
...
<pete.goodeve at computer.org> in [ruby-core:18712].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 00:33:19 +00:00
naruse
a9cc553e61
* ext/nkf/nkf-utf8/nkf.c: fix memory violation. mentioned by mame [ruby-dev:36373]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 18:42:47 +00:00
svn
eda2809b35
* 2008-09-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 16:16:49 +00:00
akr
478b14ea4f
* regexec.c (string_cmp_ic): add text_end argument.
...
(slow_search): call enclen with real string end.
(map_search): add text_end argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 16:16:45 +00:00
mame
f0c8c9d832
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_to_string): comment out
...
fragments of unused code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 13:56:51 +00:00
mame
e040ff5530
* ext/bigdecimal/bigdecimal.c (VpCtoV): 1E1000...000 is interpreted as
...
Infinity. [ruby-dev:36159]
* ext/bigdecimal/bigdecimal.c (VpPower): Infinity ** 1 returns
Infinity instead of NaN. [ruby-dev:36159]
* test/bigdecimal/test_bigdecimal.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 13:48:21 +00:00
matz
c3e2e0e53f
* string.c (rb_str_comparable): make ascii8bit string to be
...
compatible with any other encoding.
* string.c (rb_str_cmp): use rb_str_comparable() instead of
rb_enc_compatible() since <=> is a comparison anyway.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 13:17:41 +00:00
akr
081c802cb9
* grapheme cluster implementation reverted. [ruby-dev:36375]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 12:53:25 +00:00
nobu
22987dc7fe
* lib/rake.rb (Rake::Application#standard_exception_handling):
...
replaced magic numbers for exit status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:51:00 +00:00
nobu
45880b8e7d
* lib/optparse.rb (OptionParser::ParseError#set_backtrace): omits
...
OptionParser internal backtraces unless debug flag is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:38:24 +00:00
matz
bc9c077400
* bignum.c (big2str_karatsuba): free internal buffer eagerly.
...
a patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com>
in [ruby-dev:36217].
* bignum.c (rb_big2str0): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:21:34 +00:00
mame
4046a1cb92
* lib/uri/common.rb (unescape): skip '%' to make String#hex work
...
correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:05:09 +00:00
mame
b11b2b498c
* st.c (new_size): raise RuntimeError when st_table is too big.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 10:44:09 +00:00
mame
6b050e719b
* fix time in changelog
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 10:21:04 +00:00
akr
24733414ed
add a ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 09:42:28 +00:00
akr
1cd6bce939
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 09:39:47 +00:00