passworks 2.0.5 → 2.0.6

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: c2ded719b46448d2a05ac661d96b09470988264d
4
- data.tar.gz: 4a8879255f1a278f336af7765d32af37a418d504
3
+ metadata.gz: 8f0480105b8f657cf34ba5a0bff97cd120346d8a
4
+ data.tar.gz: eeeb917929097fe0845dcbe611b1d9e5dcc51dc5
5
5
  SHA512:
6
- metadata.gz: c27c7ee1c866808963a19831c607efd7a3c2a652a248e68d3c85cdc05463ea9f840cee88e1259cd8be5ad4aeb3baaab1675985e601a280376587d8dadb331f0b
7
- data.tar.gz: d89aaefb344fffc1921c9de03d25245c62e3aead50caf436b38f68974587e367357bcab62a2ad79dd96f42e80bfe521ea6c9e832d021a2723cdf9ee920ec1d92
6
+ metadata.gz: 4b4afb455a3e6ed3f6c18b8e68c80d22a17c361fbde804eef944101a3b378a89bd464104c745cd238cfecd4bcb1a5da233871a48070892f2f896f19941c1c282
7
+ data.tar.gz: 9e3a857b0f74db7128e96b41179e7921b28a863516793201a8d4a821d48a0f03c54d57fd6a61a8c45056ade11428e7ef84bcbccec960cf971ea6f253a18b67b1
@@ -3,6 +3,12 @@
3
3
  This file is a manually maintained list of changes for each release. Feel free to add your
4
4
  changes here when sending pull requests. Also send corrections if you spot any mistakes.
5
5
 
6
+ ## v2.0.6 (2015-12-22)
7
+ * Fixed JSON errors when displaying attributes with a single error (non-array-format).
8
+
9
+ ## v2.0.5 (2015-12-21)
10
+ * Fixed file upload issue cause by sending the wrong content-type.
11
+
6
12
  ## v2.0.4 (2015-12-18)
7
13
  * Better exception and error handling
8
14
 
@@ -6,6 +6,7 @@ module Passworks
6
6
  def delete
7
7
  client.delete("#{collection_name}/#{id}").ok?
8
8
  end
9
+ alias_method :destroy, :delete
9
10
 
10
11
  end
11
12
  end
@@ -64,7 +64,10 @@ module Passworks
64
64
  if body.nil?
65
65
  nil
66
66
  elsif body['errors']
67
- body['errors'].collect{ |k,v| "#{k}: #{v.join(',')}" }.join("\n")
67
+ body['errors'].collect{ |k,v|
68
+ errors = v.is_a?(String) ? v : v.join(',')
69
+ "#{k}: #{errors}"
70
+ }.join("\n")
68
71
  end
69
72
  end
70
73
 
@@ -1,3 +1,3 @@
1
1
  module Passworks
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Mendes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-12-21 00:00:00.000000000 Z
13
+ date: 2015-12-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday