10 September 2010

The Ruby Reflector

Topic

IRB

  Source Favicon
By Matt of Tea-Driven Development 10 days ago.
Email

…what we released to our user, they'd only be able to print receipts if they knew how to use an IRB prompt. That might seem ridiculous, but we've gone a long way to solving the problem, and we could probably spike a simple script that let them do it from the command-line without much risk.

For our second iteration, we can talk to the customer about that command-line interface, then write a new implementation of VetsHelper , perhaps using some of Aruba's DSL, which goes through …

blog.mattwynne.net Read
  Source Favicon
By Assaf of Labnotes 1 month ago.
Email

Customizing IRB, 2010 edition. IRB customization with wirble , hirb , awesome_print and a few others choice libraries. What makes Iain's .irbrc so awesome is the way it handles loading of dependencies (which may or may not be available).

A few git tips you didn't know about. Guaranteed to make you a Git Ninja, or at the very least, much more productive with the command line.

Terminal Tips and Tricks For Mac OS X . Just what it says on the label.

blog.labnotes.org Read
  Source Favicon
By jeff of The Queue Blog 1 month ago.
Email

Armed Robots Deployed By South Korea in Demilitarized Zone on Trial Basis | Singularity Hub - Okay, science fiction is truly here today. Thinking of the voice activated robot sentries in Judge Dredd.

Customizing IRB, 2010 edition at Adventures with Ruby - Updated .irbrc to include a bunch of new hotness for your irb sessions

blog.thequeue.net Read
  Source Favicon
By Iain Hecker of Adventures with Ruby 1 month ago.
Email

…terminal. While I'll save my terminal customizations for another time, I'll show you my IRB tweaks in this post.

There are several tools to improve your IRB, and some of them have been around for ages. But the arrival of Bundler makes it difficult to use them. Bundler creates a bubble in which you have to specify your dependencies explicitly. Furthermore, with project specific gemsets, provided by the ever so awesome RVM , we need to install these IRB extensions …

iain.nl Read
  Source Favicon
On Eddorre.com 1 month ago.
Email

To make sure that RubyCocoa you'll need to pop open an IRB session: irb require 'osx/cocoa'

If everything has gone well, you'll see the shell return ‘true' and you're ready to install the Passenger Preference Pane

Installing and Configuring Passenger

Note: If you already had a development environment up and running, you'll need to re-install your gems into the new RVM'd environment. When installing a gem into an RVM'd environment, …

eddorre.com Read
  Source Favicon
By techarch of The "Tech. Arch." 3 months ago.
Email

So go back to your IRB session and evaluate the following statements: # Set the user name and correct password o = { :username=>'admin', :password=>'camping'}

# Post to the Sessions resource p0 = Restr.post(u0,o)

In TcpTrace you should see the request and the response containing the serialized user:

In IRB you should also see the returned user instance, deserialized from XML

7. Finish the REST Sessions controller

The remaining part of our …

blog.monnet-usa.com Read
  Source Favicon
By techarch of The "Tech. Arch." 3 months ago.
Email

For our first test consumer will use IRB, so open up a session and let's define 3 variables for: url of our provider, key and secret (use your own values) of our registered consumer: @ site={:site=>"http://localhost:3301"} @ mykey="SQnIXDQyhFB5q3wfZyMY" @ mysecret="PmW02FNs7rXG97sAVXMWhFoJVZ98cnj21vv6p1ad"

Now let's require oauth and let's instantiate an OAuth consumer: require 'oauth' @ consumer = OAuth::Consumer.new(@mykey,@mysecret,@site) …

blog.monnet-usa.com Read
  Source Favicon
By Robert Klemme of Ruby Best Practices 3 months ago.
Email

…demonstrated with this simple toy example. (Also, you can easily follow by copying and pasting the code to IRB and play with it.)

What do you do once you discover that you also have to apply the same formatting to a Set in a different location of your program? Right, you make it a function and write something like: def format_list(enum) puts "<ul>" enum.each do |x| puts " <li>#{x}</li>" end puts "</ul>" end

In other …

blog.rubybestpractices.com Read
  Source Favicon
On RubyFlow - Search for jruby 3 months ago.
Email

It was very easy to get a Ruby on Acid demo script for Ruboto 0.2 ( JRuby / IRB for Android) up and running on an emulator and then on my phone itself. Follow the link for code and a screenshot.

rubyflow.com Read
  Source Favicon
On Opscode Blog 4 months ago.
Email

Also in this release, we've fixed a bug where IRB would try to parse shef's command line options, and made rspec and cucumber optional when installing chef from source. It should be much easier to ride the edge, if you so choose.

We are also releasing Ohai 0.5.4. We were so busy getting our last release out the door that we didn't take time to announce all of the improvements in Ohai 0.5.2, so I'm going to talk about the improvements in both releases. The MVP for this …

opscode.com Read