-
Notifications
You must be signed in to change notification settings - Fork 186
RubyMine specific development instructions
Dominik Gedon edited this page Aug 19, 2024
·
5 revisions
This is a short tutorial on how to setup development with RubyMine on openSUSE (tested with Tumbleweed).
You need a license for RubyMine when using it commercially.
- Flatpak: https://flathub.org/apps/com.jetbrains.RubyMine
- JetBrains ToolBox: https://www.jetbrains.com/help/ruby/installation-guide.html#eyw59x_89
- Snap: https://snapcraft.io/install/rubymine/opensuse (performance degradation, see https://www.jetbrains.com/help/ruby/installation-guide.html#snap)
We should use this Ruby version when developing since this is the version that is used on the deployed VMs.
In the near future we want to update to a more recent Ruby version like 3.1. However, it will take some time to adjust and test everything for that.
# fetch rvm
\curl -sSL https://get.rvm.io | bash -s stable
# install Ruby 2.5.9
rvm install 2.5.9
# list installed Ruby versions
rvm list
# use Ruby 2.5.9
rvm use ruby-2.5.9
# clone twopence repository
git clone git@github.com:openSUSE/twopence.git
# install prerequisites (not only for Twopence)
zypper in libssh-devel python-devel chromedriver postgresql-devel
# build with make
cd twopence && make && make install
# install the built gemfile (it is build inside the ruby subfolder)
cd ruby
gem install twopence-0.4.2.gem
# update gem to 3.2.3 to prevent bundler issues
gem update --system 3.2.3
# install bundler
gem install bundler
# go to the spacewalk/testsuite folder
cd ~/git/spacewalk/testsuite
# install the required gems (Gemfile) with bundler
bundle install
This has to be done inside RubyMine.
Got to: file → settings → Languages and Frameworks → Ruby SDK and gems Select Ruby version 2.5.9 since the controller uses this version
This has to be done inside RubyMine.
Got to file → settings → Tools → Terminal → Application settings -> Shell path: /bin/zsh --login
(or /bin/bash --login
)