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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
ParseModel: An Active Record pattern for your Parse models on RubyMotion.
I just wrote ParseModel. It’s a thin syntax layer for Parse.com’s iOS SDK. Usage:
class Post
include Parse::Model
fields :title, :body, :author
end
p = Post.new
p.title = "Why RubyMotion Is Better Than Objective-C"
p.saveEventually
Helpers and Wrappers for RubyMotion
I started a collection of helpers and wrappers for RubyMotion making some ObjC APIs a bit more familiar to Ruby developers. Here is the GitHub repo feel free to watch or/and fork and send pull requests. The goal being to provide a rich library of various helpers and wrappers for educational purpose and to simply RubyMotion developers life.
Some examples of how to refactor your rails models
I just blogged how to Enhance Rails Models.
Precompile Assets Using a Git Hook
Learn how to precompile your Rails assets via a pre-commit git hook
goog - simple tool to search Google from the command line
I just launched , a simple command line tool to return an arbitrary number of pages of Google search results in plain text from the command line with a touch of color.
You should invest in Code Reading skills
Code Reading skill is important for programmers/developers. I write a summary why it is important and what I usually do myself to improve code reading skills.
Maktoub updated: newsletter unsubscribe link and improved reliability
Maktoub 0.2.3 is now released. It includes a new controller action that allows for unsubscribing as well as improved reliability when sending newsletters to a large group. [more inside]
Releasing Sandglaz's Restful API based on Rails and Devise Oauth2 Providable
Announcing The Sandglaz API with Restful interface and uses Oauth2 for authorization using Devise Oauth2 Providable. Here is the API documentation.
MacRuby on iOS - RubyMotion review
I wrote a review of RubyMotion, a new toolchain for iOS based on MacRuby.
Simple Rails 3 Login Generator
I created simple-login that is a rails 3 generator. It creates user class with signup, login, logout and password reset features. It is very simple to use and it generates routes, controller, model and view files so you can further customize. Passwords are salted and protected already.
Pry 102: Advanced Features
Give this link a click if you are interested in learning more about the advanced features of the ruby REPL Pry. Pry 102
Pkgr : Easily build a debian package out of your Rails app
I just released Pkgr, a gem that helps packaging a Rails app into a debian package (tested on Debian Squeeze for now). It’s still early days, but I’m interested in feedback.
Kata 1.1 Released
Katas are well known in the ruby community as a great way to practice the language. The kata gem provides facilities to make the practice easier. Writing a kata is as easy as writing an rspec test while taking it is a step by step process with github integration baked in. With this release you don’t have to create a new repo but instead just add the project tree to an existing one. Check it out and have a look at the code katas project for some samples to test yourself against!
Deepworld, an EventMachine-driven minecraft-esque MMO, kickstartering & launching public beta
Deepworld is a cloud-based minecraft-esque MMO that’s been under development for seven months. We gave Node.js a shot at the beginning but quickly realized EventMachine offered a much easier learning curve, not to mention a more mature ecosystem. [more inside]
directory_template gem released
I released the directory_template gem, which allows you to generate directory structures from a template, optionally processing paths (variables in the path) and contents (e.g., render ERB templates). You can write and use your own processors too (for both, path and content manipulation). This is useful if you want to template e.g. Projects, or want to build something akin to rails’ generators. The project is - of course - found on github, and the documentation is available online.
TorqueBox 2.0.2 Out
It looks like the TorqueBox project released version 2.0.2 Check Out the announcement. It smooths out some bugs and adds support for JRuby 1.7.
Check out Bloggy to add a Jekyll blog to any Rails application
Introducing Bloggy: A simple way to add a Jekyll blog to any Rails application, awesome tool.
RubyMotion brings serious Ruby development to the iOS world
You can now develop iOS applications in Ruby.
Firebase Ruby Gem Released
I just released firebase, a Ruby gem for updating your firebase apps in real time (video linked). If you love Firebase, you’ll love this gem.
SpreeConf Europe Aug 22-23 in Dublin, Ireland
The e-commerce team behind the popular Spree project is pleased to announce its first ever conference in Europe. SpreConf Europe will be held on Aug. 22-23 in Dublin, Ireland. Two full days of training and talks on Spree, Rails, Backbone and Coffeescript as well as a few non-technical talks from industry leaders.
Coding Adventures - A Ruby Newsletter
I recently decided to start a newsletter about Ruby. I’m new to working on my own real projects. It is up and running but missing one thing: you! If you would like to know what I do, subscribe here!
TaskJuggler 3.2.0 delivers improved Scrum support
TaskJuggler is a modern project management software that uses a DSL to capture all project data and features a scheduler with automatic resource load balancing. This release adds a new report type to track any task or resource attribute over time. This can be used e. g. to generate burndown charts for your Scrum project. The source code is hosted on GitHub.
Ruby tricks: Array syntax
Learn a nice Ruby trick! The Array method is a nice way to handle special cases about arrays and clean your code.
Writing MiniTest extensions
It’s pretty easy to extend MiniTest. Below I show you how to add very simple implementation of expect {}.to change {}.by(x) from RSpec, in 13LOC.
It should work out of the box on Ruby 1.9.
Upload CSV in Rails 3 and test with capybara
Again a new take on an old problem, uploading a CSV file that will alter the structure of your data and testing it with Capybara. You can read the full post on wealsodocookies