summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-29ruby.c: magic numbersnobu
* ruby.c (ruby_init_loadpath_safe): remove magic numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-29* addr2line.c: SIZE_MAX is defined in stdint.h, so r36755 breaksnaruse
32bit FreeBSD. [ruby-core:47360] [Bug #6948] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28* test/openssl/utils.rbemboss
test/openssl/test_pair.rb test/openssl/test_pkey_dh.rb: Use 1024 bit DH parameters to satisfy OpenSSL FIPS requirements. Patch by Vit Ondruch. [Bug #6938] [ruby-core:47326] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28* 2012-08-29svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28insns.def: duplicated codenobu
* insns.def (checkmatch): remove duplicated code. [ruby-core:47339] [Bug #6930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28* insns.def (checkmatch): suppress warnings. [ruby-core:47339]nagachika
[Bug #6930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28* configure.in: Fixing Haiku R1/alpha3 build with gcc-4.4.4.naruse
- omit ANSI standard flags to compile socket extension where anonymous union is required. - remove redundant -be flags. by Takashi Toyoshima <toyoshim@gmail.com> https://github.com/ruby/ruby/pull/168 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28* nacl/GNUmakefile.in (.rbconfig.time): r36828 was incomplete.yugui
It did not run correctly on clean build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-28* win32/Makefile.sub (Makefile): make to depend on common.mk, tousa
stop and force to re-run make process when common.mk is changed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27* 2012-08-28svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27adding test coverage for invalid attribute namestenderlove
Fixes #171 on github git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27test_etc.rb: fix for non unique GIDshirosaki
* test/etc/test_etc.rb (TestEtc#test_getgrgid): fix for non unique GID. No unixen systems guarantee that GID is unique. Etc.getgrgid would not return the first entry in the order of Etc.group for shared GID. [ruby-core:47312] [Bug #6935] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27* include/ruby/ruby.h (rb_float_value): optimize it.ko1
This technique was pointed by shinichiro.hamaji <http://shinh.skr.jp/m/?date=20120825#p02>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27* common.mk (vm_trace.o): Added a missing dependency.yugui
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27* nacl/GNUmakefile.in (package): make package should installyugui
example.html for nacl build Patch by Takashi Toyoshima <toyoshim AT gmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27* 2012-08-27svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-27* nacl/GNUmakefile.in (CC, LD, NM, AR, AS, RANLIB, OBJDUMP, OBJCOPY)yugui
Rewrites these variables instead of PATH. NaCl port uses a toolchain which is specified by NACL_SDK_ROOT environment variable. Originally, NaCl build added the toolchain under the NACL_SDK_ROOT to the PATH. But updating PATH doesn't work on Mac. (RBCONFIG): Replaces configs with the variable updates above. * configure.in: Thus it is no longer necessary to check $PATH. Based on a patch by Takashi Toyoshima <toyoshim AT gmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-26mkmf.rb: timestamp for directoriesnobu
* lib/mkmf.rb: (create_makefile): use timestamp file for install-rb dependenting directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-26* 2012-08-26svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-26suppress warningsnobu
* insns.def (checkmatch): suppress warnings. [ruby-core:47310] [Bug #6930] * vm_core.h (VM_FRAME_TYPE_FINISH_P): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-25parse.y: extract functionnobu
* parse.y (new_args_tail_gen): extract from dsym rule. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-25common.mk: update parse.hnobu
* common.mk (.y.h): update the header unconditionally git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-25generic_erb.rb: --vpath optionnobu
* tool/generic_erb.rb (vpath.open): move --vpath option from template/id.h.tmpl. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-25* 2012-08-25svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-25mkmf.rb: clean timestampsnobu
* lib/mkmf.rb (MakeMakefile::CLEANINGS): clean timestamp files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24ruby.h: clear expressionnobu
* include/ruby/ruby.h (rb_float_new): suppress bitwise-op-parentheses warning, and zero-expand to VALUE before bit negation to get rid of confusion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24mkmf.rb: fix r36815nobu
* lib/mkmf.rb (create_makefile): remove unnecessary rule and newline. [ruby-dev:46067] [Bug #6904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24Fix r36805.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24ChangeLog: add description [ruby-dev:46067] [Bug #6904]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24mkmf.rb: timestamp for directoriesnobu
* lib/mkmf.rb (create_makefile): use timestamp for destination directories. [ruby-dev:46067] [Bug #6904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24ignore timestamp filekazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24win32: propertynobu
* win32: ignore timestamp file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24Remove incorrectly committed timestamp fileluislavena
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-24Improve require/File.expand_path performance on Windowsluislavena
* configure.in (mingw): add shlwapi to the list of dependency libs for Windows. * win32/Makefile.sub (EXTSOLIBS): ditto. * internal.h: declare internal functions rb_w32_init_file, rb_file_expand_path_internal and rb_file_expand_path_fast. * file.c (Init_File): invoke Windows initialization rb_w32_init_file * win32/file.c (rb_file_load_path_internal): new function. Windows-specific implementation that replaces file_expand_path. [Bug #6836][ruby-core:46996] * win32/file.c (rb_w32_init_file): new function. Initialize codepage cache for faster conversion encodings lookup. * file.c (file_expand_path): rename to rb_file_expand_path_internal. Conditionally exclude from Windows. * file.c (rb_file_expand_path_fast): new function. delegates to rb_file_expand_path_internal without performing a hit to the filesystem. * file.c (file_expand_path_1): use rb_file_expand_path_internal without path expansion (used by require). * file.c (rb_find_file_ext_safe): ditto. * file.c (rb_find_file_safe): ditto. * load.c (rb_get_expanded_load_path): use rb_file_expand_path_fast. * load.c (rb_feature_provided): ditto. * file.c (rb_file_expand_path): use rb_file_expand_path_internal with path expansion. * file.c (rb_file_absolute_path): ditto. * test/ruby/test_file_exhaustive.rb: new tests to exercise rb_file_expand_path_internal implementation and compliance with existing behaviors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* lib/net/http/backward.rb (class Net): Restored Net::HTTPSession todrbrain
fix backwards-compatibility with ancient Net::HTTP. [Bug #6889] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* 2012-08-24svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23Added a test for CoW strings.tenderlove
by John Shahid <jvshahid@gmail.com> https://github.com/ruby/ruby/pull/148 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* common.mk: support `make id.h` without `rm .id.h.time` after `rm id.h`.kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23fix typoskazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23Test for r36803's singleton_class_of.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* test/ruby/test_fixnum.rb (TestFixnum#test_singleton_method): new test.usa
* test/ruby/test_bignum.rb (TestBignum#test_singleton_method): ditto. * test/ruby/test_float.rb (TestFloat#test_singleton_method): ditto. * test/ruby/test_symbol.rb (TestSymbol#test_singleton_method): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* class.c (singleton_class_of): flonum can't have singleton class.usa
* vm.c (vm_define_method): flonum can't have singleton method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* common.mk (win32/*): macro RUBY_H_INCLUDES is not defined there,usa
so need to move denendency rules under the definition of it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* win32/Makefile.sub: refactoring. remove unused rules, and updateusa
some rules which are not used usually to fit current macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23load.c: keep encoding of feature namenobu
* file.c (rb_find_file_ext_safe, rb_find_file_safe): default to US-ASCII for encdb and transdb. * load.c (search_required): keep encoding of feature name. set loading path to filesystem encoding. [Bug #6377][ruby-core:44750] * ruby.c (add_modules, require_libraries): assume default external encoding as well as ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23remove trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* include/ruby/ruby.h: introduce flonum technique forko1
64bit CPU environment (sizeof(double) == sizeof(VALUE)). flonum technique enables to avoid double object creation if the double value d is in range about between 1.72723e-77 < |d| <= 1.15792e+77 or 0.0. flonum Float value is immediate and their lowest two bits are b10. If flonum is activated, then USE_FLONUM macro is 1. I'll write detailed in this technique on https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/Flonum_tech * benchmark/bmx_temp.rb: add an benchmark for simple Float calculation. * gc.c (id2ref, rb_obj_id): add flonum Float support. * include/ruby/intern.h: move decl of rb_float_new(double) to include/ruby/ruby.h. * insns.def, vm.c, vm_insnhelper.c: add flonum optimization and simplify source code. * vm_insnhelper.h (FLONUM_2_P): added. * marshal.c: support flonum output. * numeric.c (rb_float_new_in_heap): added. * parse.y: support flonum. * random.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* lib/mkmf.rb (create_makefile): add dependency to header files whenusa
depend files don't exist. now we can remove simple (and often wrong) depend files in most cases. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* ext/date/depend: add dependency to $(ruby_headers).ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-23* insns.def (invokesuper): reverted r36640 partially to make supershugo
in a thread work correctly. [ruby-core:47284] [Bug #6907] * test/ruby/test_super.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e