{"id":13685538,"url":"https://github.com/ruby/all-ruby","last_synced_at":"2025-04-06T15:12:19.341Z","repository":{"id":47485981,"uuid":"462018","full_name":"ruby/all-ruby","owner":"ruby","description":"Run various versions of ruby command","archived":false,"fork":false,"pushed_at":"2025-03-26T05:45:22.000Z","size":257,"stargazers_count":88,"open_issues_count":1,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T14:11:15.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-01-07T07:44:46.000Z","updated_at":"2025-03-26T05:45:25.000Z","dependencies_parsed_at":"2023-11-13T05:29:06.749Z","dependency_job_id":"b36874ad-cb6c-44da-9982-17f8215aa92e","html_url":"https://github.com/ruby/all-ruby","commit_stats":null,"previous_names":["ruby/all-ruby"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fall-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fall-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fall-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fall-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/all-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500468,"owners_count":20948880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T14:00:53.243Z","updated_at":"2025-04-06T15:12:19.313Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# all-ruby\n\nThis software is a script to install historic Ruby versions since ruby-0.49.\nAlso, all-ruby script runs all ruby binaries with same arguments.\n\n## Platform\n\nThis software is developed on Debian GNU/Linux 10 (buster) amd64.\n\nHowever Ruby doesn't support 64 bit platform until ruby 1.8.0.\nSo, the older ruby needs 32 bit development tools which can be\ninstalled as follows.\n\n    % sudo dpkg --add-architecture i386\n    % sudo apt update\n    % sudo apt-get build-dep ruby2.5\n    % sudo apt install rake gcc-multilib \\\n        zlib1g:i386 libncurses5:i386 libgdbm6:i386 libssl1.1:i386 \\\n        libreadline7:i386 libffi6:i386\n\nFor Debian GNU/Linux 9 (stretch) :\n\n    % sudo apt-get build-dep ruby2.3\n    % sudo apt install rake gcc-multilib \\\n        zlib1g:i386 libncurses5:i386 libgdbm3:i386 libssl1.0.2:i386 \\\n        libreadline7:i386 libffi6:i386\n\n## Usage\n\nThis software provides Rakefile and \"rake all\" downloads and builds\nhistoric ruby versions.\n\n    % git clone https://github.com/akr/all-ruby.git\n    % cd all-ruby\n    % rake setup_build\n    % rake all  # this takes long time\n\nNote that `rake setup_build` is same as\n`mkdir ../build-all-ruby; ln -s ../build-all-ruby build`.\nbuild-all-ruby directory is required to avoid that\n`ruby -v` emits `last_commit=` line.\n\nall-ruby script runs all ruby binaries.\n\n    % ./all-ruby -e 'p RUBY_VERSION'\n    ruby-0.49             -e:1: syntax error\n\t\t      exit 1\n    ruby-0.50             -e:1: syntax error\n\t\t      exit 1\n    ruby-0.51             -e:1: undefined method `p' for \"main\"(Object)\n\t\t      exit 1\n    ruby-0.54             -e:1:in method `p': undefined method `p' for \"main\"(Object)\n\t\t      exit 1\n    ruby-0.55             -e:1: undefined method `p' for \"main\"(Object)\n\t\t      exit 1\n    ...\n    ruby-0.65             -e:1: undefined method `p' for \"main\"(Object)\n\t\t      exit 1\n    ruby-0.69             -e:1: Uninitialized constant RUBY_VERSION\n\t\t      exit 1\n    ...\n    ruby-1.3.4-990531     /tmp/rbHMsENn:1: uninitialized constant RUBY_VERSION (NameError)\n\t\t      exit 1\n    ruby-1.3.4-990611     \"1.3.4\"\n    ...\n    ruby-2.7.0-preview1   \"2.7.0\"\n    % ALL_RUBY_SINCE=ruby-1.6 all-ruby -e 'p 0.class'\n    ruby-1.6.0            Fixnum\n    ...\n    ruby-2.3.8            Fixnum\n    ruby-2.4.0-preview1   Integer\n    ...\n    ruby-2.7.0-preview1   Integer\n\n## Documentation\n\nrake without arguments shows the help message for the Rakefile.\n\n    % rake\n    \"rake all\" will install 384 ruby\n    \"rake list\" shows versions\n    \"rake sync\" updates versions\n\nall-ruby without arguments shows help message for all-ruby script.\n\n    % ./all-ruby\n    usage: all-ruby RUBY-ARGS\n    environment variables:\n      ALL_RUBY_SINCE=ruby-1.4               run only versions since specified one\n      ALL_RUBY_BINS='ruby-2.4.4 ruby-2.5.1' run only versions specfied\n      ALL_RUBY_ADDBINS=./ruby               run specified commands additionaly\n      ALL_RUBY_SHOW_DUP=yes                 don't suppress duplicated output\n\n## Docker\n\nDockerfile is provided to generate a docker image containing\nruby binaries built by the Rakefile.\n\nPre-built docker image can be used as follows:\n\n    % docker pull rubylang/all-ruby\n    % docker run --rm rubylang/all-ruby ./all-ruby -v\n    % docker run --rm -e 'ALL_RUBY_SINCE=ruby-2.0' \\\n        -e 'ALL_RUBY_ADDBINS=/usr/bin/ruby' \\\n        rubylang/all-ruby ./all-ruby -e 'p 0.class'\n\nIf you want to build a docker image yourself,\nyou can use following command.\nThis uses your CPUs parallel.\n\n    % docker build ./ -t my-all-ruby\n\nIf you want to use only n CPUs, build argument j=n can be used.\n(--cpuset-cpus option of \"docker build\" is also usable.)\n\n    % docker build ./ --build-arg j=1 -t my-all-ruby\n\n## Links\n\n- https://github.com/akr/all-ruby\n\n## Author\n\nTanaka Akira\nakr@fsij.org\n\n## License\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above\n    copyright notice, this list of conditions and the following\n    disclaimer in the documentation and/or other materials provided\n    with the distribution.\n 3. The name of the author may not be used to endorse or promote\n    products derived from this software without specific prior\n    written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\nOR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\nGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n(3-clause BSD license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fall-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fall-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fall-ruby/lists"}