How do I get Ruby to work?

I ran “git clone” and then followed the instructions in it and in “”, running:

Then I ran: gem install brick-pi

Everything appears to have installed successfully, but when I run one of the example scripts in brick_pi_ruby, it fails:

$ ruby examples/touch_sensor.rb
examples/touch_sensor.rb:5:in ‘<main>’: undefined method ‘create’ for BrickPi:Module (NoMethodError)

I don’t know Ruby well enough yet, so maybe I did something wrong. How do I fix this and get a simple script working?

I am sorry that no one replied. :disappointed:

This issue should be reported on the ghub repository. It appears that it is unofficial so dexter industries isn’t responsible for its bugs.