Skip to content

v0.2.3 - Stop Seeing Double

Latest

Choose a tag to compare

@kerrizor kerrizor released this 31 Jul 15:12

🔍 Keela v0.2.3 - "Stop Seeing Double"

The one where we learned that = and =~ are not the same thing.

What's Fixed

Ever notice your baseline had the same constant listed twice? 👀 Turns out when you write:

DATETIME_REGEX = %r{...}       # definition
DATETIME_REGEX =~ some_string  # usage

Keela was like "oh cool, TWO constants!"

No. Bad Keela. The =~ regex match operator is using the constant, not defining it. We've sent Keela back to Ruby school and she now understands the difference between assignment (=) and matching (=~).

What's Changed

We also stopped committing Gemfile.lock because we're a gem, not an app, and frankly it was causing more drama than a reality TV reunion special. 📺

Upgrade

gem install keela
# or
bundle update keela

Then regenerate your baseline and watch those duplicates disappear! ✨