paubox_rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/lib/paubox_rails/version.rb +1 -1
- data/paubox_rails.gemspec +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5628d7edf38be368db06279b5c31b7e158ff54bb
|
4
|
+
data.tar.gz: 3378ab9486bb55774543a44831548425a42400fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da963f4f1aff275795dc0302e5bfb0d9a9b56124f21068af4c944cf09a1195d2091a6727bee9417fe70828419708341b98990203f001530421328c406ee7335
|
7
|
+
data.tar.gz: 94c43cb283a819e621f9f449010670ad10d49401f9612b70cde51286a21d3e021614299a6be9634471a25a5c02de7b72d445b376a094a4fd44e1b5d4d727fed5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Paubox Rails
|
2
2
|
|
3
|
-
#### This gem, Paubox Ruby, and Paubox Transactional Email HTTP API are currently in
|
3
|
+
#### This gem, Paubox Ruby, and Paubox Transactional Email HTTP API are currently in alpha development.
|
4
4
|
|
5
5
|
This gem extends the [Paubox Ruby Gem](https://github.com/paubox/paubox_ruby) for use with ActionMailer in Ruby on Rails. Paubox Ruby the official Ruby wrapper for the Paubox Transactional Email HTTP API. The Paubox Transactional Email API allows your application to send secure, HIPAA-compliant email via Paubox and track deliveries and opens.
|
6
6
|
|
@@ -27,11 +27,12 @@ You will need to have a Paubox account. Please contact [Paubox Customer Success]
|
|
27
27
|
|
28
28
|
### Configuring API Credentials
|
29
29
|
Create a new file at config/initializers/paubox.rb and add the following.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
```ruby
|
31
|
+
Paubox.configure do |config|
|
32
|
+
config.api_key = ENV['PAUBOX_API_KEY']
|
33
|
+
config.api_user = ENV['PAUBOX_API_USER']
|
34
|
+
end
|
35
|
+
```
|
35
36
|
|
36
37
|
Keep your API credentials out of version control. Set these environmental variables in a file that's not checked into version control, such as config/application.yml or config/secrets.yml.
|
37
38
|
|
@@ -39,9 +40,9 @@ Keep your API credentials out of version control. Set these environmental variab
|
|
39
40
|
### Setting ActionMailer Delivery Method
|
40
41
|
|
41
42
|
Add the following to the configuration block in config/application.rb or the desired environment config in config/environments (e.g. config/environments/production.rb for production.)
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
```ruby
|
44
|
+
config.action_mailer.delivery_method = :paubox
|
45
|
+
```
|
45
46
|
|
46
47
|
## Usage
|
47
48
|
|
data/lib/paubox_rails/version.rb
CHANGED
data/paubox_rails.gemspec
CHANGED
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
28
28
|
spec.add_development_dependency 'pry', '~> 0.10.4'
|
29
|
-
spec.add_dependency('actionmailer', '
|
29
|
+
spec.add_dependency('actionmailer', '>= 4.0', '<= 5.2')
|
30
30
|
spec.add_dependency('paubox', '~> 0.1', '>= 0.1.1')
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paubox_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Greeley
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,16 +70,22 @@ dependencies:
|
|
70
70
|
name: actionmailer
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '4.0'
|
76
|
+
- - "<="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '5.2'
|
76
79
|
type: :runtime
|
77
80
|
prerelease: false
|
78
81
|
version_requirements: !ruby/object:Gem::Requirement
|
79
82
|
requirements:
|
80
|
-
- - "
|
83
|
+
- - ">="
|
81
84
|
- !ruby/object:Gem::Version
|
82
85
|
version: '4.0'
|
86
|
+
- - "<="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '5.2'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: paubox
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|