Comments (10)
Is Mashie meant to be used only with Rails? Doesn't seem to be documented.
no, Hashie::Mash
should work with whatever, not sure what's going on here, but appreciate some digging/specs/repro
from hashie.
no,
Hashie::Mash
should work with whatever, not sure what's going on here, but appreciate some digging/specs/repro
I could make a small reproducible example, but frankly, the code just calls a non-existing method. So if I can save the time... Just look at the ruby api docs: https://docs.ruby-lang.org/en/2.7.0/
from hashie.
I would propose you use the delete
method instead.
from hashie.
This is Ruby 2.7? We haven't gotten to it. Appreciate a PR with the fix + adding 2.7 to CI.
from hashie.
There is no except
method in earlier versions of ruby either.
from hashie.
I see us adding it in Railtie,
Line 13 in ca36045
Either way, if something is not working, the best way to fix it is to write a failing spec and a fix.
from hashie.
Just to avoid the expectations. I have a lot of chores to do on my own code, so I'm not volunteering to fix this.
What's probably happening is that either no integration tests exists for Mash::load
or the integration tests turn on the monkey patching from rails for code that shouldn't depend on it.
I feel you are much better placed to look into that than I am, and it would probably cost you much less time since you are familiar with the code base already.
from hashie.
Just to avoid the expectations. I have a lot of chores to do on my own code, so I'm not volunteering to fix this.
Same.
from hashie.
Thanks for reporting this @najamelan, this was a bug introduced in 4.0.0 from a PR earlier in 2019, so we never caught it.
I've submitted a PR to resolve it, and will release a patch version once merged.
from hashie.
@BobbyMcWho Thanks for looking into it!
from hashie.
Related Issues (20)
- Problem flattening multiple nested properties via Trash HOT 3
- Release v. next HOT 2
- Integer key upsets Hashie::Mash with SymbolizeKeys extension HOT 16
- Slice doesn't work using symbols HOT 5
- I got in dev a failing test from master, how to properly setup? HOT 5
- RFC: Switch to Github Actions for CI HOT 3
- Multiple Trash properties that use the same key from a source hash HOT 3
- Undefined quiet method HOT 4
- New Release? HOT 3
- Behavior change in accessing Mash values in 5.0 release HOT 5
- [Informative] `deep_symbolize_keys` broken in Rails 7 with `Mash` HOT 7
- [Question] Why use :to_sym in Hashie::Mash#convert_key HOT 1
- Release version 5 HOT 1
- Memory leak possible HOT 5
- DeepMerge changes ActiveRecord instance HOT 2
- Trash warning when translating string to symbol
- Mash.load is insecure HOT 5
- Including MethodAccessWithOverride in Hashie::Mash breaks dup method
- PredefinedValues is undefined ... :( HOT 1
- Can't call to_hash with nested `Sequel::Postgres::JSONBHash` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashie.