Kevin Newton
0004565a91
[ruby/yarp] Use yp_memchr in regexp parsing
...
https://github.com/ruby/yarp/commit/08081dd24f
2023-08-16 17:47:32 -07:00
Benoit Daloze
1ad0d19876
[ruby/yarp] Parse individual snippets of test/fixtures/*.txt
...
* To ensure the parser does not try to read bytes further than the end of each snippet.
https://github.com/ruby/yarp/commit/1c4438bdde
2023-08-16 17:47:32 -07:00
Kevin Newton
3f64defe13
[ruby/yarp] Make sure lexing ? does not read off the end
...
https://github.com/ruby/yarp/commit/d694e3ebf2
2023-08-16 17:47:32 -07:00
Benoit Daloze
d2eb82d969
[ruby/yarp] Fix test to use the new location of yarp.so
...
https://github.com/ruby/yarp/commit/a22b204a11
2023-08-16 17:47:32 -07:00
Benoit Daloze
1002b777c4
[ruby/yarp] Automatically find the right line for yarp/serialize.rb newline test
...
https://github.com/ruby/yarp/commit/5908130541
2023-08-16 17:47:32 -07:00
Kevin Newton
820a58c228
[ruby/yarp] Hide debug methods
...
https://github.com/ruby/yarp/commit/aa0dc2f301
2023-08-16 17:47:32 -07:00
Kevin Newton
1ea9e444ec
[ruby/yarp] Fix memory leak from constant write node creation
...
https://github.com/ruby/yarp/commit/0071bee0bb
2023-08-16 17:47:32 -07:00
Kevin Newton
e66e60cf69
[ruby/yarp] Handle invalid multiple parameters
...
https://github.com/ruby/yarp/commit/2f83265653
2023-08-16 17:47:32 -07:00
Kevin Newton
7a1c497426
[ruby/yarp] Add constant write node
...
https://github.com/ruby/yarp/commit/a62f2f0153
2023-08-16 17:47:32 -07:00
Kevin Newton
9c61e0c831
[ruby/yarp] Ensure token cannot begin an expression
...
https://github.com/ruby/yarp/commit/837522217c
2023-08-16 17:47:32 -07:00
Kevin Newton
3d032cf3e8
[ruby/yarp] Simplify creation of numerics
...
https://github.com/ruby/yarp/commit/e5f6ffa23a
2023-08-16 17:47:32 -07:00
Benoit Daloze
b6f26c2e4a
[ruby/yarp] Use common fields for yp_string_t
...
* Otherwise it is undefined behavior to access the field of another `.as`.
* Accessing the right `.as` field according mode would be extra overhead.
https://github.com/ruby/yarp/commit/7dc41ee803
2023-08-16 17:47:32 -07:00
Benoit Daloze
ab2f638a27
[ruby/yarp] Test YARP.parse_file by using it in tests
...
https://github.com/ruby/yarp/commit/c603bba89a
2023-08-16 17:47:32 -07:00
Benoit Daloze
7cc5b22bbc
[ruby/yarp] Add comment that extension.c should not contain non-trivial logic
...
https://github.com/ruby/yarp/commit/638f6849be
2023-08-16 17:47:32 -07:00
Benoit Daloze
e712bc9b93
[ruby/yarp] Move efficient file reading using demand paging to librubyparser
...
* So it can be reused by the Fiddle backend, etc and not just the C extension.
* Add YP_STRING_MAPPED to use a consistent interface for yp_string_t.
That way yp_string_free() can be used like for other string types.
* Fix handling of empty file for !HAVE_MMAP && !_WIN32
https://github.com/ruby/yarp/commit/e40bc35801
2023-08-16 17:47:32 -07:00
Benoit Daloze
2ccaaaa101
[ruby/yarp] Add simpler exported unescape function to librubyparser
...
* Moves logic from the C extension to librubyparser which can be shared with the Fiddle backend.
https://github.com/ruby/yarp/commit/aa48d5e444
2023-08-16 17:47:32 -07:00
Kevin Newton
31960a9627
[ruby/yarp] Handle missing block parameters
...
https://github.com/ruby/yarp/commit/bc9049418d
2023-08-16 17:47:32 -07:00
Kevin Newton
eca3b93437
[ruby/yarp] **nil can be a STAR_STAR token
...
https://github.com/ruby/yarp/commit/33b06f252c
2023-08-16 17:47:32 -07:00
Kevin Newton
e56da35637
[ruby/yarp] Handle invalid regexps more gracefully
...
https://github.com/ruby/yarp/commit/584a49f123
2023-08-16 17:47:32 -07:00
Kevin Newton
4c4e75c0de
[ruby/yarp] Add error cases for ustar appearing in infix position
...
https://github.com/ruby/yarp/commit/8736c17359
2023-08-16 17:47:32 -07:00
Kevin Newton
cededf73dc
[ruby/yarp] For errored % characters, use TOKEN_PERCENT and not TOKEN_STRING_BEGIN
...
https://github.com/ruby/yarp/commit/2ec671fe1e
2023-08-16 17:47:32 -07:00
Kevin Newton
242f3c3a77
[ruby/yarp] Don't read off the end when parsing % literals
...
https://github.com/ruby/yarp/commit/aff40871e6
2023-08-16 17:47:32 -07:00
Kevin Newton
45efbadba5
[ruby/yarp] Enable all of -wconversion
...
https://github.com/ruby/yarp/commit/638163f6c6
2023-08-16 17:47:32 -07:00
Kevin Newton
f1658efe38
[ruby/yarp] Split out newline test
...
https://github.com/ruby/yarp/commit/eeb4f6cb9d
2023-08-16 17:47:32 -07:00
Kevin Newton
41e8ba01ae
[ruby/yarp] Mark locations in the tree where newlines can occur
...
https://github.com/ruby/yarp/commit/479e835756
2023-08-16 17:47:32 -07:00
Kevin Newton
86b32dac92
[ruby/yarp] Handle pound terminator in isolation
...
https://github.com/ruby/yarp/commit/1cfce46107
2023-08-16 17:47:32 -07:00
Thomas E. Enebo
ede55edbd5
[ruby/yarp] Remove trailing whitespace
...
https://github.com/ruby/yarp/commit/04de272383
2023-08-16 17:47:32 -07:00
Thomas E. Enebo
76c77b5eca
[ruby/yarp] WIP - Introduce contextually parsing programs vs evals
...
This is more or less the code I used in my POC in JRuby
to parse evals. Evals depend on parent variable scopes
and will produce a different syntax tree.
Questions:
1. How does MRI compile evals currently? I cannot find anything.
2. This passes in a char * of data. It does not encode the
variables we pass in because the system calling this already
knows. Is this adequate though?
3. Can I get guidance on how best to test this?
https://github.com/ruby/yarp/commit/f441b6fd2c
2023-08-16 17:47:32 -07:00
Mike Dalessio
0f8091947d
[ruby/yarp] Move the gem's C extension into lib/yarp/
...
and change the require from "yarp.so" to "yarp/yarp", which is more
aligned with existing community conventions for gems.
https://github.com/ruby/yarp/commit/64b70e2658
2023-08-16 17:47:32 -07:00
Jemma Issroff
c5dad5f1d7
Sync script updates
2023-08-16 17:47:32 -07:00
Nobuyoshi Nakada
f339937abb
RJIT: Remove macros inherited from MJIT but no longer used
2023-08-17 08:33:52 +09:00
Nobuyoshi Nakada
0d7e847153
Consider the special node when printing
...
Appreciation to the reporter, Huichiao Tsai <hctsai.cs10@nycu.edu.tw>.
2023-08-16 23:52:04 +09:00
Nobuyoshi Nakada
7d3634a121
Extract GC for fd parts as `TRY_WITH_GC `
2023-08-16 22:53:00 +09:00
Nobuyoshi Nakada
f0edcd8283
Extract platform dependent part as `fdopen_internal`
2023-08-16 22:53:00 +09:00
Nobuyoshi Nakada
82e480ff40
Silent test-all on AppVeyor
2023-08-16 22:52:59 +09:00
haseponpon
089227e948
[DOC] Specify the unit of return value for `Time#-`
2023-08-16 22:51:17 +09:00
Stan Lo
5a40f7db54
[ruby/irb] Encapsulate input details in Statement objects
...
(https://github.com/ruby/irb/pull/682 )
* Introduce Statement class
* Split Statement class for better clarity
https://github.com/ruby/irb/commit/65e8e68690
2023-08-16 10:13:46 +00:00
yui-knk
0982c5fa00
Resync Lrama v0.5.3
...
Previous sync included unrelated files and missed template file update.
2023-08-16 19:02:44 +09:00
David Rodríguez
fe240b672b
[rubygems/rubygems] Show better error when PAT can't authenticate to a private server
...
Before:
```
Fetching gem metadata from https://rubygems.org/ ........
Fetching source index from https://rubygems.pkg.github.com/my-org/
Bad username or password for https://x-access-token@rubygems.pkg.github.com/my-org/ .
Please double-check your credentials and correct them.
```
After:
```
Fetching gem metadata from https://rubygems.org/ ........
Fetching source index from https://rubygems.pkg.github.com/my-org/
Access token could not be authenticated for https://x-access-token@rubygems.pkg.github.com/my-org/ .
Make sure it's valid and has the necessary scopes configured.
```
https://github.com/rubygems/rubygems/commit/2ae69c964a
2023-08-16 15:03:38 +09:00
David Rodríguez
e678affe70
[rubygems/rubygems] Bad auth should not fallback either
...
https://github.com/rubygems/rubygems/commit/ba3ea27869
2023-08-16 15:03:38 +09:00
David Rodríguez
c076ac8a5f
[rubygems/rubygems] Use better status for authentication failures
...
https://github.com/rubygems/rubygems/commit/ffa395411f
2023-08-16 15:03:38 +09:00
David Rodríguez
2e04336b67
[rubygems/rubygems] Fix git source conservativeness
...
https://github.com/rubygems/rubygems/commit/9a0e0dfd5b
2023-08-16 15:03:38 +09:00
David Rodríguez
4a3777bf6b
[rubygems/rubygems] Extract s.name to a variable
...
https://github.com/rubygems/rubygems/commit/689c39b42f
2023-08-16 15:03:38 +09:00
David Rodríguez
e92ace6be7
[rubygems/rubygems] Remove unneeded stuff
...
This should be only for path sources, and unrelated to git.
https://github.com/rubygems/rubygems/commit/0d8f31eeed
2023-08-16 15:03:38 +09:00
David Rodríguez
7bb3e637ff
[rubygems/rubygems] Don't update locked sources when not necessary
...
https://github.com/rubygems/rubygems/commit/cfc82b592a
2023-08-16 15:03:38 +09:00
David Rodríguez
c57ab646cb
[rubygems/rubygems] Extract a `default_source` method
...
https://github.com/rubygems/rubygems/commit/784e08348e
2023-08-16 15:03:38 +09:00
David Rodríguez
002165f8fe
[rubygems/rubygems] Move `lockfile_source` variable out of condition branch
...
https://github.com/rubygems/rubygems/commit/efebc64250
2023-08-16 15:03:38 +09:00
David Rodríguez
6bc63ab9bb
[rubygems/rubygems] Refactor locked dep filtering more
...
We only need to check whether the spec if for a direct dependency once.
https://github.com/rubygems/rubygems/commit/65b455a5cb
2023-08-16 15:03:38 +09:00
David Rodríguez
86492fca65
[rubygems/rubygems] Avoid unnecessary loop through dependencies
...
https://github.com/rubygems/rubygems/commit/2ab63bb94d
2023-08-16 15:03:38 +09:00
Jun Aruga
f1df062944
[ruby/openssl] Enhance printing OpenSSL versions.
...
* Updated the `OpenSSL::OPENSSL_VERSION_NUMBER` comment explaining the format.
* Added the `OpenSSL::LIBRESSL_VERSION_NUMBER` to print LibreSSL version number,
in the case that Ruby OpenSSL binding is compiled with LibreSSL. Note
`test/openssl/utils.rb#libressl?` is not using this value in it for now.
* Update `rake debug` to print the values in a readable way, adding
`OpenSSL::OPENSSL_VERSION_NUMBER` and `OpenSSL::LIBRESSL_VERSION_NUMBER`.
https://github.com/ruby/openssl/commit/d19e6360ed
2023-08-16 14:48:42 +09:00