aspose_email_cloud 1.0.2 → 18.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +5 -5
  2. data/src/asposeemailcloud.rb +55 -0
  3. data/src/asposeemailcloud/api/email_api.rb +418 -0
  4. data/src/asposeemailcloud/api/email_client_api.rb +960 -0
  5. data/src/asposeemailcloud/api_client.rb +389 -0
  6. data/src/asposeemailcloud/api_error.rb +38 -0
  7. data/{lib/aspose_email_cloud → src/asposeemailcloud}/configuration.rb +223 -166
  8. data/src/asposeemailcloud/models/email_document.rb +201 -0
  9. data/src/asposeemailcloud/models/email_document_response.rb +212 -0
  10. data/src/asposeemailcloud/models/email_properties.rb +200 -0
  11. data/src/asposeemailcloud/models/email_property.rb +199 -0
  12. data/src/asposeemailcloud/models/email_property_response.rb +212 -0
  13. data/src/asposeemailcloud/models/http_status_code.rb +76 -0
  14. data/src/asposeemailcloud/models/link.rb +219 -0
  15. data/src/asposeemailcloud/models/list_folders_response.rb +214 -0
  16. data/src/asposeemailcloud/models/list_response.rb +214 -0
  17. data/src/asposeemailcloud/models/mail_server_folder.rb +199 -0
  18. data/src/asposeemailcloud/models/mime_response.rb +212 -0
  19. data/src/asposeemailcloud/models/protocol_type.rb +34 -0
  20. data/src/asposeemailcloud/models/saa_spose_response.rb +202 -0
  21. data/src/asposeemailcloud/models/security_options.rb +33 -0
  22. data/src/asposeemailcloud/version.rb +15 -0
  23. metadata +173 -53
  24. data/LICENSE +0 -22
  25. data/README.md +0 -49
  26. data/aspose_email_cloud.gemspec +0 -26
  27. data/lib/aspose_email_cloud.rb +0 -38
  28. data/lib/aspose_email_cloud/api/email_api.rb +0 -431
  29. data/lib/aspose_email_cloud/api_client.rb +0 -335
  30. data/lib/aspose_email_cloud/api_error.rb +0 -24
  31. data/lib/aspose_email_cloud/models/base_object.rb +0 -88
  32. data/lib/aspose_email_cloud/models/email_document.rb +0 -63
  33. data/lib/aspose_email_cloud/models/email_document_response.rb +0 -79
  34. data/lib/aspose_email_cloud/models/email_properties.rb +0 -47
  35. data/lib/aspose_email_cloud/models/email_property.rb +0 -53
  36. data/lib/aspose_email_cloud/models/email_property_response.rb +0 -61
  37. data/lib/aspose_email_cloud/models/link.rb +0 -61
  38. data/lib/aspose_email_cloud/models/stream.rb +0 -37
  39. data/lib/aspose_email_cloud/version.rb +0 -3
  40. data/test/email_tests.rb +0 -111
@@ -0,0 +1,33 @@
1
+ =begin
2
+ #Aspose.Email for Cloud API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module asposeemailcloud
16
+ class SecurityOptions
17
+
18
+ 0 = 0.freeze
19
+ 1 = 1.freeze
20
+ 2 = 2.freeze
21
+ 256 = 256.freeze
22
+
23
+ # Builds the enum from string
24
+ # @param [String] The enum value in the form of the string
25
+ # @return [String] The enum value
26
+ def build_from_hash(value)
27
+ consantValues = SecurityOptions.constants.select{|c| c.to_s == value}
28
+ raise "Invalid ENUM value #{value} for class #SecurityOptions" if consantValues.empty?
29
+ value
30
+ end
31
+ end
32
+
33
+ end
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Aspose.Email for Cloud API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: unset
10
+
11
+ =end
12
+
13
+ module AsposeEmailCloud
14
+ VERSION = "18.7.0"
15
+ end
metadata CHANGED
@@ -1,123 +1,244 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_email_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 18.7.0
5
5
  platform: ruby
6
6
  authors:
7
- - M. Sohail Ismail
7
+ - Aspose.Email team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: typhoeus
14
+ name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
19
+ version: 0.14.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.8'
26
+ version: 0.14.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: json
28
+ name: mimemagic
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: 0.3.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: 0.3.2
41
41
  - !ruby/object:Gem::Dependency
42
- name: aspose_storage_cloud
42
+ name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '2.1'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 1.0.0
50
+ version: 2.1.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '1.0'
57
+ version: '2.1'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 1.0.0
60
+ version: 2.1.0
61
61
  - !ruby/object:Gem::Dependency
62
- name: minitest
62
+ name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.8'
67
+ version: '3.6'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.6.0
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '3.6'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 3.6.0
81
+ - !ruby/object:Gem::Dependency
82
+ name: vcr
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '3.0'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 3.0.1
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '3.0'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 3.0.1
101
+ - !ruby/object:Gem::Dependency
102
+ name: webmock
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '1.24'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 1.24.3
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.24'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 1.24.3
121
+ - !ruby/object:Gem::Dependency
122
+ name: autotest
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '4.4'
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: 4.4.6
68
131
  type: :development
69
132
  prerelease: false
70
133
  version_requirements: !ruby/object:Gem::Requirement
71
134
  requirements:
72
135
  - - "~>"
73
136
  - !ruby/object:Gem::Version
74
- version: '5.8'
75
- description: Aspose.Email for Cloud is a REST API for creating email archiving applications
76
- that work with common email file formats. It lets developers manipulate message
77
- formats such as MSG, EML, and MHT files. The API supports many common tasks, for
78
- example accessing messages, reading message properties such as sender, receiver,
79
- message sent date, and message details. It also supports converting messages back
80
- and forth between EML, MSG and MHT formats. With Aspose.Email for Cloud, it is further
81
- possible to access messages and retrieve attachments that can then be saved to a
82
- local disc. The robust API saves developers time and effort when programming with
83
- emails in the cloud.
84
- email:
85
- - muhammad.sohail@aspose.com
137
+ version: '4.4'
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 4.4.6
141
+ - !ruby/object:Gem::Dependency
142
+ name: autotest-rails-pure
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '4.1'
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 4.1.2
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '4.1'
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 4.1.2
161
+ - !ruby/object:Gem::Dependency
162
+ name: autotest-growl
163
+ requirement: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.2'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 0.2.16
171
+ type: :development
172
+ prerelease: false
173
+ version_requirements: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '0.2'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 0.2.16
181
+ - !ruby/object:Gem::Dependency
182
+ name: autotest-fsevent
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.2'
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: 0.2.12
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '0.2'
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 0.2.12
201
+ description: 'Aspose.Email Cloud is a REST API for creating email applications that
202
+ work with common email file formats. '
203
+ email:
86
204
  executables: []
87
205
  extensions: []
88
206
  extra_rdoc_files: []
89
207
  files:
90
- - LICENSE
91
- - README.md
92
- - aspose_email_cloud.gemspec
93
- - lib/aspose_email_cloud.rb
94
- - lib/aspose_email_cloud/api/email_api.rb
95
- - lib/aspose_email_cloud/api_client.rb
96
- - lib/aspose_email_cloud/api_error.rb
97
- - lib/aspose_email_cloud/configuration.rb
98
- - lib/aspose_email_cloud/models/base_object.rb
99
- - lib/aspose_email_cloud/models/email_document.rb
100
- - lib/aspose_email_cloud/models/email_document_response.rb
101
- - lib/aspose_email_cloud/models/email_properties.rb
102
- - lib/aspose_email_cloud/models/email_property.rb
103
- - lib/aspose_email_cloud/models/email_property_response.rb
104
- - lib/aspose_email_cloud/models/link.rb
105
- - lib/aspose_email_cloud/models/stream.rb
106
- - lib/aspose_email_cloud/version.rb
107
- - test/email_tests.rb
108
- homepage: http://www.aspose.com/cloud/email-api.aspx
208
+ - src/asposeemailcloud.rb
209
+ - src/asposeemailcloud/api/email_api.rb
210
+ - src/asposeemailcloud/api/email_client_api.rb
211
+ - src/asposeemailcloud/api_client.rb
212
+ - src/asposeemailcloud/api_error.rb
213
+ - src/asposeemailcloud/configuration.rb
214
+ - src/asposeemailcloud/models/email_document.rb
215
+ - src/asposeemailcloud/models/email_document_response.rb
216
+ - src/asposeemailcloud/models/email_properties.rb
217
+ - src/asposeemailcloud/models/email_property.rb
218
+ - src/asposeemailcloud/models/email_property_response.rb
219
+ - src/asposeemailcloud/models/http_status_code.rb
220
+ - src/asposeemailcloud/models/link.rb
221
+ - src/asposeemailcloud/models/list_folders_response.rb
222
+ - src/asposeemailcloud/models/list_response.rb
223
+ - src/asposeemailcloud/models/mail_server_folder.rb
224
+ - src/asposeemailcloud/models/mime_response.rb
225
+ - src/asposeemailcloud/models/protocol_type.rb
226
+ - src/asposeemailcloud/models/saa_spose_response.rb
227
+ - src/asposeemailcloud/models/security_options.rb
228
+ - src/asposeemailcloud/version.rb
229
+ homepage: https://github.com/aspose-email-cloud/aspose-email-cloud-ruby
109
230
  licenses:
110
231
  - MIT
111
232
  metadata: {}
112
233
  post_install_message:
113
234
  rdoc_options: []
114
235
  require_paths:
115
- - lib
236
+ - src
116
237
  required_ruby_version: !ruby/object:Gem::Requirement
117
238
  requirements:
118
239
  - - ">="
119
240
  - !ruby/object:Gem::Version
120
- version: '0'
241
+ version: '2.3'
121
242
  required_rubygems_version: !ruby/object:Gem::Requirement
122
243
  requirements:
123
244
  - - ">="
@@ -125,9 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
246
  version: '0'
126
247
  requirements: []
127
248
  rubyforge_project:
128
- rubygems_version: 2.6.8
249
+ rubygems_version: 2.7.6
129
250
  signing_key:
130
251
  specification_version: 4
131
- summary: Aspose.Email for Cloud
132
- test_files:
133
- - test/email_tests.rb
252
+ summary: A ruby wrapper for Aspose.Email for Cloud
253
+ test_files: []
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2001-2016 Aspose Pty Ltd
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
data/README.md DELETED
@@ -1,49 +0,0 @@
1
- # Aspose.Email Cloud SDK For Ruby
2
- This SDK lets you use [Aspose Cloud Email APIs](http://www.aspose.com/cloud/email-api.aspx) in your Ruby web apps.
3
-
4
- <p>
5
- <a title="Download complete Aspose.Email for Cloud source code" href="https://github.com/asposeemail/Aspose_Email_Cloud/archive/master.zip">
6
- <img src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" />
7
- </a>
8
- </p>
9
-
10
- ##How to use the SDK?
11
- The complete source code is available in this repository folder, you can either directly use it in your project or use RubyGems. For more details, please visit our [documentation website](http://www.aspose.com/docs/display/emailcloud/Available+SDKs).
12
-
13
- ## Usage
14
- APIs of this SDK can be called as follows:
15
-
16
- ```ruby
17
- require 'aspose_email_cloud'
18
-
19
- class EmailUsage
20
-
21
- include AsposeEmailCloud
22
- include AsposeStorageCloud
23
-
24
- def initialize
25
- #Get App key and App SID from https://cloud.aspose.com
26
- AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
27
- @email_api = EmailApi.new
28
- end
29
-
30
- def upload_file(file_name)
31
- @storage_api = StorageApi.new
32
- response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
33
- end
34
-
35
- def get_document_with_format
36
- #Get mail in specified format
37
- file_name = "email_test.eml"
38
- upload_file(file_name)
39
-
40
- response = @email_api.get_document_with_format(file_name, "msg")
41
- end
42
-
43
- end
44
- ```
45
- ## Unit Tests
46
- Aspose Email SDK includes a suite of unit tests within the [test](https://github.com/asposeemail/Aspose_Email_Cloud/blob/master/SDKs/Aspose.Email_Cloud_SDK_for_Ruby/test/email_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose Email SDK.
47
-
48
- ##Contact Us
49
- Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://www.aspose.com/community/forums/).
@@ -1,26 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "aspose_email_cloud/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "aspose_email_cloud"
7
- s.version = AsposeEmailCloud::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["M. Sohail Ismail"]
10
- s.email = ["muhammad.sohail@aspose.com"]
11
- s.homepage = "http://www.aspose.com/cloud/email-api.aspx"
12
- s.summary = %q{Aspose.Email for Cloud}
13
- s.description = %q{Aspose.Email for Cloud is a REST API for creating email archiving applications that work with common email file formats. It lets developers manipulate message formats such as MSG, EML, and MHT files. The API supports many common tasks, for example accessing messages, reading message properties such as sender, receiver, message sent date, and message details. It also supports converting messages back and forth between EML, MSG and MHT formats. With Aspose.Email for Cloud, it is further possible to access messages and retrieve attachments that can then be saved to a local disc. The robust API saves developers time and effort when programming with emails in the cloud.}
14
- s.license = "MIT"
15
-
16
- s.add_runtime_dependency 'typhoeus', '~> 0.8'
17
- s.add_runtime_dependency 'json', '~> 1.7'
18
- s.add_runtime_dependency 'aspose_storage_cloud', '~> 1.0', '>= 1.0.0'
19
-
20
- s.add_development_dependency 'minitest', '~> 5.8'
21
-
22
- s.files = `git ls-files`.split("\n")
23
- s.test_files = `git ls-files -- test/*`.split("\n")
24
- s.executables = []
25
- s.require_paths = ["lib"]
26
- end