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

74156 Коммитов

Автор SHA1 Сообщение Дата
Burdette Lamar c32180d5ce [ruby/stringio] [DOC] Enhanced RDoc for StringIO
(https://github.com/ruby/stringio/pull/35)

Treated:
- #getc
- #getbyte
- #ungetc
- #ungetbyte
- #readchar
- #readbyte
- #each_char

https://github.com/ruby/stringio/commit/6400af8d9f
2022-10-19 15:33:08 +00:00
Aaron Patterson eeea633eb2 Stop zeroing memory on allocation / copy
Shapes gives us an almost exact count of instance variables on an
object.  Since we know the number of instance variables that have been
set, we will never access slots that haven't been initialized with an
IV.
2022-10-19 07:54:46 -07:00
Nobuyoshi Nakada 412e3c7a8d Assert for RTEST that Qnil and Qfalse differ just 1 bit 2022-10-19 22:55:42 +09:00
Hiroshi SHIBATA 86096a91d5 [rubygems/rubygems] Use [] instead of double-quotes 2022-10-19 13:03:47 +00:00
Hiroshi SHIBATA a25c033805 Suppress warning for fgrep
>fgrep: warning: fgrep is obsolescent; using ggrep -F
2022-10-19 21:10:00 +09:00
Hiroshi SHIBATA dae843f6b7 Bypass git submodule add/update with git config protocol.file.allow=always option.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-10-19 20:34:45 +09:00
Sergey Fedorov 567725ed30
Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975) 2022-10-19 23:49:45 +13:00
Samuel Williams fc3137ef54
Add support for anonymous shared IO buffers. (#6580) 2022-10-19 18:53:38 +13:00
Kouhei Yanagita f982a26374 [DOC] Fix typo in Enumerable#slice_before 2022-10-19 09:14:50 +09:00
Burdette Lamar 18b96d8a82 [ruby/stringio] [DOC] StringIO doc enhancements
(https://github.com/ruby/stringio/pull/33)

Treated:
- ::new
- ::open
- #string
- #string=
- #close
- #close_read
- #close_write
- #closed?
- #closed_read?
- #closed_write?
- #eof?

https://github.com/ruby/stringio/commit/be9b64d739
2022-10-19 09:12:18 +09:00
Nobuyoshi Nakada 1654f88ca7
sync_default_gems.rb: commit all after replaced rdoc-ref [ci skip] 2022-10-19 09:11:11 +09:00
Nobuyoshi Nakada 01d56b99bf
[DOC] Fix rdoc-ref 2022-10-19 08:52:29 +09:00
Jimmy Miller 12c30f215c
Fixes remaining issues and turns back on dead code and unused (#6584) 2022-10-18 16:03:55 -04:00
Burdette Lamar 6bd72a6406 [DOC] Enhanced RDoc for StringIO (#34)
Treated:
- #lineno
- #lineno=
- #binmode
- #reopen
- #pos
- #pos=
- #rewind
- #seek
- #sync
- #each_byte
2022-10-18 18:41:00 +00:00
Jimmy Miller b2ba71df9e
Code clean around unused code for some architectures or features (#6581) 2022-10-18 14:19:41 -04:00
Takashi Kokubun e7166c9bb7
Allow passing a Rust closure to rb_iseq_callback (#6575) 2022-10-18 09:07:11 -07:00
Burdette Lamar d67b6310d3
[DOC] Link to packed data doc (#6567)
* Link to packed data doc

* Update pack.rb

Co-authored-by: Peter Zhu <peter@peterzhu.ca>

* Update pack.rb

Co-authored-by: Peter Zhu <peter@peterzhu.ca>

* Update pack.rb

Co-authored-by: Peter Zhu <peter@peterzhu.ca>

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-10-18 10:16:22 -05:00
Nobuyoshi Nakada 1b235dcfd9
Ignore manual files only commits [ci skip] 2022-10-18 17:44:31 +09:00
Nobuyoshi Nakada e1ca90c2a4
sync_default_gems.rb: fold too long subject [ci skip]
Line with substituted issue references with URLs are often very long.
Although Git (and GitHub) recommends folding subject lines less than
50 columns, but many commits ignore this, so fold at 68 columns for
now.
2022-10-18 17:43:43 +09:00
git 93d73cfe80 Update default gems list at dffca50bb6 [ci skip] 2022-10-18 08:22:21 +00:00
Aaron Patterson dffca50bb6 [ruby/fiddle] Free closures immediately
(https://github.com/ruby/fiddle/pull/109)

These structs don't need to be freed as part of finalization, so lets
free them immediately.

https://github.com/ruby/fiddle/commit/8a10ec1152
2022-10-18 17:21:45 +09:00
Sutou Kouhei e84ea4af69 [ruby/fiddle] Add support for linker script on Linux
GitHub: fix https://github.com/ruby/fiddle/pull/107

Reported by nicholas a. evans. Thanks!!!

https://github.com/ruby/fiddle/commit/49ea1490df
2022-10-18 17:21:45 +09:00
John Paul Adrian Glaubitz 93da67d463 [ruby/fiddle] Fix filenames for glibc SO files on alpha and ia64
(https://github.com/ruby/fiddle/pull/105)

Fixes [Bug #18645]

https://github.com/ruby/fiddle/commit/9a5a1dab1d
2022-10-18 17:21:45 +09:00
Sutou Kouhei 08ec656282 [ruby/fiddle] Bump version 2022-10-18 17:21:45 +09:00
Nobuyoshi Nakada 091e3522d7 fiddle: use the old rb_ary_tmp_new() alias
Fiddle is a gem and has the external upstream which supports older
versions of Ruby.
2022-10-18 17:21:45 +09:00
Takuya Noguchi 007946c27d [rubygems/rubygems] Bundler: github DSL has used https protocol over git
This behavior change was done in Bundler 2.2.0.

https://github.com/rubygems/bundler/pull/7142

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

https://github.com/rubygems/rubygems/commit/9510190be1
2022-10-18 07:54:32 +00:00
Hiroshi SHIBATA f5df47d1f3 Merge RubyGems/Bundler master
6214d00b23
2022-10-18 16:33:15 +09:00
Jarek Prokop 2ab7bb8969 [rubygems/rubygems] TestGemSecuritySigner#test_sign: Correct the expectation for new cert.
https://github.com/rubygems/rubygems/commit/bed360410d
2022-10-18 16:33:15 +09:00
Jarek Prokop b7debaa801 [rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature algorithm.
https://github.com/rubygems/rubygems/commit/e2d533591c
2022-10-18 16:33:15 +09:00
Jarek Prokop cbddc913d9 [rubygems/rubygems] Set Subject Key Identifier in test to correspond to the new certificate.
https://github.com/rubygems/rubygems/commit/3a607f43d1
2022-10-18 16:33:15 +09:00
David Rodríguez cb63a3f4c1 [rubygems/rubygems] Materialize platforms strictly on Windows too
https://github.com/rubygems/rubygems/commit/ab11545f80
2022-10-18 16:33:15 +09:00
David Rodríguez 4d3dbbe77e [rubygems/rubygems] Remove unnecessary receiver
https://github.com/rubygems/rubygems/commit/ba9d9b1890
2022-10-18 16:33:15 +09:00
David Rodríguez 74dbb0d09a [rubygems/rubygems] Remove unnecessary generic
I didn't realize how the `Bundler::GemHelpers.generic` method works when
I added this. It already matches this and other java platforms properly.

https://github.com/rubygems/rubygems/commit/5f0f0c678c
2022-10-18 16:33:15 +09:00
David Rodríguez 5fa18a7b0c [rubygems/rubygems] Fix bad spec wording
https://github.com/rubygems/rubygems/commit/06faad1e05
2022-10-18 16:33:15 +09:00
David Rodríguez e956caea88 [rubygems/rubygems] Extract matcher for slow perf spec
https://github.com/rubygems/rubygems/commit/1c0eb63c6a
2022-10-18 16:33:15 +09:00
David Rodríguez 56ad79694b [rubygems/rubygems] Simplify fetching spec group dependencies
https://github.com/rubygems/rubygems/commit/62c2edd255
2022-10-18 16:33:15 +09:00
David Rodríguez 804ae4ea12 [rubygems/rubygems] Simplify SpecGroup creation
https://github.com/rubygems/rubygems/commit/788e46e152
2022-10-18 16:33:15 +09:00
David Rodríguez 67de00053a [rubygems/rubygems] Inline helper method
https://github.com/rubygems/rubygems/commit/e60459d6b6
2022-10-18 16:33:15 +09:00
David Rodríguez b99010f9f2 [rubygems/rubygems] Use `flat_map`
https://github.com/rubygems/rubygems/commit/b31308fb4c
2022-10-18 16:33:15 +09:00
David Rodríguez 71dede387e [rubygems/rubygems] Remove one more `expand_dependencies` call
https://github.com/rubygems/rubygems/commit/996fd81871
2022-10-18 16:33:15 +09:00
David Rodríguez cef7f6b224 [rubygems/rubygems] Remove now unnecessary parameter to `expand_dependencies`
We just call it once for resolution, so we can simplify things.

https://github.com/rubygems/rubygems/commit/99c144fbe3
2022-10-18 16:33:15 +09:00
David Rodríguez 8c4bd1e58d [rubygems/rubygems] Remove another `expand_dependencies` instance
https://github.com/rubygems/rubygems/commit/33769ddb07
2022-10-18 16:33:15 +09:00
David Rodríguez 60670b163f [rubygems/rubygems] Remove another unnecessary dependency expansion
https://github.com/rubygems/rubygems/commit/b4a0fcd2d2
2022-10-18 16:33:15 +09:00
David Rodríguez 0b6f2af3ba [rubygems/rubygems] Avoid unnecessary dependency expansion
https://github.com/rubygems/rubygems/commit/426748ed06
2022-10-18 16:33:15 +09:00
David Rodríguez da1981fca4 [rubygems/rubygems] Remove unused parameter to `SharedHelpers.pretty_dependency`
https://github.com/rubygems/rubygems/commit/665051d085
2022-10-18 16:33:15 +09:00
David Rodríguez 4205190cb2 [rubygems/rubygems] Remove dead code
https://github.com/rubygems/rubygems/commit/999b644708
2022-10-18 16:33:15 +09:00
Takashi Kokubun 931bcd1b63 [ruby/irb] Assert lvars_code doesn't include \n
Removing /\A.+\n/ could have an unexpected impact, depending on how
RubyLex.generate_local_variables_assign_code is implemented. It feels
like a too much assumption and the intention isn't immediately clear,
so I added these changes.

https://github.com/ruby/irb/commit/ccc07a35ce
2022-10-18 06:03:23 +00:00
tomoya ishida a09f764ce5 [ruby/irb] Always use local variables in current context to parse code (https://github.com/ruby/irb/pull/397)
* Use local_variables for colorize, code_block_open check, nesting_level and assignment_expression check

* Check if expression is an assignment BEFORE evaluating it. evaluate might define new localvars and change result of assignment_expression?

* Add local_variables dependent code test

* pend local variable dependent test on truffleruby

code_block_open is not working on truffleruby

* Always pass context to RubyLex#lex

* Rename local_variable_assign_code generator method name

* Add assignment expression truncate test

* Add Context#local_variables and make generate_local_variables_assign_code more simple

* Update lib/irb/input-method.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Add a comment why assignment expression check should be done before evaluate

https://github.com/ruby/irb/commit/c8b3877281

Co-authored-by: Stan Lo <stan001212@gmail.com>
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-10-18 05:44:07 +00:00
tomoya ishida 344e6c915f [ruby/irb] Fix code terminated check with heredoc and backtick (https://github.com/ruby/irb/pull/390)
* Fix backtick method def method call handled as backtick open

* Fix handling heredoc in check_string_literal

* Sort result of lexer.parse by pos in ruby<2.7. It's not sorted when the given code includes heredoc.

* Update lib/irb/ruby-lex.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Update lib/irb/ruby-lex.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Add check_string_literal test for heredoc code that does not end with newline

https://github.com/ruby/irb/commit/44bc712460

Co-authored-by: Stan Lo <stan001212@gmail.com>
2022-10-18 05:30:33 +00:00
Takashi Kokubun 134acf98d8
ruby/ruby-commit-hook has been renamed [ci skip]
to ruby/git.ruby-lang.org
2022-10-17 21:16:09 -07:00