mailosaur 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +20 -67
  4. data/lib/mailosaur.rb +1 -1
  5. metadata +34 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b1f5cd8eee1338957480eefdd2a8ce560388ac0
4
- data.tar.gz: 2903aed8d22f6555607826ef7231e0e0950fa9bf
3
+ metadata.gz: eb60832dfc4f6ea5c42450e1733c30e8ceac6441
4
+ data.tar.gz: c3765814b8c70be32e9836257168bbf1b8d2b636
5
5
  SHA512:
6
- metadata.gz: 3e2e95a516ead64c04f7797f29082af5db8c7bc64e95b9b7e6f8016204aea922e5e7ed3bf9c8cdb6d44c17135ae5b64e7e210f94e151a2d429d128a3c1ee5869
7
- data.tar.gz: ff9b637d8ea7bb90ebc331e8ef899af901b12037cb9438a6a94bca736567663237b7de799f5d144b26917636ecc894fa6083e5d7effdb14645e0e1348e794ae8
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 Clickity Ltd
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 bindings
1
+ # Mailosaur Ruby Client Library
2
2
 
3
- Mailosaur allows you to automate tests that require email. You can also use it for manual testing as it gives you unlimited test email addresses or use it as a fake/dummy SMTP service.
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
+ [![Build Status](https://travis-ci.org/mailosaur/mailosaur-ruby.svg?branch=master)](https://travis-ci.org/mailosaur/mailosaur-ruby)
7
6
 
8
7
  ## Installation
9
8
 
10
- ``` gem install mailosaur ```
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
- Optional: Timeout
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
- - get_emails('search_text') - Retrieves all emails with ``` search_text ``` in their body or subject.
15
+ [Mailosaur's documentation](https://mailosaur.com/docs) includes all the information and usage examples you'll need.
35
16
 
36
- - get_emails_by_recipient('recipient_email') -
37
- Retrieves all emails sent to the given recipient.
17
+ ## Running tests
38
18
 
39
- - get_email('email_id') -
40
- Retrieves the email with the given id.
19
+ Once you've cloned this repository locally, you can simply run:
41
20
 
42
- - delete_all_emails -
43
- Deletes all emails in a mailbox.
21
+ ```
22
+ bundle install
44
23
 
45
- - delete_email('email_id') -
46
- Deletes the email with the given id.
24
+ export MAILOSAUR_MAILBOX_ID=yourmailbox
25
+ export MAILOSAUR_API_KEY=yourapikey
47
26
 
48
- - get_attachment('attachment_id') -
49
- Retrieves the attachment with specified id.
27
+ bundle exec rake
28
+ ```
50
29
 
51
- - get_raw_email('raw_id') -
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
- - generate_email_address -
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
- *Email Object Structure*
34
+ ## License
58
35
 
59
- - **Email** - The core object returned by the Mailosaur API
60
- - **id** - The email identifier
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.
@@ -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.in'
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.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Clickity Ltd
7
+ - Mailosaur Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
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.3.2
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.3.2
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.5.1
148
+ rubygems_version: 2.6.14
121
149
  signing_key:
122
150
  specification_version: 4
123
151
  summary: Client library for Mailosaur