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.

Breaking the News: Wisper + Pub-Sub

As Rubyists, we often find ourselves trying to figure out the best way to both abstract out logic into self-contained components, as well as how to effectively send messages between objects. The publish-subscribe pattern is one solution to this problem, though it is far less common in Rails applications. This blog post looks at how to implement pub-sub in Ruby by using the wisper gem

Milestoner 1.x.x

Milestoner is a gem that provides a command line interface for Symantic Versioning of your Ruby projects. It ensures all commit messages are grouped, sorted, and added to each Git tag body per milestone so that you have an auto-documented version history of your project. These tags (i.e. releases, milestones) can be easily viewed via the GitHub releases (tags) tab of your repository (thanks to the new GitHub UI). You can also view this info from the command line via git tag --verify <your Git tag>. By wiring Milestoner into your release/publish process for each production deploy you now have a reliable way to snapshot your work and provide valuable details/debugging information for each milestone (not to mention consistent versioning). Enjoy!

Service objects with CRUD interface

Uniform CRUD interface to all of your domain objects (models and services) and why this is useful. Get rid of if @model.save redirect_to in your controllers http://undefined-reference.org/2015/12/05/services-with-crud-interface-usage.html

I like how in APIs you can make things even more DRY by raising validation erro…
I don’t really like the idea of making serivce object responsible for more than…
Alexander, it doesn’t have to violate SRP. You can create different objects for…
Loading older posts