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.
Create A Simple, Self Referential Versioning System in Ruby on Rails]
Avoid the overhead of full featured auditing and versioning gems. Create A Simple, Self Referential Versioning System in Ruby on Rails
9 Places To Find Ruby and Rails Experts
Looking for Ruby or Rails experts? This 5-page guide shows you 9 places to search and attract talented and experienced experts.
RabbitMQ with Exponential Backoff
This post walks you through how to create set of queues with exponential backoff using RabbitMQ [more inside]
Wye Tech News #11
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
Building a simple WebSockets server from scratch in Ruby
What exactly are WebSockets? How do they work? In this post we’re going to answer these questions by building a simple WebSocket server from scratch in Ruby. - http://blog.honeybadger.io/building-a-simple-websockets-server-from-scratch-in-ruby/
Beware: Server-side APIs for Client-Side Rendering and Cross Site Scripting (XSS)
I did this mistake and I believe it’s a common scenario to consider: you have a Rails app, you need to quickly expose your resources as JSON APIs. You to the easy “#to_json” render so your Javascript SPA can do a quick Ajax fetch and, boom, your app is open to Cross Site Scripting (XSS) vulnerability. Learn about it and how to protect yourself right now
Resident eval - code: Ruby. Survival guide
Different methods to eval ruby code http://undefined-reference.org/2016/02/22/resident_eval-code_ruby.html
Free Jekyll Book (Beta V2) Now w/ Manuscripts (New Book Format for Markdown)
Some news / updates about the Free Jekyll Book Series. The book uses now a new book format called Manuscripts. Basically all you need is your docs (in markdown) plus a book.yml and contents.yml and - of course - a Jekyll book theme and you’re done. See it in action (still early and rough) - The Jekyll “Manuscript” (source) that gets linked into the theme via a git submodule and thanks to GitHub Pages & Jekyll results in a single-page black & white online book. Cheers. PS: There’s also a second volume for plugins & tools and a third volume for octopress 3 - jekyll’s ferrari.
Deploy your code to Dokku with Codeship
How can you setup Codeship to deploy your code to Dokku on every green build: https://buildtoship.com/deploy-your-code-to-dokku-with-codeship/
Previewing Emails in Rails Applications With the Mail_View Gem
With the gem ‘mail_view, you can easily preview emails right from your development environment. Previewing mail is important to ensure that you are sending the right email and to the right person.. Read more about Mail_View Gem
Use of the specification pattern
encapsulate business rules in a specification object rather then leaving them as scattered relics that the next engineer will have to glue together and decrypt http://teotti.com/use-of-the-specification-pattern/
Smarf Doc 1.0: Automatic Rest API Documentation
Smarf Doc spies on your existing test suite and turns it into example API documentation. [more inside]
i18n-tasks v0.9.4
i18n-tasks helps you find and manage missing and unused translations. [more inside]
DynamoDB::Migration - A simple DynamoDB migration tool
https://github.com/henrylawson/dynamodb-migration - Allows for the creation of simple DynamoDB migrations that will be executed only once against a DynamoDB database to allow you to “migrate” the schema of the database over time. This is a simple implementation for DynamoDB, similar to tools such as FlywayDB and Active Record Migrations.
Ruby Static Times News #2 Articles, Themes & More for Jekyll, Middleman & Friends
Hello, some news bytes from the (Ruby) static site builder / generator world via @statictimes: [more inside]
Rails State of Mind, Part 1
http://gmile.me/rails-state-of-mind-pt1/ – In this post I explore what resulted in me having the values I have right now. And, ultimately, how did I come to change my attitude towards developing using Ruby on Rails.
Running tests should be FAST!
Let me name you some of the worst things in world: Final season of Two and a Half Men, stubbing your toe at night, text on meme which is too small to read and test suits where you have to wait for 5+ seconds before any of your tests run. https://chasingcrazydreams.wordpress.com/2016/02/20/running-tests-should-be-fast/
Take ownership of your code!
Knowing who owns a project or section of a code base is very helpful when asking questions or requesting feedback. This gem allows developers to define OWNERS files throughout their repository to provide a human and machine readable way to determine who the maintainers are for specific files of code. https://github.com/shuber/owners
How To Convert Your Entire Project To Ruby 1.9 Or 2.2 Syntax
The new ruby hash syntax is so much more readable. This article describes converting your entire project to 1.9 or 2.2 format with a simple command. http://solidfoundationwebdev.com/blog/posts/how-to-convert-your-entire-project-to-ruby-1-9-or-2-2-syntax
The Building Blocks of Reliable Software
When solving requirements for a system, you should extract specific roles out into service objects. The lazy path is to solve problems directly where you encounter them such as in the controller, model or view (given you are using MVC of course): https://www.madetech.com/blog/the-building-blocks-of-reliable-software
Private classes in Ruby
Did you know you can have Private classes in Ruby which can help showing that the class is an implementation detail of the Unit?
How to Schedule Tasks With Ruby on Rails
When it comes to Ruby on Rails which prefers convention over configuration, a scheduler is a must. Scheduling job can be defined as “a decision process of committing resources between varieties of tasks”. It is basically a function enabling one to perform routine tasks as part of a sequence. Read more at RailsCarma Blog
An Introduction to APIs with Phoenix
Micah Woods builds a restful API with Phoenix and compare it to a Ruby on Rails API. Read more here.
Generate URL Regularexpression
I created the ruby gem which generates the regular expression for URL. Please try it and give me feedbacks! https://github.com/dtaniwaki/url_regexp
Testing aggregates with commands and events
As part of my attempt to explore the DDD world, I described some possible ways to test an aggregate in Ruby.