stripe2qb 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: 2281a6583363ac8584578d41cf4ab104d120d4d7
4
- data.tar.gz: ba355fea2608b919411fb4e6fa1ff41cc4527e23
3
+ metadata.gz: d9c8878cca9d13e2fd2a1cb472db5f1824469b3e
4
+ data.tar.gz: 8678605ddda3b8749bda844a9c6d530bc132ce60
5
5
  SHA512:
6
- metadata.gz: 26633a652d388d7603957ee621e80b4953696bd716deb5dc225f96a47b592649845c82c544543bca9da8c14461402555bd1113038bc8e913e0edf117e18a15cf
7
- data.tar.gz: ec1fe00ab148317c5455f3f877c9db1d2dde5e8f8b055cfe442360c69bea570e8ca4a4c358750243223e176b748b40b19ff7bf170a03c3affdf46c8c597bbd80
6
+ metadata.gz: 1847389c89d28db34cffe540ab579631f7551bc00ad2d70c2e390fbe55b99673231868e7c5f8554923266504f1308c32ab99e8c3b1d7f8ade64ae1bc98a066e5
7
+ data.tar.gz: 4ed0180d54c6cc0c6b2017baff28d86821d8c5a739bd37bd1a990769ada590614bff55a82ff28b7fd5433eaf793a392439a3d4cd0aa9a9a7194fcb147e5c9fdc
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Stripe2QB
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe2qb
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
  - Anthony Wang