sudo gem install -v=2.0.1 rails --include-dependencies
Ruby, Ruby on Rails
Showing posts with label ruby gem. Show all posts
Showing posts with label ruby gem. Show all posts
Thursday, January 3, 2008
Tuesday, December 11, 2007
My First RubyGem
I rewrote and converted one of my old sourceforge projects from C++ to a Ruby Gem:
http://delaycalc.rubyforge.org/
Nothing too earth shattering, but it's certainly nice to get an open source project on Rubyforge....
If you need to calculate delay times for digital delay processors for a given bpm, then please give it a go:
$ sudo gem install delaycalc
http://delaycalc.rubyforge.org/
Nothing too earth shattering, but it's certainly nice to get an open source project on Rubyforge....
If you need to calculate delay times for digital delay processors for a given bpm, then please give it a go:
$ sudo gem install delaycalc
RubyGem - HighLine
I was looking for a way to prompt a user for input on the console and ran across the RubyGem HighLine. It does a lot more than this, but here's how to capture STDIN from the console:
Here's the output on the console:
Get it here:
HighLine
or simply install the gem the normal way:
$ sudo gem install highline
#!/usr/local/bin/ruby
require 'rubygems'
require 'highline/import'
username = ask("Enter your username: ") { |q| q.echo = true }
password = ask("Enter your password: ") { |q| q.echo = "*" }
Here's the output on the console:
$ ruby highline.rb
Enter your username: doug
Enter your password: ******
Get it here:
HighLine
or simply install the gem the normal way:
$ sudo gem install highline
Subscribe to:
Posts (Atom)
About Me

- Doug Sparling
- Developer (Ruby on Rails, iOS), musician/composer, Buddhist, HSP, Vegan, Aspie.