Allow extra data to be stored along with the Cart
I needed a way to store extra data with the Cart so I introduced Cart#extra[] property for that purpose. All tests are OK (I tested with Ruby 2.5.1 and Redis 4+) and I even added several samples in the README !
I also grabbed @cheezy2022 "BigDecimal" changes because they make senses to me.
lol
Janel K. Sheehan
On Tue, May 8, 2018 at 5:14 PM, Pierre Yager [email protected] wrote:
I needed a way to store extra data with the Cart so I introduced Cart#extra[] property for that purpose. All tests are OK (I tested with Ruby 2.5.1 and Redis 4+) and I even added several samples in the README !
I also grabbed @cheezy2022 https://github.com/cheezy2022 "BigDecimal" changes because they make senses to me.
You can view, comment on, or merge this pull request online at:
https://github.com/UpTrendingLLC/cartman/pull/17 Commit Summary
- Use BigDecimal as opposed to floats
- Ignore RubyMine folder
- Add a way to store extra data with the Cart instance using Cart#extra[] property
- Bump version to 2.5.0
File Changes
- M .gitignore https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-0 (1)
- M README.md https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-1 (46)
- M lib/cartman.rb https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-2 (2)
- M lib/cartman/cart.rb https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-3 (18)
- A lib/cartman/extra.rb https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-4 (62)
- M lib/cartman/item.rb https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-5 (4)
- M lib/cartman/version.rb https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-6 (2)
- A spec/extra_keys_spec.rb https://github.com/UpTrendingLLC/cartman/pull/17/files#diff-7 (115)
Patch Links:
- https://github.com/UpTrendingLLC/cartman/pull/17.patch
- https://github.com/UpTrendingLLC/cartman/pull/17.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/UpTrendingLLC/cartman/pull/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8aF7jtxUmcczZMetd2Pt7rF4KpEq5nks5twgqagaJpZM4T3WZA .