Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Hashie::Extensions::Dash::Coercion. #306

Merged
merged 1 commit into from Aug 31, 2015

Conversation

marshall-lee
Copy link
Contributor

Hello!

I need this feature to be able to describe property and its coercion in one line of code.

@dblock
Copy link
Member

dblock commented Aug 30, 2015

This is good. It needs README and CHANGELOG updates please. Also wonder if this is useful outside of a dash, and if so should live at a different level.

@dblock
Copy link
Member

dblock commented Aug 30, 2015

Never mind my question, saw that it already uses include Hashie::Extensions::Coercion

@marshall-lee
Copy link
Contributor Author

Yeah, ouside of Dash there's Hashie::Extensions::Coercion. But with Dash it's convenient to use Hashie::Extensions::Dash::Coercion.

@marshall-lee
Copy link
Contributor Author

README and CHANGELOG are updated.

dblock added a commit that referenced this pull request Aug 31, 2015
Introduce Hashie::Extensions::Dash::Coercion.
@dblock dblock merged commit a775e51 into hashie:master Aug 31, 2015
@dblock
Copy link
Member

dblock commented Aug 31, 2015

Merged, thank you.

jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Dec 12, 2015
## 3.4.3 (10/25/2015)

* [#314](hashie/hashie#314): Added a
  `StrictKeyAccess` extension that will raise an error whenever a key is
  accessed that does not exist in the hash -
  [@pboling](https://github.com/pboling).

* [#304](hashie/hashie#304): Ensured compatibility
  of `Hash` extensions with singleton objects -
  [@regexident](https://github.com/regexident).

* [#306](hashie/hashie#306): Added
  `Hashie::Extensions::Dash::Coercion` -
  [@marshall-lee](https://github.com/marshall-lee).

* [#310](hashie/hashie#310): Fixed
  `Hashie::Extensions::SafeAssignment` bug with private methods -
  [@marshall-lee](https://github.com/marshall-lee).

* [#313](hashie/hashie#313): Restrict pending spec
  to only Ruby versions 2.2.0-2.2.2 - [@pboling](https://github.com/pboling).

* [#315](hashie/hashie#315): Default `bin/` scripts:
  `console` and `setup` - [@pboling](https://github.com/pboling).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants