groupdocs 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. data/CHANGELOG.md +34 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +3 -0
  4. data/examples/api-samples/public/docs/sample01.html +23 -23
  5. data/examples/api-samples/public/docs/sample02.html +27 -27
  6. data/examples/api-samples/public/docs/sample03.html +81 -69
  7. data/examples/api-samples/public/docs/sample04.html +29 -29
  8. data/examples/api-samples/public/docs/sample05.html +48 -48
  9. data/examples/api-samples/public/docs/sample06.html +47 -46
  10. data/examples/api-samples/public/docs/sample07.html +35 -35
  11. data/examples/api-samples/public/docs/sample08.html +45 -45
  12. data/examples/api-samples/public/docs/sample09.html +57 -57
  13. data/examples/api-samples/public/docs/sample10.html +41 -41
  14. data/examples/api-samples/public/docs/sample11.html +96 -118
  15. data/examples/api-samples/public/docs/sample12.html +29 -50
  16. data/examples/api-samples/public/docs/sample13.html +36 -44
  17. data/examples/api-samples/public/docs/sample14.html +29 -29
  18. data/examples/api-samples/public/docs/sample15.html +24 -24
  19. data/examples/api-samples/public/docs/sample16.html +32 -32
  20. data/examples/api-samples/public/docs/sample17.html +38 -38
  21. data/examples/api-samples/public/docs/sample18.html +105 -101
  22. data/examples/api-samples/public/docs/sample19.html +101 -101
  23. data/examples/api-samples/public/docs/sample20.html +42 -42
  24. data/examples/api-samples/public/docs/sample21.html +109 -109
  25. data/examples/api-samples/public/docs/sample22.html +56 -56
  26. data/examples/api-samples/public/docs/sample23.html +39 -39
  27. data/examples/api-samples/public/docs/sample24.html +36 -36
  28. data/examples/api-samples/public/docs/sample25.html +67 -67
  29. data/examples/api-samples/public/docs/sample26.html +23 -23
  30. data/examples/api-samples/public/docs/sample27.html +72 -72
  31. data/examples/api-samples/public/docs/sample28.html +46 -45
  32. data/examples/api-samples/public/docs/sample29.html +30 -30
  33. data/examples/api-samples/public/docs/sample30.html +30 -30
  34. data/examples/api-samples/public/docs/sample31.html +114 -114
  35. data/examples/api-samples/public/docs/sample32.html +96 -96
  36. data/examples/api-samples/public/docs/sample33.html +56 -56
  37. data/examples/api-samples/public/docs/sample34.html +27 -27
  38. data/examples/api-samples/public/docs/sample35.html +134 -135
  39. data/examples/api-samples/public/docs/sample36.html +32 -32
  40. data/examples/api-samples/public/docs/sample37.html +103 -103
  41. data/examples/api-samples/public/docs/sample38.html +76 -76
  42. data/examples/api-samples/public/docs/sample39.html +136 -136
  43. data/examples/api-samples/public/docs/sample40.html +104 -104
  44. data/examples/api-samples/public/docs/sample41.html +137 -137
  45. data/examples/api-samples/public/docs/sample42.html +61 -61
  46. data/examples/api-samples/public/docs/sample43.html +72 -72
  47. data/examples/api-samples/public/docs/sample44.html +751 -0
  48. data/examples/api-samples/public/docs/sample45.html +236 -0
  49. data/examples/api-samples/public/templates/merge_field3_doc.docx +0 -0
  50. data/examples/api-samples/samples/sample01.rb +2 -2
  51. data/examples/api-samples/samples/sample02.rb +2 -2
  52. data/examples/api-samples/samples/sample03.rb +2 -2
  53. data/examples/api-samples/samples/sample04.rb +2 -2
  54. data/examples/api-samples/samples/sample05.rb +2 -2
  55. data/examples/api-samples/samples/sample06.rb +2 -2
  56. data/examples/api-samples/samples/sample07.rb +2 -2
  57. data/examples/api-samples/samples/sample08.rb +2 -2
  58. data/examples/api-samples/samples/sample09.rb +2 -2
  59. data/examples/api-samples/samples/sample10.rb +2 -2
  60. data/examples/api-samples/samples/sample11.rb +2 -2
  61. data/examples/api-samples/samples/sample12.rb +2 -2
  62. data/examples/api-samples/samples/sample13.rb +2 -2
  63. data/examples/api-samples/samples/sample14.rb +2 -2
  64. data/examples/api-samples/samples/sample15.rb +2 -2
  65. data/examples/api-samples/samples/sample16.rb +2 -2
  66. data/examples/api-samples/samples/sample17.rb +2 -2
  67. data/examples/api-samples/samples/sample18.rb +2 -2
  68. data/examples/api-samples/samples/sample19.rb +2 -2
  69. data/examples/api-samples/samples/sample20.rb +2 -2
  70. data/examples/api-samples/samples/sample21.rb +2 -2
  71. data/examples/api-samples/samples/sample22.rb +2 -2
  72. data/examples/api-samples/samples/sample23.rb +2 -2
  73. data/examples/api-samples/samples/sample24.rb +2 -2
  74. data/examples/api-samples/samples/sample25.rb +2 -2
  75. data/examples/api-samples/samples/sample26.rb +2 -2
  76. data/examples/api-samples/samples/sample27.rb +2 -2
  77. data/examples/api-samples/samples/sample28.rb +2 -2
  78. data/examples/api-samples/samples/sample29.rb +2 -2
  79. data/examples/api-samples/samples/sample30.rb +2 -2
  80. data/examples/api-samples/samples/sample31.rb +2 -2
  81. data/examples/api-samples/samples/sample32.rb +2 -2
  82. data/examples/api-samples/samples/sample33.rb +2 -2
  83. data/examples/api-samples/samples/sample34.rb +2 -2
  84. data/examples/api-samples/samples/sample35.rb +4 -4
  85. data/examples/api-samples/samples/sample36.rb +2 -2
  86. data/examples/api-samples/samples/sample37.rb +2 -2
  87. data/examples/api-samples/samples/sample38.rb +2 -2
  88. data/examples/api-samples/samples/sample39.rb +2 -2
  89. data/examples/api-samples/samples/sample40.rb +2 -2
  90. data/examples/api-samples/samples/sample41.rb +2 -2
  91. data/examples/api-samples/samples/sample42.rb +2 -2
  92. data/examples/api-samples/samples/sample43.rb +2 -2
  93. data/examples/api-samples/samples/sample44.rb +188 -0
  94. data/examples/api-samples/samples/sample45.rb +74 -0
  95. data/examples/api-samples/views/_others_samples.haml +47 -43
  96. data/examples/api-samples/views/index.haml +55 -44
  97. data/examples/api-samples/views/layout.haml +1 -6
  98. data/examples/api-samples/views/sample01.haml +62 -57
  99. data/examples/api-samples/views/sample02.haml +52 -46
  100. data/examples/api-samples/views/sample03.haml +78 -73
  101. data/examples/api-samples/views/sample04.haml +51 -45
  102. data/examples/api-samples/views/sample05.haml +77 -71
  103. data/examples/api-samples/views/sample06.haml +58 -52
  104. data/examples/api-samples/views/sample07.haml +51 -45
  105. data/examples/api-samples/views/sample08.haml +90 -84
  106. data/examples/api-samples/views/sample09.haml +86 -80
  107. data/examples/api-samples/views/sample10.haml +83 -77
  108. data/examples/api-samples/views/sample11.haml +124 -120
  109. data/examples/api-samples/views/sample12.haml +65 -59
  110. data/examples/api-samples/views/sample13.haml +62 -56
  111. data/examples/api-samples/views/sample14.haml +57 -51
  112. data/examples/api-samples/views/sample15.haml +49 -43
  113. data/examples/api-samples/views/sample16.haml +49 -43
  114. data/examples/api-samples/views/sample17.haml +53 -47
  115. data/examples/api-samples/views/sample18.haml +140 -134
  116. data/examples/api-samples/views/sample19.haml +87 -81
  117. data/examples/api-samples/views/sample20.haml +53 -47
  118. data/examples/api-samples/views/sample21.haml +115 -111
  119. data/examples/api-samples/views/sample22.haml +94 -88
  120. data/examples/api-samples/views/sample23.haml +83 -78
  121. data/examples/api-samples/views/sample24.haml +54 -48
  122. data/examples/api-samples/views/sample25.haml +89 -83
  123. data/examples/api-samples/views/sample26.haml +62 -57
  124. data/examples/api-samples/views/sample27.haml +114 -109
  125. data/examples/api-samples/views/sample28.haml +55 -49
  126. data/examples/api-samples/views/sample29.haml +67 -69
  127. data/examples/api-samples/views/sample30.haml +54 -48
  128. data/examples/api-samples/views/sample31.haml +106 -100
  129. data/examples/api-samples/views/sample32.haml +90 -84
  130. data/examples/api-samples/views/sample33.haml +60 -54
  131. data/examples/api-samples/views/sample34.haml +51 -46
  132. data/examples/api-samples/views/sample35.haml +84 -78
  133. data/examples/api-samples/views/sample36.haml +63 -58
  134. data/examples/api-samples/views/sample37.haml +122 -116
  135. data/examples/api-samples/views/sample38.haml +104 -98
  136. data/examples/api-samples/views/sample39.haml +6 -2
  137. data/examples/api-samples/views/sample40.haml +94 -89
  138. data/examples/api-samples/views/sample41.haml +127 -123
  139. data/examples/api-samples/views/sample42.haml +60 -54
  140. data/examples/api-samples/views/sample43.haml +81 -77
  141. data/examples/api-samples/views/sample44.haml +85 -0
  142. data/examples/api-samples/views/sample45.haml +85 -0
  143. data/groupdocs.gemspec +2 -0
  144. data/lib/groupdocs/datasource/field.rb +9 -0
  145. data/lib/groupdocs/document.rb +66 -4
  146. data/lib/groupdocs/document/annotation.rb +11 -6
  147. data/lib/groupdocs/document/editor.rb +53 -0
  148. data/lib/groupdocs/document/field.rb +16 -0
  149. data/lib/groupdocs/document/style.rb +30 -0
  150. data/lib/groupdocs/job.rb +24 -0
  151. data/lib/groupdocs/questionnaire.rb +2 -0
  152. data/lib/groupdocs/questionnaire/collector.rb +52 -0
  153. data/lib/groupdocs/questionnaire/collector_style.rb +54 -0
  154. data/lib/groupdocs/questionnaire/question.rb +9 -0
  155. data/lib/groupdocs/questionnaire/style/base_font.rb +17 -0
  156. data/lib/groupdocs/questionnaire/style/question_title.rb +17 -0
  157. data/lib/groupdocs/questionnaire/style/title.rb +17 -0
  158. data/lib/groupdocs/signature/envelope.rb +43 -8
  159. data/lib/groupdocs/signature/form.rb +113 -12
  160. data/lib/groupdocs/signature/recipient.rb +38 -3
  161. data/lib/groupdocs/signature/shared/field_methods.rb +4 -2
  162. data/lib/groupdocs/signature/template.rb +20 -1
  163. data/lib/groupdocs/storage/file.rb +3 -2
  164. data/lib/groupdocs/user.rb +148 -0
  165. data/lib/groupdocs/version.rb +1 -1
  166. data/spec/groupdocs/api/helpers/access_rights_helper_spec.rb +5 -5
  167. data/spec/groupdocs/document/annotation_spec.rb +1 -1
  168. data/spec/groupdocs/signature/envelope_spec.rb +1 -1
  169. data/spec/groupdocs/user_spec.rb +4 -4
  170. data/spec/support/shared_examples/signature/shared/field_methods.rb +5 -4
  171. metadata +18 -3
@@ -31,9 +31,9 @@
31
31
 
32
32
  </div>
33
33
 
34
- <div class="content"><div class='highlight'><pre>get <span class="string">'/sample04'</span> <span class="keyword">do</span>
35
- haml <span class="symbol">:sample04</span>
36
- <span class="keyword">end</span></pre></div></div>
34
+ <div class="content"><div class='highlight'><pre>get <span class="hljs-string">'/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api'</span> <span class="hljs-keyword">do</span>
35
+ haml <span class="hljs-symbol">:sample04</span>
36
+ <span class="hljs-keyword">end</span></pre></div></div>
37
37
 
38
38
  </li>
39
39
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  </div>
50
50
 
51
- <div class="content"><div class='highlight'><pre>post <span class="string">'/sample04'</span> <span class="keyword">do</span></pre></div></div>
51
+ <div class="content"><div class='highlight'><pre>post <span class="hljs-string">'/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api'</span> <span class="hljs-keyword">do</span></pre></div></div>
52
52
 
53
53
  </li>
54
54
 
@@ -63,13 +63,13 @@
63
63
 
64
64
  </div>
65
65
 
66
- <div class="content"><div class='highlight'><pre> set <span class="symbol">:client_id</span>, params[<span class="symbol">:clientId</span>]
67
- set <span class="symbol">:private_key</span>, params[<span class="symbol">:privateKey</span>]
68
- set <span class="symbol">:file_id</span>, params[<span class="symbol">:fileId</span>]
69
- set <span class="symbol">:url</span>, params[<span class="symbol">:url</span>]
70
- set <span class="symbol">:base_path</span>, params[<span class="symbol">:basePath</span>]
66
+ <div class="content"><div class='highlight'><pre> set <span class="hljs-symbol">:client_id</span>, params[<span class="hljs-symbol">:clientId</span>]
67
+ set <span class="hljs-symbol">:private_key</span>, params[<span class="hljs-symbol">:privateKey</span>]
68
+ set <span class="hljs-symbol">:file_id</span>, params[<span class="hljs-symbol">:fileId</span>]
69
+ set <span class="hljs-symbol">:url</span>, params[<span class="hljs-symbol">:url</span>]
70
+ set <span class="hljs-symbol">:base_path</span>, params[<span class="hljs-symbol">:basePath</span>]
71
71
 
72
- <span class="keyword">begin</span></pre></div></div>
72
+ <span class="hljs-keyword">begin</span></pre></div></div>
73
73
 
74
74
  </li>
75
75
 
@@ -84,7 +84,7 @@
84
84
 
85
85
  </div>
86
86
 
87
- <div class="content"><div class='highlight'><pre> raise <span class="string">'Please enter all required parameters'</span> <span class="keyword">if</span> settings.client_id.empty? <span class="keyword">or</span> settings.private_key.empty? <span class="keyword">or</span> settings.file_id.empty?</pre></div></div>
87
+ <div class="content"><div class='highlight'><pre> raise <span class="hljs-string">'Please enter all required parameters'</span> <span class="hljs-keyword">if</span> settings.client_id.empty? <span class="hljs-keyword">or</span> settings.private_key.empty? <span class="hljs-keyword">or</span> settings.file_id.empty?</pre></div></div>
88
88
 
89
89
  </li>
90
90
 
@@ -99,13 +99,13 @@
99
99
 
100
100
  </div>
101
101
 
102
- <div class="content"><div class='highlight'><pre> <span class="keyword">if</span> settings.base_path.empty?
103
- base_path = <span class="string">'https://api.groupdocs.com'</span>
104
- <span class="keyword">elsif</span> settings.base_path.match(<span class="string">'/v2.0'</span>)
105
- base_path = settings.base_path.split(<span class="string">'/v2.0'</span>)[<span class="number">0</span>]
106
- <span class="keyword">else</span>
102
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> settings.base_path.empty?
103
+ base_path = <span class="hljs-string">'https://api.groupdocs.com'</span>
104
+ <span class="hljs-keyword">elsif</span> settings.base_path.match(<span class="hljs-string">'/v2.0'</span>)
105
+ base_path = settings.base_path.split(<span class="hljs-string">'/v2.0'</span>)[<span class="hljs-number">0</span>]
106
+ <span class="hljs-keyword">else</span>
107
107
  base_path = settings.base_path
108
- <span class="keyword">end</span></pre></div></div>
108
+ <span class="hljs-keyword">end</span></pre></div></div>
109
109
 
110
110
  </li>
111
111
 
@@ -120,7 +120,7 @@
120
120
 
121
121
  </div>
122
122
 
123
- <div class="content"><div class='highlight'><pre> <span class="constant">GroupDocs</span>.configure <span class="keyword">do</span> |groupdocs|
123
+ <div class="content"><div class='highlight'><pre> <span class="hljs-constant">GroupDocs</span>.configure <span class="hljs-keyword">do</span> |groupdocs|
124
124
  groupdocs.client_id = settings.client_id
125
125
  groupdocs.private_key = settings.private_key</pre></div></div>
126
126
 
@@ -137,8 +137,8 @@
137
137
 
138
138
  </div>
139
139
 
140
- <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
141
- <span class="keyword">end</span></pre></div></div>
140
+ <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="hljs-comment"># default is 'https://api.groupdocs.com'</span>
141
+ <span class="hljs-keyword">end</span></pre></div></div>
142
142
 
143
143
  </li>
144
144
 
@@ -153,7 +153,7 @@
153
153
 
154
154
  </div>
155
155
 
156
- <div class="content"><div class='highlight'><pre> file = <span class="constant">GroupDocs::Storage::File</span>.new({<span class="symbol">:guid</span> =&gt; settings.file_id}).to_document</pre></div></div>
156
+ <div class="content"><div class='highlight'><pre> file = <span class="hljs-constant">GroupDocs::Storage::File</span>.new({<span class="hljs-symbol">:guid</span> =&gt; settings.file_id}).to_document</pre></div></div>
157
157
 
158
158
  </li>
159
159
 
@@ -184,14 +184,14 @@
184
184
 
185
185
  </div>
186
186
 
187
- <div class="content"><div class='highlight'><pre> dowloaded_file = file.download!(<span class="string">"<span class="subst">#{<span class="constant">File</span>.dirname(__FILE_<span class="number">_</span>)}</span>/../public/downloads"</span>)
188
- <span class="keyword">unless</span> dowloaded_file.empty?
189
- massage = <span class="string">"&lt;font color='green'&gt;File was downloaded to the &lt;font color='blue'&gt;<span class="subst">#{dowloaded_file}</span>&lt;/font&gt; folder&lt;/font&gt; &lt;br /&gt;"</span>
190
- <span class="keyword">end</span>
187
+ <div class="content"><div class='highlight'><pre> dowloaded_file = file.download!(<span class="hljs-string">"<span class="hljs-subst">#{<span class="hljs-constant">File</span>.dirname(__FILE_<span class="hljs-number">_</span>)}</span>/../public/downloads"</span>)
188
+ <span class="hljs-keyword">unless</span> dowloaded_file.empty?
189
+ massage = <span class="hljs-string">"&lt;font color='green'&gt;File was downloaded to the &lt;font color='blue'&gt;<span class="hljs-subst">#{dowloaded_file}</span>&lt;/font&gt; folder&lt;/font&gt; &lt;br /&gt;"</span>
190
+ <span class="hljs-keyword">end</span>
191
191
 
192
- <span class="keyword">rescue</span> <span class="constant">Exception</span> =&gt; e
192
+ <span class="hljs-keyword">rescue</span> <span class="hljs-constant">Exception</span> =&gt; e
193
193
  err = e.message
194
- <span class="keyword">end</span></pre></div></div>
194
+ <span class="hljs-keyword">end</span></pre></div></div>
195
195
 
196
196
  </li>
197
197
 
@@ -206,8 +206,8 @@
206
206
 
207
207
  </div>
208
208
 
209
- <div class="content"><div class='highlight'><pre> haml <span class="symbol">:sample04</span>, <span class="symbol">:locals</span> =&gt; {<span class="symbol">:clientId</span> =&gt; settings.client_id, <span class="symbol">:privateKey</span> =&gt; settings.private_key, <span class="symbol">:fileId</span> =&gt; settings.file_id, <span class="symbol">:massage</span> =&gt; massage, <span class="symbol">:err</span> =&gt; err}
210
- <span class="keyword">end</span></pre></div></div>
209
+ <div class="content"><div class='highlight'><pre> haml <span class="hljs-symbol">:sample04</span>, <span class="hljs-symbol">:locals</span> =&gt; {<span class="hljs-symbol">:clientId</span> =&gt; settings.client_id, <span class="hljs-symbol">:privateKey</span> =&gt; settings.private_key, <span class="hljs-symbol">:fileId</span> =&gt; settings.file_id, <span class="hljs-symbol">:massage</span> =&gt; massage, <span class="hljs-symbol">:err</span> =&gt; err}
210
+ <span class="hljs-keyword">end</span></pre></div></div>
211
211
 
212
212
  </li>
213
213
 
@@ -31,9 +31,9 @@
31
31
 
32
32
  </div>
33
33
 
34
- <div class="content"><div class='highlight'><pre>get <span class="string">'/sample05'</span> <span class="keyword">do</span>
35
- haml <span class="symbol">:sample05</span>
36
- <span class="keyword">end</span></pre></div></div>
34
+ <div class="content"><div class='highlight'><pre>get <span class="hljs-string">'/sample-5-how-to-copy-move-a-file-using-the-groupdocs-storage-api'</span> <span class="hljs-keyword">do</span>
35
+ haml <span class="hljs-symbol">:sample05</span>
36
+ <span class="hljs-keyword">end</span></pre></div></div>
37
37
 
38
38
  </li>
39
39
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  </div>
50
50
 
51
- <div class="content"><div class='highlight'><pre>post <span class="string">'/sample05'</span> <span class="keyword">do</span></pre></div></div>
51
+ <div class="content"><div class='highlight'><pre>post <span class="hljs-string">'/sample-5-how-to-copy-move-a-file-using-the-groupdocs-storage-api'</span> <span class="hljs-keyword">do</span></pre></div></div>
52
52
 
53
53
  </li>
54
54
 
@@ -63,17 +63,17 @@
63
63
 
64
64
  </div>
65
65
 
66
- <div class="content"><div class='highlight'><pre> set <span class="symbol">:client_id</span>, params[<span class="symbol">:clientId</span>]
67
- set <span class="symbol">:private_key</span>, params[<span class="symbol">:privateKey</span>]
68
- set <span class="symbol">:file_id</span>, params[<span class="symbol">:srcPath</span>]
69
- set <span class="symbol">:url</span>, params[<span class="symbol">:url</span>]
70
- set <span class="symbol">:copy</span>, params[<span class="symbol">:copy</span>]
71
- set <span class="symbol">:move</span>, params[<span class="symbol">:move</span>]
72
- set <span class="symbol">:dest_path</span>, params[<span class="symbol">:destPath</span>]
73
- set <span class="symbol">:source</span>, params[<span class="symbol">:source</span>]
74
- set <span class="symbol">:base_path</span>, params[<span class="symbol">:basePath</span>]
66
+ <div class="content"><div class='highlight'><pre> set <span class="hljs-symbol">:client_id</span>, params[<span class="hljs-symbol">:clientId</span>]
67
+ set <span class="hljs-symbol">:private_key</span>, params[<span class="hljs-symbol">:privateKey</span>]
68
+ set <span class="hljs-symbol">:file_id</span>, params[<span class="hljs-symbol">:srcPath</span>]
69
+ set <span class="hljs-symbol">:url</span>, params[<span class="hljs-symbol">:url</span>]
70
+ set <span class="hljs-symbol">:copy</span>, params[<span class="hljs-symbol">:copy</span>]
71
+ set <span class="hljs-symbol">:move</span>, params[<span class="hljs-symbol">:move</span>]
72
+ set <span class="hljs-symbol">:dest_path</span>, params[<span class="hljs-symbol">:destPath</span>]
73
+ set <span class="hljs-symbol">:source</span>, params[<span class="hljs-symbol">:source</span>]
74
+ set <span class="hljs-symbol">:base_path</span>, params[<span class="hljs-symbol">:basePath</span>]
75
75
 
76
- <span class="keyword">begin</span></pre></div></div>
76
+ <span class="hljs-keyword">begin</span></pre></div></div>
77
77
 
78
78
  </li>
79
79
 
@@ -88,7 +88,7 @@
88
88
 
89
89
  </div>
90
90
 
91
- <div class="content"><div class='highlight'><pre> raise <span class="string">'Please enter all required parameters'</span> <span class="keyword">if</span> settings.client_id.empty? <span class="keyword">or</span> settings.private_key.empty?</pre></div></div>
91
+ <div class="content"><div class='highlight'><pre> raise <span class="hljs-string">'Please enter all required parameters'</span> <span class="hljs-keyword">if</span> settings.client_id.empty? <span class="hljs-keyword">or</span> settings.private_key.empty?</pre></div></div>
92
92
 
93
93
  </li>
94
94
 
@@ -103,13 +103,13 @@
103
103
 
104
104
  </div>
105
105
 
106
- <div class="content"><div class='highlight'><pre> <span class="keyword">if</span> settings.base_path.empty?
107
- base_path = <span class="string">'https://api.groupdocs.com'</span>
108
- <span class="keyword">elsif</span> settings.base_path.match(<span class="string">'/v2.0'</span>)
109
- base_path = settings.base_path.split(<span class="string">'/v2.0'</span>)[<span class="number">0</span>]
110
- <span class="keyword">else</span>
106
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> settings.base_path.empty?
107
+ base_path = <span class="hljs-string">'https://api.groupdocs.com'</span>
108
+ <span class="hljs-keyword">elsif</span> settings.base_path.match(<span class="hljs-string">'/v2.0'</span>)
109
+ base_path = settings.base_path.split(<span class="hljs-string">'/v2.0'</span>)[<span class="hljs-number">0</span>]
110
+ <span class="hljs-keyword">else</span>
111
111
  base_path = settings.base_path
112
- <span class="keyword">end</span></pre></div></div>
112
+ <span class="hljs-keyword">end</span></pre></div></div>
113
113
 
114
114
  </li>
115
115
 
@@ -124,7 +124,7 @@
124
124
 
125
125
  </div>
126
126
 
127
- <div class="content"><div class='highlight'><pre> <span class="constant">GroupDocs</span>.configure <span class="keyword">do</span> |groupdocs|
127
+ <div class="content"><div class='highlight'><pre> <span class="hljs-constant">GroupDocs</span>.configure <span class="hljs-keyword">do</span> |groupdocs|
128
128
  groupdocs.client_id = settings.client_id
129
129
  groupdocs.private_key = settings.private_key</pre></div></div>
130
130
 
@@ -141,10 +141,10 @@
141
141
 
142
142
  </div>
143
143
 
144
- <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
145
- <span class="keyword">end</span>
144
+ <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="hljs-comment"># default is 'https://api.groupdocs.com'</span>
145
+ <span class="hljs-keyword">end</span>
146
146
 
147
- file = <span class="keyword">nil</span></pre></div></div>
147
+ file = <span class="hljs-keyword">nil</span></pre></div></div>
148
148
 
149
149
  </li>
150
150
 
@@ -159,11 +159,11 @@
159
159
 
160
160
  </div>
161
161
 
162
- <div class="content"><div class='highlight'><pre> <span class="keyword">case</span> settings.source
163
- <span class="keyword">when</span> <span class="string">'guid'</span>
164
- file = <span class="constant">GroupDocs::Storage::File</span>.new({<span class="symbol">:guid</span> =&gt; settings.file_id}).to_document.metadata!()
162
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">case</span> settings.source
163
+ <span class="hljs-keyword">when</span> <span class="hljs-string">'guid'</span>
164
+ file = <span class="hljs-constant">GroupDocs::Storage::File</span>.new({<span class="hljs-symbol">:guid</span> =&gt; settings.file_id}).to_document.metadata!()
165
165
  file = file.last_view.document.file
166
- <span class="keyword">when</span> <span class="string">'local'</span></pre></div></div>
166
+ <span class="hljs-keyword">when</span> <span class="hljs-string">'local'</span></pre></div></div>
167
167
 
168
168
  </li>
169
169
 
@@ -178,7 +178,7 @@
178
178
 
179
179
  </div>
180
180
 
181
- <div class="content"><div class='highlight'><pre> filepath = <span class="string">"<span class="subst">#{<span class="constant">Dir</span>.tmpdir}</span>/<span class="subst">#{params[<span class="symbol">:file</span>][<span class="symbol">:filename</span>]}</span>"</span></pre></div></div>
181
+ <div class="content"><div class='highlight'><pre> filepath = <span class="hljs-string">"<span class="hljs-subst">#{<span class="hljs-constant">Dir</span>.tmpdir}</span>/<span class="hljs-subst">#{params[<span class="hljs-symbol">:file</span>][<span class="hljs-symbol">:filename</span>]}</span>"</span></pre></div></div>
182
182
 
183
183
  </li>
184
184
 
@@ -193,7 +193,7 @@
193
193
 
194
194
  </div>
195
195
 
196
- <div class="content"><div class='highlight'><pre> <span class="constant">File</span>.open(filepath, <span class="string">'wb'</span>) { |f| f.write(params[<span class="symbol">:file</span>][<span class="symbol">:tempfile</span>].read) }</pre></div></div>
196
+ <div class="content"><div class='highlight'><pre> <span class="hljs-constant">File</span>.open(filepath, <span class="hljs-string">'wb'</span>) { |f| f.write(params[<span class="hljs-symbol">:file</span>][<span class="hljs-symbol">:tempfile</span>].read) }</pre></div></div>
197
197
 
198
198
  </li>
199
199
 
@@ -208,12 +208,12 @@
208
208
 
209
209
  </div>
210
210
 
211
- <div class="content"><div class='highlight'><pre> file = <span class="constant">GroupDocs::Storage::File</span>.upload!(filepath, {})
212
- <span class="keyword">when</span> <span class="string">'url'</span>
213
- file = <span class="constant">GroupDocs::Storage::File</span>.upload_web!(settings.url)
214
- <span class="keyword">else</span>
215
- raise <span class="string">'Wrong GUID source.'</span>
216
- <span class="keyword">end</span></pre></div></div>
211
+ <div class="content"><div class='highlight'><pre> file = <span class="hljs-constant">GroupDocs::Storage::File</span>.upload!(filepath, {})
212
+ <span class="hljs-keyword">when</span> <span class="hljs-string">'url'</span>
213
+ file = <span class="hljs-constant">GroupDocs::Storage::File</span>.upload_web!(settings.url)
214
+ <span class="hljs-keyword">else</span>
215
+ raise <span class="hljs-string">'Wrong GUID source.'</span>
216
+ <span class="hljs-keyword">end</span></pre></div></div>
217
217
 
218
218
  </li>
219
219
 
@@ -228,10 +228,10 @@
228
228
 
229
229
  </div>
230
230
 
231
- <div class="content"><div class='highlight'><pre> <span class="keyword">unless</span> settings.copy.<span class="keyword">nil</span>?
231
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">unless</span> settings.copy.<span class="hljs-keyword">nil</span>?
232
232
  file = file.copy!(settings.dest_path, {})
233
233
  button = settings.copy
234
- <span class="keyword">end</span></pre></div></div>
234
+ <span class="hljs-keyword">end</span></pre></div></div>
235
235
 
236
236
  </li>
237
237
 
@@ -246,10 +246,10 @@
246
246
 
247
247
  </div>
248
248
 
249
- <div class="content"><div class='highlight'><pre> <span class="keyword">unless</span> settings.move.<span class="keyword">nil</span>?
249
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">unless</span> settings.move.<span class="hljs-keyword">nil</span>?
250
250
  file = file.move!(settings.dest_path, {})
251
251
  button = settings.move
252
- <span class="keyword">end</span></pre></div></div>
252
+ <span class="hljs-keyword">end</span></pre></div></div>
253
253
 
254
254
  </li>
255
255
 
@@ -264,13 +264,13 @@
264
264
 
265
265
  </div>
266
266
 
267
- <div class="content"><div class='highlight'><pre> <span class="keyword">if</span> file
268
- massage = <span class="string">"File was <span class="subst">#{button}</span>'ed to the &lt;font color=\"blue\"&gt;<span class="subst">#{settings.dest_path}</span>&lt;/font&gt; folder"</span>
269
- <span class="keyword">end</span>
267
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> file
268
+ massage = <span class="hljs-string">"File was <span class="hljs-subst">#{button}</span>'ed to the &lt;font color=\"blue\"&gt;<span class="hljs-subst">#{settings.dest_path}</span>&lt;/font&gt; folder"</span>
269
+ <span class="hljs-keyword">end</span>
270
270
 
271
- <span class="keyword">rescue</span> <span class="constant">Exception</span> =&gt; e
271
+ <span class="hljs-keyword">rescue</span> <span class="hljs-constant">Exception</span> =&gt; e
272
272
  err = e.message
273
- <span class="keyword">end</span></pre></div></div>
273
+ <span class="hljs-keyword">end</span></pre></div></div>
274
274
 
275
275
  </li>
276
276
 
@@ -285,8 +285,8 @@
285
285
 
286
286
  </div>
287
287
 
288
- <div class="content"><div class='highlight'><pre> haml <span class="symbol">:sample05</span>, <span class="symbol">:locals</span> =&gt; {<span class="symbol">:clientId</span> =&gt; settings.client_id, <span class="symbol">:privateKey</span> =&gt; settings.private_key, <span class="symbol">:fileId</span> =&gt; settings.file_id, <span class="symbol">:destPath</span> =&gt; settings.dest_path, <span class="symbol">:massage</span> =&gt; massage, <span class="symbol">:err</span> =&gt; err}
289
- <span class="keyword">end</span></pre></div></div>
288
+ <div class="content"><div class='highlight'><pre> haml <span class="hljs-symbol">:sample05</span>, <span class="hljs-symbol">:locals</span> =&gt; {<span class="hljs-symbol">:clientId</span> =&gt; settings.client_id, <span class="hljs-symbol">:privateKey</span> =&gt; settings.private_key, <span class="hljs-symbol">:fileId</span> =&gt; settings.file_id, <span class="hljs-symbol">:destPath</span> =&gt; settings.dest_path, <span class="hljs-symbol">:massage</span> =&gt; massage, <span class="hljs-symbol">:err</span> =&gt; err}
289
+ <span class="hljs-keyword">end</span></pre></div></div>
290
290
 
291
291
  </li>
292
292
 
@@ -31,9 +31,9 @@
31
31
 
32
32
  </div>
33
33
 
34
- <div class="content"><div class='highlight'><pre>get <span class="string">'/sample06'</span> <span class="keyword">do</span>
35
- haml <span class="symbol">:sample06</span>
36
- <span class="keyword">end</span></pre></div></div>
34
+ <div class="content"><div class='highlight'><pre>get <span class="hljs-string">'/sample-6-how-to-add-a-signature-to-a-document-in-groupdocs-signature'</span> <span class="hljs-keyword">do</span>
35
+ haml <span class="hljs-symbol">:sample06</span>
36
+ <span class="hljs-keyword">end</span></pre></div></div>
37
37
 
38
38
  </li>
39
39
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  </div>
50
50
 
51
- <div class="content"><div class='highlight'><pre>post <span class="string">'/sample06'</span> <span class="keyword">do</span></pre></div></div>
51
+ <div class="content"><div class='highlight'><pre>post <span class="hljs-string">'/sample-6-how-to-add-a-signature-to-a-document-in-groupdocs-signature'</span> <span class="hljs-keyword">do</span></pre></div></div>
52
52
 
53
53
  </li>
54
54
 
@@ -63,12 +63,12 @@
63
63
 
64
64
  </div>
65
65
 
66
- <div class="content"><div class='highlight'><pre> set <span class="symbol">:client_id</span>, params[<span class="symbol">:clientId</span>]
67
- set <span class="symbol">:private_key</span>, params[<span class="symbol">:privateKey</span>]
68
- set <span class="symbol">:base_path</span>, params[<span class="symbol">:basePath</span>]
69
- <span class="keyword">require</span> <span class="string">'net/http'</span>
66
+ <div class="content"><div class='highlight'><pre> set <span class="hljs-symbol">:client_id</span>, params[<span class="hljs-symbol">:clientId</span>]
67
+ set <span class="hljs-symbol">:private_key</span>, params[<span class="hljs-symbol">:privateKey</span>]
68
+ set <span class="hljs-symbol">:base_path</span>, params[<span class="hljs-symbol">:basePath</span>]
69
+ <span class="hljs-keyword">require</span> <span class="hljs-string">'net/http'</span>
70
70
 
71
- <span class="keyword">begin</span></pre></div></div>
71
+ <span class="hljs-keyword">begin</span></pre></div></div>
72
72
 
73
73
  </li>
74
74
 
@@ -83,7 +83,7 @@
83
83
 
84
84
  </div>
85
85
 
86
- <div class="content"><div class='highlight'><pre> raise <span class="string">'Please enter all required parameters'</span> <span class="keyword">if</span> settings.client_id.empty? <span class="keyword">or</span> settings.private_key.empty?</pre></div></div>
86
+ <div class="content"><div class='highlight'><pre> raise <span class="hljs-string">'Please enter all required parameters'</span> <span class="hljs-keyword">if</span> settings.client_id.empty? <span class="hljs-keyword">or</span> settings.private_key.empty?</pre></div></div>
87
87
 
88
88
  </li>
89
89
 
@@ -98,13 +98,13 @@
98
98
 
99
99
  </div>
100
100
 
101
- <div class="content"><div class='highlight'><pre> <span class="keyword">if</span> settings.base_path.empty?
102
- base_path = <span class="string">'https://api.groupdocs.com'</span>
103
- <span class="keyword">elsif</span> settings.base_path.match(<span class="string">'/v2.0'</span>)
104
- base_path = settings.base_path.split(<span class="string">'/v2.0'</span>)[<span class="number">0</span>]
105
- <span class="keyword">else</span>
101
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> settings.base_path.empty?
102
+ base_path = <span class="hljs-string">'https://api.groupdocs.com'</span>
103
+ <span class="hljs-keyword">elsif</span> settings.base_path.match(<span class="hljs-string">'/v2.0'</span>)
104
+ base_path = settings.base_path.split(<span class="hljs-string">'/v2.0'</span>)[<span class="hljs-number">0</span>]
105
+ <span class="hljs-keyword">else</span>
106
106
  base_path = settings.base_path
107
- <span class="keyword">end</span></pre></div></div>
107
+ <span class="hljs-keyword">end</span></pre></div></div>
108
108
 
109
109
  </li>
110
110
 
@@ -119,7 +119,7 @@
119
119
 
120
120
  </div>
121
121
 
122
- <div class="content"><div class='highlight'><pre> <span class="constant">GroupDocs</span>.configure <span class="keyword">do</span> |groupdocs|
122
+ <div class="content"><div class='highlight'><pre> <span class="hljs-constant">GroupDocs</span>.configure <span class="hljs-keyword">do</span> |groupdocs|
123
123
  groupdocs.client_id = settings.client_id
124
124
  groupdocs.private_key = settings.private_key</pre></div></div>
125
125
 
@@ -136,8 +136,8 @@
136
136
 
137
137
  </div>
138
138
 
139
- <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="comment"># default is 'https://api.groupdocs.com'</span>
140
- <span class="keyword">end</span></pre></div></div>
139
+ <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="hljs-comment"># default is 'https://api.groupdocs.com'</span>
140
+ <span class="hljs-keyword">end</span></pre></div></div>
141
141
 
142
142
  </li>
143
143
 
@@ -152,8 +152,8 @@
152
152
 
153
153
  </div>
154
154
 
155
- <div class="content"><div class='highlight'><pre> file_one_path = <span class="string">"<span class="subst">#{<span class="constant">File</span>.dirname(__FILE_<span class="number">_</span>)}</span>/<span class="subst">#{params[<span class="symbol">:fiDocument</span>][<span class="symbol">:filename</span>]}</span>"</span>
156
- <span class="constant">File</span>.open(file_one_path, <span class="string">'wb'</span>) { |f| f.write(params[<span class="symbol">:fiDocument</span>][<span class="symbol">:tempfile</span>].read) }</pre></div></div>
155
+ <div class="content"><div class='highlight'><pre> file_one_path = <span class="hljs-string">"<span class="hljs-subst">#{<span class="hljs-constant">File</span>.dirname(__FILE_<span class="hljs-number">_</span>)}</span>/<span class="hljs-subst">#{params[<span class="hljs-symbol">:fiDocument</span>][<span class="hljs-symbol">:filename</span>]}</span>"</span>
156
+ <span class="hljs-constant">File</span>.open(file_one_path, <span class="hljs-string">'wb'</span>) { |f| f.write(params[<span class="hljs-symbol">:fiDocument</span>][<span class="hljs-symbol">:tempfile</span>].read) }</pre></div></div>
157
157
 
158
158
  </li>
159
159
 
@@ -168,7 +168,7 @@
168
168
 
169
169
  </div>
170
170
 
171
- <div class="content"><div class='highlight'><pre> file_one = <span class="constant">GroupDocs::Storage::File</span>.new(<span class="symbol">name:</span> params[<span class="symbol">:fiDocument</span>][<span class="symbol">:filename</span>], <span class="symbol">local_path:</span> file_one_path)
171
+ <div class="content"><div class='highlight'><pre> file_one = <span class="hljs-constant">GroupDocs::Storage::File</span>.new(<span class="hljs-symbol">name:</span> params[<span class="hljs-symbol">:fiDocument</span>][<span class="hljs-symbol">:filename</span>], <span class="hljs-symbol">local_path:</span> file_one_path)
172
172
  document_one = file_one.to_document</pre></div></div>
173
173
 
174
174
  </li>
@@ -184,8 +184,8 @@
184
184
 
185
185
  </div>
186
186
 
187
- <div class="content"><div class='highlight'><pre> signature_one_path = <span class="string">"<span class="subst">#{<span class="constant">Dir</span>.tmpdir}</span>/<span class="subst">#{params[<span class="symbol">:fiSignature</span>][<span class="symbol">:filename</span>]}</span>"</span>
188
- <span class="constant">File</span>.open(signature_one_path, <span class="string">'wb'</span>) { |f| f.write(params[<span class="symbol">:fiSignature</span>][<span class="symbol">:tempfile</span>].read) }</pre></div></div>
187
+ <div class="content"><div class='highlight'><pre> signature_one_path = <span class="hljs-string">"<span class="hljs-subst">#{<span class="hljs-constant">Dir</span>.tmpdir}</span>/<span class="hljs-subst">#{params[<span class="hljs-symbol">:fiSignature</span>][<span class="hljs-symbol">:filename</span>]}</span>"</span>
188
+ <span class="hljs-constant">File</span>.open(signature_one_path, <span class="hljs-string">'wb'</span>) { |f| f.write(params[<span class="hljs-symbol">:fiSignature</span>][<span class="hljs-symbol">:tempfile</span>].read) }</pre></div></div>
189
189
 
190
190
  </li>
191
191
 
@@ -200,8 +200,8 @@
200
200
 
201
201
  </div>
202
202
 
203
- <div class="content"><div class='highlight'><pre> signature_one = <span class="constant">GroupDocs::Signature</span>.new(<span class="symbol">name:</span> params[<span class="symbol">:fiSignature</span>][<span class="symbol">:filename</span>], <span class="symbol">image_path:</span> signature_one_path)
204
- signature_one.position = {<span class="symbol">top:</span> <span class="number">0</span>.<span class="number">83319</span>, <span class="symbol">left:</span> <span class="number">0</span>.<span class="number">72171</span>, <span class="symbol">width:</span> <span class="number">100</span>, <span class="symbol">height:</span> <span class="number">40</span>}</pre></div></div>
203
+ <div class="content"><div class='highlight'><pre> signature_one = <span class="hljs-constant">GroupDocs::Signature</span>.new(<span class="hljs-symbol">name:</span> params[<span class="hljs-symbol">:fiSignature</span>][<span class="hljs-symbol">:filename</span>], <span class="hljs-symbol">image_path:</span> signature_one_path)
204
+ signature_one.position = {<span class="hljs-symbol">top:</span> <span class="hljs-number">0</span>.<span class="hljs-number">83319</span>, <span class="hljs-symbol">left:</span> <span class="hljs-number">0</span>.<span class="hljs-number">72171</span>, <span class="hljs-symbol">width:</span> <span class="hljs-number">100</span>, <span class="hljs-symbol">height:</span> <span class="hljs-number">40</span>}</pre></div></div>
205
205
 
206
206
  </li>
207
207
 
@@ -216,8 +216,8 @@
216
216
 
217
217
  </div>
218
218
 
219
- <div class="content"><div class='highlight'><pre> signed_documents = <span class="constant">GroupDocs::Document</span>.sign_documents!([document_one], [signature_one], {})
220
- sleep(<span class="number">5</span>)</pre></div></div>
219
+ <div class="content"><div class='highlight'><pre> signed_documents = <span class="hljs-constant">GroupDocs::Document</span>.sign_documents!([document_one], [signature_one], {})
220
+ sleep(<span class="hljs-number">5</span>)</pre></div></div>
221
221
 
222
222
  </li>
223
223
 
@@ -232,7 +232,8 @@
232
232
 
233
233
  </div>
234
234
 
235
- <div class="content"><div class='highlight'><pre> document = <span class="constant">GroupDocs::Signature</span>.sign_document_status!(signed_documents)</pre></div></div>
235
+ <div class="content"><div class='highlight'><pre> document = <span class="hljs-constant">GroupDocs::Signature</span>.sign_document_status!(signed_documents)
236
+ to</pre></div></div>
236
237
 
237
238
  </li>
238
239
 
@@ -247,7 +248,7 @@
247
248
 
248
249
  </div>
249
250
 
250
- <div class="content"><div class='highlight'><pre> iframe = <span class="string">"/document-viewer/embed/<span class="subst">#{document.guid}</span>"</span></pre></div></div>
251
+ <div class="content"><div class='highlight'><pre> iframe = <span class="hljs-string">"/document-viewer/embed/<span class="hljs-subst">#{document.guid}</span>"</span></pre></div></div>
251
252
 
252
253
  </li>
253
254
 
@@ -262,7 +263,7 @@
262
263
 
263
264
  </div>
264
265
 
265
- <div class="content"><div class='highlight'><pre> url = <span class="constant">GroupDocs::Api::Request</span>.new(<span class="symbol">:path</span> =&gt; iframe).prepare_and_sign_url</pre></div></div>
266
+ <div class="content"><div class='highlight'><pre> url = <span class="hljs-constant">GroupDocs::Api::Request</span>.new(<span class="hljs-symbol">:path</span> =&gt; iframe).prepare_and_sign_url</pre></div></div>
266
267
 
267
268
  </li>
268
269
 
@@ -277,14 +278,14 @@
277
278
 
278
279
  </div>
279
280
 
280
- <div class="content"><div class='highlight'><pre> <span class="keyword">case</span> base_path
281
- <span class="keyword">when</span> <span class="string">'https://stage-api-groupdocs.dynabic.com'</span>
282
- iframe = <span class="string">"https://stage-api-groupdocs.dynabic.com<span class="subst">#{url}</span>"</span>
283
- <span class="keyword">when</span> <span class="string">'https://dev-api-groupdocs.dynabic.com'</span>
284
- iframe = <span class="string">"https://dev-apps.groupdocs.com<span class="subst">#{url}</span>"</span>
285
- <span class="keyword">else</span>
286
- iframe = <span class="string">"https://apps.groupdocs.com<span class="subst">#{url}</span>"</span>
287
- <span class="keyword">end</span></pre></div></div>
281
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">case</span> base_path
282
+ <span class="hljs-keyword">when</span> <span class="hljs-string">'https://stage-api-groupdocs.dynabic.com'</span>
283
+ iframe = <span class="hljs-string">"https://stage-api-groupdocs.dynabic.com<span class="hljs-subst">#{url}</span>"</span>
284
+ <span class="hljs-keyword">when</span> <span class="hljs-string">'https://dev-api-groupdocs.dynabic.com'</span>
285
+ iframe = <span class="hljs-string">"https://dev-apps.groupdocs.com<span class="hljs-subst">#{url}</span>"</span>
286
+ <span class="hljs-keyword">else</span>
287
+ iframe = <span class="hljs-string">"https://apps.groupdocs.com<span class="hljs-subst">#{url}</span>"</span>
288
+ <span class="hljs-keyword">end</span></pre></div></div>
288
289
 
289
290
  </li>
290
291
 
@@ -299,7 +300,7 @@
299
300
 
300
301
  </div>
301
302
 
302
- <div class="content"><div class='highlight'><pre> <span class="keyword">if</span> signed_documents</pre></div></div>
303
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> signed_documents</pre></div></div>
303
304
 
304
305
  </li>
305
306
 
@@ -314,12 +315,12 @@
314
315
 
315
316
  </div>
316
317
 
317
- <div class="content"><div class='highlight'><pre> iframe = <span class="string">"&lt;iframe id='downloadframe' src='<span class="subst">#{iframe}</span>' width='800' height='1000'&gt;&lt;/iframe&gt;"</span>
318
- <span class="keyword">end</span>
318
+ <div class="content"><div class='highlight'><pre> iframe = <span class="hljs-string">"&lt;iframe id='downloadframe' src='<span class="hljs-subst">#{iframe}</span>' width='800' height='1000'&gt;&lt;/iframe&gt;"</span>
319
+ <span class="hljs-keyword">end</span>
319
320
 
320
- <span class="keyword">rescue</span> <span class="constant">Exception</span> =&gt; e
321
+ <span class="hljs-keyword">rescue</span> <span class="hljs-constant">Exception</span> =&gt; e
321
322
  err = e.message
322
- <span class="keyword">end</span></pre></div></div>
323
+ <span class="hljs-keyword">end</span></pre></div></div>
323
324
 
324
325
  </li>
325
326
 
@@ -334,8 +335,8 @@
334
335
 
335
336
  </div>
336
337
 
337
- <div class="content"><div class='highlight'><pre> haml <span class="symbol">:sample06</span>, <span class="symbol">:locals</span> =&gt; {<span class="symbol">:clientId</span> =&gt; settings.client_id, <span class="symbol">:privateKey</span> =&gt; settings.private_key, <span class="symbol">:iframe</span> =&gt; iframe, <span class="symbol">:err</span> =&gt; err}
338
- <span class="keyword">end</span></pre></div></div>
338
+ <div class="content"><div class='highlight'><pre> haml <span class="hljs-symbol">:sample06</span>, <span class="hljs-symbol">:locals</span> =&gt; {<span class="hljs-symbol">:clientId</span> =&gt; settings.client_id, <span class="hljs-symbol">:privateKey</span> =&gt; settings.private_key, <span class="hljs-symbol">:iframe</span> =&gt; iframe, <span class="hljs-symbol">:err</span> =&gt; err}
339
+ <span class="hljs-keyword">end</span></pre></div></div>
339
340
 
340
341
  </li>
341
342