TagoStripe 0.1.0.12 → 0.1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 503521d0feae5f9fc9403f442844465c4ae18eccfc1a7f921dea3f25cb94cb27
4
- data.tar.gz: 9260feaf5c677a131ea0230a4f8f8e95b3b09a41dab0d2a95067ad9d8464c1f8
3
+ metadata.gz: c93acbac2ac0658f6d1fb883b866c7b78a9ecab5f50b7dd2e5dea98cdd082fb1
4
+ data.tar.gz: 5683facf260b89601395a35cae578c30cd6de93096e152cb1e0e6b9158e388d1
5
5
  SHA512:
6
- metadata.gz: 0e756802ffb7aeb7c9e3312dbcc714f3e6684bc24cffe796e5d1c7ddd8c0a5f4903ba71f77fbd76925972b785e30f4c74203322f2030edfe88067fa1a0134368
7
- data.tar.gz: 0fc4123de875826b0e1e23c33e2c9eac53e7fb58271e18539b90c4bebb465bbce5e80eebc39fd9c5d2718e951e89f4c10a4904de57b6aec99865a454a1ed85d4
6
+ metadata.gz: 493c37c63d57a8a796f33c1a6587f3e3a2959688be156023829f890cf4403fa1f42976f894e3104432976fddf03985fbf0e11545eea6e94a8b2fb667c9a1717a
7
+ data.tar.gz: 0e0c1ce7c5d5a040a4209127cde0ad8df516685671814bdb1e4365fa23b34d4edec7f96a3a242cf6e44353b33f3e3e97c1881fa71777a36ba0cb7a0eb57380eb
@@ -1,7 +1,7 @@
1
1
  require 'stripe'
2
2
  module TagoStripe
3
3
  class CheckoutSession
4
- def set_api_key
4
+ def self.set_api_key
5
5
  Stripe.api_key = ENV['STRIPE_SECRET_KEY']
6
6
  end
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'stripe'
2
2
  module TagoStripe
3
3
  class Customer
4
- def set_api_key
4
+ def self.set_api_key
5
5
  Stripe.api_key = ENV['STRIPE_SECRET_KEY']
6
6
  end
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'stripe'
2
2
  module TagoStripe
3
3
  class Price
4
- def set_api_key
4
+ def self.set_api_key
5
5
  Stripe.api_key = ENV['STRIPE_SECRET_KEY']
6
6
  end
7
7
 
@@ -1,12 +1,12 @@
1
1
  require 'stripe'
2
2
  module TagoStripe
3
3
  class Product
4
- def set_api_key
4
+ def self.set_api_key
5
5
  Stripe.api_key = ENV['STRIPE_SECRET_KEY']
6
6
  end
7
7
 
8
8
  def self.list
9
- Stripe.api_key = ENV['STRIPE_SECRET_KEY']
9
+ set_api_key
10
10
  products = Stripe::Product.list()
11
11
  return products.data
12
12
  end
@@ -1,7 +1,7 @@
1
1
  require 'stripe'
2
2
  module TagoStripe
3
3
  class Subscription
4
- def set_api_key
4
+ def self.set_api_key
5
5
  Stripe.api_key = ENV['STRIPE_SECRET_KEY']
6
6
  end
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TagoStripe
4
- VERSION = "0.1.0.12"
4
+ VERSION = "0.1.0.13"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TagoStripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.12
4
+ version: 0.1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - manatago