When attempting to update RubyGems, depending on updates your previously performed, you might run into an error ERROR: While executing...

We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

depfu.com

TL;DR: Bundler 2.0 will rename Gemfile to gems.rb and Gemfile.lock to gems.locked (sic). The old filenames will be supported...

RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...

There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png

You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...

makandra dev

If you use the Better Errors gem, you will sometimes notice that it can be very slow. This is because...

Nowadays it is fairly easy to intercept and modify mails globally before they are sent. All you have to do...

Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...

You can use gem list to list all gems available from a remote gem server: gem list -r --clear-sources...

makandra dev
stdgems.org

Ruby's standard library is in the process of being gemified. It will soon - Ruby 2.5 - consist of RubyGems, which...

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

Sass lets you easily specify multiple selectors at once like this: .some-block &.has-hover, &:hover outline: 1px solid red...

For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...

github.com

Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...

github.com

/home/.../ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/rubygems_ext.rb:45:in `full_gem_path': uninitialized constant Bundler::Plugin::API::Source (NameError) Solution: Upgrade Rubygems beyond 2.6.9...