mailosaur 3.0.0 → 3.0.1
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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +20 -67
- data/lib/mailosaur.rb +1 -1
- metadata +34 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb60832dfc4f6ea5c42450e1733c30e8ceac6441
|
4
|
+
data.tar.gz: c3765814b8c70be32e9836257168bbf1b8d2b636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e972454e095c55a67202c8224b8ee159a54bc579522322c6cb41a1130d955bc83fb135bf27d0110546316a7b11feafb5d12dbe7d614fbf1b274db0d3d16f77
|
7
|
+
data.tar.gz: 1393cc44adeff1ee9e0e1ba7bfa1a59d87398a87694850776a1dd0b7313e8959d8e022fc3270dbf0fd68d7463e879fe16869f4145f61b676da85a2ed3a9d9630
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2014
|
3
|
+
Copyright (c) 2014 Mailosaur Ltd (https://mailosaur.com)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/README.md
CHANGED
@@ -1,84 +1,37 @@
|
|
1
|
-
# Mailosaur Ruby
|
1
|
+
# Mailosaur Ruby Client Library
|
2
2
|
|
3
|
-
Mailosaur allows you to automate tests
|
4
|
-
|
5
|
-
For more info go to [mailosaur.com](https://mailosaur.com/)
|
3
|
+
[Mailosaur](https://mailosaur.com) allows you to automate tests involving email. Allowing you to perform end-to-end automated and functional email testing.
|
6
4
|
|
5
|
+
[](https://travis-ci.org/mailosaur/mailosaur-ruby)
|
7
6
|
|
8
7
|
## Installation
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
## Usage
|
13
|
-
```ruby
|
14
|
-
require 'mailosaur'
|
15
|
-
|
16
|
-
mailbox = Mailosaur.new(mailbox,apikey)
|
17
|
-
|
18
|
-
emails = mailbox.get_emails_by_recipient('anything.1eaaeef6@mailosaur.in')
|
9
|
+
```
|
10
|
+
gem install mailosaur
|
19
11
|
```
|
20
12
|
|
21
|
-
|
22
|
-
|
23
|
-
- Default timeout is set to 20, if you want to increase or decrease this, set the time in seconds to the `MAILOSAUR_TIMEOUT` variable.
|
24
|
-
|
25
|
-
``` export MAILOSAUR_TIMEOUT=60 ```
|
26
|
-
|
27
|
-
|
28
|
-
##Api
|
29
|
-
|
30
|
-
*functions:*
|
31
|
-
|
32
|
-
- get_emails - Retrieves all emails
|
13
|
+
## Documentation and usage examples
|
33
14
|
|
34
|
-
|
15
|
+
[Mailosaur's documentation](https://mailosaur.com/docs) includes all the information and usage examples you'll need.
|
35
16
|
|
36
|
-
|
37
|
-
Retrieves all emails sent to the given recipient.
|
17
|
+
## Running tests
|
38
18
|
|
39
|
-
|
40
|
-
Retrieves the email with the given id.
|
19
|
+
Once you've cloned this repository locally, you can simply run:
|
41
20
|
|
42
|
-
|
43
|
-
|
21
|
+
```
|
22
|
+
bundle install
|
44
23
|
|
45
|
-
|
46
|
-
|
24
|
+
export MAILOSAUR_MAILBOX_ID=yourmailbox
|
25
|
+
export MAILOSAUR_API_KEY=yourapikey
|
47
26
|
|
48
|
-
|
49
|
-
|
27
|
+
bundle exec rake
|
28
|
+
```
|
50
29
|
|
51
|
-
|
52
|
-
Retrieves the complete raw EML file for the rawId given. RawId is a property on the email object.
|
30
|
+
## Contacting us
|
53
31
|
|
54
|
-
|
55
|
-
Generates a random email address which can be used to send emails into the mailbox.
|
32
|
+
You can get us at [support@mailosaur.com](mailto:support@mailosaur.com)
|
56
33
|
|
57
|
-
|
34
|
+
## License
|
58
35
|
|
59
|
-
|
60
|
-
|
61
|
-
- **creationdate** - The date your email was received by Mailosaur
|
62
|
-
- **senderHost** - The host name of the machine that sent the email
|
63
|
-
- **rawId** - Reference for raw email data
|
64
|
-
- **html** - The HTML content of the email
|
65
|
-
- **links** - All links found within the HTML content of the email
|
66
|
-
- **images** - All images found within the HTML content of the email
|
67
|
-
- **body** - Unescaped HTML body of the email
|
68
|
-
- **text** - The text content of the email
|
69
|
-
- **links** - All links found within the text content of the email
|
70
|
-
- **body** - Text body of the email
|
71
|
-
- **headers** - Contains all email headers as object properties
|
72
|
-
- **subject** - Email subject
|
73
|
-
- **priority** - Email priority
|
74
|
-
- **from** - Details of email sender(s)
|
75
|
-
- **address** - Email address
|
76
|
-
- **name** - Email sender name
|
77
|
-
- **to** - Details of email recipient(s)
|
78
|
-
- **address** - Email address
|
79
|
-
- **name** - Email recipient name
|
80
|
-
- **attachments** - Details of any attachments found within the email
|
81
|
-
- **id** - Attachment identifier
|
82
|
-
- **fileName** - Attachment file name
|
83
|
-
- **length** - Attachment file size (in bytes)
|
84
|
-
- **contentType** - Attachment mime type (e.g. "image/png")
|
36
|
+
Copyright (c) 2016 Mailosaur Ltd
|
37
|
+
Distributed under MIT license.
|
data/lib/mailosaur.rb
CHANGED
@@ -8,7 +8,7 @@ class Mailosaur
|
|
8
8
|
@mailbox = ENV['MAILOSAUR_MAILBOX'] || mailbox
|
9
9
|
@api_key = ENV['MAILOSAUR_APIKEY'] || apiKey
|
10
10
|
@base_url = base_url || ENV['MAILOSAUR_BASE_URL'] || 'https://mailosaur.com/api'
|
11
|
-
@smtp_host = smtp_host || ENV['MAILOSAUR_SMTP_HOST'] || 'mailosaur.
|
11
|
+
@smtp_host = smtp_host || ENV['MAILOSAUR_SMTP_HOST'] || 'mailosaur.io'
|
12
12
|
@message = MessageGenerator.new
|
13
13
|
end
|
14
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailosaur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Mailosaur Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -72,14 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 10.
|
75
|
+
version: 10.4.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 10.
|
82
|
+
version: 10.4.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.10.4
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.10.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 5.8.4
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 5.8.4
|
83
111
|
description: Gem containing ruby client library for Mailosaur.
|
84
112
|
email: support@mailosaur.com
|
85
113
|
executables: []
|
@@ -117,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
145
|
version: '0'
|
118
146
|
requirements: []
|
119
147
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
148
|
+
rubygems_version: 2.6.14
|
121
149
|
signing_key:
|
122
150
|
specification_version: 4
|
123
151
|
summary: Client library for Mailosaur
|