paubox 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +13 -13
- data/.rspec +2 -2
- data/.travis.yml +5 -5
- data/Gemfile +6 -6
- data/LICENSE.txt +12 -12
- data/README.md +283 -230
- data/Rakefile +8 -8
- data/bin/console +15 -15
- data/bin/setup +8 -8
- data/lib/mail/paubox.rb +20 -21
- data/lib/paubox/client.rb +85 -85
- data/lib/paubox/email_disposition.rb +62 -62
- data/lib/paubox/format_helper.rb +60 -60
- data/lib/paubox/mail_to_message.rb +94 -94
- data/lib/paubox/message.rb +98 -98
- data/lib/paubox/templated_message.rb +28 -0
- data/lib/paubox/version.rb +5 -5
- data/lib/paubox.rb +25 -24
- data/lib/paubox_ruby.rb +3 -3
- data/paubox_ruby.gemspec +34 -34
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3733459b49f6166432d85899d4ea38e9d9f983c6f1ef42d17ed430fc7095beb9
|
4
|
+
data.tar.gz: f4c0bf54df9f438dd499d178ca67eadb2b4f7e0aa3516089da2faed70b6f02cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66acb7c648c2ede8380ecdaeb60c8cde92cd97ed66f17dce81bf8ef9e175c9d53f777fab4d1527ee3c8ceb35d65b3975a74fa5047af8add6af90380fc8b17f5b
|
7
|
+
data.tar.gz: 3eeb0122292eb25f34dc24e5e62ed696200c8efd45304cde5a92467dec5c03bc0c27d01ff369ece52b4c6091c36651e886d119049922f752cafb2cc4c1c4ce97
|
data/.gitignore
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
/.vscode/
|
11
|
-
|
12
|
-
# rspec failure tracking
|
13
|
-
.rspec_status
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
/.vscode/
|
11
|
+
|
12
|
+
# rspec failure tracking
|
13
|
+
.rspec_status
|
14
14
|
.gem
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
--format documentation
|
2
|
-
--color
|
1
|
+
--format documentation
|
2
|
+
--color
|
data/.travis.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3.1
|
5
|
-
before_install: gem install bundler -v 1.14.6
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.3.1
|
5
|
+
before_install: gem install bundler -v 1.14.6
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in paubox_ruby.gemspec
|
6
|
-
gemspec
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in paubox_ruby.gemspec
|
6
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
Copyright 2018 Paubox Inc.
|
2
|
-
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License.
|
5
|
-
You may obtain a copy of the License at
|
6
|
-
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
See the License for the specific language governing permissions and
|
1
|
+
Copyright 2018 Paubox Inc.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
13
|
limitations under the License.
|
data/README.md
CHANGED
@@ -1,230 +1,283 @@
|
|
1
|
-
<img src="https://
|
2
|
-
|
3
|
-
# Paubox Gem
|
4
|
-
This
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
#
|
11
|
-
*
|
12
|
-
* [
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
```
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
config.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
require '
|
135
|
-
require '
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
subject '
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
message.
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
require '
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
```ruby
|
175
|
-
require 'Paubox'
|
176
|
-
require 'json'
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
1
|
+
<img src="https://avatars.githubusercontent.com/u/22528478?s=200&v=4" alt="Paubox" width="150px">
|
2
|
+
|
3
|
+
# Paubox Gem
|
4
|
+
This is the official Ruby wrapper for the Paubox Email API. The Paubox Email API allows your application to send secure, HIPAA compliant email via Paubox and track deliveries and opens.
|
5
|
+
|
6
|
+
It extends the [Ruby Mail Library](https://github.com/mikel/mail) for seamless integration in your existing Ruby application. The API wrapper also allows you to construct and send messages directly without the Ruby Mail Library.
|
7
|
+
|
8
|
+
# Table of Contents
|
9
|
+
* [Installation](#installation)
|
10
|
+
* [Usage](#usage)
|
11
|
+
* [Contributing](#contributing)
|
12
|
+
* [License](#license)
|
13
|
+
|
14
|
+
|
15
|
+
<a name="#installation"></a>
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your application's Gemfile:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem 'paubox'
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle install
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install paubox
|
31
|
+
|
32
|
+
### Getting Paubox API Credentials
|
33
|
+
You will need to have a Paubox account. You can [sign up here](https://www.paubox.com/join/see-pricing?unit=messages).
|
34
|
+
|
35
|
+
Once you have an account, follow the instructions on the Rest API dashboard to verify domain ownership and generate API credentials.
|
36
|
+
|
37
|
+
### Configuring API Credentials
|
38
|
+
Include your API credentials in an initializer (e.g. config/initializers/paubox.rb in Rails).
|
39
|
+
|
40
|
+
Keep your API credentials out of version control. Store these in environment variables.
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
Paubox.configure do |config|
|
44
|
+
config.api_key = ENV['PAUBOX_API_KEY']
|
45
|
+
config.api_user = ENV['PAUBOX_API_USER']
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
If you need to send from multiple domains, you can pass credentials in the options hash when you set Ruby Mail's `Mail#delivery_method`, or when using `Paubox::Message`, when you instantiate `Paubox::Client`.
|
50
|
+
|
51
|
+
**(optional) Setting credentials when using Ruby Mail:**
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
message = Mail.new do
|
55
|
+
...
|
56
|
+
delivery_method(Mail::Paubox, api_key: ENV['PAUBOX_API_KEY'],
|
57
|
+
api_user: ENV['PAUBOX_API_USER'])
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
**(optional) Setting credentials when using Paubox::Client:**
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
client = Paubox::Client.new(api_key: ENV['PAUBOX_API_KEY'],
|
65
|
+
api_user: ENV['PAUBOX_API_USER'])
|
66
|
+
```
|
67
|
+
|
68
|
+
<a name="#usage"></a>
|
69
|
+
## Usage
|
70
|
+
|
71
|
+
### Sending Messages with the Ruby Mail Library
|
72
|
+
|
73
|
+
Using the Ruby Mail Library? Sending via Paubox is easy. Just build a message as normal and set Mail::Paubox as the delivery method.
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
require 'Paubox'
|
77
|
+
require 'json'
|
78
|
+
require 'mail'
|
79
|
+
|
80
|
+
message = Mail.new do
|
81
|
+
from 'you@yourdomain.com'
|
82
|
+
to 'someone@somewhere.com'
|
83
|
+
cc 'another@somewhere.com'
|
84
|
+
subject 'HIPAA-compliant email made easy'
|
85
|
+
|
86
|
+
text_part do
|
87
|
+
body 'This message will be sent securely by Paubox.'
|
88
|
+
end
|
89
|
+
|
90
|
+
html_part do
|
91
|
+
content_type 'text/html; charset=UTF-8'
|
92
|
+
body '<h1>This message will be sent securely by Paubox.</h1>'
|
93
|
+
end
|
94
|
+
|
95
|
+
delivery_method Mail::Paubox
|
96
|
+
end
|
97
|
+
|
98
|
+
message.deliver!
|
99
|
+
=> {"message"=>"Service OK", "sourceTrackingId"=>"2a3c048485aa4cf6"}
|
100
|
+
|
101
|
+
message.source_tracking_id
|
102
|
+
=> "2a3c048485aa4cf6"
|
103
|
+
```
|
104
|
+
|
105
|
+
### Allowing non-TLS message delivery
|
106
|
+
|
107
|
+
If you want to send non-PHI mail that does not need to be HIPAA compliant, you can allow the message delivery to take place even if a TLS connection is unavailable. This means a message will not be converted into a secure portal message when a non-TLS connection is encountered.
|
108
|
+
|
109
|
+
```ruby
|
110
|
+
require 'Paubox'
|
111
|
+
require 'json'
|
112
|
+
require 'mail'
|
113
|
+
|
114
|
+
message = Mail.new do
|
115
|
+
from 'you@yourdomain.com'
|
116
|
+
to 'someone@somewhere.com'
|
117
|
+
subject 'Sending non-PHI'
|
118
|
+
body 'This message delivery will not enforce TLS transmission.'
|
119
|
+
|
120
|
+
delivery_method Mail::Paubox
|
121
|
+
end
|
122
|
+
|
123
|
+
message.allow_non_tls = true
|
124
|
+
message.deliver!
|
125
|
+
```
|
126
|
+
|
127
|
+
### Forcing Secure Notifications
|
128
|
+
|
129
|
+
Paubox Secure Notifications allow an extra layer of security, especially when coupled with an organization's requirement for message recipients to use 2-factor authentication to read messages (this setting is available to org administrators in the Paubox Admin Panel).
|
130
|
+
|
131
|
+
Instead of receiving an email with the message contents, the recipient will receive a notification email that they have a new message in Paubox.
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
require 'Paubox'
|
135
|
+
require 'json'
|
136
|
+
require 'mail'
|
137
|
+
|
138
|
+
message = Mail.new do
|
139
|
+
from 'you@yourdomain.com'
|
140
|
+
to 'someone@somewhere.com'
|
141
|
+
subject 'Sending non-PHI'
|
142
|
+
body 'This message delivery will not enforce TLS transmission.'
|
143
|
+
|
144
|
+
delivery_method Mail::Paubox
|
145
|
+
end
|
146
|
+
|
147
|
+
message.force_secure_notification = 'true'
|
148
|
+
message.deliver!
|
149
|
+
```
|
150
|
+
|
151
|
+
### Adding Attachments
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
require 'Paubox'
|
155
|
+
require 'json'
|
156
|
+
require 'mail'
|
157
|
+
|
158
|
+
message = Mail.new do
|
159
|
+
from 'you@yourdomain.com'
|
160
|
+
to 'someone@somewhere.com'
|
161
|
+
cc 'another@somewhere.com'
|
162
|
+
subject 'HIPAA-compliant email made easy'
|
163
|
+
|
164
|
+
delivery_method Mail::Paubox
|
165
|
+
end
|
166
|
+
|
167
|
+
message.add_file("path_to_your_file")
|
168
|
+
message.deliver!
|
169
|
+
```
|
170
|
+
|
171
|
+
### Sending Messages using just the Paubox API
|
172
|
+
You don't need to use Ruby Mail to build and send messages with Paubox.
|
173
|
+
|
174
|
+
```ruby
|
175
|
+
require 'Paubox'
|
176
|
+
require 'json'
|
177
|
+
|
178
|
+
args = { from: 'you@yourdomain.com',
|
179
|
+
to: 'someone@domain.com, someone-else@domain.com',
|
180
|
+
cc: ['another@domain.com', 'yet-another@domain.com'],
|
181
|
+
bcc: 'bcc-recipient@domain.com',
|
182
|
+
reply_to: 'reply-to@yourdomain.com',
|
183
|
+
subject: 'Testing!',
|
184
|
+
text_content: 'Hello World!',
|
185
|
+
html_content: '<h1>Hello World!</h1>'
|
186
|
+
}
|
187
|
+
|
188
|
+
message = Paubox::Message.new(args)
|
189
|
+
|
190
|
+
client = Paubox::Client.new
|
191
|
+
client.deliver_mail(message)
|
192
|
+
=> {"message"=>"Service OK", "sourceTrackingId"=>"2a3c048485aa4cf6"}
|
193
|
+
```
|
194
|
+
|
195
|
+
### Send Messages using Dynamic Templates
|
196
|
+
Using [dynamic templates](https://docs.paubox.com/docs/paubox_email_api/dynamic_templates/) is similar to sending a regular message. Just create a `Paubox::TemplatedMessage` object and pass a `template` object with the name of the template and variables:
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
require 'Paubox'
|
200
|
+
require 'json'
|
201
|
+
|
202
|
+
args = { from: 'you@yourdomain.com',
|
203
|
+
to: 'someone@domain.com, someone-else@domain.com',
|
204
|
+
cc: ['another@domain.com', 'yet-another@domain.com'],
|
205
|
+
bcc: 'bcc-recipient@domain.com',
|
206
|
+
reply_to: 'reply-to@yourdomain.com',
|
207
|
+
subject: 'Testing!',
|
208
|
+
template: {
|
209
|
+
name: 'Test Template',
|
210
|
+
values: {
|
211
|
+
first_name: 'Timothy',
|
212
|
+
last_name: 'Testerson'
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
templated_message = Paubox::TemplatedMessage.new(args)
|
218
|
+
|
219
|
+
client = Paubox::Client.new
|
220
|
+
client.deliver_mail(templated_message)
|
221
|
+
=> {"sourceTrackingId"=>"166904b5-dce7-4de1-92e8-3d505c165ff5", "data"=>"Service OK"}
|
222
|
+
```
|
223
|
+
|
224
|
+
_Note that there is no `content` when using templated messages._
|
225
|
+
|
226
|
+
### Checking Email Dispositions
|
227
|
+
```ruby
|
228
|
+
require 'Paubox'
|
229
|
+
require 'json'
|
230
|
+
|
231
|
+
client = Paubox::Client.new
|
232
|
+
email_disposition = client.email_disposition('2a3c048485aa4cf6')
|
233
|
+
|
234
|
+
# Get array of email_dispositions. One email_disposition is generated for each recipient.
|
235
|
+
message_deliveries = email_disposition.message_deliveries
|
236
|
+
=> [<struct Paubox::EmailDisposition::MessageDelivery recipient="test@domain.com", status=#<struct Paubox::EmailDisposition::MessageDeliveryStatus delivery_status="delivered", delivery_time=Mon, 30 Apr 2018 12:54:19 -0700, opened_status="opened", opened_time=Mon, 30 Apr 2018 12:55:19 -0700>>]
|
237
|
+
|
238
|
+
# Inspect a message delivery
|
239
|
+
delivery = message_deliveries.first
|
240
|
+
|
241
|
+
delivery.recipient
|
242
|
+
=> "test@domain.com"
|
243
|
+
|
244
|
+
# Inspect the message delivery status
|
245
|
+
status = delivery.status
|
246
|
+
|
247
|
+
status.delivery_status
|
248
|
+
=> "delivered"
|
249
|
+
|
250
|
+
status.delivery_time
|
251
|
+
=> Mon, 30 Apr 2018 12:54:19 -0700
|
252
|
+
|
253
|
+
# opened_status is only available for single-recipient messages
|
254
|
+
status.opened_status
|
255
|
+
=> "opened"
|
256
|
+
|
257
|
+
# opened_time is only available for single-recipient messages
|
258
|
+
status.opened_time
|
259
|
+
=> Mon, 30 Apr 2018 12:55:19 -0700
|
260
|
+
```
|
261
|
+
|
262
|
+
<a name="#contributing"></a>
|
263
|
+
## Contributing
|
264
|
+
|
265
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/paubox/paubox_ruby.
|
266
|
+
|
267
|
+
|
268
|
+
<a name="#license"></a>
|
269
|
+
## License
|
270
|
+
|
271
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
272
|
+
you may not use this file except in compliance with the License.
|
273
|
+
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
274
|
+
|
275
|
+
Unless required by applicable law or agreed to in writing, software
|
276
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
277
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
278
|
+
See the License for the specific language governing permissions and
|
279
|
+
limitations under the License.
|
280
|
+
|
281
|
+
## Copyright
|
282
|
+
Copyright © 2022, Paubox, Inc.
|
283
|
+
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
|
8
|
-
task default: :spec
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
|
8
|
+
task default: :spec
|