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 +4 -4
- data/lib/stripe/coupons.rb +1 -1
- data/lib/stripe/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 807b4264116e9c6b4874be07b459d737157dcb0e
|
4
|
+
data.tar.gz: 86193b53cf4881312abd3b3d7bb4d2e01c4dea54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f966aa2f92dc4de552755515a7961398d7edfcf152cf594d855c39fc2d3b1f1dcecd4d4a4032d593c9f29b9da85dda4668f7b6b1a0e3bf4e2117adbd5d9723d
|
7
|
+
data.tar.gz: 5234276a006d7b0efdf5bc1b14256359ab7fd1832ce0505231c5f1d24ffdf0db74a1b9cb18c9bd590190eb871742cfa6c282628f87d9a980ed24cf57cc73589d
|
data/lib/stripe/coupons.rb
CHANGED
@@ -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
|
|
data/lib/stripe/rails/version.rb
CHANGED
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.
|
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-
|
32
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rails
|