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

77581 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA b42f0094ce [rubygems/rubygems] Support Symbol and URL keys
https://github.com/rubygems/rubygems/commit/3bda049c73
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA 4bb0e01da2 [rubygems/rubygems] warn message when RubyGems handle invalid yaml like 'invalid: foo: bar'
https://github.com/rubygems/rubygems/commit/b8d0c25b7e
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA dbcdac00e6 [rubygems/rubygems] Revert "Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided"
This reverts commit https://github.com/rubygems/rubygems/commit/cfcfde04c783.

https://github.com/rubygems/rubygems/commit/ac21ae7083
2023-04-20 01:57:16 +00:00
Nobuyoshi Nakada 5579cbe2dd
Ignore ASCII-incompatible scripts under spec/ruby [ci skip] 2023-04-20 10:29:16 +09:00
Nobuyoshi Nakada ad4a160220
Exit explicitly instead of ! 2023-04-20 10:28:29 +09:00
Nobuyoshi Nakada 2d301945f6
Run source file checks on all branches 2023-04-20 10:25:44 +09:00
Nobuyoshi Nakada 7821708c84
Use ASCII-compatible encoding for tests
Since these files are written in a wide character encoding, stop at
first NUL byte and are actually empty.  ASCII-incompatible encodings
have never been supported as source encoding.
2023-04-20 09:57:49 +09:00
Takashi Kokubun d2d0954c16
YJIT: Replace Mov with LoadInto on arm64 (#7744)
* YJIT: Replace Mov with LoadInto on arm64

* YJIT: Add a test for the new pass
2023-04-19 17:25:24 -07:00
Takashi Kokubun 5fc11f306c
YJIT: Tweak asm comments (#7743) 2023-04-19 19:30:43 -04:00
Takashi Kokubun 2531bb0b66
YJIT: Remove Insn::RegTemps (#7741)
* YJIT: Remove Insn::RegTemps

* Update a comment

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>

---------

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2023-04-19 13:08:35 -07:00
Hiroshi SHIBATA 7477284043
Hide Gem::MockGemUi. It's only used by tests 2023-04-19 15:59:59 +09:00
Hiroshi SHIBATA d1c42da7a1 [rubygems/rubygems] To use Gem::YAMLSerializer in Bundler
https://github.com/rubygems/rubygems/commit/5351e01b32
2023-04-19 06:56:24 +00:00
Hiroshi SHIBATA 40d1a00040 [rubygems/rubygems] Copy YAMLSerializer from Bundler
https://github.com/rubygems/rubygems/commit/6a97346708
2023-04-19 06:56:23 +00:00
Hiroshi SHIBATA 62e5ba537a [rubygems/rubygems] Added tests for load_with_rubygems_config_hash and dump_with_rubygems_yaml
https://github.com/rubygems/rubygems/commit/0393f24119
2023-04-19 06:56:23 +00:00
Hiroshi SHIBATA 8b95b33a9d [rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided
https://github.com/rubygems/rubygems/commit/cfcfde04c7
2023-04-19 06:56:22 +00:00
Hiroshi SHIBATA 92ab4e41dd [rubygems/rubygems] Replaced Gem::ConfigFile.dump_with_rubygems_yaml for saveing configuration
https://github.com/rubygems/rubygems/commit/46438e61cd
2023-04-19 06:56:22 +00:00
Hiroshi SHIBATA ef54a9aeb6 [rubygems/rubygems] Introduce self.load_with_rubygems_config_hash
https://github.com/rubygems/rubygems/commit/9175b8cf2a
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA 644d7df021 [rubygems/rubygems] Introduce self.dump_with_rubygems_yaml
https://github.com/rubygems/rubygems/commit/3d3b0d80a1
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA 45655089da [rubygems/rubygems] Removed trailing-slash for domain
https://github.com/rubygems/rubygems/commit/81ba58f445
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA cdc2e3de10 [rubygems/rubygems] Wrap self.convert_rubygems_config_hash from Bundler::YAMLSerializer.load
https://github.com/rubygems/rubygems/commit/080880ac23
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA 7b959f6288 [rubygems/rubygems] Move all changes only in RubyGems
https://github.com/rubygems/rubygems/commit/d842e2092f
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA 30b3290f26 [rubygems/rubygems] Added guard condition for replacing __ variable in YAML keys
https://github.com/rubygems/rubygems/commit/e7d31405ea
2023-04-19 06:56:19 +00:00
Hiroshi SHIBATA d0dc617917 [rubygems/rubygems] Replaced load_yaml_file with Bundler::YAMLSerializer
https://github.com/rubygems/rubygems/commit/1ed5fc018e
2023-04-19 06:56:19 +00:00
Hiroshi SHIBATA 3988b1d471 [rubygems/rubygems] api_key is always contained string
https://github.com/rubygems/rubygems/commit/925f7f6717
2023-04-19 06:56:18 +00:00
Hiroshi SHIBATA bf8d8ce1ee [rubygems/rubygems] Keep compatiblity of Bundler specs
https://github.com/rubygems/rubygems/commit/b211eeacba
2023-04-19 06:56:18 +00:00
Hiroshi SHIBATA 364c2fea34 [rubygems/rubygems] Replaced empty hash to nil value in YAML
https://github.com/rubygems/rubygems/commit/8771fbf53d
2023-04-19 06:56:17 +00:00
Hiroshi SHIBATA 7e537e9613 [rubygems/rubygems] Only convert old URL key name when it's contained double underscore
https://github.com/rubygems/rubygems/commit/a4bfa2ef94
2023-04-19 06:56:17 +00:00
Hiroshi SHIBATA e684eb9e61 [rubygems/rubygems] Added missing require for Bundler::YAMLSerializer
https://github.com/rubygems/rubygems/commit/55ef32fdd7
2023-04-19 06:56:16 +00:00
Hiroshi SHIBATA 9365492f63 [rubygems/rubygems] Fix regexp for Symbol
https://github.com/rubygems/rubygems/commit/9a3ed682a0
2023-04-19 06:56:16 +00:00
Hiroshi SHIBATA 1225eff38f [rubygems/rubygems] Don't use Psych
https://github.com/rubygems/rubygems/commit/d6555aaa28
2023-04-19 06:56:15 +00:00
Hiroshi SHIBATA 038c6e773f [rubygems/rubygems] Added explicitly loading for Gem::SafeYAML
https://github.com/rubygems/rubygems/commit/3d9d587dd7
2023-04-19 06:56:15 +00:00
Hiroshi SHIBATA 2c91ec0869 [rubygems/rubygems] We need to convert empty string for nil value
https://github.com/rubygems/rubygems/commit/348c82311f
2023-04-19 06:56:15 +00:00
Hiroshi SHIBATA fd981ebf4c [rubygems/rubygems] Handle Symbol value
https://github.com/rubygems/rubygems/commit/c98677d073
2023-04-19 06:56:14 +00:00
Hiroshi SHIBATA 2014dc5e3a [rubygems/rubygems] Handle Symbol key and Interger and Boolean values
https://github.com/rubygems/rubygems/commit/63efdac045
2023-04-19 06:56:14 +00:00
Hiroshi SHIBATA 6f50ecfe66 [rubygems/rubygems] Try to use pure-ruby YAML serializer for configuration
https://github.com/rubygems/rubygems/commit/3268d40974
2023-04-19 06:56:13 +00:00
Koichi Sasada 628e432739 fix `NameError` message
The following code produces two NameErrors respectively
and they are independent, but the second one can show
`private constant` message because of first NameError.

```ruby
class C
  class PrivateClass; end
  private_constant :PrivateClass
end

begin
  eval('class C::PrivateClass; end')
rescue => e
  p e
end

begin
  Object.const_get 'Foo'
rescue => e
  p e
end

  #<NameError: private constant C::PrivateClass referenced>
  #<NameError: private constant C::Foo referenced>
  #=> should be #<NameError: uninitialized constant Foo>
```

It fails the test-all tests with
`make test-all TESTS='ruby/class ruby/parse --seed=58891 -v`.

The reason is clear miss from https://github.com/ruby/ruby/commit/7387c08373a
2023-04-19 14:53:56 +09:00
git 62781d479b * remove trailing spaces. [ci skip] 2023-04-19 04:08:48 +00:00
TSUYUSATO Kitsune a1c2c274ee
Refactor `Regexp#match` cache implementation (#7724)
* Refactor Regexp#match cache implementation

Improved variable and function names
Fixed [Bug 19537] (Maybe fixed in https://github.com/ruby/ruby/pull/7694)

* Add a comment of the glossary for "match cache"

* Skip to reset match cache when no cache point on null check
2023-04-19 13:08:28 +09:00
Nobuyoshi Nakada 8023da746c
Adjust indent [ci skip] 2023-04-19 09:23:28 +09:00
Nobuyoshi Nakada 7b3932a9c9
Ignore markdown files only commits [ci skip]
Removed from compilers.yml at 90c8f7ca6b
carelessly, and seems copied to annocheck.yml then.
2023-04-19 09:23:13 +09:00
git 21082eac50 * expand tabs. [ci skip]
Please consider using misc/expand_tabs.rb as a pre-commit hook.
2023-04-19 00:16:36 +00:00
Aaron Patterson bdffcd6df3 Update RJIT to support newarray_send
This also adds max / hash support
2023-04-18 17:16:22 -07:00
Aaron Patterson b816ea8772 Implement opt_newarray_send in YJIT
This commit implements opt_newarray_send along with min / max / hash for
stack allocated arrays
2023-04-18 17:16:22 -07:00
Aaron Patterson 66938fc703 updating bindgen 2023-04-18 17:16:22 -07:00
Aaron Patterson c5fc1ce975 Emit special instruction for array literal + .(hash|min|max)
This commit introduces a new instruction `opt_newarray_send` which is
used when there is an array literal followed by either the `hash`,
`min`, or `max` method.

```
[a, b, c].hash
```

Will emit an `opt_newarray_send` instruction.  This instruction falls
back to a method call if the "interested" method has been monkey
patched.

Here are some examples of the instructions generated:

```
$ ./miniruby --dump=insns -e '[@a, @b].max'
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,12)> (catch: FALSE)
0000 getinstancevariable                    :@a, <is:0>               (   1)[Li]
0003 getinstancevariable                    :@b, <is:1>
0006 opt_newarray_send                      2, :max
0009 leave
$ ./miniruby --dump=insns -e '[@a, @b].min'
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,12)> (catch: FALSE)
0000 getinstancevariable                    :@a, <is:0>               (   1)[Li]
0003 getinstancevariable                    :@b, <is:1>
0006 opt_newarray_send                      2, :min
0009 leave
$ ./miniruby --dump=insns -e '[@a, @b].hash'
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,13)> (catch: FALSE)
0000 getinstancevariable                    :@a, <is:0>               (   1)[Li]
0003 getinstancevariable                    :@b, <is:1>
0006 opt_newarray_send                      2, :hash
0009 leave
```

[Feature #18897] [ruby-core:109147]

Co-authored-by: John Hawthorn <jhawthorn@github.com>
2023-04-18 17:16:22 -07:00
Aaron Patterson 3016f30c95 Return NULL to indicate the next shape isn't found
During compaction we must fix up shapes on objects who were extended but
then became embedded.  `rb_shape_traverse_from_new_root` is supposed to
walk shape trees looking for a matching shape.  When a shape has a
"single child" we weren't returning NULL when the edge names didn't
match.

In the case of a single outgoing edge, this patch returns NULL when the
child edge name doesn't match (similar to the case when a shape has a
hash of outgoing edges)
2023-04-18 16:56:48 -07:00
Vladimir Dementyev b09f5c7bf7
MatchData#named_captures: add optional symbolize_names keyword (#6952) 2023-04-19 11:19:31 +12:00
John Hawthorn 2dff1d4fda
YJIT: Fix raw sample stack lengths in exit traces (#7728)
yjit-trace-exits appends a synthetic sample for the instruction being
exited, but we didn't increment the size of the stack. Fixing this count
correctly lets us successfully generate a flamegraph from the exits.

I also replaced the line number for instructions with 0, as I don't
think the previous value had meaning.

Co-authored-by: Adam Hess <HParker@github.com>
2023-04-18 10:09:16 -04:00
dependabot[bot] d8a6db7292 Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.6 to 1.4.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](4de7a6c08c...efb5c8deb1)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 12:38:14 +09:00
Kazuhiro NISHIYAMA 8519d94d3d
Update how to subscribe mailing lists
- Update mailing lists domain
- Use 'join' instead of an alias 'subscribe'.
- Command should be in subject instead of body.
2023-04-18 10:41:00 +09:00