Commit graph

14659 commits

Author SHA1 Message Date
David Rodríguez
a1148d4aad [rubygems/rubygems] Cancel bundle console deprecation
506a863b36
2024-11-11 12:49:26 +00:00
Hiroshi SHIBATA
461fa56e10 [ruby/securerandom] Bump up v0.3.2
9703d96a76
2024-11-11 09:00:08 +00:00
Hiroshi SHIBATA
a6ad6f350d [ruby/resolv] Bump up v0.5.0
c4837aae9b
2024-11-11 03:07:12 +00:00
Joe Rafaniello
25252677f9 [ruby/uri] Fix minor typo from
9997c1acee

c191b627cb
2024-11-11 02:42:53 +00:00
David Rodríguez
bb6a3edadf
Bump vendored uri to 1.0.1 2024-11-11 09:53:28 +09:00
tomoya ishida
5eaa4c76c6 [ruby/reline] Remove unused things from reline/unicode.rb
(https://github.com/ruby/reline/pull/759)

* Remove garbage(nil) from Reline::Unicode.split_by_width result

* Remove unused width from Reline::Unicode vi_ ed_ em_ method return value

* Remove unused height from Unicode.split_by_width return value

* Rename split_by_width to split_line_by_width and add legacy split_by_width for IRB

f32446ebc4
2024-11-10 19:11:58 +00:00
samisalamiws
fbe35bcc82 [rubygems/rubygems] Fix private registry credentials being written to logs
d070fa10c1

Co-authored-by: Artem Ignatyev <zazubrik@gmail.com>
2024-11-08 12:15:31 +00:00
David Rodríguez
10d694a1ff [rubygems/rubygems] Warn on insecure materialization
bc2537de71
2024-11-08 12:06:32 +00:00
David Rodríguez
7f2db15732 [rubygems/rubygems] Small tweak
98641d21a2
2024-11-08 12:06:30 +00:00
David Rodríguez
4d83f37ff7 [rubygems/rubygems] Reduce global state
43c0c41c6b
2024-11-08 12:06:30 +00:00
David Rodríguez
ebf07f7a9c [rubygems/rubygems] Remove unnecessary attribute
It's defined in the superclass already.

e269f5477b
2024-11-08 12:06:29 +00:00
David Rodríguez
bf35b2c0fe [rubygems/rubygems] Cleaner extension of Gem::Specification to be able to set source
3749273ec6
2024-11-08 12:06:29 +00:00
David Rodríguez
50e6363ea4 [rubygems/rubygems] Remove accessor that's been unused for years
ffd2fbaf6c
2024-11-08 12:06:28 +00:00
David Rodríguez
f7b334e002 [rubygems/rubygems] Add bundle lock --add-checksums to add checksums to an existing lockfile
0a9c1ce60d
2024-11-08 10:27:03 +00:00
David Rodríguez
1f62a98f73 [rubygems/rubygems] Remove no longer necessary hacks to define the gem command
We did this because RubyGems `require` would call `gem` on self, so
defining a `gem` method in the CLI would cause conflicts. However, this
is not the case since
439c446489,
so this should no longer be necessary.

3e5c861046
2024-11-08 10:26:45 +00:00
Hiroshi SHIBATA
35d8427b8b [ruby/uri] Bump up v1.0.1
3011eb6f6e
2024-11-08 06:07:54 +00:00
Hiroshi SHIBATA
d7c65398e0 [ruby/uri] Added more fallback constants like URI::PARTTERN and URI::REGEXP
Fixed https://github.com/ruby/uri/issues/125

1f3d3df02a
2024-11-08 06:06:30 +00:00
Hiroshi SHIBATA
7c9cda9b52 [ruby/time] Bump up v0.4.1
539b151049
2024-11-08 05:00:24 +00:00
Hiroshi SHIBATA
a698b5ebb8 [ruby/optparse] Bump up v0.6.0
080360ffd4
2024-11-08 04:22:33 +00:00
Hiroshi SHIBATA
475e8f8c46 [ruby/pstore] Bump up v0.1.4
a63a70a830
2024-11-08 04:05:28 +00:00
Hiroshi SHIBATA
82dfdb8646 [ruby/singleton] Bump up v0.3.0
256c91171b
2024-11-08 03:54:21 +00:00
Mari Imaizumi
306ce9a9e0 [ruby/reline] Bump version to 0.5.11
(https://github.com/ruby/reline/pull/777)

4d90743409
2024-11-08 03:38:15 +00:00
YO4
b99c17a95b [ruby/reline] Windows fix (https://github.com/ruby/reline/pull/775)
* test_yamatanooroti: close tempfile before unlink

* test_yamatanooroti: omit because of windows does not support job control

* test_yamatanooroti: change startup message detection for windows

* windows.rb: can call win32api using nil as NULL for pointer argument

Exception occurred when interrupted with Ctrl+C on legacy conhost

* windows.rb: fix get_screen_size

return [window height, buffer width] insted of [buffer height, buffer width]

* windows.rb: import scroll_down() from ansi.rb

* windows.rb: add auto linewrap control if VT output not supported (legacy console)

* unfreeze WIN32API pointer arguments

They internally duplicate arguments so api functions write to another place.
This breaks the console mode detection with ruby-head.

* remove useless code from Win32API#call

argument repacking and return value tweaking is not needed for Reline::Windows requirements.

* Correctly handle top of console viewport

* Revert "remove useless code from Win32API#call"

This reverts commit 060ba140ed.

* Revert "windows.rb: can call win32api using nil as NULL for pointer argument"

This reverts commit 93a23bc5d0.

47c1ffbabe
2024-11-08 03:28:57 +00:00
Hiroshi SHIBATA
3406e8aad9 [ruby/benchmark] Bump up v0.4.0
a5d77ceae0
2024-11-08 02:45:51 +00:00
Kaíque Kandy Koga
9523f53465
[ruby/benchmark] Adjust ljust Benchmark#bm with labels was not using the highest length among the labels to adjust the correct ljust. Instead of printing the result during the report generation, now it is waiting to print the result once it is generated.
Benchmark.bm { |x|
  x.item("aaaa") { 1 }
  x.item("aaaaaaaa") { 0 }
}

After

              user     system      total        real
aaaa      0.000005   0.000002   0.000007 (  0.000003)
aaaaaaaa  0.000001   0.000001   0.000002 (  0.000002)

Before

       user     system      total        real
aaaa  0.000005   0.000001   0.000006 (  0.000003)
aaaaaaaa  0.000002   0.000001   0.000003 (  0.000003)

3e74533ead
2024-11-08 11:32:30 +09:00
Hiroshi SHIBATA
74077a99bf [ruby/ostruct] Bump up v0.6.1
b38680089f
2024-11-08 01:35:02 +00:00
Hiroshi SHIBATA
c05f849cf2 [ruby/ostruct] Update license files same as ruby/ruby
85a773bb41
2024-11-08 01:27:59 +00:00
Kouhei Yanagita
3f7c72cd33 [ruby/irb] Correct ja/help-message for --context-mode and --prompt
(https://github.com/ruby/irb/pull/1029)

b21432daf7
2024-11-07 12:52:01 +00:00
David Rodríguez
ffcfaf4ce4 [rubygems/rubygems] Undeprecate Gemfiles without a global source
After having a second look at this deprecation, the explanation that
we're giving does not make a lot of sense. When working only with local
gems, Bundler will indeed generate a different lockfile depending on
the latest installed version of each gem is at `bundle install` time.

That's the same situation that happens with remote sources: Bundler will
generate a different lockfile depending on the latest version of each
gem available remotely.

So, I don't think "a consistent lockfile not getting generated" is a
good motivation for deprecating this.

Also, this deprecation brings additional challenges, since for example,
it should arguably not get printed when using `bundle install --local`?

The original problem when this deprecation was introduced was an
incorrect message about a missing gem having been yanked.

So, I think a better solution is to, as long as we give proper error
messages when things go wrong, let users do what's best for them and
undo the deprecation.

17499cb83f
2024-11-07 10:03:54 +00:00
Hiroshi SHIBATA
fb6645a510 [ruby/uri] Bump up v1.0.0
af8d9d6bb1
2024-11-07 06:52:30 +00:00
Hiroshi SHIBATA
72bc698419 [ruby/net-http] Bump up v0.5.0
28a4bf9295
2024-11-07 02:39:23 +00:00
Hiroshi SHIBATA
849e651d51 [ruby/delegate] Bump up v0.4.0
713059a5e9
2024-11-07 02:26:50 +00:00
Hiroshi SHIBATA
cf70564c97 [ruby/delegate] Bump up required ruby version to 3.0
6daeb4248f
2024-11-07 02:26:50 +00:00
Hartley McGuire
342455e56f [ruby/logger] Enable subclasses to configure level isolation
(https://github.com/ruby/logger/pull/103)

`Logger#with_level` was recently added to enable configuring a
`Logger`'s level for the duration of a block. However, the configured
level is always tied to the currently running `Fiber`, which is not
always ideal in applications that mix `Thread`s and `Fiber`s.

For example, Active Support has provided a similar feature
(`ActiveSupport::Logger#log_at`) which, depending on configuration, can
be isolated to either `Thread`s or `Fiber`s.

This commit enables subclasses of `Logger` to customize the level
isolation. Ideally, it will enable replacing most of Active Support's
`#log_at`, since both methods end up serving the same purpose.

dae2b832cd
2024-11-07 00:17:16 +00:00
David Rodríguez
261f5d3202 [rubygems/rubygems] Add naive infinite loop detection when fixing lockfile dependencies
5e933968a2
2024-11-06 13:16:58 +00:00
David Rodríguez
c79d236493 [rubygems/rubygems] Note about why we don't fix lockfile dependencies backed by installed specs
6fa94b5d72
2024-11-06 13:16:58 +00:00
David Rodríguez
40a2e8e9cf [rubygems/rubygems] This is not about the lockfile anymore
f2e0a72291
2024-11-06 13:16:57 +00:00
David Rodríguez
54f6b787e3 [rubygems/rubygems] Automatically fix lockfile when the API reveals missing deps
92196ccfdb
2024-11-06 13:16:57 +00:00
David Rodríguez
db7455ae65 [rubygems/rubygems] Check for EndpointSpecification exactly
8fac200ded
2024-11-06 13:16:56 +00:00
David Rodríguez
3e7a43e5e8 [rubygems/rubygems] Simplify code structure
a4dd06f095
2024-11-06 13:16:56 +00:00
David Rodríguez
350baed6a9 [rubygems/rubygems] Fix manifest in gem package using incorrect platform sometimes
If a gem package is built from a specification whose platform has been
modified, it will include metadata using the old platform.

This change should fix the problem by making sure `original_platform` is
always properly set.

ecd5cd4547
2024-11-06 11:37:29 +00:00
David Rodríguez
8c184885b0 [rubygems/rubygems] Fix some JRuby warnings when using bundler/setup with Ruby's -w flag
When using the `bundler/setup` entrypoint, Bundler prints the following
warnings in JRuby in `-w` is passed to Ruby.

```
/path/to/bundler/shared_helpers.rb:10: warning: constant Bundler::WINDOWS is deprecated
/path/to/bundler/shared_helpers.rb:11: warning: constant Bundler::FREEBSD is deprecated
/path/to/bundler/lib/bundler/shared_helpers.rb:12: warning: constant Bundler::NULL is deprecated
```

This does not happen in CRuby.

This seems like a JRuby bug but we can skip it by autoloading the
constants.

761ca29fa2
2024-11-06 11:37:10 +00:00
Hiroshi SHIBATA
82008d38e0 [ruby/shellwords] Bump up v0.2.1
ee08b981ac
2024-11-06 08:57:59 +00:00
Hiroshi SHIBATA
8f4227b664 [ruby/open-uri] Bump up v0.5.0
8f5a4ef6f9
2024-11-06 08:37:52 +00:00
Hiroshi SHIBATA
0c59048b3a [ruby/timeout] Bump up v0.4.2
2f52522994
2024-11-06 08:26:55 +00:00
Hiroshi SHIBATA
7d9e9eabe7 [ruby/tmpdir] Bump up v0.3.0
ef9ca591cf
2024-11-06 08:05:01 +00:00
Hiroshi SHIBATA
7e167b3225 [ruby/tempfile] Bump up v0.3.0
2ff9b3ccef
2024-11-06 07:47:49 +00:00
Hiroshi SHIBATA
a3a0c675c1 [ruby/yaml] Bump up v0.4.0
5e9bfff132
2024-11-06 07:32:52 +00:00
Jean Boussier
ca8f21ace8 [ruby/json] Resync 2024-11-05 18:00:36 +01:00
YO4
ed06f018bd [ruby/irb] windows does not support Process.kill("TERM", pid)
(https://github.com/ruby/irb/pull/1026)

7bbb885163
2024-11-05 13:53:41 +00:00