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.
Paper Trail Gem: Track Changes to Your Models’ Data
Howdy, today I am going to talk about the versioning. How to specifically version your models? So wondering what I am talking about? What is that versioning and my models? [more inside]
Performance and stability in capybara tests
If you’ve got flaky or very slow UI tests this is the post for you. I gathered a number of sources and improvements and combined them into a set of suggestions for performance and stability and how a new gem intransient_capybara implements much of this for you. Your tests will never be the same! [more inside]
hexapdf 0.2.0 released - PDF file merging, ...
The hexapdf CLI gains support for PDF file merging, page interleaving and page step values; various improvements and bug fixes for the HexaPDF library - see the announcement.
[Screencast] Redis Basics
Redis within a Ruby on Rails application has many benefits. Learn to interact with Redis Server and set it up for caching within your application. https://www.driftingruby.com/episodes/redis-basics
On Structuring Rails Applications, Part II
When models and controllers are supposed to be skinny, Rails clearly lacks a place to put all the extracted code. While there is a variety of different approaches, we like to keep it simple, stupid. Read more on structuring rails applications in this second part of our blog post.
released heyupdate-ruby
heyupdate-ruby brings activity/progress reporting to your Ruby and Rails apps. What integrations are you going to build next?
rufus-scheduler 3.3.0 released
I just released rufus-scheduler 3.3.0. It’s a 3.3.x release since its timezone handling has been reworked.
Managing DB Schema & Data Changes
Policies to help teams manage Rails migrations, separating schema and data changes. As a team grows and the gotchas of DB changes get harder with scale, these policies help keep our team sane. DB Schema & Data Change Policies
CardsLib 0.2.2 released!
CardsLib is arguably the “smartest” OO card game library. This update includes adding custom card ranking in deck creation and a code example on how to implement the game “High Card”.
Clone Your Heroku DB Into Development
I’ve released a gem to easily clone your Heroku app’s database into your development environment. It makes troubleshooting production bugs a breeze. http://blog.nrowegt.com/heroku-db-restore-gem-release/
PDF Object Representation in HexaPDF
To work with PDFs using a library means that you need to understand at least the part of the PDF specification that is about the PDF object system. This post will introduce this part and then look at how HexaPDF implements it.
The Double Splat Operator
Did you know about the double splat operator? Did you know you can use them in a method definition?
Using PostgreSQL instead of Rails to generate JSON
Generating JSON is a main requirement for many modern day web application, but Ruby is not the fastest way to generate JSON. But fortunately for us we can let the database return our result in JSON itself. This article gives a basic introduction to creating JSON responses from the database itself. [more inside]
Dante2 Editor
Dante II is a complete rewrite of DanteEditor, The medium editor clone. This version is built on top of Facebook’s Draft-Js and reaches all Dante’s features with a shiny ultra mega super uber maintainable React architecture. See the demo at: https://michelson.github.io/dante2/ [more inside]
Video & Slides: Elixir & Phoenix – fast, concurrent and explicit
The video of the talk I gave at Rubyconf Portugal is online along with the slides. It’s a look at Elixir & Phoenix focusing the explicit part of the title. Namely, how do Elixir and Phoenix make my programming life better apart from just raw speed? The talk is aimed at a ruby audience, so likenesses and differences are shown in this overview talk. Hope you enjoy it :)
Thredded v0.9
Thredded, the best Rails forums engine, has just released v0.9.1. This release adds a notifications plugin system (Pushover! Slack!) and many UX improvements. [more inside]
Refinery CMS 3.0.5 Released
Refinery CMS 3.0.5 has just been released by Philip Arndt. You can read the changelog which has GitHub ticket numbers assigned for each entry in case you want to dive deeper. [more inside]
Jekyll in Action - Inside the Travis Foundation Site - foundation.travis-ci.org
Hello, from this week’s Vienna.html (Jekyll User Group) meetup - the talk / slide notes from Laura Gaetano about getting started with building a (static) website with Jekyll using the Travis Foundation Site as an example. Tips on themeing, datafiles and using the magic of Sass and more. See Jekyll in Action - Inside Travis Foundation. Happy publishing w/ Jekyll. PS: For reference - the site: foundation.travis-ci.org and the (open) source: github.com/travis-ci/travis-foundation.
Ruby Facets is back with a Ruby Tapas surprise
After a life-induced hiatus, Ruby Facets is back with exciting Ruby news and a neat surprise for Ruby Tapas aficionados.
How to Write a Port Scanner in Ruby
A great exercise to learn about TCP/IP & Ruby network programming. http://www.blackbytes.info/2016/11/port-scanner-in-ruby/
HOWTO integrate Google Calendar with Rails
Learn how to integrate Google Calendar into your Rails application using the v3 Google Calendar API, Google’s OAuth 2.0 flow for web applications, and version 0.9 of the google-api-client gem: http://readysteadycode.com/howto-integrate-google-calendar-with-rails
Ruby 2.4 introduces liberal_parsing option for parsing bad CSV data
An article on Ruby 2.4’s feature to parse CSV data which have unescaped double quotes: http://blog.bigbinary.com/2016/11/22/ruby-2-4-introduces-liberal_parsing-option-for-parsing-bad-csv-data.html