Hello World for Ruby projects
Description
This is an example of a Ruby project using Super Source. It contains one function, hello_world, which outputs "Hello world!"
Installation
-
Create a new directory for your example project
-
Create a Gemfile with the following contents:
source 'https://rubygems.org'
gem 'super_source_hello_world', '>=1.1.0'
-
Run bundle install
-
Create a main.rb
file with the following contents:
require 'super_source_hello_world'
SuperSourceHelloWorld.hello_world
-
Run ruby main.rb
- it should throw an exception since you have not acquired a client token from Super Source yet.
-
Run supso update
(if you do not have the supso command line utility, get it with gem install supso
)
-
Follow the instructions when prompted, which will include confirming your email address. This should populate a new directory in your project under .supso
-
Rerun ruby main.rb
- it should successfully output hello world!