• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dblock / hashie / 33013822341
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: dblock/mash-required-keys
DEFAULT BRANCH: master
Ran 26 Aug 2026 09:07PM UTC
Jobs 8
Files 76
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Aug 2026 09:07PM UTC coverage: 98.365%. First build
33013822341

push

github

dblock
Fix Dash#deep_transform_keys raising for required properties on Rails 7+

ActiveSupport 7's Hash#deep_transform_keys/deep_transform_keys!
build up their result by calling self.class.new with no arguments,
then filling in transformed keys one at a time. For Hashie::Dash
(and Trash), calling .new with no arguments immediately raises
ArgumentError for any required property, since Dash validates
required properties are set at initialization time, long before
any keys can be assigned.

Additionally, deep-transforming a Dash's keys (e.g. stringifying
them) doesn't produce a meaningful Dash anyway, since Dash only
allows setting predefined (symbol) properties.

Fix by overriding Dash#deep_transform_keys to operate on the plain
Hash representation (via #to_h) instead of trying to rebuild a Dash,
using an internal helper equivalent to ActiveSupport's own
implementation so this works whether or not ActiveSupport is loaded.

Also un-pends the previously pending Rails 7 integration spec for
this behavior added in #569.

Closes #559

25 of 26 new or added lines in 2 files covered. (96.15%)

4212 of 4282 relevant lines covered (98.37%)

91.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.97
lib/hashie/dash.rb
Jobs
ID Job ID Ran Files Coverage
1 ruby-3.3 - 33013822341.1 26 Aug 2026 09:07PM UTC 38
96.64
GitHub Action Run
2 ruby-3.1 - 33013822341.2 26 Aug 2026 09:07PM UTC 76
98.36
GitHub Action Run
3 jruby-ubuntu - 33013822341.3 26 Aug 2026 09:09PM UTC 38
95.45
GitHub Action Run
4 ruby-2.7 - 33013822341.4 26 Aug 2026 09:08PM UTC 76
97.94
GitHub Action Run
5 ruby-3.0 - 33013822341.5 26 Aug 2026 09:07PM UTC 76
98.36
GitHub Action Run
6 ruby-4.0 - 33013822341.6 26 Aug 2026 09:07PM UTC 38
96.57
GitHub Action Run
7 ruby-3.4 - 33013822341.7 26 Aug 2026 09:07PM UTC 38
96.57
GitHub Action Run
8 ruby-3.2 - 33013822341.8 26 Aug 2026 09:07PM UTC 38
96.64
GitHub Action Run
Source Files on build 33013822341
  • Tree
  • List 76
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33013822341
  • 16701a3e on github
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc