Commit graph

9001 commits

Author SHA1 Message Date
nagai
00b66b7edb * ext/tk/lib/tk.rb,ext/tk/lib/tk/grid.rb: Bug fix on grid_slaves().
Extend usage pattern of grid_column()/grid_row().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-17 22:10:31 +00:00
svn
ecadd9c95f * 2009-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 14:35:16 +00:00
nagai
3316eb9c61 * ext/tk/extconf.rb,ext/tk/config_list.in: ignore paths which includes
white space characters on Windows.[ruby-dev:38794]
* ext/tk/lib/tk.rb: works on Cygwin (limitation:: Tk.mainloop works on
  the main thread only).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 14:35:07 +00:00
svn
6efd4fda67 * 2009-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 21:31:33 +00:00
nagai
9dd9217f70 * ext/tk/extconf.rb: --with-{tcl,tk}-dir doesn't work.[ruby-dev:38782]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 21:31:13 +00:00
nagai
bd3923d599 * ext/tk/lib/multi-tk.rb: Long-term-callback support isn't stable yet.
So, disable the feature and waiting for improvement in the future.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-14 00:29:25 +00:00
svn
279b40ac66 * 2009-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 23:12:04 +00:00
nagai
140f4dd0ab * ext/tk/lib/tk/menuspec.rb: commit miss on my last commitment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 23:11:53 +00:00
nobu
0d5107841c * ext/tk: eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 02:43:44 +00:00
nagai
41b74c6e20 * ext/tk/extconf.rb: New strategy for searching Tcl/Tk libraries.
* ext/tk/*: Support new features of Tcl/Tk8.6b1 and minor bug fixes.
     ( [KNOWN BUG] Ruby/Tk on Ruby 1.9 will not work on Cygwin. )
* ext/tk/*: Unify sources between Ruby 1.8 & 1.9.
            Improve default_widget_set handling.
* ext/tk/*: Multi-TkInterpreter (multi-tk.rb) works on Ruby 1.8 & 1.9.
     ( [KNOWN BUG] On Ruby 1.8, join to a long term Thread on Tk
       callbacks may freeze. On Ruby 1.9, cannot create a second 
       master interpreter (creating slaves are OK); supported master
       interpreter is the default master interpreter only. )
* ext/tk/lib/tkextlib/*: Update supported versions of Tk extensions.
         Tcllib 1.8/Tklib 0.4.1  ==>  Tcllib 1.11.1/Tklib 0.5
         BWidgets 1.7            ==>  BWidgets 1.8
         TkTable 2.9             ==>  TkTable 2.10
         TkTreeCtrl 2005-12-02   ==>  TkTreeCtrl 2.2.9
         Tile 0.8.0/8.5.1        ==>  Tile 0.8.3/8.6b1
         IncrTcl 2005-02-14      ==>  IncrTcl 2008-12-15
         TclX 2005-02-07         ==>  TclX 2008-12-15
         Trofs 0.4.3             ==>  Trofs 0.4.4


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-12 23:09:52 +00:00
nobu
4e94c36f3d * time.c (time_timeval): rounds subsecond toward zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-12 16:18:51 +00:00
svn
703bff0b24 * 2009-07-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-03 07:07:02 +00:00
matz
93c02c4d03 * lib/complex.rb (Numeric#arg): should return NaN for NaN.
[ruby-core:24116]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-03 07:06:59 +00:00
nobu
3948410b04 * test/ruby/test_proc.rb (test_return_from_proc): test for [ruby-core:24097].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 07:09:53 +00:00
nobu
b8d684d9e2 * eval.c (PUSH_ANCHOR, POP_ANCHOR, rb_thread_start_0): separated
anchors from PROT_THREAD.  [ruby-core:24097]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 06:49:17 +00:00
svn
753a22a0e0 * 2009-06-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 20:11:49 +00:00
knu
c5a88815d9 * enum.c (enum_first): Perform negative length check before
attempting to make an array.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 20:10:45 +00:00
svn
3f594ce1d8 * 2009-06-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 04:50:44 +00:00
kou
7b998913fe Merge r24865:23867 from trunk.
* NEWS, lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: add
item.guid.permanent_link? and item.guid.permanent_link=.

* NEWS: rss: 0.2.5 -> 0.2.7.

* lib/rss/rss.rb, test/rss/test_version.rb: 0.2.6 -> 0.2.7.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 04:50:37 +00:00
svn
fb743c08aa * 2009-06-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-26 02:05:45 +00:00
usa
8e9d249f9e * lib/mkmf.rb (CXX_EXT): cygwin's filesystem (= Windows) is case
insensitive.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-26 02:05:40 +00:00
nobu
7b90b70db2 * ruby.c (load_file): preserves $.. [ruby-core:24024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-25 06:53:28 +00:00
svn
0872a8c4a3 * 2009-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-22 16:31:52 +00:00
akr
c8eabecb9d rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-22 16:31:49 +00:00
nobu
0f699af36e * bignum.c (big_lshift, big_rshift): return Bignum always without
normalization.  [ruby-dev:38680]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 23:14:27 +00:00
svn
3afd3c7b77 * 2009-06-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 22:46:49 +00:00
naruse
2e470cbf4c * lib/webrick/httputils.rb (parse_form_data): escape boundary of
multipart/form-data when embed in regexp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 22:46:45 +00:00
nobu
47fc6a3ad0 * io.c (rb_io_open), math.c (domain_check), object.c (boot_defclass):
constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 13:23:04 +00:00
svn
a4349c6b06 * 2009-06-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 01:15:24 +00:00
matz
14d860d9ce * io.c (argf_close): always call #close method. [ruby-core:23853]
* io.c (argf_skip): should close only when current_file is available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 01:15:19 +00:00
nobu
bbfe73888a * ext/bigdecimal/bigdecimal.c (gfCheckVal): never used.
* ext/bigdecimal/bigdecimal.c (VpInit): fixed format modifiers.

* ext/bigdecimal/bigdecimal.c (VPrint): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 08:49:37 +00:00
matz
1e7898d76a * ext/bigdecimal/bigdecimal.c (VpCtoV): big number should result
to infinite.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): rounding mode
  condition check updated.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpPower): should handle NaN and
  Inf.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): divmod should
  raise ZeroDivisionError.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should check
  exception for VP_EXCEPTION_UNDERFLOW and VP_EXCEPTION_ZERODIVIDE.
  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpException): ditto.

* ext/bigdecimal/bigdecimal.h (VP_EXCEPTION_ZERODIVIDE): new error
  code.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_round,
  BigDecimal_truncate, BigDecimal_floor, BigDecimal_ceil): eagerly convert
  bigdecimal to integer.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpMult): free internal Real.
  backported from 1.9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 06:06:01 +00:00
svn
3bb5d07486 * 2009-06-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 04:34:46 +00:00
matz
5e183bb4b2 * ext/bigdecimal/bigdecimal.c (VpToString): fixed a bug introduced
in r23613.  [ruby-talk:338957]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 04:34:41 +00:00
nobu
593f383b24 * README.EXT, README.EXT.ja (Convert VALUE into C data):
StringValueCStr() has been available since 1.8.0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-04 00:50:26 +00:00
svn
8b6403c08d * 2009-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 17:27:22 +00:00
matz
0db80d4ba1 * lib/base64.rb: typo fixed. a patch from okkez. [ruby-dev:38564]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 17:27:18 +00:00
svn
e442309d4c * 2009-06-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 00:08:47 +00:00
matz
dde8e24217 * enum.c (first_i): Enumerator#first should consume only what is
needed.   a patch from Marc-Andre Lafortune.  [ruby-core:23661]

* enum.c (take_i): ditto.

* enum.c (enum_first): call to_int once for an argument.  a patch
  from Marc-Andre Lafortune.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 00:08:43 +00:00
usa
4f2a770bfe * lib/mkmf.rb (create_makefile): should set srcs in all paths.
* lib/mkmf.rb (create_makefile): $objs somtimes includes files with
	  $OBJEXT instead of ".o".



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-01 11:47:52 +00:00
matz
3a1b61f059 * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid
segmentation fault caused by (insanely) long decimal values.
  backported from 1.9.
* ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i,
  BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split,
  BigDecimal_inspect): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-01 00:14:25 +00:00
svn
3252c3f587 * 2009-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 22:54:44 +00:00
matz
5d612b96ad * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): returns Inf if
exp is bigger than DBL_MANT_DIG.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 22:54:40 +00:00
nobu
8dadafa240 * lib/mkmf.rb (create_makefile): checks for duplication of source
files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 14:28:04 +00:00
nobu
7dbc1cf6b1 * file.c (istrailinggarbage): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 14:26:40 +00:00
nobu
b45d7f9341 * ext/thread/thread.c (unlock_mutex_inner): fixed wrong variable.
a patch from Jeremy Kemper <jeremy AT bitsweat.net> at
  [ruby-core:23592].  [ruby-core:23588]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-29 00:19:57 +00:00
svn
ed49e67153 * 2009-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-24 20:03:53 +00:00
matz
6921a6f819 * lib/cgi.rb (HTTP_STATUS): typo fixed. [ruby-dev:38538]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-24 20:03:41 +00:00
matz
cff080e563 * ext/openssl/ossl_digest.c (Init_ossl_digest): avoid recursing
require.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-20 23:56:40 +00:00
svn
1ff08ad878 * 2009-05-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-20 23:53:56 +00:00