Hash[keys.map.with_index{...}]→keys.map.with_index{...}.to_h
- Add
respond_to_missing?to matchmethod_missing(sorespond_to?(:english?)works)
- Remove unused
|app|block param
- Remove
# coding: utf-8(unnecessary since Ruby 2.0) File.expand_path('../lib', __FILE__)→File.expand_path('lib', __dir__)- Remove
loggerfrom dev deps (stdlib) - Remove
bundlerfrom dev deps (assumed)
File.dirname(__FILE__)→__dir__
- Fix
assert @profile.languages, 0→assert_equal 0, @profile.languages.raw(2 occurrences) - Add
test_respond_toforrespond_to_missing?
task :default => :test→task default: :test
~> 7.0.0→~> 7.2.0(matches CI matrix)
- Bump
VERSION = '2.0.3'→'2.1.0'
options={}→**optionsin value.rb and definition.rb (breaking for positional hash callers)and→&&in method_missing (needs rewrite, save for later)- Ruby/Rails version requirements (keep >= 5 for AR)
s && @maps[...]guard (protects against nil/false)map{...}.compact→filter_map(requires Ruby 2.7+)bin/setupnoise (optional, leave as-is)