stripe2qb 0.1.1 → 0.1.2
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 +4 -4
- data/config/stripe2qb.yml +3 -3
- data/lib/stripe2qb/configuration.rb +2 -1
- data/lib/stripe2qb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9c8878cca9d13e2fd2a1cb472db5f1824469b3e
|
4
|
+
data.tar.gz: 8678605ddda3b8749bda844a9c6d530bc132ce60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1847389c89d28db34cffe540ab579631f7551bc00ad2d70c2e390fbe55b99673231868e7c5f8554923266504f1308c32ab99e8c3b1d7f8ade64ae1bc98a066e5
|
7
|
+
data.tar.gz: 4ed0180d54c6cc0c6b2017baff28d86821d8c5a739bd37bd1a990769ada590614bff55a82ff28b7fd5433eaf793a392439a3d4cd0aa9a9a7194fcb147e5c9fdc
|
data/config/stripe2qb.yml
CHANGED
@@ -4,8 +4,8 @@ quickbooks_api:
|
|
4
4
|
|
5
5
|
# find OAuth consumer key & secret at https://developer.intuit.com/v2/ui#/app/dashboard
|
6
6
|
# (you have to sign up for a developer account and create an app first - see http://www.mooreds.com/wordpress/archives/1396)
|
7
|
-
oauth_consumer_key: 'your Quickbooks OAuth consumer key
|
8
|
-
oauth_consumer_secret: 'your Quickbooks OAuth consumer secret
|
7
|
+
oauth_consumer_key: <%= ENV['QUICKBOOKS_OAUTH_CONSUMER_KEY'] %> # your Quickbooks OAuth consumer key
|
8
|
+
oauth_consumer_secret: <%= ENV['QUICKBOOKS_OAUTH_CONSUMER_SECRET'] %> # your Quickbooks OAuth consumer secret
|
9
9
|
|
10
10
|
# generate token & secret at https://appcenter.intuit.com/Playground/OAuth/IA
|
11
11
|
# (set the duration to 15552000 = 180 days * 24 * 60 * 60)
|
@@ -33,4 +33,4 @@ quickbooks_api:
|
|
33
33
|
# name or Quickbooks ID of the Account where you want to book Stripe processing fees
|
34
34
|
deposit_fees_account: 'Stripe Merchant Fees' # String name or integer ID
|
35
35
|
stripe_api:
|
36
|
-
api_key: 'your Stripe API key
|
36
|
+
api_key: <%= ENV['STRIPE_API_KEY'] %> # your Stripe API key
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'stripe2qb/options_reading'
|
2
2
|
require 'yaml'
|
3
|
+
require 'erb'
|
3
4
|
|
4
5
|
module Stripe2QB
|
5
6
|
class ConfigurationError < StandardError; end
|
@@ -13,7 +14,7 @@ module Stripe2QB
|
|
13
14
|
def initialize(options)
|
14
15
|
if options.is_a?(String)
|
15
16
|
file = File.open(options)
|
16
|
-
options = YAML.load(file.read)
|
17
|
+
options = YAML.load(ERB.new(file.read).result)
|
17
18
|
end
|
18
19
|
|
19
20
|
quickbooks_api_options = get_required_from_options('quickbooks_api', options)
|
data/lib/stripe2qb/version.rb
CHANGED