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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 811d5f79a8b26836ec00106c574f869b682521b6
4
- data.tar.gz: d662c42c636b9558fcecb5230f7e1a4bcabdae35
3
+ metadata.gz: ef98db57c6e0ef842f8bc745a46ad7ac9fe207da
4
+ data.tar.gz: d68339055aafa37f228cdcfa4b58b3808a5c78e8
5
5
  SHA512:
6
- metadata.gz: 07626d4621630fa176b4d10a63fe008ca3aeb2ab0a195d3ed0b238e4a1d73f4bd5e230b4eaf263cd0e2ef84193ef29e6f52eaa09a0c3b6691df6db6f619c2f2a
7
- data.tar.gz: bc89612b051e0c05cf64302fce29cacbcbcc6a536a7d70bb07a20c798c9a32b0ec28051e84a6ab8529046454f557d4729beac5b5b6997cffe6418795ed1c5742
6
+ metadata.gz: 1be8c301ce91f34c7e9c192b056e7c89b1ff913eee8e8adc9a906868c2b3f7d91786dd3ca629c2fdfbac0fbd4e861899acc3dfd9c86a4d37df2524de229e9ca8
7
+ data.tar.gz: 3958a1ce063402caca2ba1968038af5f73a61e1892c093285cf1e02ec6584763e7486f71b2f04f7f3ddd692d5215b0c4055ddcafd3f2878e82834a2c314eeea2
@@ -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 (!token || token == '') && company_file[:username] && company_file[:username] != '' && company_file[:password] && company_file[:password] != ''
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
@@ -1,5 +1,5 @@
1
1
  module Myob
2
2
  module Api
3
- VERSION = "0.9"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
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: '0.9'
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-05-20 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2