xero-ruby 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api_client.rb +2 -2
- data/lib/xero-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac629bbf25ab4ffb1de61531dc83b88655157bff77e69b30385d7117f432c9db
|
4
|
+
data.tar.gz: 1f1741df2a1d4aa3b76668dced5b7b5dbc4e2a189f82b384b71dbb517484a1ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ce2386be68427b63d2dad049780ac1d6cd670eedc8f5d0c28072a9feb41777b5ca672137f59cdd1fb14fa861ec3be4b75e49fc8b833db5ead20d9cd67b6129
|
7
|
+
data.tar.gz: 49d77102f9918b211f303639170aeedabc34d1cf7df6084d64f9c2ff6751654c506fec1967bdc7d8c6a94f61c44bfc0f11138d7144da1ef3abf1415e3a12bcae
|
data/lib/xero-ruby/api_client.rb
CHANGED
@@ -136,14 +136,14 @@ module XeroRuby
|
|
136
136
|
def connections
|
137
137
|
@config.base_url = 'https://api.xero.com'
|
138
138
|
opts = { :header_params => {'Content-Type': 'application/json'}, :auth_names => ['OAuth2'] }
|
139
|
-
response = call_api(:GET,
|
139
|
+
response = call_api(:GET, "/connections/", nil, opts)
|
140
140
|
response[0]
|
141
141
|
end
|
142
142
|
|
143
143
|
def disconnect(connection_id)
|
144
144
|
@config.base_url = 'https://api.xero.com'
|
145
145
|
opts = { :header_params => {'Content-Type': 'application/json'}, :auth_names => ['OAuth2'] }
|
146
|
-
call_api(:DELETE,
|
146
|
+
call_api(:DELETE, "/connections/#{connection_id}", nil, opts)
|
147
147
|
connections
|
148
148
|
end
|
149
149
|
|
data/lib/xero-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xero API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|