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

57124 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA fc97aa9313
Fixed the world writable dirs on Ubuntu environment. 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA cfb192a7b9
Added test-bundled-gems to GitHub Actions 2019-08-12 12:14:39 +09:00
Hiroshi SHIBATA 11a09d78c1
Port ubuntu workflow based on macos 2019-08-12 12:01:39 +09:00
Nobuyoshi Nakada 9fe7e042f5
Note the reference to the pull request [ci skip] 2019-08-11 16:20:11 +09:00
Nobuyoshi Nakada 51d9d0f888
Use already fetched pull request [ci skip] 2019-08-11 15:47:39 +09:00
Takashi Kokubun 1c7eadf754
Debug which test hangs on mswin
debugging failure of
https://ci.appveyor.com/project/ruby/ruby/builds/26613960/job/nemi6pvc5s5843io
2019-08-11 14:15:49 +09:00
Hiroshi SHIBATA 053bee64cb
Cleanup the duplicated tasks on Azure Pipelines.
Closes: https://github.com/ruby/ruby/pull/2336
2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA 91fcd87f5c
Increase fetch-depth 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA bb2f24251f
GitHub Actions does not support ANSI color code. Skip failing examples. 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA c685679e25
Use check. 2019-08-11 12:17:22 +09:00
Hiroshi SHIBATA e7996e0fd6
Try to migrate test-bundler to Actions. 2019-08-11 12:17:22 +09:00
Kazuki Tsujimoto 6017e81b03
Update power_assert to 1.1.5 2019-08-11 11:01:39 +09:00
Kazuhiro NISHIYAMA f731cc0984
Use `end_with?` instead of Regexp with missing escape 2019-08-11 10:15:05 +09:00
Hiroshi SHIBATA 2990c2cc3e
Use capture_output instead of capture_io.
It's preparation for migrating test-unit on upstream.
2019-08-11 06:14:01 +09:00
git 7ee948c3a1 * 2019-08-11 2019-08-11 00:45:23 +09:00
Nobuyoshi Nakada d29bccb39b
Adjust indent [ci skip] 2019-08-11 00:44:13 +09:00
Nobuyoshi Nakada 46df7fe91f
prereq.status deals with removal of nmake VPATH notations [ci skip] 2019-08-11 00:44:13 +09:00
Takashi Kokubun 0609087a6b
Parallelize osx test-all too 2019-08-10 23:57:20 +09:00
Nobuyoshi Nakada c21c001733
Re-enable parallel build/test on OSX 2019-08-10 23:30:50 +09:00
Nobuyoshi Nakada 52bd4716b4
rb_numeric_quo: support Complex 2019-08-10 23:19:24 +09:00
Takashi Kokubun c1c8577088
Fix wrong pull_request filter
The specification was not triggered on a pull request.
2019-08-10 20:25:59 +09:00
Nobuyoshi Nakada 00e7ef7e8d
Suppress flags messages [ci skip] 2019-08-10 19:50:46 +09:00
Takashi Kokubun a6c5ce7a9b
Increase the fetch-depth of GitHub Actions
because small numbers had made Azure Pipelines in the past and it's
using 20 now. I heard GitHub Actions has more parallelism, so it should
be okay.
2019-08-10 19:44:39 +09:00
Takashi Kokubun b3903ef2a1
Set more descriptive labels to workflow 2019-08-10 19:38:28 +09:00
Takashi Kokubun 59a8003ac5
Drop confusing label from workflow
because it's doing more than test-all
2019-08-10 19:33:12 +09:00
Takashi Kokubun 6205f95539
Escape asterisk on pull request paths 2019-08-10 19:29:39 +09:00
Takashi Kokubun e43b3bb442
Skip running GitHub Actions on trunk 2019-08-10 19:28:10 +09:00
Takashi Kokubun 9b203959d5
Rename workflow.yml to macos.yml
to allow having other workflows separately, and configure `name` to
simplify a tooltip label on GitHub.
2019-08-10 19:19:25 +09:00
Nobuyoshi Nakada 5e3fb0b357
Touch the checked out source to fix clock skew on all platform 2019-08-10 16:33:32 +09:00
Nobuyoshi Nakada c5fbe2a19f
Moved options to $travis_apt_get_options 2019-08-10 15:48:39 +09:00
Nobuyoshi Nakada d69ffa4d93
Expanded f_quo 2019-08-10 14:38:30 +09:00
Nobuyoshi Nakada 98c22c78e4
Expanded f_real_p 2019-08-10 14:22:43 +09:00
Nobuyoshi Nakada ffdef3674a
Warn instance variable `E`
It is not dumped, as it is a short alias for `:encoding`.
2019-08-10 13:18:41 +09:00
git 3c3783ac88 * expand tabs. 2019-08-10 11:43:07 +09:00
Nobuyoshi Nakada ab31693af1
Share caches for short encoding ivar name. 2019-08-10 11:38:49 +09:00
Nobuyoshi Nakada 07e42e88d9
Close created files [ci skip] 2019-08-10 11:26:23 +09:00
Masato Ohba 6902824729
Fix typo in comment [ci skip]
s/Thtread/Thread
2019-08-10 09:35:28 +09:00
Takashi Kokubun 49f88eb2f1
Try building workflow on push 2019-08-10 09:34:13 +09:00
iain barnett 789776be08
Added some examples to the documentation for String#unpack1 because
there are currently no examples and to contrast with String#unpack.
2019-08-09 17:06:07 -07:00
John Hawthorn 9d298b9dab
Allow Array#join to allocate smaller strings
rb_str_buf_new always allocates at least 127 bytes of capacity, even
when less is requested.

    > ObjectSpace.dump(%w[a b c].join)
    {"address":"0x7f935f06ebf0", "type":"STRING", "class":"0x7f935d8b7bb0", "bytesize":3, "capacity":127, "value":"abc", "encoding":"UTF-8", "memsize":168, "flags":{"wb_protected":true}}

Instead, by using rb_str_new and then setting the length to 0, we can
allocate the exact amount of memory needed, without extra capacity.

    > ObjectSpace.dump(%w[a b c].join)
    {"address":"0x7f903fcab530", "type":"STRING", "class":"0x7f903f8b7988", "embedded":true, "bytesize":3, "value":"abc", "encoding":"UTF-8", "memsize":40, "flags":{"wb_protected":true}}
2019-08-09 16:33:53 -07:00
ohbarye b1678338e5
Fix typo: duplicated the [skip-ci] 2019-08-09 16:23:49 -07:00
Nobuyoshi Nakada 162cf2879a
Init function is need to link statically 2019-08-10 01:41:50 +09:00
Jeremy Evans 53b3be5d58 Fix parsing of mutiple assignment with rescue modifier
Single assignment with rescue modifier applies rescue to the RHS:

  a = raise rescue 1 # a = (raise rescue 1)

Previously, multiple assignment with rescue modifier applied rescue
to the entire expression:

  a, b = raise rescue [1, 2] # (a, b = raise) rescue [1, 2]

This makes multiple assignment with rescue modifier consistent with
single assignment with rescue modifier, applying rescue to the RHS:

  a, b = raise rescue [1, 2] # a, b = (raise rescue [1, 2])

Implements [Feature #8239]
Fixes [Bug #8279]
2019-08-09 09:25:30 -07:00
Nobuyoshi Nakada cecae8593a
Removed unnecessary headers 2019-08-10 01:05:09 +09:00
Nobuyoshi Nakada 88db6fa479
Use ENC_REPLICATE to copy an encoding 2019-08-10 01:04:39 +09:00
git 8d7e0159c0 * 2019-08-10 2019-08-10 00:04:06 +09:00
Yusuke Endoh a8ba22cd32 Revert "Removed unused includes"
This reverts commit c9eb8f82e9.

The change caused "implicit declaration" warning and actual segfault.

```
/tmp/ruby/v2/src/trunk-gc-asserts/enc/gb2312.c: In function ‘Init_gb2312’:
/tmp/ruby/v2/src/trunk-gc-asserts/enc/gb2312.c:6:31: warning: implicit declaration of function ‘rb_enc_find’ [-Wimplicit-function-declaration]
     rb_enc_register("GB2312", rb_enc_find("EUC-KR"));
                               ^~~~~~~~~~~
/tmp/ruby/v2/src/trunk-gc-asserts/enc/gb2312.c:6:31: warning: passing argument 2 of ‘rb_enc_register’ makes pointer from integer without a cast [-Wint-conversion]
<command-line>:0:19: note: expected ‘OnigEncoding {aka const struct OnigEncodingTypeST *}’ but argument is of type ‘int’
/tmp/ruby/v2/src/trunk-gc-asserts/regenc.h:231:12: note: in expansion of macro ‘ONIG_ENC_REGISTER’
 extern int ONIG_ENC_REGISTER(const char *, OnigEncoding);
            ^~~~~~~~~~~~~~~~~
```
2019-08-10 00:01:36 +09:00
Nobuyoshi Nakada 314b50d7c0
#include <> for system headers 2019-08-09 23:10:06 +09:00
Nobuyoshi Nakada c9eb8f82e9
Removed unused includes 2019-08-09 23:08:30 +09:00
Yusuke Endoh 3ddbba84b5 gc.c: Double STACKFRAME_FOR_CALL_CFUNC (1024->2048)
ef64ab917e didn't fix the issue, so the
size seems not enough yet.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/osx1014/ruby-master/log/20190809T114503Z.fail.html.gz
2019-08-09 22:48:20 +09:00