stripe-rails 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9d7f66d220d7bc6065d7911f747db6f0d48bc91
4
- data.tar.gz: 60be343383d682709b40f360a94ade5cf7224b0a
3
+ metadata.gz: 807b4264116e9c6b4874be07b459d737157dcb0e
4
+ data.tar.gz: 86193b53cf4881312abd3b3d7bb4d2e01c4dea54
5
5
  SHA512:
6
- metadata.gz: fd2803f70d90ce9647a21bc2a6a7c5aab3cfcb3bc503d67ac46771caf4d2645e3d5f08f17b3b4f30b7dce6141bbbf6f4e2d9908eaea9b146fd8e0a71d1f8a307
7
- data.tar.gz: 3a62c440d18d6c542ea773e18aab4479753361ffe678cb92f3ad7d3ec8da2fb9dbdb0e7d3d654ca8f82cb2511942d5f4a8368171a6f131cbc5e5bc96e1cdacd7
6
+ metadata.gz: 0f966aa2f92dc4de552755515a7961398d7edfcf152cf594d855c39fc2d3b1f1dcecd4d4a4032d593c9f29b9da85dda4668f7b6b1a0e3bf4e2117adbd5d9723d
7
+ data.tar.gz: 5234276a006d7b0efdf5bc1b14256359ab7fd1832ce0505231c5f1d24ffdf0db74a1b9cb18c9bd590190eb871742cfa6c282628f87d9a980ed24cf57cc73589d
@@ -9,7 +9,7 @@ module Stripe
9
9
  validates_presence_of :duration_in_months, :if => :repeating?
10
10
  validates_inclusion_of :duration, :in => %w(forever once repeating), :message => "'%{value}' is not one of 'forever', 'once' or 'repeating'"
11
11
  validates_inclusion_of :percent_off, in: 1..100, unless: ->(coupon) {coupon.percent_off.nil?}
12
- validates_numericality_of :percent_off, :greater_than => 0
12
+ validates_numericality_of :percent_off, :greater_than => 0, unless: ->(coupon) {coupon.percent_off.nil?}
13
13
  validates_numericality_of :duration_in_months, :greater_than => 0, :if => :repeating?
14
14
  validates_numericality_of :max_redemptions, greater_than: 0, unless: ->(coupon) {coupon.max_redemptions.nil?}
15
15
 
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubygeek
@@ -29,7 +29,7 @@ cert_chain:
29
29
  UgImJlChAzCoDP9zi9tdm6jAr7ttF25R9PPYr11ILb7dYe3qUzlNlM6zJx/nb31b
30
30
  IhdyRVup4qLcqYSTPsm6u7VA
31
31
  -----END CERTIFICATE-----
32
- date: 2013-02-26 00:00:00.000000000 Z
32
+ date: 2013-03-11 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rails