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 +4 -4
- data/lib/rightsignature/rails_style.rb +3 -3
- data/lib/rightsignature/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fee32dc90b58be2dc5b3242d92f38ff106be67a8
|
4
|
+
data.tar.gz: bc3a96cb85c3ebcdadbc1b8b463168086882f6f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|