cartman icon indicating copy to clipboard operation
cartman copied to clipboard

Allow extra data to be stored along with the Cart

Open zedalaye opened this issue 7 years ago • 1 comments

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.

zedalaye avatar May 08 '18 21:05 zedalaye

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

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 .

janelsheehan avatar May 08 '18 21:05 janelsheehan