rightsignature-railstyle 1.1.10 → 1.1.11

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: 0dd8c30953726df1a4247249a5e3bc1a6431b8db
4
- data.tar.gz: 5b662b919135842c68b105a23555a62f1f3ab0ec
3
+ metadata.gz: fee32dc90b58be2dc5b3242d92f38ff106be67a8
4
+ data.tar.gz: bc3a96cb85c3ebcdadbc1b8b463168086882f6f5
5
5
  SHA512:
6
- metadata.gz: 78916d01bc9f350c373b6db6c9beaf73e46a525a40c6ff359af3fa7e934d73791a19ba1f43ce45b34a0b9bd12542f2518fbcc404b34f707e5304e94376199d44
7
- data.tar.gz: 3d6b94cc8b10f619e8e343953e824334079c1c86536cfa0e4f814c58ba28a462e6e729ff3d7fed8730165e5aed5ce6cc11cb71d756cc9dfe07cfdb50bd43cbc8
6
+ metadata.gz: 9e2aaf64850694f25495505fda199e26b578d984cb22a7429d68d97c8a4e263f1ff7432a0cc8f2b08f97a5ef4f2ed829c93e451c0ae25292746a0eb99c0ad31c
7
+ data.tar.gz: da112d6f82f5e24ea82fbaaf63b1ca12c79688ddeeb87ea6b1d283c7c20f699ae48f34f16b4369fea0d24ae744e48ce441f9678a811f81cb9c63281b7dc67000
@@ -66,10 +66,10 @@ module RightSignature
66
66
  tmp = doc[:recipients] && (doc[:recipients][:recipient].is_a?(Hash) ? [doc[:recipients][:recipient]] : doc[:recipients][:recipient])
67
67
  doc[:recipients] = tmp.reduce({}){|h, v| h[v[:role_id]] = v and h} if tmp
68
68
 
69
- tmp = doc[:audit_trails] && doc[:audit_trails][:audit_trail].is_a?(Hash) ? [doc[:audit_trails][:audit_trail]] : doc[:audit_trails][:audit_trail]
69
+ tmp = doc[:audit_trails] && (doc[:audit_trails][:audit_trail].is_a?(Hash) ? [doc[:audit_trails][:audit_trail]] : doc[:audit_trails][:audit_trail])
70
70
  doc[:audit_trails] = tmp.reduce({}){|h, v| h[v[:timestamp]] = v and h} if tmp
71
71
 
72
- tmp = doc[:form_fields] && doc[:form_fields][:form_field].is_a?(Hash) ? [doc[:form_fields][:form_field]] : doc[:form_fields][:form_field]
72
+ tmp = doc[:form_fields] && (doc[:form_fields][:form_field].is_a?(Hash) ? [doc[:form_fields][:form_field]] : doc[:form_fields][:form_field])
73
73
  doc[:form_fields] = tmp.reduce({}){|h, v| h[v[:name]] = v and h} if tmp
74
74
 
75
75
  # Extract a few fields from a deeply nested array
@@ -82,7 +82,7 @@ module RightSignature
82
82
  doc.delete(:pages)
83
83
 
84
84
  %i(original_url pdf_url thumbnail_url large_url signed_pdf_url).each do |sym|
85
- doc[sym] = CGI.unescape doc[sym]
85
+ doc[sym] = CGI.unescape doc[sym] if doc[sym]
86
86
  end
87
87
 
88
88
  doc
@@ -1,3 +1,3 @@
1
1
  module RightSignature
2
- VERSION = "1.1.10"
2
+ VERSION = "1.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rightsignature-railstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Barone