stripe-rails 1.7.0 → 1.7.1

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
  SHA256:
3
- metadata.gz: f24ac8d0b91f140510d25e7c614a14e2f2574ea8f3b280c052691f088d5aa9bf
4
- data.tar.gz: ce0d05dde985042654708e2701012dfd7c74d38f22c19df4a2cc703effa582b0
3
+ metadata.gz: a4a7eac7d10775e60ee3126217ab3be27d21b313fd88ca2a5e77a2e61bcbed0e
4
+ data.tar.gz: 5901613af7a05eb5afd8e2237da50fc22e65d83cd7dea25a4e1bf170faef86b3
5
5
  SHA512:
6
- metadata.gz: 6353b526babcf9e9e5a5a36282470167aa6a794242038ad78bfabcef3bba00ea76c4aefee7891de01d12f1d0dd52470c1e614f454c5e88e13bc63173258e58b3
7
- data.tar.gz: 4b7045a4a6f1abbaafa970ad55c24b96ec31e8d4e1caa1b2ca41dc90346b10f21f3fadbc2cec102087c733f716d39eb79b83a6f2f401d22aeacff7ecfb1f65a8
6
+ metadata.gz: 76cf79f26a6735b324a300f474279c2b5492b5adbfa0e51e0bfd7b94741c7bb8f437c3548f45d095fe4df03a970662ca3730dc25788596740c4938b929b5b973
7
+ data.tar.gz: 810cfa6937be5136a37ff9bdf04335411e47e3dd5c7651f55304ca83ebf6664087ef4f84f7fd1ea3bdb87de6017cf56011df9a25ace9e579ba2033ffb8f7f335
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.7.1 (2019-05-24)
2
+
3
+ * Don't assume sprockets are loaded thanks @manusajith
4
+
1
5
  ## 1.7.0 (2019-05-09)
2
6
 
3
7
  * [New Feature] add support for Plan to use a constant name different from plan id thanks @alexagranov !
data/README.md CHANGED
@@ -200,7 +200,10 @@ defining the plan, but provide the name for the constant to define with `constan
200
200
 
201
201
  ```ruby
202
202
  Stripe.plan "Silver-Plan".to_sym do |plan|
203
- plan.constant_name = 'SILVER_PLAN'
203
+ plan.constant_name = 'SILVER_PLAN' # <---
204
+ plan.name = 'ACME Silver'
205
+ plan.amount = 699
206
+ plan.interval = 'month'
204
207
  end
205
208
 
206
209
  Stripe::Plans::SILVER_PLAN # => will be defined
data/lib/stripe/engine.rb CHANGED
@@ -81,7 +81,7 @@ environment file directly.
81
81
  end
82
82
 
83
83
  initializer 'stripe.assets.precompile' do |app|
84
- unless ::Rails.env.test?
84
+ if app.config.respond_to?(:assets)
85
85
  app.config.assets.precompile += %w( stripe_elements.js stripe_elements.css )
86
86
  end
87
87
  end
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = '1.7.0'
3
+ VERSION = '1.7.1'
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: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-09 00:00:00.000000000 Z
13
+ date: 2019-05-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails