Samuel Williams ea8a7287e2
Add support for sockaddr_un on Windows. (#6513)
* Windows: Fix warning about undefined if_indextoname()

* Windows: Fix UNIXSocket on MINGW and make .pair more reliable

* Windows: Use nonblock=true for read tests with scheduler

* Windows: Move socket detection from File.socket? to File.stat

Add S_IFSOCK to Windows and interpret reparse points accordingly.
Enable tests that work now.

* Windows: Use wide-char functions to UNIXSocket

This fixes behaviour with non-ASCII characters.
It also fixes deletion of temporary UNIXSocket.pair files.

* Windows: Add UNIXSocket tests for specifics of Windows impl.

* Windows: fix VC build due to missing _snwprintf

Avoid usage of _snwprintf, since it fails linking ruby.dll like so:

  linking shared-library x64-vcruntime140-ruby320.dll
  x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol snwprintf
  x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol vsnwprintf_l

whereas linking miniruby.exe succeeds.

This patch uses snprintf on the UTF-8 string instead.

Also remove branch GetWindowsDirectoryW, since it doesn't work.

* Windows: Fix dangling symlink test failures

Co-authored-by: Lars Kanis <kanis@comcard.de>
2022-11-17 14:50:25 -08:00
2022-10-26 18:57:26 +09:00
2022-09-10 09:32:27 +09:00
2022-11-13 12:42:47 -05:00
2022-11-17 04:52:50 +00:00
2022-07-27 18:42:27 +09:00
2022-11-05 23:18:32 +09:00
2022-11-15 14:45:51 +09:00
2022-09-23 06:44:28 +09:00
2022-07-22 21:59:58 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-11-13 14:00:30 -08:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
GPL
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-11-10 10:52:16 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-10-20 17:38:28 +09:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-09-26 00:41:16 +13:00
2022-09-26 09:21:05 +09:00
2022-09-23 06:44:28 +09:00
2022-10-09 14:00:52 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-10-18 10:16:22 -05:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-09-14 17:30:10 +09:00
2022-11-09 23:21:26 +09:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-07-21 09:42:04 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-10-13 08:14:04 -07:00
2022-11-10 10:11:34 -05:00
2022-10-20 17:38:28 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-10-21 14:56:48 -07:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00
2022-11-16 18:58:33 +09:00

Actions Status: MinGW Actions Status: MJIT Actions Status: Ubuntu Actions Status: Windows AppVeyor status Travis Status Cirrus 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://github.com/ruby/ruby/blob/master/doc/maintainers.rdoc#label-Platform+Maintainers

How to get Ruby with Git

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

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

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:

subscribe

in the mail body (not subject) to the address ruby-talk-request@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%