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

80105 Коммитов

Автор SHA1 Сообщение Дата
Ellen Marie Dash e84b73398b [rubygems/rubygems] Call check_that_user_bin_dir_is_in_path ANY time Gem.paths.home == Gem.user_dir.
(As opposed to only if `--user-install` is passed.)

https://github.com/rubygems/rubygems/commit/0b42d0e869
2023-10-11 19:07:28 +00:00
Ellen Marie Dash ee9cb86bb4 [rubygems/rubygems] Split out Gem::PathSupport#default_home_dir to fix "bundle doctor" specs.
https://github.com/rubygems/rubygems/commit/d7f3f901f1
2023-10-11 19:07:27 +00:00
Ellen Marie Dash 0b9b07a717 [rubygems/rubygems] Allow test_gem_install_update_options to raise Errno::ACCES, in addition to Gem::FilePermissionError.
https://github.com/rubygems/rubygems/commit/784fe2a814
2023-10-11 19:07:27 +00:00
Ellen Marie Dash 225c05e3ec [rubygems/rubygems] Update tests to match new implementation of falling back to user-writable directories.
https://github.com/rubygems/rubygems/commit/a06e657ac6
2023-10-11 19:07:27 +00:00
Ellen Marie Dash 262f345344 [rubygems/rubygems] [test_gem_install_update_options.rb] Fix linter warnings.
https://github.com/rubygems/rubygems/commit/cdcb8394f6
2023-10-11 19:07:26 +00:00
Ellen Marie Dash 4925570de2 [rubygems/rubygems] Try a different approach for fallback to --user-install.
https://github.com/rubygems/rubygems/commit/13e0704c40
2023-10-11 19:07:26 +00:00
Ellen Marie Dash 7aebe2a52b [rubygems/rubygems] If GEM_HOME exists + isn't writable, use --user-install.
https://github.com/rubygems/rubygems/commit/6d20585645
2023-10-11 19:07:26 +00:00
Matt Valentine-House 9af5abd23a [ruby/prism] Allow Scope nodes to be created for a For loop
https://github.com/ruby/prism/commit/ded8711807
2023-10-11 18:26:00 +00:00
Koichi Sasada 802ca3a102 `RUBY_DEBUG_LOG` supports `%p` for pid 2023-10-12 03:14:39 +09:00
Kevin Newton f413e50ec2 [ruby/prism] Add Node::type
https://github.com/ruby/prism/commit/ca4943e3f9
2023-10-11 17:55:36 +00:00
tomoya ishida 94cb5765e2 [ruby/irb] Rename current completor to RegexpCompletor and
refactored for future extension
(https://github.com/ruby/irb/pull/707)

* Move completion implementation to completion/regexp_completor for future extension

* Remove constant CompletionProc and PerfectMatchedProc and add a class method

* Move document display logic to InputCompletor. Each completor only need to implement `completion_caididates` and `doc_namespace`

* Move display_document logic to RelineInputMethod

* Use RegexpCompletor directly. Not through class method of InputCompletor.

* RegexpCompletor extends BaseCompletor, move back definition to completion.rb

* Move display_document test to input_method test

* Stop re-initialize completor on each completion phase

* Store completor to ReadlineInputMethod's iver

https://github.com/ruby/irb/commit/1e98521483
2023-10-11 17:09:05 +00:00
Martin Emde b9a6fca67d [rubygems/rubygems] Don't delete the release version from pre-release string more than once
https://github.com/rubygems/rubygems/commit/6485adda54
2023-10-11 17:02:25 +00:00
Stan Lo cc311e1c45 [ruby/irb] Avoid locking the debug UI to a single thread
(https://github.com/ruby/irb/pull/725)

Since `debug` stores and updates the target thread via its Session's
`@tc` variable, we don't need to and shouldn't lock the UI to the thread
that activates the integration.

https://github.com/ruby/irb/commit/202efdbf0c
2023-10-11 14:16:39 +00:00
Nobuyoshi Nakada 380c25f89f
Adjust indent [ci skip] 2023-10-11 19:42:07 +09:00
yui-knk f9fe7aeef4 Extract NODE_FL_NEWLINE access to macro 2023-10-11 19:22:34 +09:00
Hiroshi SHIBATA b17ae88894
[flori/json] skip TruffleRuby
https://github.com/flori/json/commit/bab704eb49
2023-10-11 15:45:17 +09:00
Hiroshi SHIBATA e42df781d9
[flori/json] define_method is also private at Ruby 2.3 and 2.4
https://github.com/flori/json/commit/3804f38bf4
2023-10-11 15:45:17 +09:00
Hiroshi SHIBATA 1b19e9198d
[flori/json] remove_method of Module is private at Ruby 2.3 and 2.4
https://github.com/flori/json/commit/6cbadf6b6e
2023-10-11 15:45:17 +09:00
Jean Boussier e3afc212ec shape.h: Make attr_index_t uint8_t
Given `SHAPE_MAX_NUM_IVS 80`, we transition to TOO_COMPLEX
way before we could overflow a 8bit counter.

This reduce the size of `rb_shape_t` from 32B to 24B.

If we decide to raise `SHAPE_MAX_NUM_IVS` we can always increase
that type again.
2023-10-11 08:33:09 +02:00
git e5d97308f6 Update default gems list at 8f6a96e6ad [ci skip] 2023-10-11 06:15:05 +00:00
Hiroshi SHIBATA 8f6a96e6ad [ruby/psych] Bump up v5.1.1
https://github.com/ruby/psych/commit/f306512d60
2023-10-11 06:13:53 +00:00
Hiroshi SHIBATA 40ab7b8c24
Skip test_bug_13526 with High Sierra 2023-10-11 13:46:58 +09:00
Kazuhiro NISHIYAMA 0fb10074e1 Fix error when gems/src is read-only
When I shared srcdir as read-only in lima-vm,
`make install` causes following error:

```
Update rbs to 33813a60752624d58dfe5ae770b39bfaf29fbaf1
error: cannot open .git/FETCH_HEAD: Read-only file system
```

I cannot find any ignore option for `git checkout --detach`
when already checked out. So I add `if`.
2023-10-11 13:32:54 +09:00
Nobuyoshi Nakada a84d0945fa
Semicolon after `SWITCH_BY_COND_TYPE` for auto-indent [ci skip] 2023-10-11 10:37:40 +09:00
Takashi Kokubun 4d0a619f71
YJIT: Allow --yjit-trace-exits on release builds (#8619) 2023-10-10 14:54:19 -07:00
Takashi Kokubun ef7fa8bd0e Integer#times is not a C method [ci skip] 2023-10-10 10:27:29 -07:00
Maxime Chevalier-Boisvert a6d190fa4d
Update yjit.md 2023-10-10 13:10:47 -04:00
Jean Boussier 5cc44f48c5 Refactor rb_shape_transition_shape_capa to not accept capacity
This way the groth factor is encapsulated, which allows
rb_shape_transition_shape_capa to be smarter about ideal sizes.
2023-10-10 14:47:54 +02:00
Cody Cutrer fd21460898 [rubygems/rubygems] Update bundle-plugin man page
The formatting was odd, and it hadn't been updated for how the global
source is handled.

https://github.com/rubygems/rubygems/commit/bf19a266ab
2023-10-10 09:02:10 +00:00
Nobuyoshi Nakada 47274ba8c1 Extract numparam nterms 2023-10-10 16:32:40 +09:00
Nobuyoshi Nakada 9095e712a3 Use `rb_node_exits_t` instead of `NODE` 2023-10-10 16:32:40 +09:00
Nobuyoshi Nakada e2998c42e1 Forward declaration of `struct RNode_DEF_TEMP` and its typedef 2023-10-10 16:32:40 +09:00
git c68f92aa58 Update bundled gems list at 2023-10-10 2023-10-10 07:00:15 +00:00
yui-knk 5245123a4b Remove not used fields from DEFN 2023-10-10 11:05:29 +09:00
yui-knk 7de6908a28 LLDB: Print actual node structure [ci skip] 2023-10-10 07:53:42 +09:00
Martin Emde c3fc70cc93 [rubygems/rubygems] Exempt default gem 'etc' in setup tests for rubies before 3.2 on windows
https://github.com/rubygems/rubygems/commit/834ae8a29a
2023-10-09 20:15:47 +00:00
Nobuyoshi Nakada a8d71535ff Pre-allocate `NODE_DEFN`/`NODE_DEFS` nodes
To fix the order of node IDs, for typeprof tests.
2023-10-10 00:09:52 +09:00
Nobuyoshi Nakada 4c00ab7fd6 Refactor NODE_DEF_TEMP
Use `NODE_DEF_TEMP` as the wrapper of `NODE_DEFS` in ripper, not only
of `NODE_DEFN`, so that `endless_method_name` works consistently.
2023-10-10 00:09:52 +09:00
Nobuyoshi Nakada ceec988f2e ripper: Support member references in the DSL 2023-10-10 00:09:52 +09:00
Jun Aruga 6c952ac600
testing_ruby.md: Document running test suites on s390x CPU architecture [ci skip] (#8589) 2023-10-09 17:05:51 +02:00
Jacopo f44cee9048 [rubygems/rubygems] Avoid duplicates -rbundler/setup in RUBYOPT with Ruby preview
When using a Ruby preview the require path of `bundler/setup` is
similar to `-r/opt/ruby3.3.0-preview2/lib/ruby/3.3.0+0/bundler/setup`.
The special character `+` in the string makes the Regexp fail,
leading to multiple addition of the same require statement each time
`set_rubyopt` is called (e.g. server reloading).
Escaping the characters in the string esure a correct match with all
the different Ruby versions.

https://github.com/rubygems/rubygems/commit/dd43dfa709
2023-10-09 11:54:10 +00:00
Matt Valentine-House 0fdee133fc [ruby/prism] Attach the ast node to the scope
So when building instruction sequences for a scope we can reference
items from the ast node that requires the scope. This is useful for for
loops, where the local variable tables from the parent scope will need
to be referenced.

https://github.com/ruby/prism/commit/426b1ca094
2023-10-09 10:16:01 +00:00
yui-knk 8c2a493233 Fix cast node type 2023-10-09 19:08:23 +09:00
yui-knk 3049b5e348 Differentiate VAR nodes 2023-10-09 13:33:36 +09:00
yui-knk 09b33ea15a Differentiate CALL nodes 2023-10-09 13:33:36 +09:00
yui-knk b9a2348632 Take care of internal node type
In parse.y, node can be NODE_DEF_TEMP or NODE_EXITS.
Hit "unknown node" without taking care of them.
For example `ruby --dump=y lib/cgi/util.rb` causes
"[BUG] unknown node: 107".
2023-10-09 12:38:32 +09:00
dependabot[bot] a78acf18ac Bump ruby/setup-ruby from 1.154.0 to 1.155.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.154.0 to 1.155.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](52b8784594...d37167af45)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 12:23:35 +09:00
dependabot[bot] a149ca515d Bump ossf/scorecard-action from 2.2.0 to 2.3.0
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](08b4669551...483ef80eb9)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 12:16:38 +09:00
yui-knk b5d74f4f26 Remove not used fields from EVSTR 2023-10-08 16:34:32 +09:00
Samuel Giddins 2b6228be48 [rubygems/rubygems] Reduce allocations when parsing compact index
This still allocates a ton (a string for each line, plus a bunch of
splits into arrays), but it helps a bit when Bundler has to go through
dependency resolution.

```
==> memprof.after.txt <==
Total allocated: 194.14 MB (2317172 objects)
Total retained:  60.81 MB (593164 objects)

==> memprof.before.txt <==
Total allocated: 211.97 MB (2404890 objects)
Total retained:  62.85 MB (640342 objects)
```

https://github.com/rubygems/rubygems/commit/c68b41b0e5
2023-10-08 04:17:15 +00:00