Ruby is a dynamic, general-purpose high-level programming language, with an object-oriented style. There are many implementations of Ruby, including Ruby-on-Rails, a web app framework using Ruby.
Questions tagged [ruby]
40 questions
19
votes
9 answers
How can I protect software on the Pi for commercial use?
I would like to use the Raspberry Pi in a commercial product, but I would like to prevent reverse-engineering of the software on the device. The software in question would be written in Ruby. I assume that the end-user has physical access to the SD…
Schrockwell
- 293
- 1
- 2
- 6
13
votes
2 answers
Setting up a Ruby on Rails Server
I am thinking of buying a raspberry pi, because I want to host a personal website. I am using a UK Internet provider (Virgin Media), and I want to use my internet connection to allow access to my website!
I have found quite a few resources for…
user5536
- 131
- 1
- 1
- 3
9
votes
2 answers
How to install Ruby >= 2.1.9?
I tried sudo apt-get install ruby but it will install Ruby 2.1.5.
How could I install version >= 2.1.9 ?
Van Tr
- 324
- 2
- 3
- 11
5
votes
4 answers
Sonic Pi, defining my own classes
Just a bit of background information, I'm a Ruby developer, and familiar with Object Orientated techniques. I've also got a history of playing with code and music, a long-running hobby. I'm getting used to Sonic Pi, but I'm having some difficulty…
AJFaraday
- 153
- 5
4
votes
1 answer
How to install pre-compiled Ruby 2.0 on Raspbian?
I am usually recommend to people who want to install Ruby to use something like RVM or rbenv (my preference). However, I'm in the process of installing Ruby from source (using rbenv) and it has taken over an hour and still isn't finished. I'm just…
Andrew
- 432
- 2
- 4
- 11
4
votes
1 answer
ruby and selenium-webdriver -> Address family not supported by protocol - socket(2) (Errno::EAFNOSUPPORT)
I want to run a ruby script on my Raspberry Pi. I've installed ruby via rvm. I'm sure, i'm using the right version:
$ rvm current
ruby-1.9.3-p194
when i run my script, then i get following:
./test.rb…
cupakob
- 1,057
- 3
- 13
- 17
3
votes
2 answers
chromedriver and selenium-webdriver -> unable to connect to chromedriver http://127.0.0.1:9515
I wnat to run a ruby code with the selenium-webdriver on my raspberry pi. I've installed chromium-browser via apt-get. Ruby and selenium-webdriver are also installed. I've created a symlink for the chromedriver:
ln -s /usr/bin/chromium-browser…
cupakob
- 1,057
- 3
- 13
- 17
2
votes
0 answers
Ruby - I2C - pi_piper - How to use 4x20 LCD display? - HD44780 with PCF8574 converter
Anyone know how I can get use pi_piper gem to use 4x20 LCD display (hd44780) with I2C converter (PCF8574). I'm totally noob in this part of programming.
I tried using ruby-i2c-devices gem, but hd44780 driver didn't work.
Any one know where I can…
BenyL
- 21
- 2
2
votes
0 answers
Watch for GPIO button while running a timer
I've built to build a timer that shows the content in a 16x2 LCD.
So far so good. Now, what I want to achieve is that when I push a button, pause the timer.
I'm using ruby, with the library rpi_gpio and
This is my code:
require 'rpi_gpio'
require…
JV Lobo
- 121
- 2
2
votes
1 answer
Install Ruby for root
I installed ruby using rbenv but after several attempts I don't manage to make the root user see the ruby bin.
I installed rbenv under /var/opt/rbenv
This is the content of /etc/profile.d/rbenv.sh:
export RBENV_ROOT=/var/opt/rbenv
export…
Balzard
- 121
- 1
2
votes
2 answers
ruby on rails in RPI
I want to control my RPI from my phone, so I decided that the RPI will host a site. I'm familiar with ROR and I saw that there is GPIO gem (pi piper).
Should I work with ROR or learn Django and use python's stable module instead?
Eric
- 21
- 2
2
votes
1 answer
Intermittent access errors when writing to GPIO using SYSFS and Ruby
I am using Ruby to drive output GPIO pins using the old SYSFS pseudo-filesystem interface, and am regularly encountering intermittent Errno::EACCES: Permission denied @ rb_sysopen errors.
My user is a member of the gpio group. The pseudofiles…
Dan
- 125
- 6
2
votes
3 answers
How to build Ruby 2.7.x/3.0.x on Raspberry Pi4?
I'm trying to install Ruby version 2.7.x or 3.0.x using rvm on a Pi 4. The make process fails compiling the file coroutine/arm64/Context.S
assembling coroutine/arm64/Context.S
coroutine/arm64/Context.S: Assembler…
Steffen Roller
- 161
- 6
2
votes
1 answer
lxterminal login shell
Hi I'm trying to run rvm on my raspberry pi but keep getting the error rvm is not a function when I use the command in LXTerminal:
rvm use 2.0.0
It gives an error saying I should use a login shell. So my question is how can I get a login shell on…
Jaap Wijnen
- 121
- 2
1
vote
0 answers
Ruby gem gosu not installing, what's wrong
I am using a Raspberry Pi B 2 running Rasbian. It came with Ruby preinstalled on the card. I would like to install the ruby gem Gosu, but even with the internet working it still won't download and install the gem.
Fetching: gosu-0.13.3.gem…
Mooshroom14
- 313
- 2
- 3
- 12