teamleader 0.11.0 → 0.11.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: e1812a72f017715c10acdec4291b8c417c08c2b5
4
- data.tar.gz: 1590bd248e42db13a3d2dcaf997015f8f57e083e
3
+ metadata.gz: 1b032164acf6cb141ae8a4ad3f63a7c29bc5896a
4
+ data.tar.gz: 4bf5d4f8623e52219c3d15623670c409f0679a59
5
5
  SHA512:
6
- metadata.gz: 0eaefda04b78cffce153ffef5e8e84c88247b2c5e5263262114a90849c4c1cb82bd55a97b1997ffc9bd6c0cb4d2e2246ceb93bbc0eedc2d8703423f8f8f0351c
7
- data.tar.gz: fb8c365b8bacdf25855234e15acc2041e75ec50ff657a1b0863d79996767b380d9c6b1f2d4bf0970c0923af4bbf081705bf4b65305b15be4c2015193238a0050
6
+ metadata.gz: cb471f6b7255a316fffd2108fa3b7a698096432de7481913d2d5960748608d28e8ef0e968525eeddce7990dc5f8bc3dccc89a4b22914014846652ec94c99d65f
7
+ data.tar.gz: a7e52c809b5ea38ec697e40f1b5cf98a5e83d22241caa421bfa1a83fbc9292c4bfcacaab6cada65f7b617e653a34731771849981113f2164d6d79564a230f040
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.11.1] - 2018-03-07
5
+ ### Fixed
6
+ - Error when the API responds with an error but no `reason` attribute in the response body.
7
+
4
8
  ## [0.11.0] - 2018-02-15
5
9
  ### Added
6
10
  - New methods related to invoices and credit notes: `book_draft_invoice`, `update_invoice`, `update_invoice_comments`, `delete_invoice`, `get_creditnote`, `get_invoices_by_project`, `get_creditnotes_by_project`, `get_invoices_by_deal`, `add_creditnote`
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Teamleader
2
2
 
3
- A ruby wrapper around Teamleader.eu API.
3
+ A ruby wrapper around Teamleader.eu API v1.
4
4
 
5
- **This Teamleader client is still in development, only a few endpoints are supported (see below).**
5
+ **Some endpoints are still missing. Don't hesitate to open an issue or a PR if you need one of them.**
6
6
 
7
7
  ## Installation
8
8
 
@@ -386,7 +386,7 @@ module Teamleader
386
386
  else
387
387
  err = "unknown error"
388
388
  begin
389
- err = JSON.parse(response.body)["reason"]
389
+ err = JSON.parse(response.body)["reason"] || "#{response.body}"
390
390
  rescue
391
391
  err = "#{response.body}"
392
392
  end
@@ -1,3 +1,3 @@
1
1
  module Teamleader
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamleader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-Yves Orban
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler