groupdocs 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@
22
22
  %li
23
23
  %a{:href => '/sample10'} Sample10 - How to share a document to other users
24
24
  %li
25
- %a{:href => '/sample11'} Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
25
+ %a{:href => '/sample11'} Sample11 - How to programmatically create and post an annotation into document. How to delete the annotation
26
26
  %li
27
27
  %a{:href => '/sample12'} Sample12 - How to list all annotations from document
28
28
  %li
@@ -44,13 +44,13 @@
44
44
  %li
45
45
  %a{:href => '/sample21'} Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
46
46
  %li
47
- %a{:href => '/sample22'} Sample22 - How create or update user and add him to collaborators using Ruby SDK
47
+ %a{:href => '/sample22'} Sample22 - How to create or update user and add him to collaborators using Ruby SDK
48
48
  %li
49
49
  %a{:href => '/sample23'} Sample23 - How to View Document pages as images using Ruby SDK
50
50
  %li
51
51
  %a{:href => '/sample24'} Sample24 - How to use StorageApi to upload file from URL to GroupDocs account using Ruby SDK
52
52
  %li
53
- %a{:href => '/sample25'} Sample25 - How merge and convert document using Ruby SDK
53
+ %a{:href => '/sample25'} Sample25 - How to merge and convert document using Ruby SDK
54
54
  %li
55
55
  %a{:href => '/sample26'} Sample26 - How to use login method in the API
56
56
  %li
@@ -63,6 +63,10 @@
63
63
  %a{:href => '/sample30'} Sample30 - How to delete file from GroupDocs Storage
64
64
  %li
65
65
  %a{:href => '/sample31'} Sample31 - How to dynamically create Signature Form using data from HTML form
66
+ %li
67
+ %a{:href => '/sample32'} Sample32 - How to create signature form, publish it and configure notification via callback
68
+ %li
69
+ %a{:href => '/sample33'} Sample33 - How to convert and merge/combine several HTML documents into one PDF Document
66
70
  %li
67
71
  %a{:href => '/annotation-sample'} Annotation sample
68
72
  %li
@@ -22,7 +22,7 @@
22
22
  %li
23
23
  %a{:href => '/sample10'} Sample10 - How to share a document to other users
24
24
  %li
25
- %a{:href => '/sample11'} Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
25
+ %a{:href => '/sample11'} Sample11 - How to programmatically create and post an annotation into document. How to delete the annotation
26
26
  %li
27
27
  %a{:href => '/sample12'} Sample12 - How to list all annotations from document
28
28
  %li
@@ -44,13 +44,13 @@
44
44
  %li
45
45
  %a{:href => '/sample21'} Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
46
46
  %li
47
- %a{:href => '/sample22'} Sample22 - How create or update user and add him to collaborators using Ruby SDK
47
+ %a{:href => '/sample22'} Sample22 - How to create or update user and add him to collaborators using Ruby SDK
48
48
  %li
49
49
  %a{:href => '/sample23'} Sample23 - How to View Document pages as images using Ruby SDK
50
50
  %li
51
51
  %a{:href => '/sample24'} Sample24 - How to use StorageApi to upload file from URL to GroupDocs account using Ruby SDK
52
52
  %li
53
- %a{:href => '/sample25'} Sample25 - How merge and convert document using Ruby SDK
53
+ %a{:href => '/sample25'} Sample25 - How to merge/assemble and convert document using Ruby SDK
54
54
  %li
55
55
  %a{:href => '/sample26'} Sample26 - How to use login method in the API
56
56
  %li
@@ -62,7 +62,11 @@
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 dinamically create Signature Form using data from HTM form
65
+ %a{:href => '/sample31'} Sample31 - How to dinamically create Signature Form using data from HTML form
66
+ %li
67
+ %a{:href => '/sample32'} Sample32 - How to create signature form, publish it and configure notification via callback
68
+ %li
69
+ %a{:href => '/sample33'} Sample33 - How to convert and merge/combine several HTML documents into one PDF Document
66
70
  %li
67
71
  %a{:href => '/annotation-sample'} Annotation sample
68
72
  %li
@@ -0,0 +1,110 @@
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
+ \- Sample32
4
+ .samplecontent{:style => 'padding:10px;'}
5
+ %span.description
6
+ %i
7
+ This sample will show how to create signature form, publish it and configure notification via callback
8
+ %br/
9
+ %br/
10
+ /
11
+ %span.documentation
12
+ %a{:href => '/docs/sample32.html'} Builtin documentation for this sample
13
+
14
+ %br/
15
+ %br/
16
+ %p
17
+ You entered:
18
+ %p
19
+ ClientID = #{(defined? userId) ? userId : ''}
20
+ %p
21
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
22
+ %p
23
+ Email = #{(defined? email) ? email : ''}
24
+ %p
25
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
26
+ %br/
27
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
28
+ %p Enter data for request and press "Make request" button
29
+ %form{:action => '/sample32', :enctype => 'multipart/form-data', :method => 'post'}
30
+ %label{:for => 'client_id'} GroupDocs ClientID
31
+ %br/
32
+ %input{:type=>'text', :name=>'client_id'}
33
+ %br/
34
+ %label{:for => 'private_key'} GroupDocs PrivateKey
35
+ %br/
36
+ %input{:type=>'text', :name=>'private_key'}
37
+ %br/
38
+
39
+
40
+ %div.guid_radio
41
+ %input{:type=>'radio', :name=>'source', :value=>'form', :checked=>'checked'} Form GUID
42
+ %br/
43
+ %input{:type=>'radio', :name=>'source', :value=>'template'} Template GUID
44
+ %br/
45
+
46
+ %div.guid_field
47
+ %label{:for=>'form', :id=>'form'} Form GUID
48
+ %br/
49
+ %input{:type=>'text', :name=>'form'}
50
+
51
+ %div.guid_field{:style=>'display:none;'}
52
+ %label{:for=>'template'} Template GUID
53
+ %br/
54
+ %input{:type=>'text', :name=>'template'}
55
+
56
+ %label{:for=>'email', :id=>'email'} Email for notification
57
+ %br/
58
+ %input{:type=>'text', :name=>'email'}
59
+ %br/
60
+ %label{:for=>'callback'}
61
+ Callback URL
62
+ %span.optional (Optional)
63
+ %br/
64
+ %font{:color=>'grey'} (For test Callback you can use this URL: http://groupdocs-ruby-samples.herokuapp.com/sample32/callback)
65
+ %input{:type=>'text', :size=>'70', :value=>"#{(defined? callback) ? callback : ''}", :name=>'callback'}
66
+ %br/
67
+ %br/
68
+
69
+ %input{:type => 'submit', :value => 'Signature'}
70
+
71
+
72
+
73
+ %br/
74
+ %a{:href=>'/templates/merge_feid_doc.docx'} Download sample Docx file
75
+ %br/
76
+ %br/
77
+ %div{:style => 'padding:20px; border:1px solid black;'}
78
+ %p
79
+ Results:
80
+ #{(defined? iframe) ? iframe : ''}
81
+
82
+ = partial :_others_samples
83
+
84
+ %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
85
+ :javascript
86
+ $(function($){
87
+
88
+ $('.guid_radio input').change(function(){
89
+ var elementIndex = $(this).parent().children('input').index($(this));
90
+ $('.guid_field').hide();
91
+ $('.guid_field').eq(elementIndex).show();
92
+ });
93
+ });
94
+
95
+ function check() {
96
+ $.get('/sample32/check', function(data) {
97
+ $('#results_status').fadeOut("slow");
98
+ $('#downloadframe').attr("src", "/sample32/downloads/" + data);
99
+ }, 'text');
100
+ }
101
+
102
+ $(function($){
103
+ callbackUrl = $("input[name=callback]").val();
104
+
105
+ if(callbackUrl !== "") {
106
+ $('#results_status').fadeIn("slow");
107
+ setTimeout(check, 5000)
108
+ }
109
+
110
+ });
@@ -0,0 +1,63 @@
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
+ \- Sample33
4
+ .samplecontent{:style => 'padding:10px;'}
5
+ %i This sample will show how to convert and to merge/combine several HTML documents into one PDF Document
6
+ %br/
7
+ %br/
8
+ %span.documentation
9
+ %a{:href => '/docs/sample33.html'} Builtin documentation for this sample
10
+ %br/
11
+ %br/
12
+ %p
13
+ You entered:
14
+ %p
15
+ UserId = #{(defined? userId) ? userId : ''}
16
+ %p
17
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
18
+
19
+
20
+ %p
21
+
22
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
23
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
24
+ %p Enter data for request and press "Make request" button
25
+ %form{:action => '/sample33', :enctype => 'multipart/form-data', :method => 'post'}
26
+ %label{:for => 'client_id'} GroupDocs ClientID
27
+ %br/
28
+ %input{:type=>'text', :name=>'client_id'}
29
+ %br/
30
+ %label{:for => 'private_key'} GroupDocs PrivateKey
31
+ %br/
32
+ %input{:type=>'text', :name=>'private_key'}
33
+ %br/
34
+ %label{:for => 'url_1'} 1. Web url the document in format 'Html'
35
+ %br/
36
+ %input{:type=>'text', :name=>'url_1', :size=>60}
37
+ %br/
38
+ %label{:for => 'url_2'} 2. Web url the document in format 'Html'
39
+ %br/
40
+ %input{:type=>'text', :name=>'url_2', :size=>60}
41
+ %br/
42
+ %label{:for => 'url_3'} 3. Web url the document in format 'Html'
43
+ %br/
44
+ %input{:type=>'text', :name=>'url_3', :size=>60}
45
+ %br/
46
+ %label{:for => 'url_4'} 4. Web url the document in format 'Html'
47
+ %br/
48
+ %input{:type=>'text', :name=>'url_4', :size=>60}
49
+ %br/
50
+ %label{:for => 'url_5'} 5. Web url the document in format 'Html'
51
+ %br/
52
+ %input{:type=>'text', :name=>'url_5', :size=>60}
53
+ %br/
54
+ %br/
55
+ %input{:type => 'submit', :value => 'Make Request'}/
56
+ %div{:style => 'padding:20px; border:1px solid black;'}
57
+ %p Results:
58
+ %br/
59
+ %p #{(defined? iframe) ? iframe : ''}
60
+ %br/
61
+
62
+ = partial :_others_samples
63
+
@@ -413,12 +413,13 @@ module GroupDocs
413
413
  #
414
414
  # Sends envelope.
415
415
  #
416
- # @param [String] webhook URL to be hooked after envelope is completed
416
+ # @param [Hash] webhook URL to be hooked after envelope is completed
417
+ # @option webhook [String] :callbackUrl
417
418
  # @param [Hash] access Access credentials
418
419
  # @option access [String] :client_id
419
420
  # @option access [String] :private_key
420
421
  #
421
- def send!(webhook = nil, access = {})
422
+ def send!(webhook = {}, access = {})
422
423
  Api::Request.new do |request|
423
424
  request[:access] = access
424
425
  request[:method] = :PUT
@@ -216,9 +216,10 @@ module GroupDocs
216
216
  # @param [Hash] access Access credentials
217
217
  # @option access [String] :client_id
218
218
  # @option access [String] :private_key
219
- # @param callbackUrl [String]:callbackUrl Webhook Callback Url
219
+ # @param callbackUrl [Hash] Webhook Callback Url
220
+ # @option callbackUrl [String] :callbackUrl
220
221
  #
221
- def publish!(callbackUrl, access = {})
222
+ def publish!(callbackUrl = {}, access = {})
222
223
  Api::Request.new do |request|
223
224
  request[:access] = access
224
225
  request[:method] = :PUT
@@ -1,3 +1,3 @@
1
1
  module GroupDocs
2
- VERSION = '1.5.4'
2
+ VERSION = '1.5.5'
3
3
  end # GroupDocs
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
5
- prerelease:
4
+ version: 1.5.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Marketplace Team
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-14 00:00:00.000000000 Z
11
+ date: 2013-10-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rest-client
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: mime-types
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: activesupport
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: fuubar
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rake
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
@@ -126,7 +111,6 @@ dependencies:
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: simplecov
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
@@ -142,7 +125,6 @@ dependencies:
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: yard
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ~>
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ~>
156
137
  - !ruby/object:Gem::Version
@@ -158,7 +139,6 @@ dependencies:
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: webmock
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
143
  - - ~>
164
144
  - !ruby/object:Gem::Version
@@ -166,7 +146,6 @@ dependencies:
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
150
  - - ~>
172
151
  - !ruby/object:Gem::Version
@@ -215,6 +194,8 @@ files:
215
194
  - examples/api-samples/public/docs/sample3.html
216
195
  - examples/api-samples/public/docs/sample30.html
217
196
  - examples/api-samples/public/docs/sample31.html
197
+ - examples/api-samples/public/docs/sample32.html
198
+ - examples/api-samples/public/docs/sample33.html
218
199
  - examples/api-samples/public/docs/sample4.html
219
200
  - examples/api-samples/public/docs/sample5.html
220
201
  - examples/api-samples/public/docs/sample6.html
@@ -256,6 +237,8 @@ files:
256
237
  - examples/api-samples/samples/sample3.rb
257
238
  - examples/api-samples/samples/sample30.rb
258
239
  - examples/api-samples/samples/sample31.rb
240
+ - examples/api-samples/samples/sample32.rb
241
+ - examples/api-samples/samples/sample33.rb
259
242
  - examples/api-samples/samples/sample4.rb
260
243
  - examples/api-samples/samples/sample5.rb
261
244
  - examples/api-samples/samples/sample6.rb
@@ -292,6 +275,8 @@ files:
292
275
  - examples/api-samples/views/sample3.haml
293
276
  - examples/api-samples/views/sample30.haml
294
277
  - examples/api-samples/views/sample31.haml
278
+ - examples/api-samples/views/sample32.haml
279
+ - examples/api-samples/views/sample33.haml
295
280
  - examples/api-samples/views/sample4.haml
296
281
  - examples/api-samples/views/sample5.haml
297
282
  - examples/api-samples/views/sample6.haml
@@ -547,27 +532,26 @@ files:
547
532
  - spec/support/shared_examples/signature/shared/resource_methods.rb
548
533
  homepage: https://github.com/groupdocs/groupdocs-ruby
549
534
  licenses: []
535
+ metadata: {}
550
536
  post_install_message:
551
537
  rdoc_options: []
552
538
  require_paths:
553
539
  - lib
554
540
  required_ruby_version: !ruby/object:Gem::Requirement
555
- none: false
556
541
  requirements:
557
542
  - - ! '>='
558
543
  - !ruby/object:Gem::Version
559
544
  version: '0'
560
545
  required_rubygems_version: !ruby/object:Gem::Requirement
561
- none: false
562
546
  requirements:
563
547
  - - ! '>='
564
548
  - !ruby/object:Gem::Version
565
549
  version: '0'
566
550
  requirements: []
567
551
  rubyforge_project:
568
- rubygems_version: 1.8.24
552
+ rubygems_version: 2.1.9
569
553
  signing_key:
570
- specification_version: 3
554
+ specification_version: 4
571
555
  summary: Ruby SDK for GroupDocs REST API
572
556
  test_files: []
573
557
  has_rdoc: