groupdocs 1.1.0 → 1.2.0
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.
- data/CHANGELOG.md +41 -0
- data/examples/README.md +2 -3
- data/examples/api-samples/Gemfile +5 -0
- data/examples/api-samples/Gemfile.lock +27 -0
- data/examples/api-samples/README.md +12 -0
- data/examples/api-samples/app.rb +17 -0
- data/examples/api-samples/public/css/style.css +166 -0
- data/examples/api-samples/samples/sample1.rb +17 -0
- data/examples/api-samples/samples/sample10.rb +36 -0
- data/examples/api-samples/samples/sample2.rb +19 -0
- data/examples/api-samples/samples/sample3.rb +23 -0
- data/examples/api-samples/samples/sample4.rb +31 -0
- data/examples/api-samples/samples/sample5.rb +44 -0
- data/examples/api-samples/samples/sample6.rb +3 -0
- data/examples/api-samples/samples/sample7.rb +33 -0
- data/examples/api-samples/samples/sample8.rb +40 -0
- data/examples/api-samples/samples/sample9.rb +22 -0
- data/examples/api-samples/views/index.haml +23 -0
- data/examples/api-samples/views/layout.haml +7 -0
- data/examples/api-samples/views/sample1.haml +71 -0
- data/examples/api-samples/views/sample10.haml +69 -0
- data/examples/api-samples/views/sample2.haml +59 -0
- data/examples/api-samples/views/sample3.haml +62 -0
- data/examples/api-samples/views/sample4.haml +58 -0
- data/examples/api-samples/views/sample5.haml +62 -0
- data/examples/api-samples/views/sample6.haml +145 -0
- data/examples/api-samples/views/sample7.haml +59 -0
- data/examples/api-samples/views/sample8.haml +75 -0
- data/examples/api-samples/views/sample9.haml +61 -0
- data/examples/{annotations → viewer}/Gemfile +0 -0
- data/examples/viewer/app.rb +52 -0
- data/groupdocs.gemspec +5 -4
- data/lib/groupdocs/api.rb +1 -0
- data/lib/groupdocs/api/entity.rb +2 -0
- data/lib/groupdocs/api/helpers.rb +2 -0
- data/lib/groupdocs/api/helpers/accessor_helper.rb +30 -0
- data/lib/groupdocs/api/helpers/mime_helper.rb +21 -0
- data/lib/groupdocs/api/helpers/rest_helper.rb +3 -2
- data/lib/groupdocs/api/request.rb +1 -3
- data/lib/groupdocs/datasource.rb +1 -2
- data/lib/groupdocs/document.rb +133 -3
- data/lib/groupdocs/document/annotation.rb +14 -13
- data/lib/groupdocs/document/annotation/reply.rb +4 -8
- data/lib/groupdocs/document/annotation/reviewer.rb +2 -4
- data/lib/groupdocs/document/field.rb +10 -8
- data/lib/groupdocs/document/rectangle.rb +10 -18
- data/lib/groupdocs/job.rb +1 -1
- data/lib/groupdocs/questionnaire.rb +138 -44
- data/lib/groupdocs/questionnaire/collector.rb +262 -0
- data/lib/groupdocs/questionnaire/execution.rb +93 -10
- data/lib/groupdocs/questionnaire/question.rb +1 -2
- data/lib/groupdocs/signature.rb +16 -24
- data/lib/groupdocs/signature/contact.rb +2 -4
- data/lib/groupdocs/signature/envelope.rb +3 -6
- data/lib/groupdocs/signature/envelope/log.rb +2 -4
- data/lib/groupdocs/signature/field.rb +21 -42
- data/lib/groupdocs/signature/field/location.rb +18 -36
- data/lib/groupdocs/signature/form.rb +9 -18
- data/lib/groupdocs/signature/list.rb +1 -2
- data/lib/groupdocs/signature/recipient.rb +3 -6
- data/lib/groupdocs/signature/role.rb +4 -8
- data/lib/groupdocs/signature/shared/entity_fields.rb +12 -20
- data/lib/groupdocs/signature/template.rb +1 -2
- data/lib/groupdocs/storage/file.rb +3 -1
- data/lib/groupdocs/storage/folder.rb +7 -1
- data/lib/groupdocs/subscription.rb +6 -12
- data/lib/groupdocs/subscription/limit.rb +4 -8
- data/lib/groupdocs/user.rb +3 -6
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/api/helpers/accessor_helper_spec.rb +16 -0
- data/spec/groupdocs/api/helpers/mime_helper_spec.rb +16 -0
- data/spec/groupdocs/api/helpers/rest_helper_spec.rb +4 -0
- data/spec/groupdocs/api/request_spec.rb +3 -5
- data/spec/groupdocs/datasource/field_spec.rb +3 -6
- data/spec/groupdocs/datasource_spec.rb +8 -15
- data/spec/groupdocs/document/annotation/reply_spec.rb +13 -24
- data/spec/groupdocs/document/annotation/reviewer_spec.rb +5 -9
- data/spec/groupdocs/document/annotation_spec.rb +35 -40
- data/spec/groupdocs/document/change_spec.rb +6 -11
- data/spec/groupdocs/document/field_spec.rb +13 -13
- data/spec/groupdocs/document/metadata_spec.rb +5 -10
- data/spec/groupdocs/document/rectangle_spec.rb +6 -18
- data/spec/groupdocs/document/view_spec.rb +3 -6
- data/spec/groupdocs/document_spec.rb +123 -10
- data/spec/groupdocs/job_spec.rb +9 -18
- data/spec/groupdocs/questionnaire/collector_spec.rb +201 -0
- data/spec/groupdocs/questionnaire/execution_spec.rb +91 -23
- data/spec/groupdocs/questionnaire/page_spec.rb +3 -6
- data/spec/groupdocs/questionnaire/question/answer_spec.rb +2 -4
- data/spec/groupdocs/questionnaire/question_spec.rb +7 -14
- data/spec/groupdocs/questionnaire_spec.rb +117 -41
- data/spec/groupdocs/signature/contact_spec.rb +9 -17
- data/spec/groupdocs/signature/envelope/log_spec.rb +8 -16
- data/spec/groupdocs/signature/envelope_spec.rb +9 -17
- data/spec/groupdocs/signature/field/location_spec.rb +32 -65
- data/spec/groupdocs/signature/field_spec.rb +48 -95
- data/spec/groupdocs/signature/form_spec.rb +22 -43
- data/spec/groupdocs/signature/list_spec.rb +6 -11
- data/spec/groupdocs/signature/recipient_spec.rb +11 -22
- data/spec/groupdocs/signature/role_spec.rb +11 -21
- data/spec/groupdocs/signature/template_spec.rb +2 -4
- data/spec/groupdocs/signature_spec.rb +28 -54
- data/spec/groupdocs/storage/file_spec.rb +14 -26
- data/spec/groupdocs/storage/folder_spec.rb +16 -22
- data/spec/groupdocs/storage/package_spec.rb +2 -4
- data/spec/groupdocs/subscription/limit_spec.rb +8 -16
- data/spec/groupdocs/subscription_spec.rb +11 -22
- data/spec/groupdocs/user_spec.rb +21 -41
- data/spec/groupdocs_spec.rb +4 -8
- data/spec/spec_helper.rb +12 -0
- data/spec/support/files/signature.png +0 -0
- data/spec/support/json/annotation_list.json +6 -6
- data/spec/support/json/comparison_changes.json +8 -8
- data/spec/support/json/document_fields.json +8 -8
- data/spec/support/json/document_page_images_get.json +20 -0
- data/spec/support/json/questionnaire_collector.json +17 -0
- data/spec/support/json/questionnaire_collectors.json +38 -0
- data/spec/support/json/questionnaire_collectors_add.json +10 -0
- data/spec/support/json/questionnaire_create.json +3 -1
- data/spec/support/json/{questionnaire_execution_create.json → questionnaire_execution_add.json} +1 -1
- data/spec/support/json/questionnaire_get.json +3 -0
- data/spec/support/json/questionnaires_get.json +36 -18
- data/spec/support/json/sign_documents.json +16 -0
- data/spec/support/json/templates_get.json +21 -0
- data/spec/support/shared_examples/api/entity.rb +2 -0
- data/spec/support/shared_examples/api/helpers/access_mode_helper.rb +1 -2
- data/spec/support/shared_examples/api/helpers/status_helper.rb +1 -2
- data/spec/support/shared_examples/signature/shared/entity_fields.rb +22 -43
- metadata +82 -16
- data/examples/annotations/app.rb +0 -67
|
@@ -58,23 +58,15 @@ describe GroupDocs::Signature::Envelope do
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
it { should
|
|
62
|
-
it { should
|
|
63
|
-
it { should
|
|
64
|
-
it { should
|
|
65
|
-
it { should
|
|
66
|
-
|
|
67
|
-
it { should
|
|
68
|
-
it { should
|
|
69
|
-
it { should
|
|
70
|
-
it { should respond_to(:status=) }
|
|
71
|
-
|
|
72
|
-
it { should have_alias(:creation_date_time, :creationDateTime) }
|
|
73
|
-
it { should have_alias(:creation_date_time=, :creationDateTime=) }
|
|
74
|
-
it { should have_alias(:status_date_time, :statusDateTime) }
|
|
75
|
-
it { should have_alias(:status_date_time=, :statusDateTime=) }
|
|
76
|
-
it { should have_alias(:envelope_expire_time, :envelopeExpireTime) }
|
|
77
|
-
it { should have_alias(:envelope_expire_time=, :envelopeExpireTime=) }
|
|
61
|
+
it { should have_accessor(:creationDateTime) }
|
|
62
|
+
it { should have_accessor(:status) }
|
|
63
|
+
it { should have_accessor(:statusDateTime) }
|
|
64
|
+
it { should have_accessor(:envelopeExpireTime) }
|
|
65
|
+
it { should have_accessor(:status) }
|
|
66
|
+
|
|
67
|
+
it { should alias_accessor(:creation_date_time, :creationDateTime) }
|
|
68
|
+
it { should alias_accessor(:status_date_time, :statusDateTime) }
|
|
69
|
+
it { should alias_accessor(:envelope_expire_time, :envelopeExpireTime) }
|
|
78
70
|
|
|
79
71
|
describe '#status' do
|
|
80
72
|
it 'converts status to human-readable format' do
|
|
@@ -4,70 +4,37 @@ describe GroupDocs::Signature::Field::Location do
|
|
|
4
4
|
|
|
5
5
|
it_behaves_like GroupDocs::Api::Entity
|
|
6
6
|
|
|
7
|
-
it { should
|
|
8
|
-
it { should
|
|
9
|
-
it { should
|
|
10
|
-
it { should
|
|
11
|
-
it { should
|
|
12
|
-
it { should
|
|
13
|
-
it { should
|
|
14
|
-
it { should
|
|
15
|
-
it { should
|
|
16
|
-
it { should
|
|
17
|
-
it { should
|
|
18
|
-
it { should
|
|
19
|
-
it { should
|
|
20
|
-
it { should
|
|
21
|
-
it { should respond_to(:locationHeight) }
|
|
22
|
-
it { should respond_to(:locationHeight=) }
|
|
23
|
-
it { should respond_to(:fontName) }
|
|
24
|
-
it { should respond_to(:fontName=) }
|
|
25
|
-
it { should respond_to(:fontColor) }
|
|
26
|
-
it { should respond_to(:fontColor=) }
|
|
27
|
-
it { should respond_to(:fontSize) }
|
|
28
|
-
it { should respond_to(:fontSize=) }
|
|
29
|
-
it { should respond_to(:fontBold) }
|
|
30
|
-
it { should respond_to(:fontBold=) }
|
|
31
|
-
it { should respond_to(:fontItalic) }
|
|
32
|
-
it { should respond_to(:fontItalic=) }
|
|
33
|
-
it { should respond_to(:fontUnderline) }
|
|
34
|
-
it { should respond_to(:fontUnderline=) }
|
|
35
|
-
|
|
36
|
-
it { should have_alias(:document_id, :documentId) }
|
|
37
|
-
it { should have_alias(:document_id=, :documentId=) }
|
|
38
|
-
it { should have_alias(:field_id, :fieldId) }
|
|
39
|
-
it { should have_alias(:field_id=, :fieldId=) }
|
|
40
|
-
it { should have_alias(:location_x, :locationX) }
|
|
41
|
-
it { should have_alias(:location_x=, :locationX=) }
|
|
42
|
-
it { should have_alias(:x, :locationX) }
|
|
43
|
-
it { should have_alias(:x=, :locationX=) }
|
|
44
|
-
it { should have_alias(:location_y, :locationY) }
|
|
45
|
-
it { should have_alias(:location_y=, :locationY=) }
|
|
46
|
-
it { should have_alias(:y, :locationY) }
|
|
47
|
-
it { should have_alias(:y=, :locationY=) }
|
|
48
|
-
it { should have_alias(:location_w, :locationWidth) }
|
|
49
|
-
it { should have_alias(:location_w=, :locationWidth=) }
|
|
50
|
-
it { should have_alias(:location_width, :locationWidth) }
|
|
51
|
-
it { should have_alias(:location_width=, :locationWidth=) }
|
|
52
|
-
it { should have_alias(:w, :locationWidth) }
|
|
53
|
-
it { should have_alias(:w=, :locationWidth=) }
|
|
54
|
-
it { should have_alias(:location_h, :locationHeight) }
|
|
55
|
-
it { should have_alias(:location_h=, :locationHeight=) }
|
|
56
|
-
it { should have_alias(:location_height, :locationHeight) }
|
|
57
|
-
it { should have_alias(:location_height=, :locationHeight=) }
|
|
58
|
-
it { should have_alias(:h, :locationHeight) }
|
|
59
|
-
it { should have_alias(:h=, :locationHeight=) }
|
|
60
|
-
it { should have_alias(:font_name, :fontName) }
|
|
61
|
-
it { should have_alias(:font_name=, :fontName=) }
|
|
62
|
-
it { should have_alias(:font_color, :fontColor) }
|
|
63
|
-
it { should have_alias(:font_color=, :fontColor=) }
|
|
64
|
-
it { should have_alias(:font_size, :fontSize) }
|
|
65
|
-
it { should have_alias(:font_size=, :fontSize=) }
|
|
66
|
-
it { should have_alias(:font_bold, :fontBold) }
|
|
67
|
-
it { should have_alias(:font_bold=, :fontBold=) }
|
|
68
|
-
it { should have_alias(:font_italic, :fontItalic) }
|
|
69
|
-
it { should have_alias(:font_italic=, :fontItalic=) }
|
|
70
|
-
it { should have_alias(:font_underline, :fontUnderline) }
|
|
71
|
-
it { should have_alias(:font_underline=, :fontUnderline=) }
|
|
7
|
+
it { should have_accessor(:id) }
|
|
8
|
+
it { should have_accessor(:documentId) }
|
|
9
|
+
it { should have_accessor(:fieldId) }
|
|
10
|
+
it { should have_accessor(:page) }
|
|
11
|
+
it { should have_accessor(:locationX) }
|
|
12
|
+
it { should have_accessor(:locationY) }
|
|
13
|
+
it { should have_accessor(:locationWidth) }
|
|
14
|
+
it { should have_accessor(:locationHeight) }
|
|
15
|
+
it { should have_accessor(:fontName) }
|
|
16
|
+
it { should have_accessor(:fontColor) }
|
|
17
|
+
it { should have_accessor(:fontSize) }
|
|
18
|
+
it { should have_accessor(:fontBold) }
|
|
19
|
+
it { should have_accessor(:fontItalic) }
|
|
20
|
+
it { should have_accessor(:fontUnderline) }
|
|
72
21
|
|
|
22
|
+
it { should alias_accessor(:document_id, :documentId) }
|
|
23
|
+
it { should alias_accessor(:field_id, :fieldId) }
|
|
24
|
+
it { should alias_accessor(:location_x, :locationX) }
|
|
25
|
+
it { should alias_accessor(:x, :locationX) }
|
|
26
|
+
it { should alias_accessor(:location_y, :locationY) }
|
|
27
|
+
it { should alias_accessor(:y, :locationY) }
|
|
28
|
+
it { should alias_accessor(:location_w, :locationWidth) }
|
|
29
|
+
it { should alias_accessor(:location_width, :locationWidth) }
|
|
30
|
+
it { should alias_accessor(:w, :locationWidth) }
|
|
31
|
+
it { should alias_accessor(:location_h, :locationHeight) }
|
|
32
|
+
it { should alias_accessor(:location_height, :locationHeight) }
|
|
33
|
+
it { should alias_accessor(:h, :locationHeight) }
|
|
34
|
+
it { should alias_accessor(:font_name, :fontName) }
|
|
35
|
+
it { should alias_accessor(:font_color, :fontColor) }
|
|
36
|
+
it { should alias_accessor(:font_size, :fontSize) }
|
|
37
|
+
it { should alias_accessor(:font_bold, :fontBold) }
|
|
38
|
+
it { should alias_accessor(:font_italic, :fontItalic) }
|
|
39
|
+
it { should alias_accessor(:font_underline, :fontUnderline) }
|
|
73
40
|
end
|
|
@@ -28,101 +28,54 @@ describe GroupDocs::Signature::Field do
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
it { should
|
|
32
|
-
it { should
|
|
33
|
-
it { should
|
|
34
|
-
it { should
|
|
35
|
-
it { should
|
|
36
|
-
it { should
|
|
37
|
-
it { should
|
|
38
|
-
it { should
|
|
39
|
-
it { should
|
|
40
|
-
it { should
|
|
41
|
-
it { should
|
|
42
|
-
it { should
|
|
43
|
-
it { should
|
|
44
|
-
it { should
|
|
45
|
-
it { should
|
|
46
|
-
it { should
|
|
47
|
-
it { should
|
|
48
|
-
it { should
|
|
49
|
-
it { should
|
|
50
|
-
it { should
|
|
51
|
-
it { should
|
|
52
|
-
it { should
|
|
53
|
-
it { should
|
|
54
|
-
it { should
|
|
55
|
-
it { should
|
|
56
|
-
it { should
|
|
57
|
-
it { should
|
|
58
|
-
|
|
59
|
-
it { should
|
|
60
|
-
it { should
|
|
61
|
-
it { should
|
|
62
|
-
it { should
|
|
63
|
-
it { should
|
|
64
|
-
it { should
|
|
65
|
-
it { should
|
|
66
|
-
it { should
|
|
67
|
-
it { should
|
|
68
|
-
it { should
|
|
69
|
-
it { should
|
|
70
|
-
it { should
|
|
71
|
-
it { should
|
|
72
|
-
it { should
|
|
73
|
-
it { should
|
|
74
|
-
it { should
|
|
75
|
-
it { should
|
|
76
|
-
it { should
|
|
77
|
-
it { should
|
|
78
|
-
it { should
|
|
79
|
-
it { should respond_to(:textColumns) }
|
|
80
|
-
it { should respond_to(:textColumns=) }
|
|
81
|
-
it { should respond_to(:location) }
|
|
82
|
-
it { should respond_to(:location=) }
|
|
83
|
-
it { should respond_to(:locations) }
|
|
84
|
-
it { should respond_to(:locations=) }
|
|
85
|
-
|
|
86
|
-
it { should have_alias(:template_id, :templateId) }
|
|
87
|
-
it { should have_alias(:template_id=, :templateId=) }
|
|
88
|
-
it { should have_alias(:recipient_id, :recipientId) }
|
|
89
|
-
it { should have_alias(:recipient_id=, :recipientId=) }
|
|
90
|
-
it { should have_alias(:signature_field_id, :signatureFieldId) }
|
|
91
|
-
it { should have_alias(:signature_field_id=, :signatureFieldId=) }
|
|
92
|
-
it { should have_alias(:graph_size_w, :graphSizeW) }
|
|
93
|
-
it { should have_alias(:graph_size_w=, :graphSizeW=) }
|
|
94
|
-
it { should have_alias(:graph_size_width, :graphSizeW) }
|
|
95
|
-
it { should have_alias(:graph_size_width=, :graphSizeW=) }
|
|
96
|
-
it { should have_alias(:graph_size_h, :graphSizeH) }
|
|
97
|
-
it { should have_alias(:graph_size_h=, :graphSizeH=) }
|
|
98
|
-
it { should have_alias(:graph_size_height, :graphSizeH) }
|
|
99
|
-
it { should have_alias(:graph_size_height=, :graphSizeH=) }
|
|
100
|
-
it { should have_alias(:get_data_from, :getDataFrom) }
|
|
101
|
-
it { should have_alias(:get_data_from=, :getDataFrom=) }
|
|
102
|
-
it { should have_alias(:regular_expression, :regularExpression) }
|
|
103
|
-
it { should have_alias(:regular_expression=, :regularExpression=) }
|
|
104
|
-
it { should have_alias(:font_name, :fontName) }
|
|
105
|
-
it { should have_alias(:font_name=, :fontName=) }
|
|
106
|
-
it { should have_alias(:font_color, :fontColor) }
|
|
107
|
-
it { should have_alias(:font_color=, :fontColor=) }
|
|
108
|
-
it { should have_alias(:font_size, :fontSize) }
|
|
109
|
-
it { should have_alias(:font_size=, :fontSize=) }
|
|
110
|
-
it { should have_alias(:font_bold, :fontBold) }
|
|
111
|
-
it { should have_alias(:font_bold=, :fontBold=) }
|
|
112
|
-
it { should have_alias(:font_italic, :fontItalic) }
|
|
113
|
-
it { should have_alias(:font_italic=, :fontItalic=) }
|
|
114
|
-
it { should have_alias(:font_underline, :fontUnderline) }
|
|
115
|
-
it { should have_alias(:font_underline=, :fontUnderline=) }
|
|
116
|
-
it { should have_alias(:is_system, :isSystem) }
|
|
117
|
-
it { should have_alias(:is_system=, :isSystem=) }
|
|
118
|
-
it { should have_alias(:acceptable_values, :acceptableValues) }
|
|
119
|
-
it { should have_alias(:acceptable_values=, :acceptableValues=) }
|
|
120
|
-
it { should have_alias(:default_value, :defaultValue) }
|
|
121
|
-
it { should have_alias(:default_value=, :defaultValue=) }
|
|
122
|
-
it { should have_alias(:text_rows, :textRows) }
|
|
123
|
-
it { should have_alias(:text_rows=, :textRows=) }
|
|
124
|
-
it { should have_alias(:text_columns, :textColumns) }
|
|
125
|
-
it { should have_alias(:text_columns=, :textColumns=) }
|
|
31
|
+
it { should have_accessor(:id) }
|
|
32
|
+
it { should have_accessor(:templateId) }
|
|
33
|
+
it { should have_accessor(:recipientId) }
|
|
34
|
+
it { should have_accessor(:signatureFieldId) }
|
|
35
|
+
it { should have_accessor(:graphSizeW) }
|
|
36
|
+
it { should have_accessor(:graphSizeW) }
|
|
37
|
+
it { should have_accessor(:graphSizeH) }
|
|
38
|
+
it { should have_accessor(:graphSizeH) }
|
|
39
|
+
it { should have_accessor(:getDataFrom) }
|
|
40
|
+
it { should have_accessor(:regularExpression) }
|
|
41
|
+
it { should have_accessor(:fontName) }
|
|
42
|
+
it { should have_accessor(:fontColor) }
|
|
43
|
+
it { should have_accessor(:fontSize) }
|
|
44
|
+
it { should have_accessor(:fontBold) }
|
|
45
|
+
it { should have_accessor(:fontItalic) }
|
|
46
|
+
it { should have_accessor(:fontUnderline) }
|
|
47
|
+
it { should have_accessor(:isSystem) }
|
|
48
|
+
it { should have_accessor(:fieldType) }
|
|
49
|
+
it { should have_accessor(:acceptableValues) }
|
|
50
|
+
it { should have_accessor(:defaultValue) }
|
|
51
|
+
it { should have_accessor(:tooltip) }
|
|
52
|
+
it { should have_accessor(:input) }
|
|
53
|
+
it { should have_accessor(:order) }
|
|
54
|
+
it { should have_accessor(:textRows) }
|
|
55
|
+
it { should have_accessor(:textColumns) }
|
|
56
|
+
it { should have_accessor(:location) }
|
|
57
|
+
it { should have_accessor(:locations) }
|
|
58
|
+
|
|
59
|
+
it { should alias_accessor(:template_id, :templateId) }
|
|
60
|
+
it { should alias_accessor(:recipient_id, :recipientId) }
|
|
61
|
+
it { should alias_accessor(:signature_field_id, :signatureFieldId) }
|
|
62
|
+
it { should alias_accessor(:graph_size_w, :graphSizeW) }
|
|
63
|
+
it { should alias_accessor(:graph_size_width, :graphSizeW) }
|
|
64
|
+
it { should alias_accessor(:graph_size_h, :graphSizeH) }
|
|
65
|
+
it { should alias_accessor(:graph_size_height, :graphSizeH) }
|
|
66
|
+
it { should alias_accessor(:get_data_from, :getDataFrom) }
|
|
67
|
+
it { should alias_accessor(:regular_expression, :regularExpression) }
|
|
68
|
+
it { should alias_accessor(:font_name, :fontName) }
|
|
69
|
+
it { should alias_accessor(:font_color, :fontColor) }
|
|
70
|
+
it { should alias_accessor(:font_size, :fontSize) }
|
|
71
|
+
it { should alias_accessor(:font_bold, :fontBold) }
|
|
72
|
+
it { should alias_accessor(:font_italic, :fontItalic) }
|
|
73
|
+
it { should alias_accessor(:font_underline, :fontUnderline) }
|
|
74
|
+
it { should alias_accessor(:is_system, :isSystem) }
|
|
75
|
+
it { should alias_accessor(:acceptable_values, :acceptableValues) }
|
|
76
|
+
it { should alias_accessor(:default_value, :defaultValue) }
|
|
77
|
+
it { should alias_accessor(:text_rows, :textRows) }
|
|
78
|
+
it { should alias_accessor(:text_columns, :textColumns) }
|
|
126
79
|
|
|
127
80
|
describe '#location=' do
|
|
128
81
|
it 'converts location to GroupDocs::Signature::Field::Location object if hash is passed' do
|
|
@@ -30,49 +30,28 @@ describe GroupDocs::Signature::Form do
|
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
it { should
|
|
34
|
-
it { should
|
|
35
|
-
it { should
|
|
36
|
-
it { should
|
|
37
|
-
it { should
|
|
38
|
-
it { should
|
|
39
|
-
it { should
|
|
40
|
-
it { should
|
|
41
|
-
it { should
|
|
42
|
-
it { should
|
|
43
|
-
it { should
|
|
44
|
-
it { should
|
|
45
|
-
|
|
46
|
-
it { should
|
|
47
|
-
it { should
|
|
48
|
-
it { should
|
|
49
|
-
it { should
|
|
50
|
-
it { should
|
|
51
|
-
it { should
|
|
52
|
-
it { should
|
|
53
|
-
it { should
|
|
54
|
-
it { should
|
|
55
|
-
it { should respond_to(:status) }
|
|
56
|
-
it { should respond_to(:status=) }
|
|
57
|
-
|
|
58
|
-
it { should have_alias(:owner_guid, :ownerGuid) }
|
|
59
|
-
it { should have_alias(:owner_guid=, :ownerGuid=) }
|
|
60
|
-
it { should have_alias(:template_guid, :templateGuid) }
|
|
61
|
-
it { should have_alias(:template_guid=, :templateGuid=) }
|
|
62
|
-
it { should have_alias(:created_time_stamp, :createdTimeStamp) }
|
|
63
|
-
it { should have_alias(:created_time_stamp=, :createdTimeStamp=) }
|
|
64
|
-
it { should have_alias(:status_date_time, :statusDateTime) }
|
|
65
|
-
it { should have_alias(:status_date_time=, :statusDateTime=) }
|
|
66
|
-
it { should have_alias(:documents_count, :documentsCount) }
|
|
67
|
-
it { should have_alias(:documents_count=, :documentsCount=) }
|
|
68
|
-
it { should have_alias(:documents_pages, :documentsPages) }
|
|
69
|
-
it { should have_alias(:documents_pages=, :documentsPages=) }
|
|
70
|
-
it { should have_alias(:participants_count, :participantsCount) }
|
|
71
|
-
it { should have_alias(:participants_count=, :participantsCount=) }
|
|
72
|
-
it { should have_alias(:fields_in_final_file_name, :fieldsInFinalFileName) }
|
|
73
|
-
it { should have_alias(:fields_in_final_file_name=, :fieldsInFinalFileName=) }
|
|
74
|
-
it { should have_alias(:can_participant_download_form, :canParticipantDownloadForm) }
|
|
75
|
-
it { should have_alias(:can_participant_download_form=, :canParticipantDownloadForm=) }
|
|
33
|
+
it { should have_accessor(:id) }
|
|
34
|
+
it { should have_accessor(:name) }
|
|
35
|
+
it { should have_accessor(:ownerGuid) }
|
|
36
|
+
it { should have_accessor(:templateGuid) }
|
|
37
|
+
it { should have_accessor(:createdTimeStamp) }
|
|
38
|
+
it { should have_accessor(:statusDateTime) }
|
|
39
|
+
it { should have_accessor(:documentsCount) }
|
|
40
|
+
it { should have_accessor(:documentsPages) }
|
|
41
|
+
it { should have_accessor(:participantsCount) }
|
|
42
|
+
it { should have_accessor(:fieldsInFinalFileName) }
|
|
43
|
+
it { should have_accessor(:canParticipantDownloadForm) }
|
|
44
|
+
it { should have_accessor(:status) }
|
|
45
|
+
|
|
46
|
+
it { should alias_accessor(:owner_guid, :ownerGuid) }
|
|
47
|
+
it { should alias_accessor(:template_guid, :templateGuid) }
|
|
48
|
+
it { should alias_accessor(:created_time_stamp, :createdTimeStamp) }
|
|
49
|
+
it { should alias_accessor(:status_date_time, :statusDateTime) }
|
|
50
|
+
it { should alias_accessor(:documents_count, :documentsCount) }
|
|
51
|
+
it { should alias_accessor(:documents_pages, :documentsPages) }
|
|
52
|
+
it { should alias_accessor(:participants_count, :participantsCount) }
|
|
53
|
+
it { should alias_accessor(:fields_in_final_file_name, :fieldsInFinalFileName) }
|
|
54
|
+
it { should alias_accessor(:can_participant_download_form, :canParticipantDownloadForm) }
|
|
76
55
|
|
|
77
56
|
describe '#status' do
|
|
78
57
|
it 'converts status to human-readable format' do
|
|
@@ -24,17 +24,12 @@ describe GroupDocs::Signature::List do
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
it { should
|
|
28
|
-
it { should
|
|
29
|
-
it { should
|
|
30
|
-
it { should
|
|
31
|
-
|
|
32
|
-
it { should
|
|
33
|
-
it { should respond_to(:defaultValue) }
|
|
34
|
-
it { should respond_to(:defaultValue=) }
|
|
35
|
-
|
|
36
|
-
it { should have_alias(:default_value, :defaultValue) }
|
|
37
|
-
it { should have_alias(:default_value=, :defaultValue=) }
|
|
27
|
+
it { should have_accessor(:id) }
|
|
28
|
+
it { should have_accessor(:name) }
|
|
29
|
+
it { should have_accessor(:values) }
|
|
30
|
+
it { should have_accessor(:defaultValue) }
|
|
31
|
+
|
|
32
|
+
it { should alias_accessor(:default_value, :defaultValue) }
|
|
38
33
|
|
|
39
34
|
describe '#values=' do
|
|
40
35
|
it 'converts array of values to a string' do
|
|
@@ -4,29 +4,18 @@ describe GroupDocs::Signature::Recipient do
|
|
|
4
4
|
|
|
5
5
|
it_behaves_like GroupDocs::Api::Entity
|
|
6
6
|
|
|
7
|
-
it { should
|
|
8
|
-
it { should
|
|
9
|
-
it { should
|
|
10
|
-
it { should
|
|
11
|
-
it { should
|
|
12
|
-
it { should
|
|
13
|
-
it { should
|
|
14
|
-
it { should
|
|
15
|
-
it { should respond_to(:nickname) }
|
|
16
|
-
it { should respond_to(:nickname=) }
|
|
17
|
-
it { should respond_to(:roleId) }
|
|
18
|
-
it { should respond_to(:roleId=) }
|
|
19
|
-
it { should respond_to(:order) }
|
|
20
|
-
it { should respond_to(:order=) }
|
|
21
|
-
it { should respond_to(:status) }
|
|
22
|
-
it { should respond_to(:status=) }
|
|
7
|
+
it { should have_accessor(:id) }
|
|
8
|
+
it { should have_accessor(:email) }
|
|
9
|
+
it { should have_accessor(:firstName) }
|
|
10
|
+
it { should have_accessor(:lastName) }
|
|
11
|
+
it { should have_accessor(:nickname) }
|
|
12
|
+
it { should have_accessor(:roleId) }
|
|
13
|
+
it { should have_accessor(:order) }
|
|
14
|
+
it { should have_accessor(:status) }
|
|
23
15
|
|
|
24
|
-
it { should
|
|
25
|
-
it { should
|
|
26
|
-
it { should
|
|
27
|
-
it { should have_alias(:last_name=, :lastName=) }
|
|
28
|
-
it { should have_alias(:role_id, :roleId) }
|
|
29
|
-
it { should have_alias(:role_id=, :roleId=) }
|
|
16
|
+
it { should alias_accessor(:first_name, :firstName) }
|
|
17
|
+
it { should alias_accessor(:last_name, :lastName) }
|
|
18
|
+
it { should alias_accessor(:role_id, :roleId) }
|
|
30
19
|
|
|
31
20
|
describe '#status' do
|
|
32
21
|
it 'converts status to human-readable format' do
|
|
@@ -28,27 +28,17 @@ describe GroupDocs::Signature::Role do
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
it { should
|
|
32
|
-
it { should
|
|
33
|
-
it { should
|
|
34
|
-
it { should
|
|
35
|
-
it { should
|
|
36
|
-
it { should
|
|
37
|
-
|
|
38
|
-
it { should
|
|
39
|
-
it { should
|
|
40
|
-
it { should
|
|
41
|
-
it { should
|
|
42
|
-
it { should respond_to(:canDelegate=) }
|
|
43
|
-
|
|
44
|
-
it { should have_alias(:can_edit, :canEdit) }
|
|
45
|
-
it { should have_alias(:can_edit=, :canEdit=) }
|
|
46
|
-
it { should have_alias(:can_sign, :canSign) }
|
|
47
|
-
it { should have_alias(:can_sign=, :canSign=) }
|
|
48
|
-
it { should have_alias(:can_annotate, :canAnnotate) }
|
|
49
|
-
it { should have_alias(:can_annotate=, :canAnnotate=) }
|
|
50
|
-
it { should have_alias(:can_delegate, :canDelegate) }
|
|
51
|
-
it { should have_alias(:can_delegate=, :canDelegate=) }
|
|
31
|
+
it { should have_accessor(:id) }
|
|
32
|
+
it { should have_accessor(:name) }
|
|
33
|
+
it { should have_accessor(:canEdit) }
|
|
34
|
+
it { should have_accessor(:canSign) }
|
|
35
|
+
it { should have_accessor(:canAnnotate) }
|
|
36
|
+
it { should have_accessor(:canDelegate) }
|
|
37
|
+
|
|
38
|
+
it { should alias_accessor(:can_edit, :canEdit) }
|
|
39
|
+
it { should alias_accessor(:can_sign, :canSign) }
|
|
40
|
+
it { should alias_accessor(:can_annotate, :canAnnotate) }
|
|
41
|
+
it { should alias_accessor(:can_delegate, :canDelegate) }
|
|
52
42
|
|
|
53
43
|
describe '#can_edit?' do
|
|
54
44
|
it 'returns true if role can edit' do
|