Commit graph

14659 commits

Author SHA1 Message Date
Stan Lo
6dc3332650 [ruby/rdoc] Bump version to v6.8.1
9a7ab17f40
2024-11-19 11:51:56 +00:00
Ihor Shevkun
39f421c9f1 [ruby/rdoc] Update rdoc.gemspec
(https://github.com/ruby/rdoc/pull/1211)

10596827f0
2024-11-19 11:32:26 +00:00
Hiroshi SHIBATA
716ea630db [ruby/net-http] Need to restore under the Net namespace
4650f86981
2024-11-19 09:19:16 +00:00
Hiroshi SHIBATA
da8c8743d5 [ruby/rdoc] Bump up v6.8.0
cf09b2ebb8
2024-11-19 05:47:37 +00:00
Hiroshi SHIBATA
b23c5063e8 [ruby/net-http] Restore HTTPSession constant for backward compatibility
37f17d29e0
2024-11-19 03:39:17 +00:00
Stan Lo
ee0915feeb [ruby/rdoc] Extract excerpt from raw pages correctly
(https://github.com/ruby/rdoc/pull/1200)

Fixes https://bugs.ruby-lang.org/issues/20862

3c678249e2
2024-11-18 10:32:31 +00:00
Hiroshi SHIBATA
572eebf603 [ruby/tempfile] Bump up v0.3.1
297bdf2c8d
2024-11-18 04:28:47 +00:00
Yuta Saito
6c142d05fa [ruby/tempfile] Stop using IO::NULL for feature detection
`IO::NULL`'s underlying file `/dev/null` is not always available on
WASI, so use of the file on top-level code (introduced in
https://github.com/ruby/tempfile/pull/36) causes tempfile library not
to work at all on WASI.

d50939890e
2024-11-18 04:19:40 +00:00
Schneems
2a0f8d62b6 [ruby/syntax_suggest] v2.0.2
e99b5ba287
2024-11-15 16:09:30 +00:00
Schneems
3a547e2539 [ruby/syntax_suggest] Explain why class exists
8c36b0cb35
2024-11-15 16:06:25 +00:00
Schneems
03a77c03eb [ruby/syntax_suggest] Fix spelling
9c78283363
2024-11-15 16:06:24 +00:00
Schneems
7969f6791f [ruby/syntax_suggest] Freeze strings
b17bf0baca
2024-11-15 16:06:24 +00:00
Hiroshi SHIBATA
b45f7a54af Find .ext/common path from LOAD_PATH for out-of-place build 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
52e867268e Port test_warn_sub_feature.rb to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
c5637f940a fiddle provide sub-feature like fiddle/import 2024-11-15 14:04:19 +09:00
Nobuyoshi Nakada
8e98fbdd19 [ruby/net-http] Remove deprecated constants
These constants, isolated in net/http/backward.rb, have not only been
deprecated since 2001, but have also had a warning since 2021.

265bfa929f
2024-11-15 03:15:04 +00:00
Schneems
226cfda306 [ruby/syntax_suggest] Fix missing line break due to puts logic
In #225 it was reported that the output looks incorrect:

```
$ cat /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
def x.y.z
end
$ ruby /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
/tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb: --> /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
expected a delimiter to close the parametersunexpected '.', ignoring it
> 1  def x.y.z
> 2  end
```

Specifically:

```
expected a delimiter to close the parametersunexpected '.', ignoring it
```

However this does not show up when executing the debug executable:

```
$ bin/bundle exec exe/syntax_suggest /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
--> /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb

expected a delimiter to close the parameters
unexpected '.', ignoring it

> 1  def x.y.z
> 2  end
```

This is because `exe/syntax_suggest` uses STDOUT.puts while calling `ruby` with the filename uses a fake IO object represented by MiniStringIO. This class was incorrectly not adding a newline to the end of the print.

The fix was to move the class to it's own file where it can be tested and then fix the behavior.

close https://github.com/ruby/syntax_suggest/pull/225

d2ecd94a3b

Co-authored-by: Andy Yong <andyywz@gmail.com>
2024-11-15 01:31:26 +00:00
Hiroshi SHIBATA
11265baed9 Use environmental variable for bundled_gems_spec.rb 2024-11-15 08:16:03 +09:00
Hiroshi SHIBATA
b44272fcb4 Port test_warn_bundled_gems.rb to RSpec example 2024-11-15 08:16:03 +09:00
tomoya ishida
8f3a6ebcf4 [ruby/reline] Drop loading terminfo, remove fiddle dependency in
non-windows environment.
(https://github.com/ruby/reline/pull/769)

Reline works perfectly in most major terminal emulators without terminfo.
In minor/old terminal emulator, we used to get key bindings from terminfo, but I think it is not used so much.

3ceba3bff7
2024-11-14 23:14:18 +00:00
Hiroshi SHIBATA
8a4ce4e9a9 [rubygems/rubygems] URI::DEFAULT_PARSER.escape is obsoleted. We should use URI::RFC2396_PARSER.escape explicitly
64f026c9d4
2024-11-14 07:44:01 +00:00
Hiroshi SHIBATA
0f5e3dca5a [ruby/uri] Bump up v1.0.2
e46960a467
2024-11-14 03:49:15 +00:00
Hiroshi SHIBATA
310e6603a2 [ruby/uri] Check existence constants only URI module
b6f583369a
2024-11-14 03:32:13 +00:00
Hiroshi SHIBATA
43285f543b [ruby/pp] Bump up v0.6.1
812933668d
2024-11-14 02:22:14 +00:00
David Rodríguez
7ece47e0de Update vendored thor to 1.3.2 2024-11-14 11:21:39 +09:00
David Rodríguez
99c35edae1 Update vendored timeout to 0.4.2 2024-11-14 11:21:39 +09:00
David Rodríguez
d9c754ab44 Update vendored securerandom to 0.3.2 2024-11-14 11:21:39 +09:00
David Rodríguez
0ef7d59ef2 Update vendored resolv to 0.5.0 2024-11-14 11:21:39 +09:00
David Rodríguez
26036b1248 Update vendored net-http to 0.5.0 2024-11-14 11:21:39 +09:00
David Rodríguez
570336b80f Update vendored fileutils to 1.7.3 2024-11-14 11:21:39 +09:00
David Rodríguez
cadf559a99 Update vendored optparse to 0.6.0 2024-11-14 11:21:39 +09:00
Hiroshi SHIBATA
1bab8bf88f [ruby/uri] Removed duplicated declare step for constants under the URI::RFC2396_REGEXP::PATTERN
60a8bc1575
2024-11-14 02:20:04 +00:00
Hiroshi SHIBATA
1d6c986104 [ruby/uri] Restore constants like URI::REGEXP::PATTERN::IPV6ADDR
ee9a38701a
2024-11-14 02:20:04 +00:00
Alexis Bernard
202a377d21 [ruby/rdoc] Split list of class and instance methods in two
(https://github.com/ruby/rdoc/pull/1206)

Looking for a method is easier because eyes don't have to skip dashes or
double colon.

6852567640
2024-11-13 16:13:21 +00:00
Jean byroot Boussier
6deeec5d45
Mark strings returned by Symbol#to_s as chilled (#12065)
* Use FL_USER0 for ELTS_SHARED

This makes space in RString for two bits for chilled strings.

* Mark strings returned by `Symbol#to_s` as chilled

[Feature #20350]

`STR_CHILLED` now spans on two user flags. If one bit is set it
marks a chilled string literal, if it's the other it marks a
`Symbol#to_s` chilled string.

Since it's not possible, and doesn't make much sense to include
debug info when `--debug-frozen-string-literal` is set, we can't
include allocation source, but we can safely include the symbol
name in the warning message, making it much easier to find the source
of the issue.

Co-Authored-By: Étienne Barrié <etienne.barrie@gmail.com>

---------

Co-authored-by: Étienne Barrié <etienne.barrie@gmail.com>
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2024-11-13 09:20:00 -05:00
David Rodríguez
ae733a693b [rubygems/rubygems] Include original error when openssl fails to load
440343b791
2024-11-13 08:35:40 +00:00
Orien Madgwick
942ec7ab33 [ruby/uri] Remove rakelib/ dir from gem also
a0dd612e90
2024-11-13 05:07:53 +00:00
Orien Madgwick
7d5fdd97cc [ruby/uri] Remove unused files from the gem package
f0847c266c
2024-11-13 05:07:53 +00:00
Hiroshi SHIBATA
441069c093 We can't handle optional dependency without new API of Rubygems.
I don't want to make bundled_gems.rb more complex and complicate.

Revert "Fixed warning condition with LoadError"

This reverts commit 3a9e48b9a4.

Revert "Only warn fiddle as optional dependency"

This reverts commit ff3f61556f.

Revert "Only `warn` about bundled gems when require succeeds"

This reverts commit a70adce1ce.
2024-11-13 13:47:36 +09:00
Benoit Daloze
6c123649cd [ruby/prism] Use RbConfig to locate libprism and headers when it is a default gem
* This is notably necessary on TruffleRuby, which is updating to Ruby 3.3 which introduces Prism as a default gem.
* Using the existing path is not an option as it would end up in truffleruby/lib/build/libprism.so and
  "truffleruby/lib/include/#{header}" which are not good places for such files.

5d16473e69
2024-11-12 14:20:39 +00:00
License Update
dc08d6e917 [rubygems/rubygems] Update SPDX license list as of 2024-08-19
5a094cbfab
2024-11-12 08:06:36 +00:00
Nobuyoshi Nakada
c7c73b22bb
Fix commit miss [ci skip] 2024-11-12 11:53:01 +09:00
Nobuyoshi Nakada
8d4ba9d443
CI: check_dependencies.yml is now required [ci skip]
`paths-ignore` cannot be used for required status checks.
2024-11-12 11:37:04 +09:00
Hiroshi SHIBATA
bf741c6fac [ruby/pp] Fixed file list for pp gem
b192896a1d
2024-11-12 02:34:23 +00:00
Hiroshi SHIBATA
9a55375df7
Removed unused variable 2024-11-12 11:31:40 +09:00
Hiroshi SHIBATA
400f78939c [ruby/pp] Bump up v0.6.0
af2229e8e6
2024-11-12 02:18:17 +00:00
Jean Boussier
83702f7157 [ruby/pp] Handle BasicObject
Right now attempting to pretty print a BasicObject or any other
object lacking a few core Object methods will result in an error

```
Error: test_basic_object(PPTestModule::PPInspectTest): NoMethodError: undefined method `is_a?' for an instance of BasicObject
lib/pp.rb:192:in `pp'
lib/pp.rb:97:in `block in pp'
lib/pp.rb:158:in `guard_inspect_key'
lib/pp.rb:97:in `pp'
test/test_pp.rb:131:in `test_basic_object'
     128:
     129:   def test_basic_object
     130:     a = BasicObject.new
  => 131:     assert_match(/\A#<BasicObject:0x[\da-f]+>\n\z/, PP.pp(a, ''.dup))
     132:   end
     133: end
     134:
```

With some fairly small changes we can fallback to `Object#inspect`
which is better than an error.

4e9f6c2de0
2024-11-12 02:13:15 +00:00
Jean Boussier
107a4da122 [ruby/pp] Data#pretty_print handle privated or removed members
[Bug #20808]

The previous implementation assumed all members are accessible,
but it's possible for users to change the visibility of members or
to entirely remove the accessor.

fb19501434
2024-11-12 02:11:43 +00:00
David Rodríguez
db0c7be642 [rubygems/rubygems] Add a lockfile_checksums configuration to include checksums in fresh lockfiles
50b9ef8589
2024-11-11 19:24:42 +00:00
tomoya ishida
25d17868de [ruby/reline] Refactor perform_completon
(https://github.com/ruby/reline/pull/778)

Flatten recursive method
Remove CompletionState::COMPLETE

aa5b278f3d
2024-11-11 15:31:04 +00:00