aspose_email_cloud 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/lib/aspose_email_cloud/api_client.rb +1 -1
- data/lib/aspose_email_cloud/version.rb +1 -1
- data/test/email_tests.rb +1 -1
- metadata +3 -9
- data/test/data/README.TXT +0 -1
- data/test/data/email_test.eml +0 -21
- data/test/data/email_test2.eml +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 934841977ddfea67310d81a8bff11492c74330d9
|
4
|
+
data.tar.gz: ffbf479f3c4fb0a45f42ed33ed1ad7c5885f9cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd428929caaec0c3d44eb1174ab30bf9cfdf7c80924f91e43fba49f7563279def08fa3aaa8bff40b26f476532f1742a13fbc62db05873720204631b87e93801
|
7
|
+
data.tar.gz: 0648ae0b587d6075ee8ef282bb80a6db84187f685c9a6885cb983509787e1a53ed32b68c6c5c0a029bc4ae88c613e808da4bff144ee1cb1cf0e62e11a7793e21
|
data/README.md
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
# Aspose.Email Cloud SDK For Ruby
|
2
2
|
This SDK lets you use [Aspose Cloud Email APIs](http://www.aspose.com/cloud/email-api.aspx) in your Ruby web apps.
|
3
3
|
|
4
|
-
|
5
|
-
|
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>
|
6
9
|
|
7
|
-
|
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).
|
8
12
|
|
9
13
|
## Usage
|
10
14
|
APIs of this SDK can be called as follows:
|
@@ -41,8 +45,5 @@ end
|
|
41
45
|
## Unit Tests
|
42
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.
|
43
47
|
|
44
|
-
##
|
45
|
-
Your feedback is very important to us. Please
|
46
|
-
|
47
|
-
## License
|
48
|
-
Aspose Email SDK is available under the MIT license. See the [LICENSE](https://github.com/asposeemail/Aspose_Email_Cloud/blob/master/SDKs/Aspose.Email_Cloud_SDK_for_Ruby/LICENSE) file for more info.
|
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/).
|
@@ -227,7 +227,7 @@ module AsposeEmailCloud
|
|
227
227
|
# close and delete temp file
|
228
228
|
tmp_file.close!
|
229
229
|
|
230
|
-
File.open(path, '
|
230
|
+
File.open(path, 'wb') { |file| file.write(response.body) }
|
231
231
|
Configuration.logger.info "File written to #{path}. Please move the file to a proper "\
|
232
232
|
"folder for further processing and delete the temp afterwards"
|
233
233
|
File.new(path)
|
data/test/email_tests.rb
CHANGED
@@ -19,7 +19,7 @@ class EmailTests < Minitest::Test
|
|
19
19
|
|
20
20
|
def upload_file(file_name)
|
21
21
|
@storage_api = StorageApi.new
|
22
|
-
response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
|
22
|
+
response = @storage_api.put_create(file_name, File.open("../../../data/" << file_name,"r") { |io| io.read } )
|
23
23
|
assert(response, message="Failed to upload {file_name} file.")
|
24
24
|
end
|
25
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_email_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Sohail Ismail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -104,9 +104,6 @@ files:
|
|
104
104
|
- lib/aspose_email_cloud/models/link.rb
|
105
105
|
- lib/aspose_email_cloud/models/stream.rb
|
106
106
|
- lib/aspose_email_cloud/version.rb
|
107
|
-
- test/data/README.TXT
|
108
|
-
- test/data/email_test.eml
|
109
|
-
- test/data/email_test2.eml
|
110
107
|
- test/email_tests.rb
|
111
108
|
homepage: http://www.aspose.com/cloud/email-api.aspx
|
112
109
|
licenses:
|
@@ -128,12 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
125
|
version: '0'
|
129
126
|
requirements: []
|
130
127
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.6.8
|
132
129
|
signing_key:
|
133
130
|
specification_version: 4
|
134
131
|
summary: Aspose.Email for Cloud
|
135
132
|
test_files:
|
136
|
-
- test/data/README.TXT
|
137
|
-
- test/data/email_test.eml
|
138
|
-
- test/data/email_test2.eml
|
139
133
|
- test/email_tests.rb
|
data/test/data/README.TXT
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Aspose.Email Cloud SDK for Java APIs Examples
|
data/test/data/email_test.eml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
Return-path: <masood@kpisol.com>
|
2
|
-
Envelope-to: masood@kpisol.com
|
3
|
-
Delivery-date: Wed, 14 May 2014 03:43:47 -0600
|
4
|
-
Received: from [115.186.144.164] (port=3158 helo=[192.168.1.101])
|
5
|
-
by box260.bluehost.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128)
|
6
|
-
(Exim 4.82)
|
7
|
-
(envelope-from <masood@kpisol.com>)
|
8
|
-
id 1WkVj0-0007hM-Sr
|
9
|
-
for masood@kpisol.com; Wed, 14 May 2014 03:43:47 -0600
|
10
|
-
Message-ID: <53733ACC.7050206@kpisol.com>
|
11
|
-
Date: Wed, 14 May 2014 14:43:40 +0500
|
12
|
-
From: Masood Anwer <masood@kpisol.com>
|
13
|
-
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
|
14
|
-
MIME-Version: 1.0
|
15
|
-
To: masood@kpisol.com
|
16
|
-
Subject: test
|
17
|
-
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
|
18
|
-
Content-Transfer-Encoding: 7bit
|
19
|
-
X-Identified-User: {2469:box260.bluehost.com:kpisolco:kpisol.com} {sentby:smtp auth 115.186.144.164 authed with masood@kpisol.com}
|
20
|
-
|
21
|
-
test message
|
data/test/data/email_test2.eml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
To: developer@aspose.com
|
2
|
-
From: sales@aspose.com
|
3
|
-
Date: 23 Jul 2015 11:46:09 +0000
|
4
|
-
MIME-Version: 1.0
|
5
|
-
Content-Type: multipart/mixed;
|
6
|
-
boundary="--_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7"
|
7
|
-
|
8
|
-
This is a multi-part message in MIME format.
|
9
|
-
|
10
|
-
----_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7
|
11
|
-
Content-Type: text/plain; charset="us-ascii"
|
12
|
-
Content-Transfer-Encoding: quoted-printable
|
13
|
-
To: developer@aspose.com
|
14
|
-
From: sales@aspose.com
|
15
|
-
Date: 23 Jul 2015 11:46:09 +0000
|
16
|
-
MIME-Version: 1.0
|
17
|
-
|
18
|
-
This is the Body
|
19
|
-
----_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7
|
20
|
-
Content-Transfer-Encoding: base64
|
21
|
-
Content-Type: application/octet-stream; name="README.md"
|
22
|
-
|
23
|
-
IyBBc3Bvc2UuRW1haWwgQ2xvdWQgU0RLIGZvciBKYXZhIEFQSXMgRXhhbXBsZXMK
|
24
|
-
----_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7
|
25
|
-
Content-Transfer-Encoding: base64
|
26
|
-
Content-Type: application/octet-stream; name="README.md"
|
27
|
-
|
28
|
-
IyBBc3Bvc2UuRW1haWwgQ2xvdWQgU0RLIGZvciBKYXZhIEFQSXMgRXhhbXBsZXMK
|
29
|
-
----_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7
|
30
|
-
Content-Transfer-Encoding: base64
|
31
|
-
Content-Type: application/octet-stream; name="README.md"
|
32
|
-
|
33
|
-
IyBBc3Bvc2UuRW1haWwgQ2xvdWQgU0RLIGZvciBKYXZhIEFQSXMgRXhhbXBsZXMK
|
34
|
-
----_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7
|
35
|
-
Content-Transfer-Encoding: base64
|
36
|
-
Content-Type: application/octet-stream; name="README.TXT"
|
37
|
-
|
38
|
-
IyBBc3Bvc2UuRW1haWwgQ2xvdWQgU0RLIGZvciBKYXZhIEFQSXMgRXhhbXBsZXMK
|
39
|
-
----_=_NextPart1_e7808e2d-e714-4b98-938b-519bc3f367e7--
|
40
|
-
|