rubyinstaller2 | MSYS2 based RubyInstaller for Windows
kandi X-RAY | rubyinstaller2 Summary
kandi X-RAY | rubyinstaller2 Summary
This project provides an Installer for Ruby-2.4 and newer on Windows based on the MSYS2 toolchain. It is the successor to the MSYS1 based RubyInstaller which was used for Ruby-2.3 and older. It is licensed under the 3-clause Modified BSD License. In contrast to the old RubyInstaller it does not provide its own DevKit, but makes use of the rich set of MINGW libraries from the MSYS2 project. It therefore integrates well into MSYS2 after installation on the target system to provide a build-and-runtime environment for installation of gems with C-extensions. This and more changes are documented in the CHANGELOG.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Reads a line from the sublines .
- Reads a line into a line .
- Sets the + character + to set the + character + .
- Sets the input .
- Set the output .
- Sets + indent + .
- Specifies the filter processor .
- Set the prompt .
- Sets the match predicate .
- Set edit mode
rubyinstaller2 Key Features
rubyinstaller2 Examples and Code Snippets
Community Discussions
Trending Discussions on rubyinstaller2
QUESTION
I'm examining how ridk enable
works in order to figure out how to hook it into Travis CI build logic. (The Ruby installation I'm studying is a RubyInstaller+Devkit installed locally; the commands are run from the "Start Command Prompt with Ruby" prompt.)
I've got stuck at a Ruby command line executed under the hood whose working is a mystery to me:
...ANSWER
Answered 2020-Jan-15 at 16:30From man ruby
:
-x[directory]
Tells Ruby that the script is embedded in a message. Leading garbage will be discarded until the first line that starts with#!
and contains the string,ruby
Any meaningful switches on that line will be applied. The end of the script must be specified with either EOF ^D ( control-D ^Z ( control-Z or the reserved word__END__
If the directory name is specified, Ruby will switch to that directory before executing script.
Which means the ridk.cmd
has embedded ruby code.
The directory
is optional, as indicated by both the square brackets around the name and the description. If provided, it should be directly after -x
without any space, which effectively allows it to be an optional argument.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rubyinstaller2
To install sqlite3 gem: ridk exec pacman -S mingw-w64-x86_64-sqlite3 gem install sqlite3 --platform ruby
To install nokogiri gem: ridk exec pacman -S mingw-w64-x86_64-libxslt gem install nokogiri --platform ruby -- --use-system-libraries
The installer is regularly built on Github Actions for each push to the github repository. The runner also executes the installer and runs all RubyInstaller tests and ruby-spec on it, so that we are notified about breaking changes. In addition to this, a daily build of the latest ruby development snapshot is compiled and packaged as RubyInstaller files. It can be downloaded from github releases. Check the wiki on how to use ruby-head versions for your CI builds.
Make sure you have a working RubyInstaller-2.4+ and Git installation
Ensure you have MSYS2 installed either by a RubyInstaller-Devkit version or per ridk install with default options
Install the latest Inno-Setup (unicode) from http://www.jrsoftware.org/isdl.php
Run cmd.exe and add iscc.exe to PATH: set PATH=%PATH%;"c:\Program Files (x86)\Inno Setup 6"
Clone RubyInstaller2 and install dependencies: git clone https://github.com/larskanis/rubyinstaller2 cd rubyinstaller2 bundle install rake -T
The last command lists all available RubyInstaller build targets. The build targets consists of the following parts: rake ri:ruby-3.0.3-x86-msvcrt:archive-7z ^ ^ ^ ^ ^- "archive-7z" => 7z archive of the rubyinstaller files | | | | "installer-inno" => executable installer file | | | '------- "msvcrt" => older type of C standard library | | | "ucrt" => new type of C standard library | | '------- "x86" => 32 bit ruby and MSYS2 version | | "x64" => 64 bit version | '------ "x.x.x" => ruby version to build | "head" => latest development snapshot of ruby '------ "ri" => RubyInstaller without Devkit "ri-msys" => RubyInstaller with MSYS2 based Devkit
Copy and paste the interesting one on the command line.
If everything works well, you will find the final setup and archive files like so: packages/ri-msys/recipes/installer-inno/rubyinstaller-devkit-<VERSION>-<ARCH>.exe packages/ri/recipes/archive-7z/rubyinstaller-<VERSION>-<ARCH>.7z
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page