RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Web Scrapers with the upcoming scRUBYt!

There’s been another bundle of changes added to the latest edge version of the scRUBYt! web scraping toolkit. This article is likely to be the last in the introduction to web scraping series. Next will be getting into the nitty gritty with more complicated data manipulation within the scraper, and the new and very exciting scRUBYt! plugins.

Rails, meet Drupal

If you’ve been considering integrating (or replacing) your Drupal application with a Rails application, then Drupal Fu may come in handy.

Adding your extended info as a comment here instead: ** It’s pretty rough…
Thanks Peter.

The power of JRuby

It’s true that I’m not the qualified guy to talk about Java’s power,as it has been 2 years since i last practiced it, but i feel like i have to communicate my thoughts to the people that didn’t give JRuby a trial yet, and why they should do so. If you never worked with Java before, then don’t panic, cause in these article i would list several reasons why JRuby is so powerful even if you don’t know anything about Java. So let’s start…

New gem for graphing gem dependencies: Gemviz

Gemviz is a new gem available on RubyForge. It takes as a input a list of gem names and outputs a graph per gem of each gem’s dependencies as reported by gem dep [gem_name], including a transitive reduction. See <a href=http://davidrupp.blogspot.com/2009/01/gem-is-born-announcing-gemviz.html>the official announcement</a> for more details.

Acts As Teapot - Rails plugin

No, it’s not April Fools yet but we thought we’d get in early this year. Acts As Teapot is a Ruby on Rails plugin that ensures your Ruby on Rails applications conform to RFC2324. Our assumption here is that your application is not a coffee pot and does not understand the Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0). Thus, if ever a BREW request or any other request with the Content-Type set to “application/coffee-pot-command” is received, the server will respond with 418 I’m a teapot.

You might want a link: http://github.com/harukizaemon/acts_as_teapot …
Thanks Haruki!

authorization

A simple and very flexible gem/plugin for rails that handles authorization. It requires you to write your own “authorized?” method on your User model (or whatever class you’re authorizing) which allows it to work with ANY type of permissions architecture. http://github.com/shuber/authorization.

This one’s also pretty good: Base Auth - a tutorial to do authorization in Rail…

Your opinions on the Rails / Merb merger are needed!

Someone I know is writing a feature on the Rails / Merb merger for the 2nd issue of The Rubyist (Ruby magazine). He/she will be interviewing several people but also wants to get a general community feel for the opinions surrounding the merge. So, say anything you want here on RubyFlow, get it all off your chest (extreme, intelligent, thoughtful, or otherwise) and you could be quoted and get your name in a shiny magazine article! (If you don’t want to be quoted, make sure you make that clear in your comment..)

1) DHH tells people to go fuck themselves, too. 2) “we can even tell DHH to go …
I saw an interesting tweet the other day: Rails was the thesis, Merb the anti…
^^ There you have your quote, Peter ;)
It’s not for me, but my contact will be very happy with this :) Thanks everyone…

Remarkable 2.1.4 - Simplifying tests for trivial things!

“For a long time I was evangelizing Shoulda at Surgeworks and used it in my personal projects. The fact is, I didn’t have much success in convincing my co-workers to adopt Shoulda. On the other hand, they managed to convince me to learn and use RSpec. I got to like RSpec more and more, so I decided to adopt it as my official testing framework from now on. But I can no longer live without the resources that Shoulda offers me. So I decided to scratch my itch.” Remarkable

Initial post wasn’t descriptive.
Looks like it’s tailored to Rails users. It’s not a general Ruby testing framew…
Would Probably use it if it were less rails centric.

Remove leading and trailing blanks from attr vals in Rails models

Somewhat like nillify_blanks, stripper converts blank field values to nil. However, it also removes (ie strips) leading and trailing blanks from the value first. Another distinction is that it performs this stripping whether or not the column allows nulls–I’m from the school that believes an empty string makes no sense as the value for a column marked as NOT NULL :).

It should be noted that some RDBM’s automatically convert empty strings to NULL…
No, MySQL doesn’t. I don’t know if it’s configurable to do so, although I’d per…
The only database that I’m aware of that does is Oracle and, ironically, I don’…
I’m glad Oracle does it. It annoys the Java “programmers” at work to no end bec…

How to use Sinatra (and other band members) to build an iPhone message tracker

There’s an article over at Technetra demonstrating how to use Sinatra, Ruby and other tools to drive a mobile client like the iPhone, and integrate it with a live data source. The client side is JavaScript and CSS customized for iPhone’s Safari (but playable for testing on a desktop browser like Firefox). The server side is all Ruby and Sinatra. Sinatra sings a simple but complete Web interface tune while core Ruby plays a drum beat with the live data feed – in this case the Bluez D-BUS message stream on Linux. The article is also notable because it’s presents a good example of how to write a module on top of ruby-dbus to monitor Linux’s Bluetooth subsystem.

attr_encrypted

Generates attr_accessors that encrypt and decrypt attributes transparently. It can be used with ANY class, although you get a few more features if you’re using it with ActiveRecord. Its plugable encrypting backend makes it very flexible. http://github.com/shuber/attr_encrypted

I’ve considered writing something similar for DataMapper. But I always got stuc…
Just added DataMapper support
And Sequel support

DaemonKit - Create Ruby daemons in no time

Daemon Kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code. Using simple built-in generators it is easy to created evented and non-evented daemons that perform a multitude of different tasks. The first version, 0.1 sports a jabber generator, with the evented jabber generator coming soon. The code is still pretty much rough around the edges, and it lives over at GitHub.

Very cool.
I need this yesterday. Now that daemon generator is dead this hits the spot.…
@malcky, so did I, thats why I built it. Got too tired of setting up the same o…
Loading older posts