groupdocs 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/examples/api-samples/public/docs/sample01.html +34 -15
- data/examples/api-samples/public/docs/sample02.html +36 -15
- data/examples/api-samples/public/docs/sample03.html +55 -34
- data/examples/api-samples/public/docs/sample04.html +33 -14
- data/examples/api-samples/public/docs/sample05.html +51 -33
- data/examples/api-samples/public/docs/sample06.html +86 -40
- data/examples/api-samples/public/docs/sample07.html +32 -13
- data/examples/api-samples/public/docs/sample08.html +39 -20
- data/examples/api-samples/public/docs/sample09.html +93 -39
- data/examples/api-samples/public/docs/sample10.html +39 -21
- data/examples/api-samples/public/docs/sample11.html +133 -88
- data/examples/api-samples/public/docs/sample12.html +33 -14
- data/examples/api-samples/public/docs/sample13.html +14 -7
- data/examples/api-samples/public/docs/sample14.html +37 -18
- data/examples/api-samples/public/docs/sample15.html +29 -10
- data/examples/api-samples/public/docs/sample16.html +58 -25
- data/examples/api-samples/public/docs/sample17.html +71 -38
- data/examples/api-samples/public/docs/sample18.html +98 -71
- data/examples/api-samples/public/docs/sample19.html +74 -42
- data/examples/api-samples/public/docs/sample20.html +39 -21
- data/examples/api-samples/public/docs/sample21.html +113 -69
- data/examples/api-samples/public/docs/sample22.html +89 -43
- data/examples/api-samples/public/docs/sample23.html +50 -32
- data/examples/api-samples/public/docs/sample24.html +64 -31
- data/examples/api-samples/public/docs/sample25.html +107 -60
- data/examples/api-samples/public/docs/sample26.html +29 -10
- data/examples/api-samples/public/docs/sample27.html +107 -61
- data/examples/api-samples/public/docs/sample28.html +158 -9
- data/examples/api-samples/public/docs/sample29.html +13 -8
- data/examples/api-samples/public/docs/sample30.html +34 -15
- data/examples/api-samples/public/docs/sample31.html +107 -76
- data/examples/api-samples/public/docs/sample32.html +104 -40
- data/examples/api-samples/public/docs/sample33.html +85 -36
- data/examples/api-samples/public/docs/sample34.html +30 -11
- data/examples/api-samples/public/docs/sample35.html +90 -27
- data/examples/api-samples/public/docs/sample36.html +36 -16
- data/examples/api-samples/public/docs/sample37.html +144 -265
- data/examples/api-samples/public/docs/sample38.html +113 -64
- data/examples/api-samples/public/docs/sample39.html +118 -45
- data/examples/api-samples/public/docs/sample40.html +81 -46
- data/examples/api-samples/public/docs/sample41.html +562 -90
- data/examples/api-samples/public/docs/sample42.html +94 -39
- data/examples/api-samples/public/docs/sample43.html +669 -0
- data/examples/api-samples/samples/sample01.rb +17 -10
- data/examples/api-samples/samples/sample02.rb +21 -12
- data/examples/api-samples/samples/sample03.rb +35 -29
- data/examples/api-samples/samples/sample04.rb +19 -12
- data/examples/api-samples/samples/sample05.rb +24 -17
- data/examples/api-samples/samples/sample06.rb +38 -32
- data/examples/api-samples/samples/sample07.rb +19 -12
- data/examples/api-samples/samples/sample08.rb +22 -15
- data/examples/api-samples/samples/sample09.rb +31 -29
- data/examples/api-samples/samples/sample10.rb +22 -15
- data/examples/api-samples/samples/sample11.rb +78 -81
- data/examples/api-samples/samples/sample12.rb +19 -21
- data/examples/api-samples/samples/sample13.rb +19 -21
- data/examples/api-samples/samples/sample14.rb +18 -12
- data/examples/api-samples/samples/sample15.rb +17 -10
- data/examples/api-samples/samples/sample16.rb +25 -17
- data/examples/api-samples/samples/sample17.rb +31 -23
- data/examples/api-samples/samples/sample18.rb +60 -55
- data/examples/api-samples/samples/sample19.rb +48 -42
- data/examples/api-samples/samples/sample20.rb +20 -13
- data/examples/api-samples/samples/sample21.rb +62 -54
- data/examples/api-samples/samples/sample22.rb +37 -31
- data/examples/api-samples/samples/sample23.rb +24 -17
- data/examples/api-samples/samples/sample24.rb +29 -22
- data/examples/api-samples/samples/sample25.rb +47 -40
- data/examples/api-samples/samples/sample26.rb +16 -9
- data/examples/api-samples/samples/sample27.rb +46 -39
- data/examples/api-samples/samples/sample28.rb +42 -11
- data/examples/api-samples/samples/sample29.rb +13 -8
- data/examples/api-samples/samples/sample30.rb +19 -12
- data/examples/api-samples/samples/sample31.rb +63 -58
- data/examples/api-samples/samples/sample32.rb +45 -42
- data/examples/api-samples/samples/sample33.rb +36 -25
- data/examples/api-samples/samples/sample34.rb +16 -9
- data/examples/api-samples/samples/sample35.rb +66 -53
- data/examples/api-samples/samples/sample36.rb +19 -15
- data/examples/api-samples/samples/sample37.rb +61 -99
- data/examples/api-samples/samples/sample38.rb +51 -43
- data/examples/api-samples/samples/sample39.rb +78 -62
- data/examples/api-samples/samples/sample40.rb +48 -38
- data/examples/api-samples/samples/sample41.rb +189 -67
- data/examples/api-samples/samples/sample42.rb +37 -29
- data/examples/api-samples/samples/sample43.rb +127 -0
- data/examples/api-samples/views/_others_samples.haml +4 -2
- data/examples/api-samples/views/index.haml +4 -2
- data/examples/api-samples/views/sample11.haml +1 -1
- data/examples/api-samples/views/sample28.haml +8 -0
- data/examples/api-samples/views/sample31.haml +1 -6
- data/examples/api-samples/views/sample39.haml +7 -2
- data/examples/api-samples/views/sample41.haml +78 -33
- data/examples/api-samples/views/sample42.haml +0 -1
- data/examples/api-samples/views/sample43.haml +91 -0
- data/lib/groupdocs/api/helpers/access_rights_helper.rb +6 -5
- data/lib/groupdocs/api/helpers/url_helper.rb +2 -1
- data/lib/groupdocs/document.rb +3 -3
- data/lib/groupdocs/version.rb +1 -1
- metadata +5 -2
@@ -82,6 +82,8 @@
|
|
82
82
|
%li
|
83
83
|
%a{:href => '/sample40'} Sample40 - How to set callback for signature form and re-direct when it was signed
|
84
84
|
%li
|
85
|
-
%a{:href => '/sample41'} Sample41 - How to
|
85
|
+
%a{:href => '/sample41'} Sample41 - How to set callback for Annotation and manage user rights using Ruby SDK
|
86
86
|
%li
|
87
|
-
%a{:href => '/sample42'} Sample42 - How to download document with annotations using GroupDocs Ruby SDK
|
87
|
+
%a{:href => '/sample42'} Sample42 - How to download document with annotations using GroupDocs Ruby SDK
|
88
|
+
%li
|
89
|
+
%a{:href => '/sample43'} Sample43 - How to add numeration in the doc file using GroupDocs Ruby SDK
|
@@ -62,7 +62,7 @@
|
|
62
62
|
%li
|
63
63
|
%a{:href => '/sample30'} Sample30 - How to delete file from GroupDocs Storage
|
64
64
|
%li
|
65
|
-
%a{:href => '/sample31'} Sample31 - How to
|
65
|
+
%a{:href => '/sample31'} Sample31 - How to dynamically create Signature Form using data from HTML form
|
66
66
|
%li
|
67
67
|
%a{:href => '/sample32'} Sample32 - How to create signature form, publish it and configure notification via callback
|
68
68
|
%li
|
@@ -80,6 +80,8 @@
|
|
80
80
|
%li
|
81
81
|
%a{:href => '/sample39'} Sample39 - How to add a Signature to a document and re-direct after signing with GroupDocs widget
|
82
82
|
%li
|
83
|
-
%a{:href => '/sample41'} Sample41 - How to
|
83
|
+
%a{:href => '/sample41'} Sample41 - How to set callback for Annotation and manage user rights using Ruby SDK
|
84
84
|
%li
|
85
85
|
%a{:href => '/sample42'} Sample42 - How to download document with annotations using GroupDocs Ruby SDK
|
86
|
+
%li
|
87
|
+
%a{:href => '/sample43'} Sample43 - How to add numeration in the doc file using GroupDocs Ruby SDK
|
@@ -43,11 +43,19 @@
|
|
43
43
|
%br/
|
44
44
|
%input{:type => 'submit', :value => 'Delete all annotations'}/
|
45
45
|
%div{:style => 'padding:20px; border:1px solid black;'}
|
46
|
+
<<<<<<< HEAD
|
46
47
|
%p
|
47
48
|
Results:
|
48
49
|
%br/
|
49
50
|
%font{:color => 'green'}#{(defined? messages) ? messages : ''}
|
50
51
|
#{(defined? iframe) ? iframe : ''}
|
51
52
|
%br/
|
53
|
+
=======
|
54
|
+
Results:
|
55
|
+
%br/
|
56
|
+
%span{:style => 'color:green'}#{(defined? messages) ? messages : ''}
|
57
|
+
#{(defined? iframe) ? iframe : ''}
|
58
|
+
%br/
|
59
|
+
>>>>>>> samples-dev
|
52
60
|
|
53
61
|
= partial :_others_samples
|
@@ -18,7 +18,7 @@
|
|
18
18
|
%p
|
19
19
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
20
20
|
%p
|
21
|
-
Template file GUID = #{(defined?
|
21
|
+
Template file GUID = #{(defined? templateGuid) ? templateGuid : ''}
|
22
22
|
%p
|
23
23
|
Name = #{(defined? name) ? name : ''}
|
24
24
|
%p
|
@@ -57,10 +57,6 @@
|
|
57
57
|
%input{:type=>'text', :name=>'name'}
|
58
58
|
%br/
|
59
59
|
%br/
|
60
|
-
%label{:for => 'lastName'} What is your last name?
|
61
|
-
%input{:type=>'text', :name=>'lastName'}
|
62
|
-
%br/
|
63
|
-
%br/
|
64
60
|
%label{:for => 'country'} What is your country?
|
65
61
|
%input{:type=>'text', :name=>'country'}
|
66
62
|
%br/
|
@@ -96,7 +92,6 @@
|
|
96
92
|
%br/
|
97
93
|
%div{:style => 'padding:20px; border:1px solid black;'}
|
98
94
|
%p Results:
|
99
|
-
%iframe{:id=>'downloadframe', :style=>'display:none'}
|
100
95
|
#{(defined? iframe) ? iframe : ''}
|
101
96
|
|
102
97
|
= partial :_others_samples
|
@@ -194,7 +194,7 @@
|
|
194
194
|
%br/
|
195
195
|
%input{:type=>'text', :name=>'privateKey', :id=>'privateKey'}
|
196
196
|
%br/
|
197
|
-
%input{:type=>'checkbox', :name=>'useWidget', :value=>'use', :id=>'useWidget', :onclick=> 'setLogic();'}
|
197
|
+
%input{:type=>'checkbox', :name=>'useWidget', :value=>'use', :id=>'useWidget', :onclick=> 'setLogic();'} Sign document with Widget
|
198
198
|
%br/
|
199
199
|
%label{:for => 'email', :id=>"emailLabel"} Email
|
200
200
|
%br/
|
@@ -222,11 +222,16 @@
|
|
222
222
|
%span{:class => 'optional'} (Optional) <br/> (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample39/signature_callback)
|
223
223
|
%input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callbackUrl', :id=>'callbackUrl'}
|
224
224
|
%br/
|
225
|
+
%label{:for => 'basePath'} Base Path
|
226
|
+
%font{:color=>'grey'} (Optional)
|
227
|
+
%br/
|
228
|
+
%input{:type=>'text', :name=>'basePath', :id=>'base_path', :value=>"#{(defined? base_path) ? base_path : ''}"}
|
229
|
+
%br/
|
230
|
+
%br/
|
225
231
|
%br/
|
226
232
|
%input{:type => 'submit', :id=>'btnLoad', :value => 'Upload and sign the document'}
|
227
233
|
%span{:id=>'resultsStatus', :style=>'color:red;display:none;'} (Please wait for ajax response)
|
228
234
|
%br/
|
229
|
-
%iframe{:id=>'downloadframe', :style=>'display:none'}
|
230
235
|
%div{:style => 'padding:20px; border:1px solid black;', :id=>'result'}
|
231
236
|
%p
|
232
237
|
Results:
|
@@ -3,9 +3,7 @@
|
|
3
3
|
\- Sample41
|
4
4
|
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%span.description
|
6
|
-
|
7
|
-
This sample will show how to add numeration in the doc file using GroupDocs Ruby SDK.
|
8
|
-
|
6
|
+
This sample will show how to set callback for Annotation and manage user rights using Ruby SDK.
|
9
7
|
%br/
|
10
8
|
%br/
|
11
9
|
/
|
@@ -20,23 +18,26 @@
|
|
20
18
|
ClientID = #{(defined? userId) ? userId : ''}
|
21
19
|
%p
|
22
20
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
21
|
+
%p
|
22
|
+
FileID = #{(defined? fileId) ? fileId : ''}
|
23
23
|
%p
|
24
24
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
25
25
|
%br/
|
26
26
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
27
27
|
%p Enter data for request and press "Make request" button
|
28
|
-
|
28
|
+
|
29
|
+
%form{:action => "/sample41", :enctype => 'multipart/form-data', :method => 'post', :id=>'form'}
|
29
30
|
%label{:for => 'clientId'} GroupDocs ClientID
|
30
31
|
%br/
|
31
|
-
%input{:type=>'text', :name=>'clientId'}
|
32
|
+
%input{:type=>'text', :name=>'clientId', :id=>'client_id', :value=>"#{(defined? userId) ? userId : ''}"}
|
32
33
|
%br/
|
33
34
|
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
34
35
|
%br/
|
35
|
-
%input{:type=>'text', :name=>'privateKey'}
|
36
|
+
%input{:type=>'text', :name=>'privateKey', :id=>'private_key', :value=>"#{(defined? privateKey) ? privateKey : ''}"}
|
36
37
|
%br/
|
37
38
|
|
38
39
|
|
39
|
-
%div.guid_radio
|
40
|
+
%div.guid_radio{:style=>"#{(defined? userId) ? 'display:none' : 'display:block'}"}
|
40
41
|
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
41
42
|
%br/
|
42
43
|
%input{:type=>'radio', :name=>'source', :value=>'local', :checked=>'checked'}Upload local file
|
@@ -44,48 +45,92 @@
|
|
44
45
|
%input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
|
45
46
|
%br/
|
46
47
|
|
47
|
-
%div.
|
48
|
-
%
|
49
|
-
|
50
|
-
|
48
|
+
%div.fields{:style=>"#{(defined? userId) ? 'display:none' : 'display:block'}"}
|
49
|
+
%div.guid_field{:style=>'display:none;'}
|
50
|
+
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
51
|
+
%br/
|
52
|
+
%input{:type=>'text', :name=>'fileId', :id=>'guid', :value=>"#{(defined? fileId) ? fileId : ''}"}
|
51
53
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
%div.guid_field{:style=>'display:none;'}
|
58
|
-
%label{:for=>'url', :id=>'url'} Upload file from URL
|
59
|
-
%br/
|
60
|
-
%input{:type=>'text', :name=>'url'}
|
54
|
+
%div.guid_field
|
55
|
+
%label{:for=>'file'} Upload local file
|
56
|
+
%br/
|
57
|
+
%input{:type=>'file', :name=>'file', :id=>'file'}
|
61
58
|
|
59
|
+
%div.guid_field{:style=>'display:none;'}
|
60
|
+
%label{:for=>'url', :id=>'url'} Upload file from URL
|
61
|
+
%br/
|
62
|
+
%input{:type=>'text', :name=>'url', :id=>'url'}
|
63
|
+
%label First collaborator email
|
62
64
|
%br/
|
63
|
-
%
|
64
|
-
%span{:class => 'optional'} (Optional)
|
65
|
+
%input{:type=>'text', :name=>'email[]', :value=>""}
|
65
66
|
%br/
|
66
|
-
%
|
67
|
+
%label Second collaborator email
|
67
68
|
%br/
|
69
|
+
%input{:type=>'text', :name=>'email[]', :value=>""}
|
68
70
|
%br/
|
69
|
-
|
70
|
-
%
|
71
|
-
|
71
|
+
%label callbackUrl
|
72
|
+
%span{:class => 'optional'} (Optional) <br/> (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample41/callback)
|
73
|
+
%br/
|
74
|
+
%input{:type=>'text', :name=>'callbackUrl', :id => 'callbackUrl', :value=>"#{(defined? callbackUrl) ? callbackUrl : ''}"}
|
75
|
+
%br/
|
76
|
+
%label{:for => 'basePath'} Base Path
|
77
|
+
%font{:color=>'grey'} (Optional)
|
78
|
+
%br/
|
79
|
+
%input{:type=>'text', :name=>'basePath', :id=>'base_path', :value=>"#{(defined? base_path) ? base_path : ''}"}
|
72
80
|
%br/
|
73
81
|
%br/
|
82
|
+
%input{:type => 'submit', :id => 'button', :value => 'Make request'}
|
74
83
|
%br/
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
84
|
+
%span{:id=>'resultsStatus', :style=>'color:red;display:none;'} (Please wait for ajax response)
|
85
|
+
%br/
|
86
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
87
|
+
%p
|
88
|
+
Results:
|
89
|
+
#rights
|
90
|
+
%p
|
91
|
+
#result
|
92
|
+
%p
|
93
|
+
#{(defined? iframe) ? iframe : ''}
|
79
94
|
|
80
|
-
= partial :_others_samples
|
81
95
|
|
96
|
+
|
97
|
+
= partial :_others_samples
|
82
98
|
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
99
|
+
|
83
100
|
:javascript
|
84
101
|
$(function($){
|
85
|
-
|
86
102
|
$('.guid_radio input').change(function(){
|
87
103
|
var elementIndex = $(this).parent().children('input').index($(this));
|
88
104
|
$('.guid_field').hide();
|
89
105
|
$('.guid_field').eq(elementIndex).show();
|
90
106
|
});
|
91
|
-
});
|
107
|
+
});
|
108
|
+
|
109
|
+
$(document).ready(setTimeout(check, 5000));
|
110
|
+
|
111
|
+
function check() {
|
112
|
+
if (($("input[name=callbackUrl]").val() != "") && (document.getElementById("result") != null)) {
|
113
|
+
$('#resultsStatus').fadeIn("slow");
|
114
|
+
$.ajax({
|
115
|
+
type: 'POST',
|
116
|
+
url: '/sample41/check_guid',
|
117
|
+
success: function (data) {
|
118
|
+
$('#resultsStatus').fadeOut("slow");
|
119
|
+
var result = null;
|
120
|
+
result = data;
|
121
|
+
if (result) {
|
122
|
+
var message = result;
|
123
|
+
$("#rights").append('<span style="color:red"><i>' + message + '</i></span>')
|
124
|
+
var url = $('#iframe').attr('src');
|
125
|
+
$('#iframe').attr('src', url);
|
126
|
+
}
|
127
|
+
},
|
128
|
+
dataType: "text"
|
129
|
+
});
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
%h3{:style => 'text-align:center;'}
|
2
|
+
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
+
\- Sample41
|
4
|
+
.samplecontent{:style => 'padding:10px;'}
|
5
|
+
%span.description
|
6
|
+
%i
|
7
|
+
This sample will show how to add numeration in the doc file using GroupDocs Ruby SDK.
|
8
|
+
|
9
|
+
%br/
|
10
|
+
%br/
|
11
|
+
/
|
12
|
+
%span.documentation
|
13
|
+
%a{:href => '/docs/sample43.html'} Builtin documentation for this sample
|
14
|
+
|
15
|
+
%br/
|
16
|
+
%br/
|
17
|
+
%p
|
18
|
+
You entered:
|
19
|
+
%p
|
20
|
+
ClientID = #{(defined? userId) ? userId : ''}
|
21
|
+
%p
|
22
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
23
|
+
%p
|
24
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
25
|
+
%br/
|
26
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
27
|
+
%p Enter data for request and press "Make request" button
|
28
|
+
%form{:action => '/sample43', :enctype => 'multipart/form-data', :method => 'post'}
|
29
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
30
|
+
%br/
|
31
|
+
%input{:type=>'text', :name=>'clientId'}
|
32
|
+
%br/
|
33
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
34
|
+
%br/
|
35
|
+
%input{:type=>'text', :name=>'privateKey'}
|
36
|
+
%br/
|
37
|
+
|
38
|
+
|
39
|
+
%div.guid_radio
|
40
|
+
%input{:type=>'radio', :name=>'source', :value=>'guid'} File ID (GUID)
|
41
|
+
%br/
|
42
|
+
%input{:type=>'radio', :name=>'source', :value=>'local', :checked=>'checked'}Upload local file
|
43
|
+
%br/
|
44
|
+
%input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
|
45
|
+
%br/
|
46
|
+
|
47
|
+
%div.guid_field{:style=>'display:none;'}
|
48
|
+
%label{:for=>'fileId', :id=>'guid'} File ID (GUID)
|
49
|
+
%br/
|
50
|
+
%input{:type=>'text', :name=>'fileId'}
|
51
|
+
|
52
|
+
%div.guid_field
|
53
|
+
%label{:for=>'file'} Upload local file
|
54
|
+
%br/
|
55
|
+
%input{:type=>'file', :name=>'file'}
|
56
|
+
|
57
|
+
%div.guid_field{:style=>'display:none;'}
|
58
|
+
%label{:for=>'url', :id=>'url'} Upload file from URL
|
59
|
+
%br/
|
60
|
+
%input{:type=>'text', :name=>'url'}
|
61
|
+
|
62
|
+
%br/
|
63
|
+
%label{:for => 'basePath'} Base Path
|
64
|
+
%span{:class => 'optional'} (Optional)
|
65
|
+
%br/
|
66
|
+
%input{:type=>'text', :name=>'basePath'}
|
67
|
+
%br/
|
68
|
+
%br/
|
69
|
+
|
70
|
+
%input{:type => 'submit', :value => 'Make request'}
|
71
|
+
|
72
|
+
%br/
|
73
|
+
%br/
|
74
|
+
%br/
|
75
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
76
|
+
%p
|
77
|
+
Results:
|
78
|
+
#{(defined? iframe) ? iframe : ''}
|
79
|
+
|
80
|
+
= partial :_others_samples
|
81
|
+
|
82
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
83
|
+
:javascript
|
84
|
+
$(function($){
|
85
|
+
|
86
|
+
$('.guid_radio input').change(function(){
|
87
|
+
var elementIndex = $(this).parent().children('input').index($(this));
|
88
|
+
$('.guid_field').hide();
|
89
|
+
$('.guid_field').eq(elementIndex).show();
|
90
|
+
});
|
91
|
+
});
|
@@ -4,12 +4,13 @@ module GroupDocs
|
|
4
4
|
module AccessRights
|
5
5
|
|
6
6
|
include Api::Helpers::ByteFlag
|
7
|
-
|
7
|
+
#Changed in release 1.5.9
|
8
8
|
ACCESS_RIGHTS = {
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:
|
9
|
+
:view => 1,
|
10
|
+
:annotate => 2,
|
11
|
+
:download => 4,
|
12
|
+
:export => 8,
|
13
|
+
:all => 31
|
13
14
|
}
|
14
15
|
|
15
16
|
private
|
@@ -52,6 +52,7 @@ module GroupDocs
|
|
52
52
|
options[:path].sub!(/\{\{client_id\}\}/, client_id)
|
53
53
|
end
|
54
54
|
|
55
|
+
|
55
56
|
#
|
56
57
|
# Adds signature to path.
|
57
58
|
#
|
@@ -59,7 +60,7 @@ module GroupDocs
|
|
59
60
|
#
|
60
61
|
def sign_url
|
61
62
|
# calculate a hash of the path with private key
|
62
|
-
hash = OpenSSL::Digest
|
63
|
+
hash = OpenSSL::Digest.new('sha1') # Changed in release 1.5.9
|
63
64
|
hash = OpenSSL::HMAC.digest(hash, private_key, options[:path])
|
64
65
|
# convert hash to base64
|
65
66
|
hash = Base64.strict_encode64(hash)
|
data/lib/groupdocs/document.rb
CHANGED
@@ -1136,7 +1136,7 @@ module GroupDocs
|
|
1136
1136
|
end
|
1137
1137
|
|
1138
1138
|
#
|
1139
|
-
# @Changed in
|
1139
|
+
# @Changed in release 1.5.9
|
1140
1140
|
# Returns an array of changes in document.
|
1141
1141
|
#
|
1142
1142
|
# @example
|
@@ -1155,7 +1155,7 @@ module GroupDocs
|
|
1155
1155
|
api = Api::Request.new do |request|
|
1156
1156
|
request[:access] = access
|
1157
1157
|
request[:method] = :GET
|
1158
|
-
request[:path] =
|
1158
|
+
request[:path] = "/comparison/public/#{file.guid}/changes"
|
1159
1159
|
end
|
1160
1160
|
json = api.execute!
|
1161
1161
|
|
@@ -1165,7 +1165,7 @@ module GroupDocs
|
|
1165
1165
|
end
|
1166
1166
|
|
1167
1167
|
#
|
1168
|
-
# Changed in
|
1168
|
+
# Changed in release 1.5.8
|
1169
1169
|
# Download comparison result file.
|
1170
1170
|
#
|
1171
1171
|
# @example
|
data/lib/groupdocs/version.rb
CHANGED