stripe_wrapper 0.1.1 → 0.1.2

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: 87ddfc60d443529ba9bec7cc155419cc5d008e97
4
- data.tar.gz: 012fdf68fc19719ffe4497394cd05016a604a55f
3
+ metadata.gz: 07b8c7f81bf5983ac5e459b51f2ab6b6af172e6e
4
+ data.tar.gz: 7b6e4aeaaeb74a88013f06cf53f184f723af85c5
5
5
  SHA512:
6
- metadata.gz: 89f1357b645d0dc28f956d3e46b59d5faa20411bc0de78330da87fbff857b90a0db8db95dcc8fe58a301ad51c9e3b6631758c8803b686e39b05dce80dde71878
7
- data.tar.gz: 272cea3206aee073a6999b3484be5a3b9e585df8c942395092ff4106d512cced7477c28cbb516e78cd928bbd147e0bf49e66e2d7807e020fecca8eb8147de222
6
+ metadata.gz: d36e0f42f3ba498c868851443be9002282678f762f6206cb2858a2b2a3d0f76e45ee80285477960514a25c35843f2575d57ca95a40f8b98c5a9a56660ff4ca45
7
+ data.tar.gz: 9309f6c4db54d396742726534ea4b2275b8c2f38e7ff822622bdab023371f0caf5829e88fc8963c1f868a175893b4839bccd11d98e8543a429c36f0c436f8ec5
@@ -4,7 +4,7 @@ module StripeWrapper
4
4
  protect_from_forgery with: :exception
5
5
 
6
6
  def main_app_current_user
7
- @current_user = User.find(main_app.scope.session["warden.user.user.key"].first[1]) rescue nil #FIXME find a proper way to get main_app current_user
7
+ @current_user = current_user rescue nil
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@
4
4
  %thead
5
5
  %tr
6
6
  %th User
7
- %th Customer
7
+ %th Stripe Customer
8
8
  %th Amount
9
9
  %th Amount Refunded
10
10
  %th Description
@@ -1,3 +1,3 @@
1
1
  module StripeWrapper
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -19,9 +19,9 @@ module StripeWrapper
19
19
  )
20
20
  end
21
21
 
22
- def self.create_customer(token,user)
22
+ def self.create_customer(token,user,description='')
23
23
  Stripe::Customer.create(
24
- :description => "Customer for liam.moore@example.com",
24
+ :description => description,
25
25
  :email => user.email,
26
26
  :source => token # obtained with Stripe.js
27
27
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Peebles | @waclock