rubyinstaller2 | MSYS2 based RubyInstaller for Windows

 by   oneclick Ruby Version: RubyInstaller-2.7.8-1 License: BSD-3-Clause

kandi X-RAY | rubyinstaller2 Summary

kandi X-RAY | rubyinstaller2 Summary

rubyinstaller2 is a Ruby library. rubyinstaller2 has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

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

            kandi-support Support

              rubyinstaller2 has a low active ecosystem.
              It has 589 star(s) with 257 fork(s). There are 55 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 28 open issues and 272 have been closed. On average issues are closed in 126 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of rubyinstaller2 is RubyInstaller-2.7.8-1

            kandi-Quality Quality

              rubyinstaller2 has 0 bugs and 0 code smells.

            kandi-Security Security

              rubyinstaller2 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rubyinstaller2 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rubyinstaller2 is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              rubyinstaller2 releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed rubyinstaller2 and discovered the below as its top functions. This is intended to give you an instant insight into rubyinstaller2 implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            rubyinstaller2 Key Features

            No Key Features are available at this moment for rubyinstaller2.

            rubyinstaller2 Examples and Code Snippets

            No Code Snippets are available at this moment for rubyinstaller2.

            Community Discussions

            QUESTION

            How does this Ruby command line work? Seemingly running a CMD script with Ruby
            Asked 2020-Jan-15 at 16:30

            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:30

            From 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.

            Source https://stackoverflow.com/questions/59750684

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rubyinstaller2

            The base MSYS2 setup includes compilers and other build tools, but doesn't include libraries or DLLs that some gems require as their dependencies. Fortunately many of the required libraries are available through the MSYS2 repositories. They can be installed per ridk exec pacman -S mingw-w64-x86_64-libraryname similar to apt-get on Linux. Exchange the prefix mingw-w64-x86_64 by mingw-w64-i686 for the 32-bit RubyInstaller.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries