Ruby 1.8.7: Bundler crashes with "deadlock" and core dump

Bundler 1.14 can trigger deadlocks and core dumps on Ruby 1.8.7; using the newest compatible Bundler version avoids the crash.

Error "undefined method last_comment"

RSpec loaded by Rake can fail with NoMethodError: undefined method 'last_comment' when Rake 11 removes a method required by older rspec-core.

RSpec matcher to check if two numbers are the same

Numeric comparisons in RSpec can fail when BigDecimal, Float, and integers are mixed; a custom matcher compares their to_s values.

How to install guard-livereload 2.5.2 on Ruby < 2.2.5

Dependency conflicts block guard-livereload 2.5.2 on older Ruby versions; pinning listen below 3.1 avoids the Ruby 2.2.5 requirement.

eventmachine 1.0.3 failing to install native extensions

eventmachine 1.0.3 can fail while building native extensions; updating to 1.0.4 in Gemfile.lock resolves the install issue.

JSONP for Rails

JSON responses can be reused in legacy cross-domain requests by wrapping them in a callback function. rack-contrib provides a JSONP middleware for Rails apps.

Sass: Don't put CSS rules into partials that you import multiple times

CSS rules inside Sass partials are duplicated when the partial is imported more than once, bloating the compiled stylesheet.

[jruby] TruffleRuby Status, start of 2017

TruffleRuby is an experimental Ruby implementation pursuing much faster execution than MRI, with progress on Rails support, startup time, and JVM independence.

Geordi 1.6.1 released

dumple supports the --clean option for PostgreSQL pg_dump, making database export output easier to recreate by removing existing objects first.

An Introduction to Sending HTML Email for Web Developers

HTML email remains difficult because clients support standards unevenly, so layout, rendering, and responsiveness need special handling.

Enabling ** in your bash

** in bash is often disabled, so recursive globs stop at one directory level. Enabling globstar makes ** match any depth and can be persisted in .bashrc.

Chartkick

Create JavaScript charts from Ruby with a single line while keeping data local instead of sending it to Google.

Use Memoizer instead of ActiveSupport::Memoizable

ActiveSupport::Memoizable is being removed and has awkward edge cases; Memoizer provides straightforward method caching across Rails versions.

Ruby: String representations of regular expressions

Ruby regular expressions serialize more readably with inspect than to_s; source returns the pattern and options exposes the switch bitmask.

Puppet: Could not evaluate: Field 'device' is required

Puppet mount failures can stem from a malformed /etc/fstab; rewriting the file can resolve missing device field errors during catalog runs.

Search everywhere in RubyMine

Find files, classes, actions, and settings from a single dialog in RubyMine using Search everywhere, opened with Shift twice.

Font Combiner

Font Combiner modifies TTF and OTF fonts by importing glyphs as vector shapes and regenerating them with alternate metrics, hinting, kerning, and spacing.

Fix Rubygems binary error: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

Rubygems version mismatches can break generated executables with undefined method activate_bin_path after downgrades. Reinstalling gem executables with gem pristine --all or reinstalling RubyGems and Bundler restores working binstubs.

Net::SSH::Exception: could not settle on encryption_client algorithm

Old net-ssh versions can fail to connect when servers disable weak ciphers; pinning net-ssh or updating SSH client support restores deployment access.

Passenger 5/6 requires a config.ru file to run Rails 2.3 projects

Rails 2.3 apps need a config.ru file for Passenger 5+; without it, nginx or Apache may return 403 errors because the app is not detected.

Bundler: Gemfile.lock is corrupt & gems are missing from the DEPENDENCIES section

Older Bundler versions can reject legacy Gemfile.lock files as corrupt when dependency metadata changes; adding missing gems or downgrading Bundler restores installs.

Angular: Quick and easy animation on changed binding value

Animate a details container when a bound value changes by using ngClass and ngAnimate to flash it with a quick hide-and-fade effect.

A collection of graph and diagram tools

Tools for plotting graphs and diagrams in Ruby, plus browser-based and offline options for visualizing flows, state machines, and scientific data.

Howto use ActiveRecord preload with plain SQL inner joins

Paginated rides can be ordered by translated departure and arrival names without N+1 queries by combining custom SQL INNER JOINs with preload.