groupdocs 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. data/.travis.yml +0 -0
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +0 -0
  4. data/README.md +4 -2
  5. data/Rakefile +0 -0
  6. data/examples/README.md +0 -0
  7. data/examples/annotations/Gemfile +0 -0
  8. data/examples/annotations/app.rb +0 -0
  9. data/groupdocs.gemspec +0 -0
  10. data/lib/groupdocs/api/entity.rb +0 -0
  11. data/lib/groupdocs/api/helpers/access_mode_helper.rb +0 -0
  12. data/lib/groupdocs/api/helpers/access_rights_helper.rb +54 -0
  13. data/lib/groupdocs/api/helpers/byte_flag_helper.rb +49 -0
  14. data/lib/groupdocs/api/helpers/credentials_helper.rb +0 -0
  15. data/lib/groupdocs/api/helpers/path_helper.rb +0 -0
  16. data/lib/groupdocs/api/helpers/rest_helper.rb +0 -0
  17. data/lib/groupdocs/api/helpers/status_helper.rb +0 -0
  18. data/lib/groupdocs/api/helpers/url_helper.rb +0 -0
  19. data/lib/groupdocs/api/helpers.rb +2 -1
  20. data/lib/groupdocs/api/request.rb +0 -0
  21. data/lib/groupdocs/api.rb +0 -0
  22. data/lib/groupdocs/datasource/field.rb +0 -0
  23. data/lib/groupdocs/datasource.rb +0 -0
  24. data/lib/groupdocs/document/annotation/reply.rb +0 -0
  25. data/lib/groupdocs/document/annotation/reviewer.rb +60 -0
  26. data/lib/groupdocs/document/annotation.rb +19 -44
  27. data/lib/groupdocs/document/change.rb +0 -0
  28. data/lib/groupdocs/document/field.rb +0 -0
  29. data/lib/groupdocs/document/metadata.rb +0 -0
  30. data/lib/groupdocs/document/rectangle.rb +0 -0
  31. data/lib/groupdocs/document/view.rb +0 -0
  32. data/lib/groupdocs/document.rb +129 -0
  33. data/lib/groupdocs/errors.rb +0 -0
  34. data/lib/groupdocs/job.rb +53 -1
  35. data/lib/groupdocs/questionnaire/execution.rb +0 -0
  36. data/lib/groupdocs/questionnaire/page.rb +0 -0
  37. data/lib/groupdocs/questionnaire/question/answer.rb +0 -0
  38. data/lib/groupdocs/questionnaire/question.rb +0 -0
  39. data/lib/groupdocs/questionnaire.rb +0 -0
  40. data/lib/groupdocs/signature/contact.rb +0 -0
  41. data/lib/groupdocs/signature/envelope/log.rb +0 -0
  42. data/lib/groupdocs/signature/envelope.rb +0 -0
  43. data/lib/groupdocs/signature/field/location.rb +0 -0
  44. data/lib/groupdocs/signature/field.rb +0 -0
  45. data/lib/groupdocs/signature/form.rb +0 -0
  46. data/lib/groupdocs/signature/list.rb +0 -0
  47. data/lib/groupdocs/signature/recipient.rb +0 -0
  48. data/lib/groupdocs/signature/role.rb +0 -0
  49. data/lib/groupdocs/signature/shared/document_methods.rb +0 -0
  50. data/lib/groupdocs/signature/shared/entity_fields.rb +0 -0
  51. data/lib/groupdocs/signature/shared/entity_methods.rb +0 -0
  52. data/lib/groupdocs/signature/shared/field_methods.rb +0 -0
  53. data/lib/groupdocs/signature/shared/recipient_methods.rb +0 -0
  54. data/lib/groupdocs/signature/shared/resource_methods.rb +0 -0
  55. data/lib/groupdocs/signature/shared.rb +0 -0
  56. data/lib/groupdocs/signature/template.rb +0 -0
  57. data/lib/groupdocs/signature.rb +0 -0
  58. data/lib/groupdocs/storage/file.rb +0 -0
  59. data/lib/groupdocs/storage/folder.rb +0 -0
  60. data/lib/groupdocs/storage/package.rb +0 -0
  61. data/lib/groupdocs/storage.rb +0 -0
  62. data/lib/groupdocs/subscription/limit.rb +0 -0
  63. data/lib/groupdocs/subscription.rb +0 -0
  64. data/lib/groupdocs/user.rb +31 -4
  65. data/lib/groupdocs/version.rb +1 -1
  66. data/lib/groupdocs.rb +0 -0
  67. data/spec/groupdocs/api/entity_spec.rb +0 -0
  68. data/spec/groupdocs/api/helpers/access_mode_helper_spec.rb +0 -1
  69. data/spec/groupdocs/api/helpers/access_rights_helper_spec.rb +43 -0
  70. data/spec/groupdocs/api/helpers/byte_flag_helper_spec.rb +23 -0
  71. data/spec/groupdocs/api/helpers/credentials_helpers_spec.rb +0 -0
  72. data/spec/groupdocs/api/helpers/path_helper_spec.rb +0 -0
  73. data/spec/groupdocs/api/helpers/rest_helper_spec.rb +0 -0
  74. data/spec/groupdocs/api/helpers/status_helper_spec.rb +0 -0
  75. data/spec/groupdocs/api/helpers/url_helper_spec.rb +0 -0
  76. data/spec/groupdocs/api/request_spec.rb +0 -0
  77. data/spec/groupdocs/datasource/field_spec.rb +0 -0
  78. data/spec/groupdocs/datasource_spec.rb +0 -0
  79. data/spec/groupdocs/document/annotation/reply_spec.rb +0 -0
  80. data/spec/groupdocs/document/annotation/reviewer_spec.rb +57 -0
  81. data/spec/groupdocs/document/annotation_spec.rb +12 -44
  82. data/spec/groupdocs/document/change_spec.rb +0 -0
  83. data/spec/groupdocs/document/field_spec.rb +0 -0
  84. data/spec/groupdocs/document/metadata_spec.rb +0 -0
  85. data/spec/groupdocs/document/rectangle_spec.rb +0 -0
  86. data/spec/groupdocs/document/view_spec.rb +0 -0
  87. data/spec/groupdocs/document_spec.rb +138 -0
  88. data/spec/groupdocs/errors_spec.rb +0 -0
  89. data/spec/groupdocs/job_spec.rb +42 -0
  90. data/spec/groupdocs/questionnaire/execution_spec.rb +0 -0
  91. data/spec/groupdocs/questionnaire/page_spec.rb +0 -0
  92. data/spec/groupdocs/questionnaire/question/answer_spec.rb +0 -0
  93. data/spec/groupdocs/questionnaire/question_spec.rb +0 -0
  94. data/spec/groupdocs/questionnaire_spec.rb +0 -0
  95. data/spec/groupdocs/signature/contact_spec.rb +0 -0
  96. data/spec/groupdocs/signature/envelope/log_spec.rb +0 -0
  97. data/spec/groupdocs/signature/envelope_spec.rb +0 -0
  98. data/spec/groupdocs/signature/field/location_spec.rb +0 -0
  99. data/spec/groupdocs/signature/field_spec.rb +0 -0
  100. data/spec/groupdocs/signature/form_spec.rb +0 -0
  101. data/spec/groupdocs/signature/list_spec.rb +0 -0
  102. data/spec/groupdocs/signature/recipient_spec.rb +0 -0
  103. data/spec/groupdocs/signature/role_spec.rb +0 -0
  104. data/spec/groupdocs/signature/template_spec.rb +0 -0
  105. data/spec/groupdocs/signature_spec.rb +0 -0
  106. data/spec/groupdocs/storage/file_spec.rb +0 -0
  107. data/spec/groupdocs/storage/folder_spec.rb +0 -0
  108. data/spec/groupdocs/storage/package_spec.rb +0 -0
  109. data/spec/groupdocs/storage_spec.rb +0 -0
  110. data/spec/groupdocs/subscription/limit_spec.rb +0 -0
  111. data/spec/groupdocs/subscription_spec.rb +0 -0
  112. data/spec/groupdocs/user_spec.rb +62 -37
  113. data/spec/groupdocs_spec.rb +0 -0
  114. data/spec/spec_helper.rb +0 -0
  115. data/spec/support/files/envelope.zip +0 -0
  116. data/spec/support/files/resume.pdf +0 -0
  117. data/spec/support/json/annotation_access_set.json +0 -0
  118. data/spec/support/json/annotation_collaborators_get.json +0 -0
  119. data/spec/support/json/annotation_collaborators_set.json +0 -0
  120. data/spec/support/json/annotation_create.json +0 -0
  121. data/spec/support/json/annotation_list.json +0 -0
  122. data/spec/support/json/annotation_move.json +0 -0
  123. data/spec/support/json/annotation_remove.json +0 -0
  124. data/spec/support/json/annotation_replies_create.json +0 -0
  125. data/spec/support/json/annotation_replies_get.json +0 -0
  126. data/spec/support/json/annotation_reviewers_get.json +18 -0
  127. data/spec/support/json/comparison_changes.json +0 -0
  128. data/spec/support/json/comparison_compare.json +0 -0
  129. data/spec/support/json/comparison_document.json +0 -0
  130. data/spec/support/json/contact_add.json +0 -0
  131. data/spec/support/json/contacts_get.json +0 -0
  132. data/spec/support/json/contacts_import.json +0 -0
  133. data/spec/support/json/datasource_add.json +0 -0
  134. data/spec/support/json/datasource_get.json +0 -0
  135. data/spec/support/json/datasource_remove.json +0 -0
  136. data/spec/support/json/datasource_update.json +0 -0
  137. data/spec/support/json/document_access_info_get.json +0 -0
  138. data/spec/support/json/document_convert.json +0 -0
  139. data/spec/support/json/document_datasource.json +0 -0
  140. data/spec/support/json/document_fields.json +0 -0
  141. data/spec/support/json/document_formats.json +0 -0
  142. data/spec/support/json/document_metadata.json +0 -0
  143. data/spec/support/json/document_questionnaire_create.json +0 -0
  144. data/spec/support/json/document_questionnaires.json +0 -0
  145. data/spec/support/json/document_sharers_remove.json +0 -0
  146. data/spec/support/json/document_sharers_set.json +0 -0
  147. data/spec/support/json/document_views.json +0 -0
  148. data/spec/support/json/envelope_get.json +0 -0
  149. data/spec/support/json/envelope_logs.json +0 -0
  150. data/spec/support/json/envelopes_all.json +0 -0
  151. data/spec/support/json/envelopes_resources.json +0 -0
  152. data/spec/support/json/file_compress.json +0 -0
  153. data/spec/support/json/file_copy.json +0 -0
  154. data/spec/support/json/file_delete.json +0 -0
  155. data/spec/support/json/file_move.json +0 -0
  156. data/spec/support/json/file_upload.json +0 -0
  157. data/spec/support/json/folder_create.json +0 -0
  158. data/spec/support/json/folder_delete.json +0 -0
  159. data/spec/support/json/folder_list.json +0 -0
  160. data/spec/support/json/folder_move.json +0 -0
  161. data/spec/support/json/folder_sharers_get.json +0 -0
  162. data/spec/support/json/folder_sharers_remove.json +0 -0
  163. data/spec/support/json/folder_sharers_set.json +0 -0
  164. data/spec/support/json/form_get.json +0 -0
  165. data/spec/support/json/forms_all.json +0 -0
  166. data/spec/support/json/job_add_url.json +0 -0
  167. data/spec/support/json/job_create.json +0 -0
  168. data/spec/support/json/job_documents.json +0 -0
  169. data/spec/support/json/job_file_add.json +0 -0
  170. data/spec/support/json/job_get.json +0 -0
  171. data/spec/support/json/job_update.json +0 -0
  172. data/spec/support/json/jobs_get.json +0 -0
  173. data/spec/support/json/list_add.json +0 -0
  174. data/spec/support/json/lists_get.json +0 -0
  175. data/spec/support/json/package_create.json +0 -0
  176. data/spec/support/json/questionnaire_create.json +0 -0
  177. data/spec/support/json/questionnaire_datasources.json +0 -0
  178. data/spec/support/json/questionnaire_execution_create.json +0 -0
  179. data/spec/support/json/questionnaire_execution_status_set.json +0 -0
  180. data/spec/support/json/questionnaire_execution_update.json +0 -0
  181. data/spec/support/json/questionnaire_executions.json +0 -0
  182. data/spec/support/json/questionnaire_get.json +0 -0
  183. data/spec/support/json/questionnaire_remove.json +0 -0
  184. data/spec/support/json/questionnaire_update.json +0 -0
  185. data/spec/support/json/questionnaires_get.json +0 -0
  186. data/spec/support/json/signature_create.json +0 -0
  187. data/spec/support/json/signature_field_add.json +0 -0
  188. data/spec/support/json/signature_fields_get.json +0 -0
  189. data/spec/support/json/signature_roles_get.json +0 -0
  190. data/spec/support/json/signatures_get.json +0 -0
  191. data/spec/support/json/storage_info.json +0 -0
  192. data/spec/support/json/subscription_plan_get.json +0 -0
  193. data/spec/support/json/subscription_plans_get.json +0 -0
  194. data/spec/support/json/template_get.json +0 -0
  195. data/spec/support/json/template_get_documents.json +0 -0
  196. data/spec/support/json/template_get_recipients.json +0 -0
  197. data/spec/support/json/templates_all.json +0 -0
  198. data/spec/support/json/user_profile_get.json +0 -0
  199. data/spec/support/json/user_users_get.json +0 -0
  200. data/spec/support/shared_examples/api/entity.rb +0 -0
  201. data/spec/support/shared_examples/api/helpers/access_mode_helper.rb +0 -0
  202. data/spec/support/shared_examples/api/helpers/status_helper.rb +0 -0
  203. data/spec/support/shared_examples/signature/shared/document_methods.rb +0 -0
  204. data/spec/support/shared_examples/signature/shared/entity_fields.rb +0 -0
  205. data/spec/support/shared_examples/signature/shared/entity_methods.rb +0 -0
  206. data/spec/support/shared_examples/signature/shared/field_methods.rb +0 -0
  207. data/spec/support/shared_examples/signature/shared/recipient_methods.rb +0 -0
  208. data/spec/support/shared_examples/signature/shared/resource_methods.rb +0 -0
  209. metadata +72 -24
  210. data/lib/groupdocs/api/helpers/actions_helper.rb +0 -48
  211. data/spec/groupdocs/api/helpers/actions_helper_spec.rb +0 -37
data/spec/spec_helper.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,18 @@
1
+ {
2
+ "result":
3
+ {
4
+ "reviewerContacts":
5
+ [
6
+ {
7
+ "emailAddress": "test@test.com",
8
+ "FullName": "John Smith"
9
+ },
10
+ {
11
+ "emailAddress": "test1@test.com",
12
+ "FullName": "Alan Smith"
13
+ }
14
+ ]
15
+ },
16
+ "status": "Ok",
17
+ "error_message": null
18
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-28 00:00:00.000000000 Z
12
+ date: 2012-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &12174380 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '1.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12174380
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.6'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: json
27
- requirement: &12172920 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '1.7'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *12172920
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.7'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec
38
- requirement: &12172260 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '2.11'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *12172260
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.11'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: fuubar
49
- requirement: &12171560 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '1.1'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *12171560
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.1'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: rake
60
- requirement: &12170940 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0.9'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *12170940
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '0.9'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: simplecov
71
- requirement: &12170220 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ~>
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0.6'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *12170220
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '0.6'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: yard
82
- requirement: &12169020 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ~>
@@ -87,10 +117,15 @@ dependencies:
87
117
  version: '0.8'
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *12169020
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '0.8'
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: webmock
93
- requirement: &12167600 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ~>
@@ -98,7 +133,12 @@ dependencies:
98
133
  version: '1.8'
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *12167600
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '1.8'
102
142
  description: Ruby SDK for GroupDocs REST API
103
143
  email: p0deje@gmail.com
104
144
  executables: []
@@ -119,7 +159,8 @@ files:
119
159
  - lib/groupdocs/api/entity.rb
120
160
  - lib/groupdocs/api/helpers.rb
121
161
  - lib/groupdocs/api/helpers/access_mode_helper.rb
122
- - lib/groupdocs/api/helpers/actions_helper.rb
162
+ - lib/groupdocs/api/helpers/access_rights_helper.rb
163
+ - lib/groupdocs/api/helpers/byte_flag_helper.rb
123
164
  - lib/groupdocs/api/helpers/credentials_helper.rb
124
165
  - lib/groupdocs/api/helpers/path_helper.rb
125
166
  - lib/groupdocs/api/helpers/rest_helper.rb
@@ -131,6 +172,7 @@ files:
131
172
  - lib/groupdocs/document.rb
132
173
  - lib/groupdocs/document/annotation.rb
133
174
  - lib/groupdocs/document/annotation/reply.rb
175
+ - lib/groupdocs/document/annotation/reviewer.rb
134
176
  - lib/groupdocs/document/change.rb
135
177
  - lib/groupdocs/document/field.rb
136
178
  - lib/groupdocs/document/metadata.rb
@@ -171,7 +213,8 @@ files:
171
213
  - lib/groupdocs/version.rb
172
214
  - spec/groupdocs/api/entity_spec.rb
173
215
  - spec/groupdocs/api/helpers/access_mode_helper_spec.rb
174
- - spec/groupdocs/api/helpers/actions_helper_spec.rb
216
+ - spec/groupdocs/api/helpers/access_rights_helper_spec.rb
217
+ - spec/groupdocs/api/helpers/byte_flag_helper_spec.rb
175
218
  - spec/groupdocs/api/helpers/credentials_helpers_spec.rb
176
219
  - spec/groupdocs/api/helpers/path_helper_spec.rb
177
220
  - spec/groupdocs/api/helpers/rest_helper_spec.rb
@@ -181,6 +224,7 @@ files:
181
224
  - spec/groupdocs/datasource/field_spec.rb
182
225
  - spec/groupdocs/datasource_spec.rb
183
226
  - spec/groupdocs/document/annotation/reply_spec.rb
227
+ - spec/groupdocs/document/annotation/reviewer_spec.rb
184
228
  - spec/groupdocs/document/annotation_spec.rb
185
229
  - spec/groupdocs/document/change_spec.rb
186
230
  - spec/groupdocs/document/field_spec.rb
@@ -226,6 +270,7 @@ files:
226
270
  - spec/support/json/annotation_remove.json
227
271
  - spec/support/json/annotation_replies_create.json
228
272
  - spec/support/json/annotation_replies_get.json
273
+ - spec/support/json/annotation_reviewers_get.json
229
274
  - spec/support/json/comparison_changes.json
230
275
  - spec/support/json/comparison_compare.json
231
276
  - spec/support/json/comparison_document.json
@@ -322,7 +367,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
322
367
  version: '0'
323
368
  segments:
324
369
  - 0
325
- hash: -1016348395798823263
370
+ hash: 1808565376842668139
326
371
  required_rubygems_version: !ruby/object:Gem::Requirement
327
372
  none: false
328
373
  requirements:
@@ -331,17 +376,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
376
  version: '0'
332
377
  segments:
333
378
  - 0
334
- hash: -1016348395798823263
379
+ hash: 1808565376842668139
335
380
  requirements: []
336
381
  rubyforge_project:
337
- rubygems_version: 1.8.10
382
+ rubygems_version: 1.8.24
338
383
  signing_key:
339
384
  specification_version: 3
340
385
  summary: Ruby SDK for GroupDocs REST API
341
386
  test_files:
342
387
  - spec/groupdocs/api/entity_spec.rb
343
388
  - spec/groupdocs/api/helpers/access_mode_helper_spec.rb
344
- - spec/groupdocs/api/helpers/actions_helper_spec.rb
389
+ - spec/groupdocs/api/helpers/access_rights_helper_spec.rb
390
+ - spec/groupdocs/api/helpers/byte_flag_helper_spec.rb
345
391
  - spec/groupdocs/api/helpers/credentials_helpers_spec.rb
346
392
  - spec/groupdocs/api/helpers/path_helper_spec.rb
347
393
  - spec/groupdocs/api/helpers/rest_helper_spec.rb
@@ -351,6 +397,7 @@ test_files:
351
397
  - spec/groupdocs/datasource/field_spec.rb
352
398
  - spec/groupdocs/datasource_spec.rb
353
399
  - spec/groupdocs/document/annotation/reply_spec.rb
400
+ - spec/groupdocs/document/annotation/reviewer_spec.rb
354
401
  - spec/groupdocs/document/annotation_spec.rb
355
402
  - spec/groupdocs/document/change_spec.rb
356
403
  - spec/groupdocs/document/field_spec.rb
@@ -396,6 +443,7 @@ test_files:
396
443
  - spec/support/json/annotation_remove.json
397
444
  - spec/support/json/annotation_replies_create.json
398
445
  - spec/support/json/annotation_replies_get.json
446
+ - spec/support/json/annotation_reviewers_get.json
399
447
  - spec/support/json/comparison_changes.json
400
448
  - spec/support/json/comparison_compare.json
401
449
  - spec/support/json/comparison_document.json
@@ -1,48 +0,0 @@
1
- module GroupDocs
2
- module Api
3
- module Helpers
4
- module Actions
5
-
6
- ACTIONS = {
7
- none: 0,
8
- convert: 1,
9
- combine: 2,
10
- compress_zip: 4,
11
- compress_rar: 8,
12
- trace: 16,
13
- convert_body: 32,
14
- bind_data: 64,
15
- print: 128,
16
- import_annotations: 256,
17
- }
18
-
19
- #
20
- # Converts actions array to byte flag.
21
- #
22
- # @param [Array<String, Symbol>] actions
23
- # @return [Integer]
24
- # @raise [ArgumentError] if actions is not an array
25
- # @raise [ArgumentError] if action is unknown
26
- # @api private
27
- #
28
- def convert_actions_to_byte(actions)
29
- actions.is_a?(Array) or raise ArgumentError, "Actions should be an array, received: #{actions.inspect}"
30
- actions = actions.map(&:to_sym)
31
-
32
- possible_actions = ACTIONS.map { |hash| hash.first }
33
- actions.each do |action|
34
- possible_actions.include?(action) or raise ArgumentError, "Unknown action: #{action.inspect}"
35
- end
36
-
37
- flag = 0
38
- actions.each do |action|
39
- flag += ACTIONS[action]
40
- end
41
-
42
- flag
43
- end
44
-
45
- end # Actions
46
- end # Helpers
47
- end # Api
48
- end # GroupDocs
@@ -1,37 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe GroupDocs::Api::Helpers::Actions do
4
-
5
- subject do
6
- Object.extend(described_class)
7
- end
8
-
9
- let(:actions) do
10
- %w(convert combine compress_zip compress_rar trace convert_body bind_data print import_annotations)
11
- end
12
-
13
- describe '.convert_actions_to_byte' do
14
- it 'raises error if actions is not an array' do
15
- -> { subject.convert_actions_to_byte(:convert) }.should raise_error(ArgumentError)
16
- end
17
-
18
- it 'raises error if action is unknown' do
19
- -> { subject.convert_actions_to_byte(%w(unknown)) }.should raise_error(ArgumentError)
20
- end
21
-
22
- it 'converts each action to Symbol' do
23
- actions = %w(none convert)
24
- actions.each do |action|
25
- symbol = action.to_sym
26
- action.should_receive(:to_sym).and_return(symbol)
27
- end
28
- subject.convert_actions_to_byte(actions)
29
- end
30
-
31
- it 'returns correct byte flag' do
32
- flag = subject.convert_actions_to_byte(actions)
33
- flag.should be_an(Integer)
34
- flag.should == 511
35
- end
36
- end
37
- end