Twee2 requires Ruby version 2.0 or higher. You can check whether Ruby is installed and what version it is by opening up a command prompt or terminal and running:
ruby -v
If you don't have Ruby installed, there are several ways to easily install it. Here are some quick ways:
Note that the 'decompile' feature, which turns Twine 2 story files into Twee2 source code, is not supported on Windows.
MacOS comes with Ruby, but it's usually out-of-date. Install a modern version using RVM.
Many Linux distributions have packages for Ruby, but it's often out-of-date. Install RVM and use it to get Ruby 2.1.6 by running:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.6
rvm use 2.1.6 --default
To install Twee2, open a command prompt or terminal and type:
gem install twee2
You can check that it's installed correctly by running:
twee2
Now you're ready to dive into the two-minute tutorial or the full documentation.
If you ever want to uninstall Twee2, simply run:
gem uninstall twee2
Twee2 is open-source, which means you can read and change its code for yourself. Get the code on GitHub.