David Rodríguez 2569413b1c [rubygems/rubygems] Fix --prefer-local flag
The original implementation of this flag was too naive and all it did
was restricting gems to locally installed versions if there are any
local versions installed.

However, it should be much smarter. For example:

* It should fallback to remote versions if locally installed version
  don't satisfy the requirements.
* It should pick locally installed versions even for subdependencies not
  yet discovered.

This commit fixes both issues by using a smarter approach similar to how
we resolve prereleases:

* First resolve optimistically using only locally installed gems.
* If any conflicts are found, scan those conflicts, allow remote
  versions for the specific gems that run into conflicts, and
  re-resolve.

https://github.com/rubygems/rubygems/commit/607a3bf479

Co-authored-by: Gourav Khunger <gouravkhunger18@gmail.com>
2024-08-22 11:48:32 +00:00
2024-07-08 12:24:33 +02:00
2024-08-22 11:20:47 +09:00
2024-08-11 16:04:37 +09:00
2024-05-02 10:12:58 -04:00
2024-07-15 21:08:13 -04:00
2024-08-13 20:56:35 +00:00
2024-06-04 12:40:08 +09:00
2024-08-21 12:07:28 -04:00
2024-07-29 14:18:11 -07:00
2024-07-26 07:29:32 +09:00
2024-04-16 17:20:35 +02:00
2024-05-18 15:44:24 +09:00
2024-08-21 15:56:59 -04:00
2024-08-15 10:38:24 -04:00
2024-07-12 14:43:33 +01:00
GPL
2024-07-08 12:24:33 +02:00
2024-04-27 21:55:28 +09:00
2024-07-08 12:24:33 +02:00
2024-08-13 20:56:35 +00:00
2024-08-21 11:37:13 -04:00
2024-07-29 08:01:52 +09:00
2024-07-20 11:25:26 +09:00
2024-07-30 08:21:28 -04:00
2024-07-29 14:18:11 -07:00
2024-07-23 11:06:19 -04:00
2024-08-20 12:26:02 +09:00
2024-08-20 12:26:02 +09:00
2024-08-16 15:43:43 +09:00
2024-05-18 15:44:24 +09:00
2024-04-16 17:20:35 +02:00
2024-08-16 14:51:21 +09:00
2024-07-05 21:20:54 +09:00
2024-08-07 19:17:31 -04:00

Actions Status: MinGW Actions Status: RJIT Actions Status: Ubuntu Actions Status: Windows Travis Status

What is Ruby?

Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible.

Features of Ruby

  • Simple Syntax
  • Normal Object-oriented Features (e.g. class, method calls)
  • Advanced Object-oriented Features (e.g. mix-in, singleton-method)
  • Operator Overloading
  • Exception Handling
  • Iterators and Closures
  • Garbage Collection
  • Dynamic Loading of Object Files (on some architectures)
  • Highly Portable (works on many Unix-like/POSIX compatible platforms as well as Windows, macOS, etc.) cf. https://docs.ruby-lang.org/en/master/maintainers_md.html#label-Platform+Maintainers

How to get Ruby

For a complete list of ways to install Ruby, including using third-party tools like rvm, see:

https://www.ruby-lang.org/en/downloads/

You can download release packages and the snapshot of the repository. If you want to download whole versions of Ruby, please visit https://www.ruby-lang.org/en/downloads/releases/.

Download with Git

The mirror of the Ruby source tree can be checked out with the following command:

$ git clone https://github.com/ruby/ruby.git

There are some other branches under development. Try the following command to see the list of branches:

$ git ls-remote https://github.com/ruby/ruby.git

You may also want to use https://git.ruby-lang.org/ruby.git (actual master of Ruby source) if you are a committer.

How to build

See Building Ruby

Ruby home page

https://www.ruby-lang.org/

Documentation

Mailing list

There is a mailing list to discuss Ruby. To subscribe to this list, please send the following phrase:

join

in the mail subject (not body) to the address ruby-talk-request@ml.ruby-lang.org.

Copying

See the file COPYING.

Feedback

Questions about the Ruby language can be asked on the Ruby-Talk mailing list or on websites like https://stackoverflow.com.

Bugs should be reported at https://bugs.ruby-lang.org. Read "Reporting Issues" for more information.

Contributing

See "Contributing to Ruby", which includes setup and build instructions.

The Author

Ruby was originally designed and developed by Yukihiro Matsumoto (Matz) in 1995.

matz@ruby-lang.org

Description
Languages
Ruby 58.9%
C 29.5%
Rust 6.1%
C++ 2.9%
Yacc 0.9%
Other 1.6%