1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

65094 commits

Author SHA1 Message Date
Nobuyoshi Nakada
fd6d5c803a Clear each test own temporary directories 2021-01-25 12:51:18 +09:00
Nobuyoshi Nakada
30f11e73c4
Revert "Remove temporary directory properly"
This reverts commit 80bad36989,
because a few CI machines fail continuously.
2021-01-24 23:26:11 +09:00
Nobuyoshi Nakada
80bad36989 Remove temporary directory properly
For each `make check`, rubygems test makes "tmp" directory and
some "gem_generate_index..." directories remain there.

* Do not create a (fixed name) directory in the current working
  directory
* Should remove its own temporary directory
2021-01-24 19:30:02 +09:00
Nobuyoshi Nakada
52ebaf718e [ruby/rdoc] Skip non-date logs by git-log
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by
git-log, because of too heuristic `Time.parse`.

For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637"
results in "8187-08-16", that is, day 228 in the year 8187.

https://github.com/ruby/rdoc/commit/9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada
d5d1c41728 [ruby/rdoc] Sort by CommitDate if available
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada
fa048a0f85 [ruby/rdoc] Add links to the commits
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada
f3f1a666c7 [ruby/rdoc] Shorten commit hashes
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada
127f735c1e [ruby/rdoc] Tweak log entry markdown
* add 3 levels to headings
* prefix commit log to labels to make unique IDs

https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada
b88d1e6b44 [ruby/rdoc] Make each commit entries h3
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada
bb570ce6d8 [ruby/rdoc] Support ChangeLog generated by git log
https://github.com/ruby/rdoc/commit/5e0a123ca1
2021-01-24 16:46:15 +09:00
Dorian Marié
68e7dc532d [ruby/rdoc] Fix failing test by adding gettext as a development dependency
The failing test was:

========================================================================================
rdoc/test/rdoc/test_rdoc_i18n_locale.rb:35:in `rescue in test_load_existent_po'
Omission: gettext gem is not found [test_load_existent_po(TestRDocI18nLocale)]
========================================================================================

https://github.com/ruby/rdoc/commit/e5f85839e1
2021-01-24 16:46:11 +09:00
NARUSE, Yui
1bd27a7882 Add test for String#casecmp?
String#casecmp? also normalize upper case characters in legacy encodings.
2021-01-24 15:57:13 +09:00
Nobuyoshi Nakada
d6e43e4723
Moved --verbose, --verbose and --help options to last [ci skip] 2021-01-24 14:59:41 +09:00
git
3881688796 * 2021-01-24 [ci skip] 2021-01-24 14:35:51 +09:00
aycabta
743c44ee21 [ruby/irb] Indent correctly with method calling with receiver
https://github.com/ruby/irb/commit/e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta
fc54af8aa1 [ruby/irb] Indent correctly with keyword "for" and "in"
https://github.com/ruby/irb/commit/47c83ea724
2021-01-24 14:35:26 +09:00
Kazuki Tsujimoto
8cb999dd84
Update power_assert to 2.0.0 2021-01-23 21:06:56 +09:00
Nobuyoshi Nakada
4de228b6bc
Sort autogenerated dependencies [ci skip] 2021-01-23 20:56:15 +09:00
Nobuyoshi Nakada
8dfae85adb
Warn the defined location as deprecation as well as the main message
[Bug ]
2021-01-23 19:58:39 +09:00
Yusuke Endoh
62283f7a7a coroutine/emscripten/: Experimentally support emscripten fiber API 2021-01-23 18:56:06 +09:00
Yusuke Endoh
f12c33b611 configure.ac: Add some compiler options for emscripten
"-lc" and "-s ALLOW_MEMORY_GROWTH=1" are needed
2021-01-23 16:07:41 +09:00
Yusuke Endoh
dd65aa95f9 bignum.c: Make sure the argument of LONG2FIX is long
... because BDIGIT_DBL may be long long. POSFIXABLE and NEGFIXABLE
ensures that the value is representable as long, but it failed to build
on emscripten with -Werror -Wshorten-64-to-32.
2021-01-23 16:05:33 +09:00
Yusuke Endoh
05f89dd13b thread_pthread.c: pthread_kill is not available on emscripten 2021-01-23 13:24:06 +09:00
Yusuke Endoh
33fb87cc9c io.c: popen is not available on emscripten 2021-01-23 13:24:06 +09:00
Nobuyoshi Nakada
9efd590a13
Rationalize floats in coerce [Bug ] 2021-01-23 11:13:21 +09:00
Kazuhiro NISHIYAMA
9de68a5221
Fix a warning
```
.../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated
```
2021-01-23 10:52:17 +09:00
Nobuyoshi Nakada
a55eb9a2af
Make reciprocal properly of non-integral rational [Bug ] 2021-01-23 10:30:59 +09:00
Gannon McGibbon
37258b64c7
[ruby/net-http] Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.

https://github.com/ruby/net-http/commit/ffb87cad32
2021-01-23 10:20:28 +09:00
Yusuke Endoh
47d6c55755 gc.c: stop overflow check on emscripten build 2021-01-23 10:11:50 +09:00
Yusuke Endoh
1dfddac393 configure.ac: Stop -fstack-protector on emscripten build 2021-01-23 10:11:50 +09:00
Nobuyoshi Nakada
6ef761a515 vcs.rb: continue just with warning if failed to fetch notes 2021-01-23 10:07:49 +09:00
Nobuyoshi Nakada
ccd7b7ab9a vcs.rb: include commit info in ChangeLog 2021-01-23 10:07:49 +09:00
Gannon McGibbon
1def8a6004 [rubygems/rubygems] Replace "iff" with "whether" and "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
or "whether" should suffice.

https://github.com/rubygems/rubygems/commit/88318ebc6d
2021-01-23 09:50:47 +09:00
git
db7d0b89f6 * 2021-01-23 [ci skip] 2021-01-23 06:01:39 +09:00
Burdette Lamar
6e44de752e
What's Here for String RDoc ()
* What's Here for String RDoc
2021-01-22 15:01:09 -06:00
Nobuyoshi Nakada
07b4b1b1cb
Support coroutine on universal binary 2021-01-22 23:41:52 +09:00
Nobuyoshi Nakada
e34eb58ac7
Keep ARCH_OPTION for arm64 2021-01-22 23:40:32 +09:00
Nobuyoshi Nakada
f1c36f2e6b
Added include guards to coroutine headers 2021-01-22 23:21:25 +09:00
Nobuyoshi Nakada
c3244a3574
Do not set target_alias if unset 2021-01-22 22:29:17 +09:00
Nobuyoshi Nakada
c8121b2e3d
Adjust CPU name as arm64-darwin
config.sub replaces arm64 with aarch64.
2021-01-22 18:37:31 +09:00
Nobuyoshi Nakada
899b950647
Remove common output directory 2021-01-22 18:37:31 +09:00
Koichi Sasada
e586345b77 check is_incremental_marking() again
is_incremental_marking() can be changed after checking the
flag without locking, especially on `GC.stress = true`.
2021-01-22 18:15:57 +09:00
Kenta Murata
a1bb110b56 [ruby/bigdecimal] [Doc] Fix the comment of BigDecimal_div2 [ci skip]
https://github.com/ruby/bigdecimal/commit/a109d0984f
2021-01-22 14:07:32 +09:00
Kenta Murata
887a1bfbbc [ruby/bigdecimal] Stop using GetVpValue in rb_big_convert_to_BigDecimal
https://github.com/ruby/bigdecimal/commit/034fd2b25e
2021-01-22 13:59:04 +09:00
Koichi Sasada
fff1edf23b fix Ractor.yield(obj, move: true)
Ractor.yield(obj, move: true) and
Ractor.select(..., yield_value: obj, move: true) tried to yield a
value with move semantices, but if the trial is faild, the obj
should not become a moved object.

To keep this rule, `wait_moving` wait status is introduced.

New yield/take process:
(1) If a ractor tried to yield (move:true), make taking racotr's
    wait status `wait_moving` and make a moved object by
    `ractor_move(obj)` and wakeup taking ractor.
(2) If a ractor tried to take a message from a ractor waiting fo
    yielding (move:true), wakeup the ractor and wait for (1).
2021-01-22 12:16:37 +09:00
Koichi Sasada
d0d6227a0d alen should be actions number on ractor_select()
alen was number of rs, but it should be actions number
(taking ractors + receiving + yielding).
2021-01-22 12:16:37 +09:00
aycabta
fb33ec0119 [ruby/irb] Delete a doodle-level memo comment...
https://github.com/ruby/irb/commit/fc3e1d9e0c
2021-01-22 08:15:31 +09:00
Aaron Patterson
32b7dcfb56
Fix more assumptions about the read barrier
This is a continuation of 0130e17a41.  We
need to always use the read barrier
2021-01-21 11:19:44 -08:00
Gannon McGibbon
871b4612b0 [ruby/matrix] Replace "iff" with "whether" [doc]
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "whether"
when describing return values should suffice.
2021-01-21 13:22:25 -05:00
Felix Wolfsteller
e34f51fe60 [ruby/matrix] Add Matrix#rotate_entries []
Co-authored-by: Marc-André Lafortune <github@marc-andre.ca>
2021-01-21 13:22:25 -05:00