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.
New Org! CryptoCopycats (& Collectibles) - Unique Bits & Bytes on the Blockchain!
Hello, I’ve started a new (github) organization - CryptoCopycats (& CryptoCollectibles) - Unique Bits & Bytes on the Blockchain! to collect open source tools in ruby (incl. copycats, bitcat, base32-kai, etc.) for CryptoCollectibles incl. CryptoKitties and friends. The future is meow. Cheers. Prost.
Ruby + Herança
Não sabe Ruby e quer aprender? Vem comigo ! No post de hoje, falei sobre a implementação de herança em Ruby, vai la ver! [more inside]
Code editors for Mac (II)
I continue with this series analyzing the code syntax and file detection.
Karafka framework 1.2 Release Notes - 3 times faster and with a more consistent API
New Karafka framework version is already available at RubyGems. In this article I describe new features, changes and some details on how we were able to reach possibility to process around 50k messages per second.
Ruby Conferences ‘n’ Camps in 2018 @ Planet Ruby Updated - What's Upcoming?
Hello, some new ruby conference ‘n camps added to the 2018 calendar @ planet ruby include ++ Ruby Open Source Software (ROSS) Conf Amsterdam (FREE) - May/11+12 (2d) Fri+Sat @ Amsterdam, the Netherlands ++ Gotham Ruby Conference (GoRuCo) - Jun/16 (1d) Sat @ Manhattan, New York City ++ Southeast Ruby - Aug/2+3 (2d) Thu+Fri @ Nashville, Tennessee ++ European Ruby Konference (EuRuKo) - Aug/24+25 (2d) Fri+Sat @ Vienna, Austria ++ Note: For the latest updates subscribe to the web feed (in XML or JSON). Cheers.
Ruby Event Store - use without Rails
Yay! You can now use ruby_event_store without Rails easily. Start publishing and storing your events from non-rails apps and scripts today. Bonus feature: use protobuf for events serialization
Phusion launches Fuse Panel, GUI for Passenger
Today Phusion launches the Fuse Panel, a graphical user interface for Passenger, introducing a much-requested feature: per-application log splitting. Whether you’re running Passenger open source or enterprise, the Fuse Panel’s aim is to provide tools to monitor, administer, analyze and troubleshoot your apps. [more inside]
WhereChain extension gem
Stop writing Post.where('comments > ?', 10), write Post.where.gt(comments: 10) instead! GitHub repository [more inside]
Rails ActiveRecord SQL queries log beautifier
Works with pure Ruby 2.2+ and with Rails 4.0+ [more inside]
The Comparable mixin
The Comparable mixin is part of the Ruby core. It’s used by classes that can be compared. [more inside]
How to Deploy Rails Applications With Ansible, Capistrano and Semaphore
I wrote a tutorial on how to use Ansible to orchestrate a server, deploy a Rails application to it with Capistrano, and set up continuous integration with Semaphore. [more inside]
The Definitive Guide To Time Complexity For Ruby Developers
Time complexity is one of the most interesting concepts you can learn from computer science. Read the full article:
Elapsed time with Ruby, the right way
Elapsed time calculations based on Time.now are wrong. Learn why they are wrong and how to fix them.
Passenger 5.2.2 released: passenger_base_uri fixed + NEW Phusion product spoiler
Passenger 5.2.2 was released, fixing a passenger_base_uri regression, adding internal tooling AND hinting a new & free Phusion product to be launched very soon:
Capistrano deploy to ubuntu with systemd, nginx/puma and rbenv
This tutorial will show you how to deploy a Rails app via Capistrano, run it with Puma, restart it without sudo access and be able to host multiple environments and apps on same server: [more inside]
Exotic Ruby: Module.class_exec, Custom JSON and Liquid Drops in Action
Ruby has quite a lot of “exotic” features that are not used that often, but when you need to utilize some metaprogramming magic, you can easily take advantage of them. One of such features is Object.instance_exec which you might be familiar with if you’ve ever built some more advanced DSL. [more inside]
Final Week for the 2018 Rails Community Survey!
The 2018 Ruby on Rails survey closes this week! If you’re a company-side product developer or freelancer that works in Ruby on Rails, I’d love if you took 5 minutes to complete the biggest survey of the Rails community. All the survey data is public! [more inside]
How to create your own Rails 5.2+ Active Storage Previewers
ActiveStorage only comes with the ability to preview PDF and video files, but what if we want to support other file types? Check out how to create an Active Storage Previewer where we’ll use Powerpoint presentations as our example file type.
Metaprogramming: Ruby Hook Methods
Ruby comes with a bunch of hook methods that allow you to manipulate classes, modules and objects on the fly.. see more
How to use Rails Webpacker with NPM instead of Yarn
Webpacker is an awesome tool but it comes with Yarn. If you prefer to use NPM here is a guide how to use it with webpacker.
4 cool but less popular Rails features – part 1: ActiveJob, ActiveModel, command line
I never read the whole Rails guides and now when I’m translating them to my native language I discovered some cool features that I didn’t know about before. I hope this will be also useful for you! READ MORE
fugit 1.1.0 released
fugit is library for parsing cron, duration, and at time strings. It will be used by future version of rufus-scheduler. fugit 1.1.0 has been released. It now understands cron strings with time zones, like “0 0 * * sun Europe/Berlin” (every sunday at 00:00, Berlin time).
Ruby benchmarking basics and example case
As folks work towards a faster performance with Ruby 3X3 I dig a bit deeper into Ruby Benchmarking showing the basics, and diving into a specific example case.
base32-kai - New CryptoCollectibles Gem - 5-Bit Kai Notation/Alphabet Encoding
Hello, do you have (crypto) collectibles on the blockchain? Encode / decode your binary bits in 5-bit groups in the base32 / kai notation with the new base32-kai library /gem. What’s it for!? Use it for (crypto) kitties, copycats, and friends. Happy collecting and encoding / decoding bits & bytes. Cheers. Prost.