Git Product home page Git Product logo

spree_promo_user_usage_limit's Introduction

Spree Promo User Usage Limit

Build Status Dependency Status Coverage Status Code Climate

Adding this rule to a promo will allow you to set a limit on the number of completed orders for which a given user can apply it (default 1 use).

screenshot

Installation

  1. Add spree_promo_user_usage_limit to your Gemfile:
gem 'spree_promo_user_usage_limit'
  1. Bundle your dependencies:
bundle
  1. Add this rule to a promo and set the number of uses you want to allow

  2. Profit.

TODO

  • Friendlier error messages when promo can't be applied

Versioning

Versions files the pattern MAJOR.MINOR.PATCH SemVer-style. MAJOR.MINOR version will always match the Spree version that gem is compatible with. PATCH version is incremented as new bugfix releases of this gem come out, indepently of new Spree PATCH versions.

For example, version 2.1.0 is compatible with the Spree 2.1.x series, while version 2.0.0 is compatible with the Spree 2.0.x series.

You should not need to worry about this, as the gemspec has the appropriate constraints. But hey, the more you know.

Testing

This extension is tested against the following rubies:

  • 1.9.3
  • 2.0
  • 2.1
  • 2.2
  • 2.3
  • jruby (experimental)
  • rubinius (experimental)

Running the tests locally

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec

License

Copyright (c) 2014 Stefan Wrobel, released under the MIT License

spree_promo_user_usage_limit's People

Contributors

swrobel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.