Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
You may know the double asterisk operator from Ruby snippets like Dir['spec/**/*_spec.rb'] where it expands to an arbitrary...
Ruby's regular expressions can be represented differently. When serializing them, you probably want to use inspect instead of to...
In general, you should not put a block element inside an inline element. So don't do this: text
So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...
Plot graphs in Ruby WebGraphviz renders in your browser via JavaScript (to store the rendered graph, extract the SVG using...
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...
You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)
This method will remove automatically installed packages that no other packages depend on any more. This, of course...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
When a directory has more than a few thousand entries, ls will start taking really long to list its content...
You can have a command repeatedly executed and the output displayed. This is useful e.g. for monitoring file system changes...
This might be relevant for us since we're often managing customer documents in our apps. I played around with...
If you want to find the commits that touched a specific text in a file, use git log -G 'text...
Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...
Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...
Detect if a gem has been activated A gem is activated if it is either in the current bundle (Gemfile.lock...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
Improve geordi cucumber: Only attempt @solo run when the specified files contain the @solo tag, skip @solo run if any...
Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...
You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...