nobu
f8661f7ffb
numeric.c: merge miss
...
* numeric.c (num_step_scan_args): fix merge miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 08:10:00 +00:00
nobu
ba90ac2529
numeric.c: num_step_scan_args
...
* numeric.c (num_step_scan_args): turn a macro into a function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 08:05:00 +00:00
nobu
5c5180256a
numeric.c: indent
...
* numeric.c (ruby_num_interval_step_size): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 07:34:33 +00:00
nobu
082a886444
vm_eval.c: hide intermediate hash
...
* vm_eval.c (rb_f_local_variables): hide intermediate hash and use
rb_hash_keys() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 04:26:55 +00:00
nobu
5bec2d8ccd
hash.c: make rb_hash_keys extern
...
* hash.c (rb_hash_keys): make an internal public function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 04:26:53 +00:00
nobu
c8221b4cb6
vm_eval.c: symbol identity
...
* vm_eval.c (local_var_list_add): use symbol identity, and get rid
of method calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 04:26:51 +00:00
nobu
766478f6a7
vm_eval.c: valid name IDs only
...
* vm.c (vm_collect_local_variables_in_heap): use struct local_var_list
instead of VALUE directly.
* vm_eval.c (local_var_list_update): add valid name IDs only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 04:26:49 +00:00
nobu
a1bc138fd0
vm.c: clear intermediate hash
...
* vm.c (rb_f_local_variables): clear intermediate hash after
extracting its keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 04:26:44 +00:00
ko1
d467227486
* benchmark/driver.rb: remove debug output and output results into
...
specified file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 03:07:10 +00:00
ko1
1ddb9c5322
* benchmark/driver.rb: add '--rawdata-output=[FILE] option to output
...
raw results into FILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 02:57:11 +00:00
nobu
11eb870136
vm_eval.c: exclude hidden variables
...
* vm_eval.c (rb_f_local_variables): exclude variables hidden by
shadowing. [ruby-core:60501] [Bug #9486 ]
* vm.c (collect_local_variables_in_iseq): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 02:25:43 +00:00
svn
c8dbc43de6
* 2014-05-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 02:00:35 +00:00
nobu
c60e282b30
rename variables
...
* vm.c (vm_collect_local_variables_in_heap): rename an argument.
* vm_eval.c (rb_f_local_variables): rename a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-07 02:00:28 +00:00
nobu
f83660163d
missed ref. [ruby-core:60501] [Bug #9486 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 14:35:03 +00:00
nobu
b5cae3820b
parse.y: no duplicated names
...
* parse.y (new_bv_gen): no duplicated names, if already added in
shadowing_lvar().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 14:29:07 +00:00
nobu
d750b62d66
parse.y: remove duplicated names
...
* parse.y (local_tbl_gen): remove local variables duplicated with
arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 14:28:48 +00:00
nobu
8a57bb7b4a
parse.y: unused return values
...
* parse.y (arg_var_gen, local_var_gen): make void since the result
values are not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 14:28:38 +00:00
akr
e4b05d91eb
* lib/time.rb (Time.make_time): Adjust the time zone of "now".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 09:50:08 +00:00
tadf
d85c226f73
* io.c (io_{read,write}_nonblock): use rb_get_kwargs instead of
...
rb_hash_aref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 09:37:24 +00:00
akr
915ef9ed9b
* lib/time.rb (Time.make_time): Argument validation code moved from
...
Time.parse and Time.strptime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 09:04:09 +00:00
nobu
d03eabd520
eval.c: method name
...
* eval.c (setup_exception): add the method name to system stack
error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 08:54:36 +00:00
kazu
854fffe9e5
fix typo [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 08:38:33 +00:00
akr
1c3f862f58
[DOC] Use EST for previous documentation fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 08:27:47 +00:00
akr
252afcd9f1
* lib/time.rb (Time.parse): [DOC] Fix an example in the documentation.
...
Reported by Marcus Stollsteimer.
[ruby-core:60778] [Bug #9521 ] and [ruby-core:61718] [Bug #9682 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-06 08:18:13 +00:00
tadf
08e0c31d14
* file.c (rb_f_test): removed meaningless "case 'a'".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 19:38:11 +00:00
akr
0c3d513185
* lib/open-uri.rb (OpenURI.open_uri): Call StringIO#close only if
...
the StringIO object is not closed yet.
Reported by Jordi Massaguer Pla. [ruby-core:42538] [Bug #6010 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 16:38:53 +00:00
nagai
5ab5d92191
* ext/tk/lib/tkextlib/tkDND/tkdnd.rb: fix typo and missing definition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 16:29:55 +00:00
ko1
c47d59a0a7
* benchmark/driver.rb: define File::NULL if not defiend and /dev/null
...
is available to run benchmark driver on ruby 1.9.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 16:11:00 +00:00
svn
da35e7549b
* 2014-05-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 15:15:30 +00:00
akr
17a2f1ecc3
* ext/socket/mkconstants.rb: Add IP_TRANSPARENT.
...
IP_TRANSPARENT is provieded since glibc-2.12.
Reported by Eliezer Croitoru. [ruby-core:50372] [Bug #7476 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 15:15:20 +00:00
akr
693703c391
[DOC]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 14:12:03 +00:00
akr
7a69a3583c
* process.c (check_exec_redirect): Open the file in write mode for
...
redirect from [:out, :err].
Proposed and implemented by Yusuke Endoh.
[ruby-dev:41430] [Feature #3348 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 13:37:09 +00:00
akr
edacb3a94a
* ext/pathname/lib/pathname.rb (cleanpath_aggressive): make all
...
separators File::SEPARATOR from File::ALT_SEPARATOR.
Reported by Daniel Rikowski.
Fixed by Nobuyoshi Nakada. [Bug #9618 ]
* ext/pathname/lib/pathname.rb (cleanpath_conservative): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 13:09:58 +00:00
akr
391fc2eeec
* ext/pathname/lib/pathname.rb (Pathname#/): Aliased to Pathname#+.
...
Suggested by Alexey Muranov. [ruby-core:61432] [Feature #9625 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 12:49:27 +00:00
tadf
a210f7c225
* math.c (rb_math_sqrt): omitted exporting an unused function,
...
anyway.
* internal.h: follows the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 08:28:56 +00:00
akr
78fa967224
add a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 07:33:14 +00:00
akr
c2a87a1fa1
* lib/time.rb (Time.strptime): Raise ArgumentError if Date._strptime
...
doesn't extract date information.
Reported by tadayoshi funaba. [ruby-core:62349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-05 02:47:53 +00:00
tadf
a72f9f3476
* ext/date/date_core.c (rt_rewrite_frags): a new feature (not a
...
bug fix) of strptime. applies offset even if the given date is
not local time (%s and %Q). This is an exceptional feature and
I do NOT recommend to use this at all. Thank you git community.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 20:56:28 +00:00
akr
d9087ffebc
update a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 15:57:16 +00:00
svn
e1fefb28e3
* 2014-05-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 15:51:08 +00:00
akr
0b53b86d47
add comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 15:51:05 +00:00
nobu
40c6eaf6d8
vm.c: Init_vm_objects
...
* vm.c (Init_vm_objects): initialize VM internal objects, after
heap initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 13:04:37 +00:00
akr
fffbcf2867
* lib/time.rb (Time.force_zone!): Use usual local time if it has
...
expected offset from UTC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 11:52:26 +00:00
akr
a18177d5ed
* lib/time.rb (Time.force_zone!): New private method.
...
(Time.make_time): Use Time.force_zone!.
(Time.strptime): Ditto.
(Time.rfc2822): Ditto.
(Time.xmlschema): Ditto.
* lib/rss/rss.rb (Time.w3cdtf): Use Time.force_zone!.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 09:01:19 +00:00
nobu
d64eef156f
* math.c (math_atan2): remove the condition for test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 02:41:35 +00:00
nobu
7a6ebecf9e
math.c: C99-like atan2
...
* math.c (math_atan2): return values like as expected by C99 if
both two arguments are infinity. based on the patch by cremno
phobia <cremno AT mail.ru> in [ruby-core:62310]. [Feature #9799 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-04 01:23:01 +00:00
nobu
6e34259271
test_math.rb: rename check as assert_float
...
* test/ruby/test_math.rb (assert_float): rename with `assert_`
prefix so that the caller frame would appear in backtraces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 23:41:04 +00:00
akr
ca7c0fee20
[DOC]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 18:47:41 +00:00
akr
5de24423e6
* lib/time.rb (Time.httpdate): Always return a UTC Time object.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 18:47:29 +00:00
akr
7a39fcc195
* lib/time.rb (Time.make_time): Refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-03 18:27:21 +00:00