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.
Hello, Pluto - A Ruby Gem That Lets You Build Planets
To celebrate the successful flyby of Pluto by NASA’s new horizons spacecraft - allow me to highlight a little (unknown) Ruby gem named pluto - in honor of the (formerly) smallest planet. Try $ gem install pluto What’s it good for? Try $ pluto help Resulting in: [more inside]
Ruby value objects
Using ruby value objects for Domain Objects why talking in domain language is preferable to communication in the language of ruby constructs http://insights.workshop14.io/2015/07/15/value-objects-in-ruby.html
How to Test Ruby Projects on Windows
As a gem author, it is easy to overlook that – gasp – some Rubyists use Windows. Does my gem even work on Windows? If I don’t regularly use Windows, how do I check? The good news is I found an easy (and free) way to set up Windows-based CI that does this check automatically. Here’s a quick tutorial.
A web server vs. an app server
When you research how to deploy your Rails app, you’ll see a lot of names: Apache, Unicorn, Puma, Phusion Passenger, Nginx, Rainbows, and many more. Some are “web servers,” and others are “app servers.” But what’s a web server, and how is it different than an app server? Can you use one without the other? And where does Rack fit in?
Ruby’s case statement – advanced techniques
Nothing could be simpler and more boring than the case statement. It’s a holdover from C. You use it to replace a bunch of ifs. Case closed. Or is it? Actually, case statements in Ruby are a lot richer and more complex than you might imagine. Let’s take a look. http://blog.honeybadger.io/rubys-case-statement-advanced-techniques/
Risk Management and the Development Process
While developing your product, you will encounter several risks that will impede progress and therefore result in lower throughput from your development team. [more inside]
Deploying a Crystal application to Heroku
Crystal is a typed, LLVM compiled language that reads (mostly) as Ruby. It’s a modern language that comes bundled with support for WebSockets, OAuth and other niceties. [more inside]
Dr. Jekyll’s Themes - (Yet Another) Static Site Theme Directory
Hello, I’ve put together (yet another) alternative Jekyll themes site called Dr. Jekyll’s Themes. The site is - of course - powered by Jekyll (using the “new” datafile machinery), see the Source @ GitHub. Questions? Comments? Welcome. Cheers.
Generational Garbage Collection in Python and Ruby
Pat Shaughnessy shows how Garbage Collection works differently in Ruby and Python. [more inside]
Running a Rails Development Environment in Docker
Use your Docker-based infrastructure for development, not just for running tests. Learn how to move simple Rails applications into Docker during development. [more inside]
Importing Data with ROM and Transproc
Here’s a blog post describing how you can import data to a relational database using Ruby Object Mapper and Transproc gems
Opal on Rails: Replacing CoffeeScript with client-side Ruby
Hi, I wrote a blog post about opal and rails. I hope you interested. http://blog.elpassion.com/opal-on-rails-coffeescript-ruby/
@rubycalendar - (Yet Another) Ruby Conference Calendar Alternative
Hello, I’ve started (yet another) Ruby conference calendar alternative. The new @rubycalendar twitter account follows all Ruby conferences (and some meetups) - so far 91 and counting (listed on the planetruby/awesome-events page). I try to retweet new conference announcements from time to time. Follow along. Cheers.
How unicorn talks to nginx – an introduction to unix sockets in Ruby
In this post we start out with the basics of unix sockets and finish by creating our own simple Ruby application server which can be proxied by nginx. http://blog.honeybadger.io/how-unicorn-talks-to-nginx-an-introduction-to-unix-sockets-in-ruby/
How I upgraded my Ruby with Contracts
Make your ruby code safer with Contracts http://julienblanchard.com/2015/contracts-with-ruby/
How to Maintain a Healthy Development Backlog
When building a new product or upgrading software, you need to prioritize your wants and needs and maintain a healthy development backlog. [more inside]
Realtime Twitter Clone Demonstrating Volt Framework Authorization / Authentication
In Episode 9 I build a basic twitter clone to demonstrate how you can use permissions and authorization in Volt apps.
Writing Smart Migrations: References, Reversible, And Indexes
Building a new feature usually means having to restructure the architecture of your application. In other words: writing a lot of migrations to modify your schema. This blog post looks at how to use references, reversible, and indexes to write smart migrations, and make things easier for developing your application in the long run.
Migrating a test suite from RSpec to Minitest
Over the weekend I migrated the test suite of a gem from RSpec to Minitest. Here’s how it went.
What's your Rails default stack?
You could create a custom Rails template that meets your preferences to speed up your setup. Or you can use another stack that’s not an exact match, but get’s the job done.
Creating generators and executables with Thor
Thor is an amazing library for creating generators and executables. It gives you methods for creating and copying files and directories, defining symbolic links, reading remote files, and more. And is the perfect companion for gems that need to generate a project structure, just like Rails. Check it out.
Butter: A modern blog alternative for Rails
Butter is a modern blog alternative to help save companies built on Rails from Wordpress and Tumblr. Butter (also a Heroku add-on) comes packed full of SEO goodness and allows your blog to live on your main domain. [more inside]
JSON-less JSON schemas with rspec
Writing test’s to ensure that your end points and serialiser’s return the correct response can feel cumbersome and verbose. In this article I stand on the shoulder of giants and leverage the beauty of ruby to make Json Schema’s nice to write and work with. Check it out at Pursuit of Clean
Handmade Rails presenters
The presenter pattern is one possible way to move logic from your views into a place where it’s not only better suited, but can also be reused. In this article, I want to offer a lightweight implementation that both explains some specialties when used with Rails helpers and doesn’t need any external dependencies. https://christoph.luppri.ch/articles/2015/07/04/handmade-rails-presenters/
awesome-websockets - A collection of Ruby websocket servers @ Planet Ruby
Hello, I’ve started (yet) another awesome list on Planet Ruby. The new awesome-websockets page collects Ruby websocket servers e.g. em-websocket, faye-websocket, actioncable, etc. Anything missing? Contributions welcome. Cheers. PS: You might also check the related awesome-webservers page.