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

12835 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada dddf62426b [ruby/tempfile] Use `IO.popen` to list files
- Redirect `git ls-files` without shelling out.

- When building by `gem`, `__FILE__` is the path name given in the
  command line, or the gemspec file name in the current directory.  In
  that case, comparison it and expanded path never equal.  Compare
  listed file names with the base name of `__FILE__` instead.

https://github.com/ruby/tempfile/commit/ac5bab8c7a
2024-02-26 15:56:28 +09:00
Nobuyoshi Nakada 38e3ad2675
Update gemspec according to the recent bundler template 2024-02-26 15:55:17 +09:00
Stan Lo c976cb52a2 [ruby/irb] Add help messages to `show_source` and `show_doc`
commands
(https://github.com/ruby/irb/pull/887)

* Add help message to the show_source command

* Add help message to the show_doc command

https://github.com/ruby/irb/commit/06f43aadb3
2024-02-25 15:22:33 +00:00
Stan Lo 898f30f8bd [ruby/irb] Refactor IRB::Context#prompting
(https://github.com/ruby/irb/pull/889)

https://github.com/ruby/irb/commit/7b323ee514
2024-02-25 15:21:00 +00:00
Adam Daniels c16b507563 [ruby/tmpdir] [DOC] `require` inside each method on Dir
(https://github.com/ruby/tmpdir/pull/31)

https://github.com/ruby/tmpdir/commit/a1ec977923
2024-02-25 08:36:42 +00:00
Nobuyoshi Nakada c0c56d1714 [ruby/tmpdir] Use `IO.popen` to list files
- Redirect `git ls-files` without shelling out.

- When building by `gem`, `__FILE__` is the path name given in the
  command line, or the gemspec file name in the current directory.  In
  that case, comparison it and expanded path never equal.  Compare
  listed file names with the base name of `__FILE__` instead.

https://github.com/ruby/tmpdir/commit/f505e3f7cb
2024-02-25 08:32:09 +00:00
Stan Lo 2c1b7bc51c [ruby/reline] Bump version to v0.4.3
(https://github.com/ruby/reline/pull/642)

https://github.com/ruby/reline/commit/5137a3f3af
2024-02-25 08:07:07 +00:00
Stan Lo 2721a64e41 [ruby/reline] Use gray and white as the default dialog theme
(https://github.com/ruby/reline/pull/637)

I think this has a few benefits:

1. Most terminal themes generally don't change or pick similar colors
   for their black and white colors, so it's more likely to be consistent
    across terminals/themes.
2. They don't have the potential color-blind issues that other color options
   may have.
3. We won't need additional changes for no color mode.

https://github.com/ruby/reline/commit/6579a0a737
2024-02-25 07:08:34 +00:00
Nobuyoshi Nakada 7356067b73 [ruby/tmpdir] Update gemspec according to the recent bundler template
https://github.com/ruby/tmpdir/commit/4ef7bc4f2a
2024-02-25 05:04:12 +00:00
Nobuyoshi Nakada 012a0b9125 [ruby/resolv] Simplify adding new entries
https://github.com/ruby/resolv/commit/081b8df705
2024-02-25 04:39:22 +00:00
Nobuyoshi Nakada 30b99868f9 [ruby/resolv] Treat hostname as same as aliases
https://github.com/ruby/resolv/commit/fa812d6454
2024-02-25 04:39:22 +00:00
Kevin Newton 804b2a3787 [ruby/prism] Rebase against main
https://github.com/ruby/prism/commit/813e20d449
2024-02-24 03:39:29 +00:00
Gopal Patel aa8841405b [ruby/prism] Less code modifications. More steep:ignore for now
https://github.com/ruby/prism/commit/7905bdbf83
2024-02-24 03:39:28 +00:00
Gopal Patel dfee033746 [ruby/prism] Replace awkward code changes with steep:ignore
Also remove RBS for currently ignored files. Will follow-up when those
check fully in later PRs.

https://github.com/ruby/prism/commit/2cae58f86d
2024-02-24 03:39:28 +00:00
Gopal Patel 66565e36ea [ruby/prism] Add documentation for Location#source!
https://github.com/ruby/prism/commit/467e1cc2c4
2024-02-24 03:39:26 +00:00
Gopal Patel 8fa1843523 [ruby/prism] Relax Location#source to be optional
https://github.com/ruby/prism/commit/9f00fe7510
2024-02-24 03:39:26 +00:00
Gopal Patel bfbaafbd9c [ruby/prism] Make rake check_annotations verify public RBS
https://github.com/ruby/prism/commit/db78eef6a2
2024-02-24 03:39:26 +00:00
Gopal Patel ca8a626586 [ruby/prism] Fix my RipperCompat logic mistake from expansion for steep flow analysis
https://github.com/ruby/prism/commit/f71a390c12
2024-02-24 03:39:25 +00:00
Gopal Patel 935d4fab62 [ruby/prism] Remove Ripper from public RBS, type-assert remaining issues
https://github.com/ruby/prism/commit/5fda7a0760
2024-02-24 03:39:23 +00:00
Gopal Patel 7556fd937c [ruby/prism] Split private types
https://github.com/ruby/prism/commit/0209d093ec
2024-02-24 03:39:22 +00:00
Gopal Patel 46fe3dc799 [ruby/prism] Fix IgnoredNewlineToken comparison of Ripper::Lexer::State
https://github.com/ruby/prism/commit/8c9502f61b
2024-02-24 03:39:20 +00:00
Gopal Patel b9b0712556 [ruby/prism] Use steep to type check RBS and Ruby files
https://github.com/ruby/prism/commit/eabed9f4fd
2024-02-24 03:39:19 +00:00
Kevin Newton ec6532b458 [ruby/prism] Add some encoding debugging to make testing easier
https://github.com/ruby/prism/commit/0c042561c6
2024-02-23 20:02:19 +00:00
Kevin Newton a38cc177d2 [ruby/prism] Duplicated when clauses
https://github.com/ruby/prism/commit/865b0d5fbe
2024-02-23 13:25:31 -05:00
Akira Matsuda 73dd3ce03e [ruby/ipaddr] Prefer String#start_with? over Regexp.match
https://github.com/ruby/ipaddr/commit/054fe12ec4
2024-02-23 17:56:08 +00:00
Akira Matsuda 6ad52e336d [ruby/ipaddr] String#split seems to be faster than capturing digits with Regexp
https://github.com/ruby/ipaddr/commit/e0feb0708b
2024-02-23 17:55:33 +00:00
tomoya ishida ea2fb7460e [ruby/irb] Remove useless loaded file check
(https://github.com/ruby/irb/pull/885)

https://github.com/ruby/irb/commit/f6d489658e
2024-02-23 13:11:20 +00:00
Nobuyoshi Nakada 7da3f8dcd3 [ruby/optparse] [DOC] About return value of OptionParser#new
https://github.com/ruby/optparse/commit/59b9fd7ddc
2024-02-23 12:50:08 +00:00
tomoya ishida f0172fc7ee [ruby/irb] Remove workaround for empty lines in dynamic_prompt
(https://github.com/ruby/irb/pull/884)

https://github.com/ruby/irb/commit/820b9e8dd6
2024-02-23 12:32:59 +00:00
tomoya ishida 598b03648f [ruby/irb] Remove remaining `frozen_string_literal: false` in lib/
(https://github.com/ruby/irb/pull/883)

https://github.com/ruby/irb/commit/4bfdb23ae6
2024-02-23 12:32:50 +00:00
Nobuyoshi Nakada 41c0fb6991 [ruby/optparse] Add `exact:` keyword argument
https://github.com/ruby/optparse/commit/07e83673a8
2024-02-23 21:16:59 +09:00
Stan Lo 4831bb5bab [ruby/irb] Turn on frozen literal in files
(https://github.com/ruby/irb/pull/881)

https://github.com/ruby/irb/commit/83d90550c2
2024-02-23 10:53:53 +00:00
Stan Lo 37dde6e2f8 [ruby/irb] Unroll extension method generation
(https://github.com/ruby/irb/pull/882)

* Unroll extension method generation

Given we only have 2 remaining extension setter methods, both of which
only take 1 argument and don't have any alias, the current method generation
logic is overly complicated.

This commit simplifies the method generation logic by simply defining
the methods directly in the `IRB::Context` class.

* Fix use_loader extension

https://github.com/ruby/irb/commit/67eba5401b
2024-02-23 10:02:19 +00:00
Kevin Newton 5e0589cf52 [ruby/prism] Parse float values
https://github.com/ruby/prism/commit/9137226a52
2024-02-22 22:42:44 -05:00
Kevin Newton 3b3def5db7 [ruby/prism] Regenerate snapshots using integer values 2024-02-22 22:42:44 -05:00
Kevin Newton af0a6ea1d5 [ruby/prism] Add an IntegerField for parsing integer values
https://github.com/ruby/prism/commit/120d8c0479
2024-02-22 22:42:44 -05:00
Philip Mueller 3c61222d68 [ruby/prism] all constant nodes should have full_name and full_name_parts methods
https://github.com/ruby/prism/commit/792265ae0b
2024-02-22 21:43:02 +00:00
tomoya ishida 88431c47ba [ruby/irb] Delete IRB::NotImplementedError
(https://github.com/ruby/irb/pull/878)

https://github.com/ruby/irb/commit/6751778948
2024-02-22 13:16:46 +00:00
Noah Gibbs 551f64745f [ruby/prism] Allow skipping warnings as needed, and pass a reason through to Parser::Diagnostic
https://github.com/ruby/prism/commit/6a84a3c9fb
2024-02-21 22:38:48 +00:00
Noah Gibbs 45ae69e37e [ruby/prism] Update lib/prism/translation/parser.rb
https://github.com/ruby/prism/commit/c3cc282343

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-02-21 22:38:48 +00:00
Noah Gibbs e3b9eec349 [ruby/prism] Translation::Parser should process warnings, not just errors
https://github.com/ruby/prism/commit/ea7e400f85
2024-02-21 22:38:47 +00:00
Samuel Giddins 997470b7b6 [rubygems/rubygems] Commit missing new method
https://github.com/rubygems/rubygems/commit/5265b4ce3d
2024-02-21 17:45:00 +00:00
Samuel Giddins 5dcc7a0326 [rubygems/rubygems] Use a writer method on the module instead of a constant
https://github.com/rubygems/rubygems/commit/240d84eea3
2024-02-21 17:45:00 +00:00
Samuel Giddins c2812fb616 [rubygems/rubygems] Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via a constant
https://github.com/rubygems/rubygems/commit/6bedb1cb79
2024-02-21 17:44:59 +00:00
Nobuyoshi Nakada 5ab6b3181f [ruby/fileutils] [DOC] FileUtils::VERSION
https://github.com/ruby/fileutils/commit/48742e2921
2024-02-21 16:57:30 +00:00
Nobuyoshi Nakada 2edc14be69 [ruby/fileutils] [DOC] nodoc for private methods and module
https://github.com/ruby/fileutils/commit/75c6010aab
2024-02-21 16:57:30 +00:00
Nobuyoshi Nakada 6e704311bb [ruby/pp] Extract pp_hash_pair
The method which prints single pair of a hash, to make extending
pretty printing Hash easier, apart from Hash construct itself.

https://github.com/ruby/pp/commit/3fcf2d1142
2024-02-21 16:45:01 +00:00
Nobuyoshi Nakada 37b8fc7477 [ruby/pp] Get rid of hardcoded class name
So that the `pp` method can work in inherited classes with that
class.

https://github.com/ruby/pp/commit/f204df3aad
2024-02-21 16:45:00 +00:00
Kevin Newton 82a4c3af16 Add error for iseqs compiled by prism 2024-02-21 11:44:40 -05:00
Hiroshi SHIBATA fc1a7a46dc [rubygems/rubygems] Use Hash#compact
https://github.com/rubygems/rubygems/commit/9d4ff6ff30

Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
2024-02-21 06:39:37 +00:00