Skip to content

Commit 9e7d6ae

Browse files
authored
Merge pull request #5 from Shopify/pz-readme
Write README.md
2 parents 917f87f + ca5f3f5 commit 9e7d6ae

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# shopify-ruby-definitions
2+
3+
This repository contains [ruby-build](https://github.com/rbenv/ruby-build/) definitions of Rubies we use at Shopify. These builds are generally API complient with release Rubies, but with additional backports for bugfixes and performance.
4+
5+
## Quick start
6+
7+
1. Install ruby-build by [following the instructions](https://github.com/rbenv/ruby-build/#installation).
8+
1. Install the gem:
9+
```
10+
$ gem install shopify-ruby-definitions
11+
```
12+
1. Acquire the specific Ruby version of the Ruby version you want to install. Ruby 3.2 is used as an example here:
13+
```
14+
$ export RUBY_VERSION=`ruby -rshopify_ruby_definitions -e 'puts ShopifyRubyDefinitions.resolve_version("3.2")'`
15+
```
16+
1. Set the definitions path for ruby-build:
17+
```
18+
$ export RUBY_BUILD_DEFINITIONS=`ruby -rshopify_ruby_definitions -e 'puts ShopifyRubyDefinitions::RubyVersions::VERSIONS_DIRECTORY'`
19+
```
20+
1. Install the Ruby version using ruby-build:
21+
```
22+
ruby-build $RUBY_VERSION
23+
```

0 commit comments

Comments
 (0)