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.
Getting started with Distributed Ruby (DRb)
The Ruby stdlib contains a little known library called dRuby, which allows multiple Ruby processes to talk to each other over the network. Find out how you can use druby for distributed computing: http://nithinbekal.com/posts/distributed-ruby/
Cleaner RSpec examples and failure messages
Some examples on how to write concise specs by taking advantage of RSpec’s built-in matchers, and a way to get less failure message spam. Read the post
Practical Rails Projects and Delivery Timelines
We’ll review the types of projects you’ll be able to create, and how long it might take to complete your project in this article: Practical Rails Projects And Delivery Timelines
Book published: Trailblazer - A New Architecture For Rails
Trailblazer brings a high-level architecture for building web applications. By introducing operations, forms, callback and policy objects, representers and more, software gets better structured, faster and testable. [more inside]
Introducing activejob-retriable: Automatically retry failed jobs with an exponential
This gem aims to mimic most of the functionality of Sidekiq’s RetryJobs middleware. [more inside]
Wye Tech News #2
Here is the second 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.
Gem 'ryakuzu' - interface for schema.rb
Ryakuzu may be useful, when you need to quickly change the name/type of columns, and tables, or remove/rename it. Ryakuzu provides simple CRUD operations on your schema.rb and starts the migration for you. All temporary migration files are automatically deleted after migration. https://github.com/ID25/ryakuzu
How to connect to databases with different schemas with Sequel and Roda
Minimal example of how to connect into multiple databases with different schema inside one Roda app using Sequel
Tocer 1.0.0
Tocer (a.k.a. Table of Contenter) is command line interface for generating table of contents for Markdown files. This is a great tool for adding to your build process to ensure documentation is never out-of-date. If you happen to be using Gemsmith for new gem creation, it has built-in support for Tocer. Enjoy!
Create Visual Magic with Bootstrap Gem
Bootstrap is a framework that makes it easy for a developer to create a nice design for an application or a website. The framework also comes with JavaScript, making it easier to create scroll spies, accordions, modals and popovers. The bootstrap gem also has a solid, thorough and easy to understand documentation providing example codes for most, if not all of the components that Bootstrap provides. Read more at RailsCarma Blog
Rails, Secure Cookies, HSTS and friends
In this article I review the motivation and the internals of some interesting security features in Ruby on Rails. Read more here.
Stripe on Rails 4.2.5 and RSpec 3.4
Stripe sample Rails 4.2.5 project with the features: [more inside]
Ruby gem "cards_lib" 0.2.0 released!
Arguably the “smartest” library available in Ruby for designing and creating your own card games. With features such as [more inside]
Ensure you understand ensure
Did you know that ensure gets executed every time you leave begin block regardless of exceptions? http://undefined-reference.org/2015/12/13/ensure-you-understand-ensure.html
Ruby: Arrays by Example
Showing various ways of getting things done with Arrays. http://6ftdan.com/allyourdev/2015/12/12/ruby-arrays-by-example/
Vanilla UJS
Basically it’s just about “to get the UJS features without jQuery”. These days we don’t really need jQuery in every webapp. Firstly, browsers becomes much more friendly about API (we have native querySelector and XHR2 now) and CSS (cool animation without any JS). Secondly, we don’t really want old-style apps, cause we have sockets (push notifications) and angular-like systems and other stuff. [more inside]
Transforming Hashes: A Refactoring Story
So many things are easy in Ruby. Transforming a complex hash is not one of them. I’ve yet to find a silver bullet for mapping complex hashes, but some approaches are better than others. Let’s take a look at how I got from bad to ugly to good enough.
Guide to 2016 Ruby Conferences / Camps @ Planet Ruby (Tip: Try $ rubyconf)
Hello, I’ve updated the Ruby Conference calendar for 2016. The Ruby Conference calendar is sourced by the awesome-events page @ Planet Ruby. Anything missing? Contributions welcome.
Tip: Use the $ rubyconf command line tool (bundled with the whatson gem) to get latest news e.g.:
Dealing with Common Capybara Feature Test Failures
Learn how to minimize wait time for the pdf file loading on the web browser and other common issue with Capybara 2.5 using Rspec 3.3.2 and Rails 4.2.5 projects : Dealing with Common Capybara Feature Test Failures
Rails 5 Basics : Restricting Operations
Learn how to use http basic authentication in the twelfth chapter of Rails 5 Quickly book onlie : Restricting Operations
Code Ruby like you build Lego
Split your app based on business logic bricks and assemble them [more inside]
Query traces
Sometimes you just can’t tell where SQL and cache requests come from. But then, using more gems, you can: http://www.be9.io/2015/12/11/query-traces/
Monitoring services and adapters in Rails with Honeybadger, NewRelic and #prepend
The bigger your app gets the higher chance that it will need to integrate with multiple of external services, providers and APIs. Sometimes they work, sometimes they don’t. Sometimes it doesn’t matter when they are down or behaving problematically. Sometimes it costs your clients money. [more inside]
phoenixbricks
Rails bricks in a new name https://rubygems.org/gems/phoenixbricks . Please contribute if you can.