effective_qb_sync 1.1.1 → 1.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: 7396424bcd93f518f79f503a4ec0855410c3b690
4
- data.tar.gz: cfab9318b68fa74de2e58edf05ce3ac1ae84de9d
3
+ metadata.gz: 955a0dfd053b2c5bdcaced150130a36edc5dc619
4
+ data.tar.gz: afe854879e35c66ec61e91ba3a366f2aef3adfd5
5
5
  SHA512:
6
- metadata.gz: e5b0a32248537b7730b9ea555b02dda870761d3d1cb48be664271c3ba786359fc5cb07c474e3d59a98f99bc501be230b03a90761dbd0c6c5257b7953585bed05
7
- data.tar.gz: bf84fa497145aad617107f9443c46cb39f5bc8750c9261f038bf132f08c2d4b6c0feb0730d6dcc436374a65be3136905ded384aa0f05ede41914993a72e5d41d
6
+ metadata.gz: b3c4888a5226878fe7de7a6b52103319a27c3d5a6d93309463b6ed0ff99912506a3066d265667ea5bd44433b5d30530971af205fa3d4a677acfd080402039b4b
7
+ data.tar.gz: 4c87ea49e3a70b10661696ade8ca169969fa719b6614a891d3b9e0b34b4cb45e6c9841e27ecbc444fcea70f19cd700176c8ec909706d83682e64d7f0740d0608
@@ -254,7 +254,7 @@ module Effective
254
254
 
255
255
  # determines if this username and password is valid
256
256
  def authentication_valid?(username,password)
257
- (username == EffectiveQbSync.quickbooks_username) && (password == EffectiveQbSync.quickbooks_password)
257
+ Array(EffectiveQbSync.quickbooks_username).include?(username) && Array(EffectiveQbSync.quickbooks_password).include?(password)
258
258
  end
259
259
 
260
260
  # returns how much more work is to be done. If there is no more work to be done, it will return 0, else,
@@ -11,10 +11,10 @@
11
11
  Click Company -> Set up Users and Passwords -> Set Up Users...
12
12
  - if EffectiveQbSync.quickbooks_username.present? && EffectiveQbSync.quickbooks_password.present?
13
13
  %li
14
- Add a Quickbooks user with username
15
- %strong= EffectiveQbSync.quickbooks_username
16
- and password
17
- %strong= EffectiveQbSync.quickbooks_password
14
+ Add a Quickbooks user with username:
15
+ %strong= Array(EffectiveQbSync.quickbooks_username).join('</strong> or <strong>').html_safe
16
+ and password:
17
+ %strong= Array(EffectiveQbSync.quickbooks_password).join('</strong> or <strong>').html_safe
18
18
  - else
19
19
  %li
20
20
  (developer) Add a quickbooks_username and quickbooks_password to the config/initializers/effective_qb_sync.rb file
@@ -1,3 +1,3 @@
1
1
  module EffectiveQbSync
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.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.1.1
4
+ version: 1.1.2
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: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails