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

58707 Коммитов

Автор SHA1 Сообщение Дата
git 046be65c08 * 2019-11-04 [ci skip] 2019-11-04 09:18:29 +09:00
Nobuyoshi Nakada df62d6522a
Use the dedicated function `rb_io_check_io` 2019-11-04 09:14:18 +09:00
Nobuyoshi Nakada 5a7487bdcd
Added assertions for linebreak 2019-11-03 23:20:01 +09:00
Nobuyoshi Nakada 7b2cd548aa
[DOC] mentioned `\R` [ci skip] 2019-11-03 23:18:01 +09:00
Nobuyoshi Nakada f8b3d7d159
[DOC] \s in regexp is not same as in string [ci skip] 2019-11-03 22:53:17 +09:00
Benoit Daloze 782d1b8fb0 Fix warnings in Regexp#{match,match?} specs 2019-11-03 11:25:42 +01:00
Benoit Daloze fbacfe6820 Update NEWS entry for Feature #13083 2019-11-03 11:14:31 +01:00
Benoit Daloze 4a16623707 Remove incorrect NEWS entry, only Regexp#match and #match? changed 2019-11-03 11:14:31 +01:00
git 985e6ced99 * 2019-11-03 [ci skip] 2019-11-03 19:03:24 +09:00
Kenichi Kamiya 31110d820c Improve warning message
https://github.com/ruby/ruby/pull/2637#discussion_r341812475
2019-11-03 11:03:04 +01:00
Kenichi Kamiya 452bee3ee8 Revert nil error and adding deprecation message 2019-11-03 11:03:04 +01:00
Burdette Lamar 772b0613c5 Correct documented return values for certain ENV methods (#2620) 2019-11-02 15:32:49 +09:00
git e6f0fd8af4 * 2019-11-02 [ci skip] 2019-11-02 00:15:05 +09:00
aycabta ea97933645 Use prompt_list to calculate height by lines 2019-11-02 00:11:15 +09:00
Justin McNally 10c2a08548 Clean up implementation of SOCKSSocket, its confusing and undocumented 2019-11-01 18:40:24 +09:00
Justin McNally 68e0bfcd4a Prefer libsocksd over libsocks 2019-11-01 18:39:59 +09:00
Justin McNally b800410387 Support libsocksd socks library for SOCKSSocket 2019-11-01 18:39:59 +09:00
Alan Wu c56d8deaff Mention correct class name in uninitialized error
I think this meant to mention `MatchData`? This is a breaking change, but
should be a minor one.
2019-11-01 18:37:57 +09:00
Kazuhiro NISHIYAMA cc8116b03e Fix a typo [ci skip] 2019-11-01 18:33:58 +09:00
Nobuyoshi Nakada 6abf4c4802 [ruby/date] Added update-zonetab target
https://github.com/ruby/date/commit/9bc6e30a82
2019-11-01 17:30:17 +09:00
Jeremy Evans b2126d3fcf [ruby/date] Remove unneeded line in update-abbr
https://github.com/ruby/date/commit/ae14e5f293
2019-11-01 17:30:16 +09:00
Jeremy Evans 469545307f [ruby/date] Add more timezone abbreviations
This gets the time zone abbreviations from
https://www.timeanddate.com/time/zones/, and adds unambiguous time
zones not already present in zonetab.list.  See bin/update-abbr
for the program used.

This regenerates zonetab.h using prereq.mk (requires gperf).

Only one test line is added, just to make sure a new time zone
abbreviation is picked up.

Fixes Ruby Bug 16286

https://github.com/ruby/date/commit/702e8b3033
2019-11-01 17:30:14 +09:00
git 51825c04db * 2019-11-01 [ci skip] 2019-11-01 16:59:02 +09:00
卜部昌平 72f997edf6 mark functions that do not return NULL as such.
Apply __attribute__((__returns_nonnull__)) when available.
2019-11-01 16:58:19 +09:00
卜部昌平 f5e4063272 ruby_mimmalloc can return NULL
malloc can fail.  Should treat such situations.
2019-11-01 16:58:19 +09:00
卜部昌平 fb495b2928 rb_aligned_malloc can return NULL
Looking at gc.c, rb_aligned_malloc contains `return NULL;` so it
has to be taken care of.  Note however that posix_memalign(3posix)
does _not_ set errno.
2019-11-01 16:58:19 +09:00
卜部昌平 2c889e9b05 RUBY_ATTR_ALOC_SIZE for clang
clang also supports __attribute__((__alloc_size__)) so why not use
it when the compiler says it does.
2019-11-01 16:58:19 +09:00
Nobuyoshi Nakada 63f70eb651 [ruby/zlib] Removed no longer used variables
https://github.com/ruby/zlib/commit/3e98e4cac3
2019-10-31 22:24:00 +09:00
Alan Wu 0aaa15f636 [ruby/zlib] Fix setting mtime to zero in GzipWriter
Before this change, it was not possible to write out zero for the
timestamp part of a Gzip file's header, as calling GzipWriter#mtime with
zero was ignored.

Judging from the docs for `GzipWriter#mtime=`, it should be possible to
indicate that no timestamp is available by calling the method with zero.

https://github.com/ruby/zlib/commit/310be39cac
2019-10-31 22:23:58 +09:00
Jeremy Evans d6ed7a984c Fix verbose warning being emitted
Fixes Ruby Bug 16281.
2019-10-31 17:51:50 +09:00
Yusuke Endoh 5f6fbf8725 spec: Fix syntax errors
Follow up of 473882e01f
2019-10-31 17:11:23 +09:00
Hiroshi SHIBATA 473882e01f
Skip tainted examples for stringio 2019-10-31 16:50:00 +09:00
Jeremy Evans ebc884461b
[ruby/stringio] Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.

https://github.com/ruby/stringio/commit/60ee9ccd95
2019-10-31 16:24:02 +09:00
Jeremy Evans 3895e548bd [ruby/date] Revert "Simplify #inspect"
This reverts commit af01edd7d8575f544f647dbe8cde5b6ae535d459.

Revert requested by Yui Naruse.

https://github.com/ruby/date/commit/875d563557
2019-10-31 15:51:30 +09:00
glaszig fce940aac7 [ruby/date] introduce Date::Error, raise Date::Error for every
"invalid <anything>" type of exception

https://github.com/ruby/date/commit/3e55c09ba4
2019-10-31 15:51:25 +09:00
Jeremy Evans e4cd0d7287 [ruby/fileutils] Remove use of untaint on Ruby 2.7 to avoid deprecation warnings
https://github.com/ruby/fileutils/commit/5ac9a8a1f7
2019-10-31 15:41:46 +09:00
Hiroshi SHIBATA 39281d5774
[ruby/gdbm] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/gdbm/commit/bd2e7f6647
2019-10-31 15:34:01 +09:00
Jeremy Evans b93ab7d693
[ruby/gdbm] Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.

https://github.com/ruby/gdbm/commit/f9aaa1a08d
2019-10-31 15:34:01 +09:00
Jeremy Evans 290903dba0
[ruby/zlib] Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.

https://github.com/ruby/zlib/commit/21711ed0ce
2019-10-31 15:34:01 +09:00
Martin Dürst bc7fbb6f02 Mention update to Unicode Emoji version 12.1 in NEWS.
Also fixed some grammatical errors. [ci skip]
2019-10-31 15:19:59 +09:00
Hiroshi SHIBATA c38ba75780
Fixed the sync task for json
* Ignode to change ext/json/depend
  * Fixed to ignore json_pure files
2019-10-31 10:19:57 +09:00
Aaron Patterson 79d96b42df
Revert "Fix zero free objects assertion"
This reverts commit e1bf29314f.

I'm not sure why this broke stuff, I need to investigate later.
2019-10-30 18:05:32 -07:00
Aaron Patterson e1bf29314f
Fix zero free objects assertion
This commit is to attempt fixing this error:

  http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sky1/2353281

Each non-full heap_page struct contains a reference to the next page
that contains free slots.  Compaction could fill any page, including
pages that happen to be linked to as "pages which contain free slots".

To fix this, we'll iterate each page, and rebuild the "free page list"
depending on the number of actual free slots on that page.  If there are
no free slots on the page, we'll set the free_next pointer to NULL.

Finally we'll pop one page off the "free page list" and set it as the
"using page" for the next allocation.
2019-10-30 17:28:55 -07:00
Hiroshi SHIBATA e08f2e47e3 Also ignore mswin platform 2019-10-31 08:39:48 +09:00
Hiroshi SHIBATA 8540efd342 Ignore test_racc_command with linux platform 2019-10-31 08:39:48 +09:00
Hiroshi SHIBATA 1c03026ea3 Try to run assert_output_unchanged with racc tests 2019-10-31 08:39:48 +09:00
git 5f8795a07b * 2019-10-31 [ci skip] 2019-10-31 00:38:16 +09:00
Alan Wu 4c7f789e94 Allow only one argument for keyword_init struct
```
irb(main):001:0> RUBY_VERSION
=> "2.6.5"
irb(main):002:0> S = Struct.new(:foo, keyword_init: true)
=> S(keyword_init: true)
irb(main):003:0> S.new({foo: 23424}, 234) # I don't think this is intentional
=> #<struct S foo=23424>
irb(main):004:0>
```

Tightening this up should inform users when they are confused about
whether a struct is `keyword_init`.
2019-10-31 00:37:53 +09:00
Hiroshi SHIBATA 6c3ed0d71c
Update the latest versions from upstream repository of racc 2019-10-30 21:36:59 +09:00
Hiroshi SHIBATA e6d611ad37
Regenerate the output results for test fixtures of racc 2019-10-30 21:02:07 +09:00