aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [ruby/prism] Remove trailing parenthesis in Location#pretty_printgazayas2023-10-041-1/+1
| | | | https://github.com/ruby/prism/commit/8eaa199a28
* Optimize `Range#count` by using `range_size` if possibleKouhei Yanagita2023-10-053-7/+37
|
* [ruby/prism] [rust] write flag accessor functionsNathan Froyd2023-10-041-1/+1
| | | | https://github.com/ruby/prism/commit/f2333ba4c8
* [ruby/prism] give flag enums a non-`typedef`'d nameNathan Froyd2023-10-041-1/+1
| | | | https://github.com/ruby/prism/commit/630af5cb0e
* [DOC] Fix typo in docs of IO: `#.` -> `$.`Herwin2023-10-041-1/+1
|
* [ruby/irb] Clear all context usages in RubyLexStan Lo2023-10-045-53/+35
| | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/684) After this change, `RubyLex` will not interact with `Context` directly in any way. This decoupling has a few benefits: - It makes `RubyLex` easier to test as it no longer has a dependency on `Context`. We can see this from the removal of `build_context` from `test_ruby_lex.rb`. - It will make `RubyLex` easier to understand as it will not be affected by state changes in `Context` objects. - It allows `RubyLex` to be used in places where `Context` is not available. https://github.com/ruby/irb/commit/d5b262a076
* Special treat when the first line ends with a dot [ci skip]Nobuyoshi Nakada2023-10-042-1/+14
|
* YJIT: Call mprotect after entry stub failure (#8582)Takashi Kokubun2023-10-031-18/+16
| | | Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
* [DOC] Fix description for `rb_postponed_job_register_one()`Daisuke Aritomo2023-10-041-3/+3
| | | | | | The current documentation for `rb_postponed_job_register_one()` is explaining the differences with itself, where it should be explaining the differences with `rb_postponed_job_register()`.
* Remove not used fields from variable nodesyui-knk2023-10-042-26/+0
|
* Update default gems list at e501613efa2b010d6d697a4df264a2 [ci skip]git2023-10-041-1/+1
|
* [ruby/bigdecimal] Bump up to 3.1.5Nobuyoshi Nakada2023-10-041-1/+1
| | | | https://github.com/ruby/bigdecimal/commit/c47802e813
* BigDecimal#to_s has not changed for fraction partNobuyoshi Nakada2023-10-041-13/+11
| | | | The test for integer part was separated at dc54574adefe.
* YJIT: add heuristic to avoid compiling cold ISEQs (#8522)Maxime Chevalier-Boisvert2023-10-039-5/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * YJIT: Add counter to measure how often we compile "cold" ISEQs (#535) Fix counter name in DEFAULT_COUNTERS YJIT: add --yjit-cold-threshold, don't compile cold ISEQs YJIT: increase default cold threshold to 200_000 Remove rb_yjit_call_threshold() Remove conflict markers Fix compilation errors Threshold 1 should compile immediately Debug deadlock issue with test_ractor Fix call threshold issue with tests * Revert exception threshold logic. Document option in yjid.md * (void) for 0 parameter functions in C99 * Rename iseq_entry_cold => cold_iseq_entry * Document --yjit-cold-threshold in ruby.c * Update doc/yjit/yjit.md Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com> * Shorten help string to appease test * Address bug found by Kokubun. Reorder logic. --------- Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
* [ruby/prism] Provide pm_parser_err_current and pm_parser_err_previousKevin Newton2023-10-031-48/+62
| | | | https://github.com/ruby/prism/commit/4828c96939
* [ruby/prism] Consolidate diagnostic appendingsKevin Newton2023-10-031-140/+163
| | | | https://github.com/ruby/prism/commit/4f107d8962
* [rubygems/rubygems] Prevent gem activation in standalone modeDaniel Colson2023-10-032-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | As discussed in https://github.com/rubygems/rubygems/issues/6273#issuecomment-1449176658 The `gem` method behaves awkwardly in standalone mode. Assuming bundler isn't loaded at all, a call to gem might activate a gem that is not part of the bundle (because it's the gem method defined in lib/rubygems/core_ext/kernel_gem.rb and not lib/bundler/rubygems_integration.rb). And when running with `--disable-gems`, the gem method won't be defined at all so we'll get a NoMethodError. Calls to `gem` can appear in dependencies outside an application's control. To work around this at GitHub we defined our own `Kernel#gem` that no-ops. I agree with https://github.com/rubygems/rubygems/issues/6273#issuecomment-1440755882 > people using standalone mode don't want to activate gems like Kernel.gem This commit redefines `Kernel#gem` in the standalone script to no-op. https://github.com/rubygems/rubygems/commit/bea17b55f1
* YJIT: Stop spilling temps on jit_prepare_routine_call (#8581)Takashi Kokubun2023-10-031-34/+49
| | | YJIT: Remove spill_temps from jit_prepare_routine_call
* Allow changing RUBY_PATCHLEVEL_STR if RUBY_PATCHLEVEL == -1 (#8578)Takashi Kokubun2023-10-031-3/+7
| | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Update default gems list at 5dfbf1a3814c4d84a5ae375751f5f9 [ci skip]git2023-10-031-1/+1
|
* [ruby/reline] Bump version to 0.3.9ima1zumi2023-10-031-1/+1
| | | | | | (https://github.com/ruby/reline/pull/594) https://github.com/ruby/reline/commit/b6fb72718a
* Support regexp in log-fix [ci skip]Nobuyoshi Nakada2023-10-031-3/+22
|
* [rubygems/rubygems] Don't re-resolve with prereleases if unlocked gem has no ↵David Rodriguez2023-10-033-2/+11
| | | | | | prereleases https://github.com/rubygems/rubygems/commit/d76dc70d90
* [rubygems/rubygems] Fix typoDavid Rodriguez2023-10-032-2/+2
| | | | https://github.com/rubygems/rubygems/commit/64e7a2656a
* [DOC] Link fixesBurdetteLamar2023-10-032-3/+3
|
* [rubygems/rubygems] Fix invalid links in documentation. - wrap ENV variables ↵Josef Šimánek2023-10-034-4/+4
| | | | | | in <code> - fix rubygems.org link - fix zenspider.com link https://github.com/rubygems/rubygems/commit/9eaac94a63
* [rubygems/rubygems] 🐛 Specification of branch or ref with tag is ambiguousPeter Boling2023-10-032-29/+91
| | | | | | | - Specs for GitProxy were incorrect and insufficient - Specs are now correct and less insufficient https://github.com/rubygems/rubygems/commit/63d0a8cfd0
* [rubygems/rubygems] 🚨 Rubocop LintingPeter Boling2023-10-037-12/+12
| | | | https://github.com/rubygems/rubygems/commit/2851e051c3
* [rubygems/rubygems] Fix typo: eglible -> eligible.Josef Šimánek2023-10-034-54/+54
| | | | https://github.com/rubygems/rubygems/commit/1e487e1337
* [ruby/csv] [DOC] Fix broken linksBurdette Lamar2023-10-031-12/+4
| | | | | | (https://github.com/ruby/csv/pull/283) https://github.com/ruby/csv/commit/af64a15b2f
* [ruby/csv] Add CSV::InvalidEncodingErrorKosuke Shibata2023-10-034-10/+17
| | | | | | | | | (https://github.com/ruby/csv/pull/287) To handle encoding errors in CSV parsing with the appropriate error class https://github.com/ruby/csv/commit/68b44887e5
* [DOC] State the precision of `Process.times` as platform-definedNobuyoshi Nakada2023-10-032-27/+1
| | | | | Remove the bad example that can lead to misunderstanding as if this precision is defined in Ruby.
* Check by integer modulo instead of float stringNobuyoshi Nakada2023-10-031-2/+2
|
* Create dummy files in build dir in setup [ci skip]Nobuyoshi Nakada2023-10-034-10/+19
|
* [rubygems/rubygems] Update suggested variable for bindirHiroshi SHIBATA2023-10-031-2/+2
| | | | https://github.com/rubygems/rubygems/commit/f9cc6fed25
* YJIT: Fix assert_no_exits (#8579)Takashi Kokubun2023-10-021-7/+7
|
* Trigger Cirrus if YJIT tests are modifiedTakashi Kokubun2023-10-021-1/+1
|
* `yield` cannot be placed outside methods even in blocksNobuyoshi Nakada2023-10-023-2/+10
|
* Dump name of method for imemo callinfoPeter Zhu2023-10-022-0/+14
| | | | | This commit dumps the `mid` of the imemo callinfo when calling `ObjectSpace.dump_all`.
* [ruby/prism] [DOC] Link fixBurdetteLamar2023-10-021-1/+1
| | | | https://github.com/ruby/prism/commit/472bdc4d70
* Adopt prism CallNode#name changesBenoit Daloze2023-10-021-1/+1
|
* Sync with prism CallNode#name changesBenoit Daloze2023-10-02584-2848/+2871
| | | | * https://github.com/ruby/prism/pull/1533
* [ci skip] More docs for InstructionSequence.compileMatt Valentine-House2023-10-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit documents that you can also pass a `File` object to `RubyVM::InstructionSequence.compile`, instead of a string, and this will behave in a similar way to `RubyVM::InstructionSequence.compile_file` e.g. ``` ❯ ./ruby -e "puts RubyVM::InstructionSequence.compile(File.open('test.rb')).disasm" == disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(2,21)> local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: -1]) [ 1] name@0 0000 putstring "Ruby" ( 1)[Li] 0002 setlocal_WC_0 name@0 0004 putself ( 2)[Li] 0005 putobject "Hello, " 0007 getlocal_WC_0 name@0 0009 dup 0010 objtostring <calldata!mid:to_s, argc:0, FCALL|ARGS_SIMPLE> 0012 anytostring 0013 concatstrings 2 0015 opt_send_without_block <calldata!mid:puts, argc:1, FCALL|ARGS_SIMPLE> 0017 leave ~/git/ruby master* ≡ ⇡ ❯ ./ruby -e "puts RubyVM::InstructionSequence.compile(File.open('test.rb').read).disasm" == disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(2,21)> local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: -1]) [ 1] name@0 0000 putstring "Ruby" ( 1)[Li] 0002 setlocal_WC_0 name@0 0004 putself ( 2)[Li] 0005 putobject "Hello, " 0007 getlocal_WC_0 name@0 0009 dup 0010 objtostring <calldata!mid:to_s, argc:0, FCALL|ARGS_SIMPLE> 0012 anytostring 0013 concatstrings 2 0015 opt_send_without_block <calldata!mid:puts, argc:1, FCALL|ARGS_SIMPLE> 0017 leave ``` This is explicitly allowed by this code path in `rb_iseq_compile_with_option` so we should document it. ``` if (RB_TYPE_P(src, T_FILE)) { parse = rb_parser_compile_file_path; } else { parse = rb_parser_compile_string_path; StringValue(src); } ```
* Include new node types into %printeryui-knk2023-10-021-3/+3
|
* [ruby/psych] Update SnakeYAML Engine to 2.7Charles Oliver Nutter2023-10-021-1/+1
| | | | https://github.com/ruby/psych/commit/094c811588
* [ruby/psych] Add test for code_point_limitCharles Oliver Nutter2023-10-021-0/+19
| | | | | | Only supported on JRuby currently. https://github.com/ruby/psych/commit/0c1754eefe
* [rubygems/rubygems] Support Ruby's preview version format (Ex: ↵Harshal Bhakta2023-10-022-1/+17
| | | | | | 3.3.0-preview2) in Gemfile https://github.com/rubygems/rubygems/commit/4c1a0511b6
* [rubygems/rubygems] Include gemspec in ExtensionTask for native gem tasksGraham Marlow2023-10-022-4/+12
| | | | https://github.com/rubygems/rubygems/commit/042cfb7007
* Check the result of get_nd_recv before node type check for safetyYuichiro Kaneko2023-10-021-3/+3
| | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Remove not used fields from call nodesyui-knk2023-10-022-18/+0
|