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.
Rails system tests with RSpec
A quick guide on how to set up system specs (introduced in RSpec 3.7) and why system specs, based on Rails 5.1 system tests, are now recommended way over feature specs for full-stack application testing.
tulipmania - tulips on the blockchain; learn by example from the real world (a. 1637)
Hello, I’ve published a new ruby command line tool (and core library) called tulipmania. Let’s welcome tulips on the blockchain! Learn by example from the real world (anno 1637) - buy! sell! hodl! enjoy the beauty of admiral of admirals, semper augustus, and more; run your own hyper ledger tulip exchange nodes on the blockchain peer-to-peer over HTTP; revolutionize the world one block at a time. Cheers.
Ruby 2.5 - What's News? An Awesome Collection About Ruby 2.5 News
Hello, over at the Ruby Advent Calendar 2017 I’ve added a new page Ruby 2.5 - What’s News? that collects articles, posts & more about ruby 2.5 news bytes. Happy hacking with Ruby 2.5. Great to see (in benchmarks) that ruby 2.5 is running faster and faster and much more. Cheers.
New Features in Ruby 2.5.0
On this post, I’d like to do a quick rundown of the features that I’ve found most interesting. [more inside]
A Better Time with Rails url_helpers
This post compares calling Rails.application.routes.url_helpers directly vs. including it in a class. TL;DR calling it directly is pretty slow.
Clear your sidekiq queue when seeding your database
A quick tip on clearing your sidekiq queues when seeding your database: http://www.jvanbaarsen.com/blog/2017/12/28/clear-your-sidekiq-queue-when-seeding-your-database.html
Benchmarking Ruby 2.5.0, 2.4.3 and 2.3.6
I did a small real world benchmark last year before Ruby 2.4 came out - and since Ruby 2.5.0 is out now I expanded the benchmark to include it. Tl;dr: Ruby gets faster 😊
Writing C and Sharing Memory... in Ruby!
In this episode of “Doing terrible things in the name of science” we will look into how we can write C extensions for Ruby. This would be pretty harmless… so… we will look into sharing memory between two Ruby processes and two-way communication. Of course, this could be separate processes, separate forks, you name it! https://blog.rebased.pl/2017/12/27/writing-c-and-sharing-memory.html
Ruby 2.5.0 upgrade remarks
An article that describes what to expect during the upgrade and what errors you might encounter. Ruby 2.5.0 upgrade remarks
The aesthetics of Ruby - Kernel#itself method
Recently, I’ve had quite a popular problem to solve: count the occurences of the given item in a collection. There are few ways to solve this problem - starting from using Enumerable#inject or Enumerable#each_with_object with an empty hash as an accumulator value and writing a code looking like this: [more inside]
Checkout whats new in Ruby 2.5
https://blog.redpanthers.co/whats-new-ruby-2-5/ [more inside]
Day 25 - Ruby Advent Calendar'17: officetxt - The Writer's Command Line Tool Suite
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s wrap-up the series on the last Day 25 with officetxt - Write notes, articles, journals, presentations, websites, blogs, manuscripts, books & more; the free writer’s command line tool suite works w/ any text editor; uses future-proof text formats. Happy coding with Ruby 2.5! Cheers. Prost.
DuckRecord - ActiveRecord without DB to easy build virtual model
DuckRecord is a fork of ActiveRecord 5.0 and removed all Arel and DB-related things that aim to provide a powerful infrastructure for virtual model (a class which conforms ActiveModel’s protocol and not backed by a database),
DuckRecord also support embeds_one and embeds_many association just like Mongoid does. There’s a dynamic form app demo shows how virtual model pattern (with many my practice) with ActiveRecord’s serialize can introduce NoSQL experience to traditional Rails-stack app.
Day 24 - Ruby Advent Calendar'17: centralbank - Print Your Own Money / Cryptos
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 24 with centralbank - Print Your Own Money / Cryptocurrency.Run Your Own Federated Central Bank Nodes on the Blockchain Peer-to-Peer over HTTP. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too! Last chance.
Day 23 - Ruby Advent Calendar'17: beerdb - Serve Yourself Beer & Brewery Data in JSON
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 23 with beerdb - Serve Yourself an Irish Stout, Vienna Lager or Bamberger Rauchbier as JSON. Free home (computer) delivery with Sinatra-like webservice library and route matching with mustermann. Cheers, Prost, Kampai, Na zdravi, Salute, 乾杯, Skål, Egészségedre! PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Cryptos, Cryptos, Cryptos - New Awesome Crypto Page @ Planet Ruby - Contribs Welcome
Hello, I’ve started a new Awesome Crypto Page @ Planet Ruby that collects crypto goodies about cryptocurrencies and blockchains, public key infrastructure (pki), merkle trees and more. Anything missing? Updates more than welcome :-). Cheers.
pry-larrify v1.0.3 released
Larry is a plugin for the Pry repl that measures the duration of code (and optionally, Pry commands!) you enter during a Pry session. No manual interaction required. The measurement of time is wall clock time. Almost everything about Larry is configurable.
Day 22 - Ruby Advent Calendar '17 - datapak - Work w/ Tabular Data Packages in SQLite
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 22 with datapak - Work with Tabular Data Packages (.CSV Files w/ datapackage.json) Using In-Memory SQLite (w/ ActiveRecord). All about open data, frictionless data, tabular data packages, core (open tabular) datasets and much more. Happy reading & querying. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 21 - Ruby Advent Calendar '17 - sportdb - Ready-to-Use Football Models & Readers
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 21 with sportdb - Read in Your Own Sport (Football) Datasets in (Structured) Text into any SQL Database (SQLite, PostgreSQL, …); Fire Up or Write Out (Static) HTTP JSON APIs and Much More. World Cup - English Premier League - Spanish La Liga - Austrian Bundesliga :-) and Much More. Happy reading & writing. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 20 - Ruby Advent Calendar '17 - eventdb - Build Your Own Live Calendars
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 20 with eventdb - Build your own what’s on / what’s up event calendars from (awesome) READMEs in (structured) text. Happy reading & writing. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Modern Front-end in Rails 3 (it's a wrap)
The last part of the tutorial on modern front-end in practices in Rails. Using Action Cable as npm package, deploying “Sprocketless” Rails application to Heroku. In a three-part beginner-friendly guide (Part 1, Part 2) we learned how to move away from Asset Pipeline, fully embrace Webpacker and organise front-end code around the idea of “components” using mostly built-in tools, without relying on external frameworks.
Ruby Conferences in 2018 - Updating Awesome Events @ Planet Ruby - Are We Dead Yet?
Hello, I’m updating the Awesome Events Page @ Planet Ruby that collects meetups, camps, (un)conferences and more. Anything missing? Updates more than welcome :-). Are we dead yet? Any conferences upcoming in 2018? Let us know. The first batch of updates gets added to the Ruby Advent Calendar 2017. Cheers. Prost.