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.
Akita's Manga Downloadr Elixir vs Ruby performance revisited
I’ve written a response to Fabio Akita’s article published 2 weeks ago comparing the performance of his Manga Downloadr implementations in Elixir, Crystal and Ruby. [more inside]
[Screencast] Playing with JSON
Some neat tips and tricks for interacting with and parsing JSON responses from an API. https://www.driftingruby.com/episodes/playing-with-json
A Slack powered music player for you and your team
To play around with Rails 5 and ActionCable I created a music player app powered by Youtube and Slack. Hosting it is free too, thanks to Heroku. [more inside]
Redis migrate to SSDB tools
Redis-SSDB-Proxy that read from redis(or ssdb) write to both use for redis <=> ssdb migration on production
Rails 5 introduces country_zones helper method to ActiveSupport::TimeZone
http://blog.bigbinary.com/2016/06/01/rails-5-introduces-helpers-for-country-zones.html
Use ES2015 with Rails today - what & how
In this blogpost I present what is ES2015, what features does it bring to the language and why setting it up with Rails stack is hard - but possible.
ToyRobot
My implementation of ToyRobot pubzzle, https://github.com/chamnap/toy_robot.
Rearmed Gem Released! - Includes Rails 4+ 'or' method
I just released my gem Rearmed. It is a collection of methods and monkey patches for Objects, Strings, Enumerables, Arrays, Hash, Dates, & Rails. One notable monkey patch it includes is an “or” method for Rails 4+. What makes this library different then other monkey patching libraries is that it uses opt-in monkey patching because you really shouldn’t be using methods you don’t know about anyways. https://github.com/westonganger/rearmed-rb
my_sql_secure tool
May be someone find useful this tool. It is made for easy db dump cleanup, if you need to do it with raw dump. https://github.com/kvokka/mysql_dump_cleanup
Spree 3.1.0 final relase is out!
We’re excited to let you know that Spree 3.1 stable final release is out: https://github.com/spree/spree/releases/tag/v3.1.0 Spree 3.1 is introducing several new features: [more inside]
Decoupling subsystems in #rails apps is hard
in Communicate via published Domain Events between Submodules video you learn one technique on how to do it
How to Create Custom Authentication Strategies With Devise and Warden
If you’ve built many Rails application, odds are high you’ve encountered the Devise gem. Devise provides several standard features we have all come to expect from modern web applications, such as logging in, securely storing passwords in a database, user tracking, and automatic session expiration. However, when you must authenticate with a new service or your company has its own authentication mechanisms (for example, an SSO portal) do avoid the temptation to design your own authentication service. Instead, follow the steps in this guide and you’ll be able to use Devise and Warden with any form of authentication. [more inside]
An easier way to manage and exec your js file in rails
Rails’s asset pipeline compiles all of js file into a single file which is executed on all pages. There has a problem, some time we want to execute selective code on specific page, but asset pipeline doesn’t support. js-namespace-rails can handle this problem by using it’s method to namespace and selectively execute certain javascript depending on which Rails controller action is active. repo: js-namespace-rails
Ruby Plus Podcast Episode 7
Listen to the latest news from Kent Beck, DHH etc Ruby Plus Podcast Episode 7
The Observer Pattern and Exception Handling
Observers are a useful mechanism of composition to set up event flows. They are designed for ‘fan out’ communication, in which multiple objects are notified when a single object changes. Many languages have implementations of the observer pattern. Ruby, for example, has a module Observable that implements the pattern
Metaprogramming in Ruby
Generating code, sending messages, asking our code questions about itself… all things I cover in an article on Metaprogramming in Ruby.
Is Rails a good fit for writing rich frontend applications?
This is a question I’ve asked myself months ago, working as a consultant for a client with a quite unique app. [more inside]