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

59732 Коммитов

Автор SHA1 Сообщение Дата
卜部昌平 6581db2187 internal/warnings.h rework
Not a big rewrite.  Just to make those macros readable.
2019-12-26 20:45:12 +09:00
卜部昌平 64ec438b5b internal/bits.h rework
Improving readability by converting some macros into inline functions.
Also improved support for recent x86_64 processors, which have better
instructions for the purposes.
2019-12-26 20:45:12 +09:00
卜部昌平 0958e19ffb add several __has_something macro
With these macros implemented we can write codes just like we can assume
the compiler being clang.  MSC_VERSION_SINCE is defined to implement
those macros, but turned out to be handy for other places.  The -fdeclspec
compiler flag is necessary for clang to properly handle __has_declspec().
2019-12-26 20:45:12 +09:00
卜部昌平 863dbb21d8 assume C99
Now that we no longer support old compilers, we can safely delete
several obsolete #ifdef gurads.  Also because (as of writing) it is
impossible to compile the program using C++ compilers, lets just
entirely prohibit __cplusplus to reduce # of LOCs.

Note however that we still cannot eliminate __STDC_VERSION__ checks,
because MSVC does not define it, saying its C99 support is partial.
See also https://social.msdn.microsoft.com/Forums/vstudio/en-US/53a4fd75-9f97-48b2-aa63-2e2e5a15efa3
2019-12-26 20:45:12 +09:00
卜部昌平 1dd149d3b1 re-add io.h and encoding.h into internal.h
This is tentative.  For the sake of simplicity we partially revert
commits e9cb552ec9, ee85a6e72b and 51edb30042.  Will decouple them
once again when we are ready.
2019-12-26 20:45:12 +09:00
卜部昌平 b739a63eb4 split internal.h into files
One day, I could not resist the way it was written.  I finally started
to make the code clean.  This changeset is the beginning of a series of
housekeeping commits.  It is a simple refactoring; split internal.h into
files, so that we can divide and concur in the upcoming commits.  No
lines of codes are either added or removed, except the obvious file
headers/footers.  The generated binary is identical to the one before.
2019-12-26 20:45:12 +09:00
卜部昌平 ba78bf9778 debug_counter.h must be self-contained
Include what is necessary.
2019-12-26 20:45:12 +09:00
Nobuyoshi Nakada b25e27277d
Transform hash keys by a hash [Feature #16274] 2019-12-26 15:50:34 +09:00
git dced0e5745 * 2019-12-26 [ci skip] 2019-12-26 10:58:26 +09:00
Yukihiro "Matz" Matsumoto 537a1cd5a9 2.8.0 (tentative; to be 3.0.0) development has started. 2019-12-26 10:55:58 +09:00
aycabta e1e1d92277 [ruby/reline] Version 0.1.2
https://github.com/ruby/reline/commit/b41024e317
2019-12-25 18:47:47 +09:00
aycabta 8a705245e5 Save last breaking point to complete 2019-12-25 18:45:24 +09:00
NARUSE, Yui 1002de58ec fix version regexp 2019-12-25 18:02:53 +09:00
NARUSE, Yui a1018b2c5f fix typo 2019-12-25 17:01:26 +09:00
Yusuke Endoh 75dca097b8 [bundler/bundler] Do `require "rubygems"` only when needed
This require causes circular require.

```
$ touch empty_file

$ RUBYGEMS_GEMDEPS=empty_file ./local/bin/ruby -w -e ''
/home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: warning: /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: warning: loading in progress, circular require considered harmful - /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb
	from <internal:gem_prelude>:1:in  `<internal:gem_prelude>'
	from <internal:gem_prelude>:1:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb:1417:in  `<top (required)>'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb:1203:in  `use_gemdeps'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/user_interaction.rb:47:in  `use_ui'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems.rb:1204:in  `block in use_gemdeps'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/bundler.rb:11:in  `<top (required)>'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/bundler.rb:11:in  `require_relative'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/bundler/rubygems_integration.rb:3:in  `<top (required)>'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
	from /home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in  `require'
```

https://github.com/bundler/bundler/commit/c7c5bcea92
2019-12-25 15:38:55 +09:00
Kenta Murata 27453b04c8
Update the version of bigdecimal to 2.0.0 (#2784) 2019-12-25 15:21:50 +09:00
Nobuyoshi Nakada 56e002981f
Show the error line only when same as the current 2019-12-25 14:49:48 +09:00
Koichi Sasada 9808e01090 export a function for MJIT.
rb_iseq_complete() can be used by MJIT.
2019-12-25 14:37:53 +09:00
Koichi Sasada d9bf9c572f take care of USE_LAZY_LOAD=1.
On USE_LAZY_LOAD=1, the iseq should be loaded. So rb_iseq_check()
is needed. Furthermore, now lazy loading with builtin_function_table
is not supported, so it should cancel lazy loading.
2019-12-25 14:12:33 +09:00
Yusuke Endoh 81e377023c range.c: Range#min with a beginless one now raise an explicit exception
[Bug #16450]
2019-12-25 13:36:23 +09:00
aycabta cd6c013b07 Add readline and readline-ext to default gems list in NEWS 2019-12-25 12:55:53 +09:00
Koichi Sasada 227c3d6426 add ref to NEWS entry 2019-12-25 12:06:16 +09:00
Yusuke Endoh 3345eab934 NEWS: add a ticket reference 2019-12-25 11:37:27 +09:00
Yusuke Endoh b9e35d2709 NEWS: add a ticket reference 2019-12-25 11:31:44 +09:00
Yusuke Endoh e0929c44dd NEWS: add ticket references 2019-12-25 11:27:13 +09:00
Nobuyoshi Nakada eb3f19b9b8
update-bundled_gems: drop branch name on github [ci skip] 2019-12-25 11:20:07 +09:00
aycabta 00710d1076 [ruby/readline] Version 0.0.2
https://github.com/ruby/readline/commit/42b71f3fc0
2019-12-25 10:57:44 +09:00
aycabta e51a34511c [ruby/readline] Use a box to make easier to see the message
https://github.com/ruby/readline/commit/e49e942053
2019-12-25 10:57:38 +09:00
aycabta 57c74841c7 [ruby/readline] Fix any wrong in messages
https://github.com/ruby/readline/commit/a2cf437c8f
2019-12-25 10:57:29 +09:00
aycabta de0f4f2fd7 [ruby/readline] Version 0.0.1
https://github.com/ruby/readline/commit/d2363cad33
2019-12-25 10:56:11 +09:00
aycabta 5d20865708 [ruby/readline] Add post_install_message
https://github.com/ruby/readline/commit/03126372b5
2019-12-25 10:55:51 +09:00
aycabta 999a2819a7 [ruby/readline-ext] Version 0.1.0
https://github.com/ruby/readline-ext/commit/f5abaf5be1
2019-12-25 10:53:44 +09:00
aycabta 2462427008 [ruby/reline] Version 0.1.1
https://github.com/ruby/reline/commit/923f97d068
2019-12-25 10:08:39 +09:00
aycabta ed5b4bae6a The behavior of vi_end_of_transmission should be the same of vi_list_or_eof 2019-12-25 09:52:37 +09:00
Hiroshi SHIBATA 03c504ac59
Commented-out btest on cygwin environment of GitHub Actions 2019-12-25 09:38:12 +09:00
aycabta 622e47a1db ^D on non-empty line in vi mode behaves like Enter 2019-12-25 09:34:13 +09:00
Yuki Nishijima 8e6d51e09a Sync did_you_mean 2019-12-24 18:41:55 -05:00
Yuki Nishijima 2b2be71cab Add did_you_mean's promotion to the NEWS 2019-12-24 18:24:55 -05:00
Hiroshi SHIBATA 1857b44278
Merge Bundler 2.1.2 from bundler/bundler.
[Misc #16449][ruby-core:96458]
2019-12-25 07:28:02 +09:00
Marcus Stollsteimer da0a0bae8b NEWS: add meaning of "CoW" ("copy-on-write") 2019-12-24 22:13:49 +01:00
Marcus Stollsteimer ceba5b7088 [DOC] Fix typo in Time#inspect 2019-12-24 21:50:27 +01:00
Alan Wu f3067deb88
Revert "Add NEWS entry about Module#name performance (#2779)" (#2781)
This reverts commit 3e9221d94a.
2019-12-24 14:54:20 -05:00
Alan Wu 3e9221d94a
Add NEWS entry about Module#name performance (#2779) 2019-12-24 14:02:50 -05:00
Koichi Sasada 5220145ea2 add debug_counter access functions.
These functions are enabled only on USE_DEBUG_COUNTER=1.
2019-12-25 01:34:41 +09:00
git 9b617ffa88 * 2019-12-25 [ci skip] 2019-12-25 01:00:40 +09:00
Marcus Stollsteimer 3679023df8 [DOC] Fix typo and language 2019-12-24 16:57:30 +01:00
Hiroshi SHIBATA 8c017824c8
Added entry for json-2.3.0 2019-12-24 22:31:38 +09:00
Hiroshi SHIBATA 1cd2ebed61
Update the news entries for RubyGems and Bundler 2019-12-24 21:39:37 +09:00
Marcus Stollsteimer 05b0410f91 [ruby/irb] Fix typo
https://github.com/ruby/irb/commit/4bb1340687
2019-12-24 21:22:46 +09:00
Marcus Stollsteimer 54083fd41b [DOC] Fix grammar in Process module docs 2019-12-24 13:01:47 +01:00