myob-api 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/myob/api/client.rb +1 -1
- data/lib/myob/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef98db57c6e0ef842f8bc745a46ad7ac9fe207da
|
4
|
+
data.tar.gz: d68339055aafa37f228cdcfa4b58b3808a5c78e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1be8c301ce91f34c7e9c192b056e7c89b1ff913eee8e8adc9a906868c2b3f7d91786dd3ca629c2fdfbac0fbd4e861899acc3dfd9c86a4d37df2524de229e9ca8
|
7
|
+
data.tar.gz: 3958a1ce063402caca2ba1968038af5f73a61e1892c093285cf1e02ec6584763e7486f71b2f04f7f3ddd692d5215b0c4055ddcafd3f2878e82834a2c314eeea2
|
data/lib/myob/api/client.rb
CHANGED
@@ -62,7 +62,7 @@ module Myob
|
|
62
62
|
company_file_id = (self.company_file.all.find {|file| file['Name'] == company_file[:name]} || [])['Id']
|
63
63
|
if company_file_id
|
64
64
|
token = company_file[:token]
|
65
|
-
if (
|
65
|
+
if (token.nil? || token == '') && !company_file[:username].nil? && company_file[:username] != '' && !company_file[:password].nil?
|
66
66
|
# if we have been given login details, encode them into a token
|
67
67
|
token = Base64.encode64("#{company_file[:username]}:#{company_file[:password]}")
|
68
68
|
end
|
data/lib/myob/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myob-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Lumley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|