summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-11-13[rubygems/rubygems] Let RuboCop target Ruby 3.0David Rodríguez
https://github.com/rubygems/rubygems/commit/70243b1d72
2023-11-13[rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in BundlerDavid Rodríguez
https://github.com/rubygems/rubygems/commit/93619c97ff
2023-11-13[rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/10c26a483d
2023-11-13[rubygems/rubygems] Automatically lock extra ruby platformsDavid Rodríguez
Since we started locking the specific platform in the lockfile, that has created an annoying situation for users that don't develop on Linux. They will create a lockfile on their machines, locking their local platform, for example, darwin. But then that lockfile won't work automatically when deploying to Heroku for example, because the lockfile is frozen and the Linux platform is not included. There's the chance though that resolving against two platforms (Linux + the local platform) won't succeed while resolving for just the current platform will. So, instead, we check other platform specific variants available for the resolution we initially found, and lock those platforms and specs too if they satisfy the resolution. This is only done when generating new lockfiles from scratch, existing lockfiles should keep working as before, and it's only done for "ruby platforms", i.e., not Java or Windows which have their own complexities, and so are excluded. With this change, we expect that MacOS users can bundle locally and deploy to Heroku without needing to do anything special. https://github.com/rubygems/rubygems/commit/5f24f06bc5
2023-11-13[rubygems/rubygems] Extract builder to create a `LazySpecification` from ↵David Rodríguez
full spec https://github.com/rubygems/rubygems/commit/957d3d9a7f
2023-11-13[rubygems/rubygems] Extract a new small platform helperDavid Rodríguez
https://github.com/rubygems/rubygems/commit/8f7340df8e
2023-11-13[rubygems/rubygems] Remove unused `SpecSet#merge`David Rodríguez
https://github.com/rubygems/rubygems/commit/53e0490b55
2023-11-13[rubygems/rubygems] Pass source to `LazySpecification` initializerDavid Rodríguez
https://github.com/rubygems/rubygems/commit/05120e2fe8
2023-11-13[rubygems/rubygems] Allow setting metadata on LazySpecificationDavid Rodríguez
This is a step forward towards eventually including metadata in the lockfile. https://github.com/rubygems/rubygems/commit/56fc02b251
2023-11-13[rubygems/rubygems] Set LazySpecification dependencies directlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/2462c8e04d
2023-11-12[ruby/prism] Add the ability to convert nodes to dotKevin Newton
https://github.com/ruby/prism/commit/3e4b4fb947
2023-11-10[ruby/prism] Remove extra locals added by ...Kevin Newton
https://github.com/ruby/prism/commit/b7850f2d30
2023-11-10[ruby/prism] Add source code and changelog urisMateus Pereira
https://github.com/ruby/prism/commit/33a85f7867
2023-11-10[ruby/irb] Bump version to 1.9.0ima1zumi
(https://github.com/ruby/irb/pull/757) https://github.com/ruby/irb/commit/41548b8bd0
2023-11-10[ruby/open3] [DOC] RDoc for Open3Burdette Lamar
(https://github.com/ruby/open3/pull/18) https://github.com/ruby/open3/commit/9f3f5d004c
2023-11-09[ruby/irb] Add command line option to select which completor to usetomoya ishida
(https://github.com/ruby/irb/pull/754) * Add command line option to select which completor to use * Add test for completor argv https://github.com/ruby/irb/commit/1dec2708c9
2023-11-08[ruby/prism] Provide Parameters#signature for mirroring Method#parametersKevin Newton
https://github.com/ruby/prism/commit/90b3245528
2023-11-08[ruby/tempfile] Make Tempfile#open return the underlying FileJeremy Evans
Add test for this behavior. https://github.com/ruby/tempfile/commit/0ca31a6b8d
2023-11-08* remove trailing spaces. [ci skip]git
2023-11-08[ruby/tempfile] Fix Tempfile#{dup,clone}Jeremy Evans
Instead of storing the delegate in @tmpfile, use __getobj__, since delegate library already handles dup/clone for that. Copy the unlinked, mode, and opts instance variables to the returned object when using dup/clone. Split the close/unlink finalizer into two finalizers. The close finalizer always closes when any Tempfile instance is GCed, since each Tempfile instance uses a separate file descriptor. The unlink finalizer unlinks only when the original and all duped/cloned Tempfiles are GCed, since all share the same path. For Tempfile#open, undefine the close finalizer after closing the current file, the redefine the close finalizer with the new file. Fixes [Bug #19441] https://github.com/ruby/tempfile/commit/dafabf9c7b
2023-11-08[rubygems/rubygems] Ensure we are using the same extension dirHan Young
Since #6945 the extension dir changed to Gem::BasicSpecification's implementation, we didn't hook that in rubygems_ext.rb. So for universal rubies, we ended up using the universal platform name when installing, but arch replaced platform name when checking. This lead to native extensions can never be correctly installed on universal rubies. Hook Gem::BasicSpecifications so the behavior is consistent on installing and checking. https://github.com/rubygems/rubygems/commit/8d699ed096
2023-11-08Refactor rb_shape_transition_shape_capa outJean Boussier
Right now the `rb_shape_get_next` shape caller need to first check if there is capacity left, and if not call `rb_shape_transition_shape_capa` before it can call `rb_shape_get_next`. And on each of these it needs to checks if we got a TOO_COMPLEX back. All this logic is duplicated in the interpreter, YJIT and RJIT. Instead we can have `rb_shape_get_next` do the capacity transition when needed. The caller can compare the old and new shapes capacity to know if resizing is needed. It also can check for TOO_COMPLEX only once.
2023-11-08[ruby/irb] Type based completion using Prism and RBStomoya ishida
(https://github.com/ruby/irb/pull/708) * Add completor using prism and rbs * Add TypeCompletion test * Switchable completors: RegexpCompletor and TypeCompletion::Completor * Add completion info to irb_info * Complete reserved words * Fix [*] (*) {**} and prism's change of KeywordParameterNode * Fix require, frozen_string_literal * Drop prism<=0.16.0 support * Add Completor.last_completion_error for debug report * Retrieve `self` and `Module.nesting` in more safe way * Support BasicObject * Handle lvar and ivar get exception correctly * Skip ivar reference test of non-self object in ruby < 3.2 * BaseScope to RootScope, move method objects constant under Methods * Remove unused Splat struct * Drop deeply nested array/hash type calculation from actual object. Now, calculation depth is 1 * Refactor loading rbs in test, change preload_in_thread not to cache Thread object * Use new option added in prism 0.17.1 to parse code with localvars * Add Prism version check and warn when :type completor cannot be enabled * build_type_completor should skip truffleruby (because endless method definition is not supported) https://github.com/ruby/irb/commit/1048c7ed7a
2023-11-08[ruby/irb] Fix dancing-ruby Ctrl+C stoptomoya ishida
(https://github.com/ruby/irb/pull/735) https://github.com/ruby/irb/commit/802b1cb6d8
2023-11-08[rubygems/rubygems] Hack to get `Gem::Specification#extensions_dir` documentedDavid Rodríguez
https://github.com/rubygems/rubygems/commit/625b8293f7
2023-11-08[rubygems/rubygems] Simplify selecting specs with `force_ruby_platform` setDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5f90a43635 Co-authored-by: Martin Emde <martin.emde@gmail.com>
2023-11-08[rubygems/rubygems] Better error when having an insecure install folderDavid Rodríguez
https://github.com/rubygems/rubygems/commit/e41156e272
2023-11-08[rubygems/rubygems] Remove redundant error classDavid Rodríguez
It's a `BundlerError`. https://github.com/rubygems/rubygems/commit/53ea676dab
2023-11-08[rubygems/rubygems] Fix regression on old git versionsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/abd91ca2e5
2023-11-08[rubygems/rubygems] Don't show bug report template when GEM_HOME has no ↵David Rodríguez
writable bit Instead, don't check that at all and proceed. If something fails to be written inside GEM_HOME, we'll eventually fail with a proper permissions error. In addition to that, the writable bit in GEM_HOME is not even reliable, because only the immediate parent is actually checked when writing. For example, ``` $ mkdir -p foo/bar $ chmod -w foo $ touch foo/bar/baz # writes without issue ``` https://github.com/rubygems/rubygems/commit/4bced7ac73
2023-11-08[rubygems/rubygems] Remove unnecessary rescueDavid Rodríguez
https://github.com/rubygems/rubygems/commit/c0b549f943
2023-11-08[rubygems/rubygems] Allow `--install-dir` to be specified together with ↵Vít Ondruch
`--user-install` The combination of `install-dir` and `--user-install` used to be disabled for no good reason. This even makes problem on Linux distributions such as Fedora, where `--user-install` is set by default via operating_system.rb. The `--install-dir` is already prefered over the `--user-install` by the implementation, therefore just drop the check. https://github.com/rubygems/rubygems/commit/313b1c5e76
2023-11-08[rubygems/rubygems] Make the user installation less exceptionalVít Ondruch
The main purpose is to put handling of user installation into the same place as e.g. handling the --build-root option handling. There is no reason why the --build-root option should not prefix also paths used for user installation. Please note that the `util_installer` in `test_generate_plugins_with_user_install` enforced the `:install_dir`, which is against what user install is about. https://github.com/rubygems/rubygems/commit/0b10cb41aa
2023-11-07[ruby/reline] Bump version to 0.4.0ima1zumi
(https://github.com/ruby/reline/pull/601) https://github.com/ruby/reline/commit/d15ab72d4f
2023-11-07[ruby/cgi] Add snake case aliases for escapeURIComponentJean Boussier
As agreed in [Feature #18822] https://github.com/ruby/cgi/commit/9d1161ec9d
2023-11-07[ruby/cgi] Bump up 0.4.0Hiroshi SHIBATA
https://github.com/ruby/cgi/commit/6ddd5fc7d7
2023-11-07[ruby/open-uri] Bump up 0.4.0Hiroshi SHIBATA
https://github.com/ruby/open-uri/commit/09df813305
2023-11-07[ruby/English] Bump up 0.8.0Hiroshi SHIBATA
https://github.com/ruby/English/commit/826ff728cf
2023-11-07[ruby/English] Combine duplicate aliases into single sections to more ↵Keith R. Bennett
clearly denote sameness and make more concise. https://github.com/ruby/English/commit/dcff090f6f
2023-11-07[ruby/fileutils] Bump up 1.7.2Hiroshi SHIBATA
https://github.com/ruby/fileutils/commit/577fd38f15
2023-11-07[ruby/base64] Bump up 0.2.0Hiroshi SHIBATA
https://github.com/ruby/base64/commit/09e839e5ad
2023-11-07[ruby/base64] Enhanced Rdoc for Base64Burdette Lamar
(https://github.com/ruby/base64/pull/7) * Enhanced Rdoc for Base64 * Enhanced RDoc for Base64 https://github.com/ruby/base64/commit/155c39a949
2023-11-07[ruby/drb] Removed old version on doc sectionHiroshi SHIBATA
https://github.com/ruby/drb/commit/104f1a4db3
2023-11-07[ruby/drb] Load DRb::VERSION automaticallyHiroshi SHIBATA
https://github.com/ruby/drb/commit/b250502c43
2023-11-07[ruby/logger] [DOC] Fix broken linkBurdetteLamar
https://github.com/ruby/logger/commit/8c135bce9a
2023-11-07[ruby/ostruct] Bump up 0.6.0Hiroshi SHIBATA
https://github.com/ruby/ostruct/commit/0985296e72
2023-11-07[ruby/drb] Bump up 2.2.0Hiroshi SHIBATA
https://github.com/ruby/drb/commit/c62076f940
2023-11-07[ruby/logger] Bump up 1.6.0Hiroshi SHIBATA
https://github.com/ruby/logger/commit/0996f90650
2023-11-07[ruby/time] Bump up 0.3.0Hiroshi SHIBATA
https://github.com/ruby/time/commit/8dba14997c
2023-11-07[ruby/timeout] Bump up 0.4.1Hiroshi SHIBATA
https://github.com/ruby/timeout/commit/a65e49cc31