Граф коммитов

36441 Коммитов

Автор SHA1 Сообщение Дата
naruse a5c923f6c1 * lib/uri/http.rb (URI::HTTP#request_uri): optimized.
decrease object allocation, and ensure always create at least one new
  object for return value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:09:01 +00:00
naruse 25d3fc8823 suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 19:08:26 +00:00
svn 66ba4e362d * 2014-08-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 18:41:58 +00:00
tenderlove 0b392535df * ext/psych/lib/psych/visitors/to_ruby.rb: backwards compatibility for
hashes emitted by Syck. Github #198
* test/psych/test_hash.rb: test for change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 18:41:46 +00:00
suke 9670542af5 * ext/win32ole/win32ole.c (ole_invoke): skip VariantClear when
argument is VT_RECORD variant.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 10:31:00 +00:00
svn e3c74b2912 * 2014-08-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 06:54:25 +00:00
hsbt 97ec14b70a * gems/bundled_gems: Upgrade to test-unit-3.0.0 and minitest-5.4.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-05 06:54:13 +00:00
kazu 904c559d53 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 13:50:19 +00:00
nobu de79761ef6 pack.c (encodes): name a magic number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 13:27:01 +00:00
svn 43b0066d2b * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 12:53:02 +00:00
suke 2906d58a10 * test/win32ole/test_win32ole_record.rb: add for WIN32OLE_RECORD
test(need .NET Framework 3.5 to run test).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 12:52:56 +00:00
hsbt 0a77122622 * ChangeLog: fix broken encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 12:20:23 +00:00
suke 8c3fb4929a * ext/win32ole/win32ole.c (ole_invoke): call rb_hash_foreach instead
of rb_block_call.

* ext/win32ole/win32ole.c: add comment for rdoc of WIN32OLE_VARIANT
  class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 10:49:34 +00:00
normal 4938045735 variable: cleanup to use rb_const_lookup
* variable.c: cleanup to use rb_const_lookup
* vm_insnshelper.c: ditto

This reduces casting and long lines.  This should make it easier to
switch to alternatives to st for constant storage.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 01:12:53 +00:00
nobu 0ee5c55e51 symbol.c: move macros
* symbol.c (SYMBOL_PINNED, SYMBOL_PINNED_P, ID_DYNAMIC_SYM_P),
  (STATIC_SYM2ID, STATIC_ID2SYM): move from symbol.h as these
  macros are used only in symbol.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 01:05:09 +00:00
nagai 0e6a399185 * ext/tk/lib/tkextlib/tcllib/plotchart.rb: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 00:07:01 +00:00
svn 477e28ccc7 * 2014-08-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 15:19:29 +00:00
nobu 33e1c86f8b openssl: constify
* ext/openssl/ossl_asn1.c (ossl_asn1_info): constify.

* ext/openssl/ossl_pkcs7.c (ossl_pkcs7_sym2typeid): constify and
  remove sentinel as the count is used.

* ext/openssl/ossl_ssl.c (ossl_ssl_method_tab): constify.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 15:19:20 +00:00
nobu 9863041298 ossl_pkcs7.c: consider length
* ext/openssl/ossl_pkcs7.c (ossl_pkcs7_sym2typeid): consider
  length to compare.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 15:19:16 +00:00
nobu a98c65338d rubygems/util.rb: remove unused variable
* lib/rubygems/util.rb (Gem::Util.silent_system): remove unused
  variable, to fix test failures with verbose flag.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 13:33:06 +00:00
kazu 6959bc503c fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 08:20:47 +00:00
nobu 4713ace44c strscan.c: encoding in messages
* ext/strscan/strscan.c (strscan_aref): preserve argument encoding
  in error messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:56:31 +00:00
nobu 27c4fb3361 ext: get rid of inadvertent ID creation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:56:16 +00:00
nobu 1d670ab0f0 ext: prefer RB_TYPE_P over comparison TYPE with constants
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:56:01 +00:00
nobu fdfb939d72 transcode.c: use string
* transcode.c (econv_opts): get rid of inadvertent ID creation,
  and preserve argument encoding in error messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:55:32 +00:00
nobu d0987afc74 make symbol conversion functions public
* include/ruby/encoding.h (rb_check_symbol_cstr): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:55:10 +00:00
nobu 48bb55edc9 README.EXT.ja: using commas and periods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:54:38 +00:00
svn a17eb7ba27 * 2014-08-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:43:15 +00:00
nobu a6d34e7501 vm_insnhelper.c: fix unusable super class
* vm_insnhelper.c (vm_call_method): unusable super class should cause
  method missing when BasicObject is refined but not been using.
  [ruby-core:64166] [Bug #10106]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-03 01:43:10 +00:00
svn c3e1258ccd * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 14:55:50 +00:00
suke 4e7801a1aa * ext/win32ole/win32ole.c: separate WIN32OLE::VARIANT src file
from win32ole.c
* ext/win32ole/win32ole.h: ditto.
* ext/win32ole/win32ole_variant_m.c: ditto.
* ext/win32ole/win32ole_variant_m.h: ditto.
* ext/win32ole/depend: ditto.
* ext/.document: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 14:55:36 +00:00
hsbt a52fa3eb19 * Changelog: fix typo. contribute from @chiastolite.
[fix GH-693]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 11:01:13 +00:00
suke cefef1f162 * ext/win32ole/win32ole.c: VERSION 1.7.0 -> 1.7.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 05:41:39 +00:00
suke dde71a3de8 * ext/win32ole/win32ole.c: add coments for rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 05:37:47 +00:00
svn 963bce15ac * 2014-08-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 01:27:09 +00:00
nobu 0a0160d6b6 object.c: Object#itsef
* object.c (rb_obj_itself): new method Object#itsef.  based on the
  patch by Rafael França in [ruby-core:64156].
  [EXPERIMENTAL] this method may be renamed due to compatibilities.
  [ruby-core:44704] [Feature #6373]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-02 01:26:58 +00:00
suke a13944dc1c * ext/win32ole/win32ole.c (folerecord_inititalize): accept
only 2 arguments. The 2nd argument should be WIN32OLE object or
  WIN32OLE_RECORD object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-01 13:32:54 +00:00
suke 2cce818552 * ext/win32ole/win32ole.c (ole_variant2val): call
folerecord_s_allocate instead of WIN32OLE_RECORD.new.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-01 11:20:05 +00:00
hsbt 1e667d5fec * test/date/test_date.rb: remove commented-out code.
* test/date/test_date_arith.rb: ditto.
* test/date/test_date_attr.rb: ditto.
* test/date/test_date_parse.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-01 09:41:59 +00:00
nobu 52b59fc9d9 numeric.c: 0 % Float::NAN returns Float::NAN
* numeric.c (flodivmod): all results are NaN if divisor is NaN.
  [fix GH-692]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-01 07:35:48 +00:00
nobu 528ef3ca93 add assertions for division NaN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-01 07:35:34 +00:00
svn 4514516b22 * 2014-08-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 22:36:24 +00:00
mrkn bf3d294ae8 * ext/bigdecimal/bigdecimal.c: [DOC] Add description of
`BigDecimal.new` exceptions.  Patched by @joker1007 and
  @prathamesh-sonpatki [Fixes GH-690]
  https://github.com/ruby/ruby/pull/690

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 22:36:16 +00:00
suke 9437332afd * ext/win32ole/win32ole.c: add WIN32OLE_RECORD#inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 13:21:50 +00:00
suke 1069b277e4 * ext/win32ole/win32ole.c: add
WIN32OLE_RECORD#ole_instance_variable_set and
  WIN32OLE_RECORD#ole_instance_variable_get



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 11:38:57 +00:00
nobu 6016da7dab symbol.h: move macros
* symbol.h (RSYMBOL): move macros for Symbol from internal.h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 09:58:01 +00:00
nobu 5b0ccdbc67 win32/configure.bat: revert a commit by accident
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 06:23:53 +00:00
svn 4a2cf2fea4 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 05:52:30 +00:00
nobu 7a8836bd7b * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-31 05:52:17 +00:00
svn b1b779fad2 * 2014-07-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-30 16:18:06 +00:00