effective_qb_sync 1.3.0 → 1.3.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: 0263ab76ac23e23696838fab00b64f83cfe07adb9f7f63415bfefb02e7abb2fc
4
- data.tar.gz: db8e31bc405285342463f3b5f66953c1b193afb559cfb985e46d3695f8e5d656
3
+ metadata.gz: 319c4615761c91d7f339bc221173660689d618c93d31a97eb0fda7c0fd1c4119
4
+ data.tar.gz: bb82bd7bfdaf8e996f901c96e682a3e03be6da829fd85f298365f9632cdc27bc
5
5
  SHA512:
6
- metadata.gz: 87e4c4e884f4013d9f35e64034c8a2624f044c574a89d01f7f9351e5117647a23d27c97822fe8acea1232c3bf5c0767583e6d362f9eb229b15f3c9c4a180f1fe
7
- data.tar.gz: 7d943d58c082a9a835c018157d3dacf8fea2ef054c9ff826f0bab247933f793b65aef12b7d318fa071288d63746ff81f67fe6c815b2e7ae6d1d7214992c9f92d
6
+ metadata.gz: dddb2b8fdd4a0087891534bdf96adff2e40c3020661051dc86c46da444b502d8ceae333f517ae356928e3ec22dc4e91067312b23cd04c70e5a4a5ce245911357
7
+ data.tar.gz: 3a749c4afe9031557d936c5f76aedf40a7331098bbd16d3a9ab0271043bb1bfc89dd3a1e662dd14a26a7e7f503d8029c88c5127759862486d6bdb280060cf3bd
@@ -253,8 +253,13 @@ module Effective
253
253
  protected
254
254
 
255
255
  # determines if this username and password is valid
256
+ # username is optional depending on your config file
256
257
  def authentication_valid?(username,password)
257
- Array(EffectiveQbSync.quickbooks_username).include?(username) && Array(EffectiveQbSync.quickbooks_password).include?(password)
258
+ if EffectiveQbSync.quickbooks_username.present?
259
+ return false unless Array(EffectiveQbSync.quickbooks_username).include?(username)
260
+ end
261
+
262
+ Array(EffectiveQbSync.quickbooks_password).include?(password)
258
263
  end
259
264
 
260
265
  # returns how much more work is to be done. If there is no more work to be done, it will return 0, else,
@@ -1,3 +1,3 @@
1
1
  module EffectiveQbSync
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_qb_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails