quaderno 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60c78df520fe03a7e7897fd817402088dafecec5
4
- data.tar.gz: a5eb161a1246641c7816bdd18afd0a8c0e730eae
3
+ metadata.gz: 5e23b1598201122ad5c4862ddba902cf6ab99042
4
+ data.tar.gz: 6d6e84f98d3132194e00ee7baaa04ab26a485700
5
5
  SHA512:
6
- metadata.gz: d977e5782c107041591ab38df7b581fa977e8b64754f35e3922f57e38d5e1f3eedc1b808171f44adda3f959a00256ecc6fc3ad995b868ef765e623968626bef7
7
- data.tar.gz: ebd8f9e2b95ef6cd7e803578b4201d4a4176a2aad2d785bb5c8b744b7a9923b5bf64deed8733ef14f31c9c190f177fbb579075c022cf5b185c3efd5c8be94cd8
6
+ metadata.gz: d266fee84e76e0c104006f89433d89a9a9da7bf2ac4fd4efa7b880e7cb5c09a55a8631ec5177e2eb98c39d071347cd7d77ac5e821bf76d4dbb6a3c1c0501db50
7
+ data.tar.gz: 7783e07debc8f356d8257d4c38d1dc7fcb1dea8939fac86a6ebb130682fb2273acbd0fa7b8961e758e0440348becb8b4289d0ac400a1ed8f16920a89f526bf06
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Quaderno-ruby is a ruby wrapper for [Quaderno API] (https://github.com/quaderno/quaderno-api).
4
4
  As the API, it's mostly CRUD.
5
5
 
6
- Current version is 1.5.1. See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
6
+ Current version is 1.5.2. See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
7
7
 
8
8
  ## Installation & Configuration
9
9
 
@@ -391,6 +391,19 @@ will delete the transaction with the id passed as parameter.
391
391
 
392
392
  will calculate the taxes applied for a customer based on the data pased as parameters.
393
393
 
394
+
395
+ ## Exceptions
396
+ Quaderno-ruby exceptions raise depending on the type of error:
397
+
398
+ ```ruby
399
+ Quaderno::Exceptions::InvalidSubdomainOrToken # Raised when the credentials are wrong, missing or do not match the permission for some object.
400
+
401
+ Quaderno::Exceptions::RateLimitExceeded # Raised when the rate limit is exceeded.
402
+
403
+ Quaderno::Exceptions::RequiredFieldsEmptyOrInvalid # Raised if the format of the request is right but some validations failed.
404
+ ```
405
+
406
+
394
407
  ## More information
395
408
 
396
409
  Remember this is only a ruby wrapper for the original API. If you want more information about the API itself, head to the original [API documentation](https://github.com/quaderno/quaderno-api).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.1
1
+ 1.5.2
data/changelog.md CHANGED
@@ -1,7 +1,11 @@
1
1
  #Changelog
2
+ ##1.5.1 and 1.5.2
3
+ * Remove debugger
4
+ * `Quaderno::Exceptions::RequiredFieldsEmpty` replaced with `Quaderno::Exceptions::RequiredFieldsEmptyOrInvalid`
5
+
2
6
  ##1.5.0
3
7
  * Added transactions
4
- * Raise `Quaderno::Exceptions::RequiredFieldsEmpty for 422 responses
8
+ * Raise `Quaderno::Exceptions::RequiredFieldsEmpty` for 422 responses
5
9
 
6
10
  ##1.4.2
7
11
  * Find method hotfix
@@ -12,7 +12,7 @@ module Quaderno
12
12
  class HasAssociatedDocuments < Exception
13
13
  end
14
14
 
15
- class RequiredFieldsEmpty < Exception
15
+ class RequiredFieldsEmptyOrInvalid < Exception
16
16
  end
17
17
 
18
18
  def self.included(receiver)
data/quaderno.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: quaderno 1.5.1 ruby lib
5
+ # stub: quaderno 1.5.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "quaderno"
9
- s.version = "1.5.1"
9
+ s.version = "1.5.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Recrea"]
14
- s.date = "2014-12-09"
14
+ s.date = "2014-12-10"
15
15
  s.description = " A ruby wrapper for Quaderno API "
16
16
  s.email = "carlos@recrea.es"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quaderno
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recrea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty