phs_mailer 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 584a653b46af8b9e28dd8c947a1287877c7d048c3fc8c7ef7857b14bff2197cf
4
+ data.tar.gz: 8c1b940ae2acb622b6c33e9db1dc316f5985cfc02a8f062e2e04ba8ad79af38c
5
+ SHA512:
6
+ metadata.gz: 808a9946ad2133fd651a60223f1edb138aa9e2f9e7ed41212b095517234cc31e2d4ecb93ca1cd910b05571474b92590072cb5deed98173a81ec409e54c4e93ad
7
+ data.tar.gz: aebea2dc18d000200eb243c3acc107cbbaed27761854fbfaec04c7d0c241a4ac5620c43d185fa5211573d281b413d1b5439b5b8a1aebfd26921a5d6bcf74eddd
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in phs_mailer.gemspec
4
+ gemspec
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ phs_mailer (0.1.0)
5
+ actionmailer (>= 3.0, <= 5.3)
6
+ paubox (~> 0.3, >= 0.3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (5.2.4.3)
12
+ actionpack (= 5.2.4.3)
13
+ actionview (= 5.2.4.3)
14
+ activejob (= 5.2.4.3)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 2.0)
17
+ actionpack (5.2.4.3)
18
+ actionview (= 5.2.4.3)
19
+ activesupport (= 5.2.4.3)
20
+ rack (~> 2.0, >= 2.0.8)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (5.2.4.3)
25
+ activesupport (= 5.2.4.3)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.4)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activejob (5.2.4.3)
31
+ activesupport (= 5.2.4.3)
32
+ globalid (>= 0.3.6)
33
+ activesupport (5.2.4.3)
34
+ concurrent-ruby (~> 1.0, >= 1.0.2)
35
+ i18n (>= 0.7, < 2)
36
+ minitest (~> 5.1)
37
+ tzinfo (~> 1.1)
38
+ builder (3.2.4)
39
+ concurrent-ruby (1.1.7)
40
+ crass (1.0.6)
41
+ domain_name (0.5.20190701)
42
+ unf (>= 0.0.5, < 1.0.0)
43
+ erubi (1.9.0)
44
+ globalid (0.4.2)
45
+ activesupport (>= 4.2.0)
46
+ http-accept (1.7.0)
47
+ http-cookie (1.0.3)
48
+ domain_name (~> 0.5)
49
+ i18n (1.8.5)
50
+ concurrent-ruby (~> 1.0)
51
+ loofah (2.6.0)
52
+ crass (~> 1.0.2)
53
+ nokogiri (>= 1.5.9)
54
+ mail (2.7.1)
55
+ mini_mime (>= 0.1.1)
56
+ mime-types (3.3.1)
57
+ mime-types-data (~> 3.2015)
58
+ mime-types-data (3.2020.0512)
59
+ mini_mime (1.0.2)
60
+ mini_portile2 (2.4.0)
61
+ minitest (5.14.1)
62
+ netrc (0.11.0)
63
+ nokogiri (1.10.10)
64
+ mini_portile2 (~> 2.4.0)
65
+ paubox (0.3.0)
66
+ mail (>= 2.5)
67
+ rest-client (~> 2.0, >= 2.0.2)
68
+ rack (2.2.3)
69
+ rack-test (1.1.0)
70
+ rack (>= 1.0, < 3)
71
+ rails-dom-testing (2.0.3)
72
+ activesupport (>= 4.2.0)
73
+ nokogiri (>= 1.6)
74
+ rails-html-sanitizer (1.3.0)
75
+ loofah (~> 2.3)
76
+ rake (10.5.0)
77
+ rest-client (2.1.0)
78
+ http-accept (>= 1.7.0, < 2.0)
79
+ http-cookie (>= 1.0.2, < 2.0)
80
+ mime-types (>= 1.16, < 4.0)
81
+ netrc (~> 0.8)
82
+ thread_safe (0.3.6)
83
+ tzinfo (1.2.7)
84
+ thread_safe (~> 0.1)
85
+ unf (0.1.4)
86
+ unf_ext
87
+ unf_ext (0.0.7.7)
88
+
89
+ PLATFORMS
90
+ ruby
91
+
92
+ DEPENDENCIES
93
+ bundler (~> 2.0)
94
+ phs_mailer!
95
+ rake (~> 10.0)
96
+
97
+ BUNDLED WITH
98
+ 2.0.2
@@ -0,0 +1,35 @@
1
+ # PhsMailer
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/phs_mailer`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'phs_mailer'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install phs_mailer
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/phs_mailer.
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "phs_mailer"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,17 @@
1
+ require "phs_mailer/version"
2
+ require 'action_mailer'
3
+ require 'paubox'
4
+
5
+ module PhsMailer
6
+ extend self
7
+
8
+ def add_base_delivery
9
+ ActionMailer::Base.add_delivery_method :phsmailer, Mail::Paubox
10
+ end
11
+ end
12
+
13
+ if defined?(Rails)
14
+ require 'phs_mailer/railtie'
15
+ else
16
+ PhsMailer.add_base_delivery
17
+ end
@@ -0,0 +1,9 @@
1
+ module PhsMailer
2
+ class Railtie < Rails::Railtie
3
+ initializer 'phs_mailer', :before => 'action_mailer.set_configs' do
4
+ ActiveSupport.on_load :action_mailer do
5
+ PhsMailer.add_base_delivery
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module PhsMailer
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,30 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "phs_mailer/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "phs_mailer"
7
+ spec.version = PhsMailer::VERSION
8
+ spec.authors = ["Ben Niu"]
9
+ spec.email = ["benniu@prevailhealth.com"]
10
+
11
+ spec.summary = %q{Prevail Health 3rd party mailer adapter.}
12
+ spec.description = %q{Prevail Health 3rd party mailer adapter gem.}
13
+ spec.homepage = "https://www.prevailhealth.com"
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_development_dependency "bundler", "~> 2.0"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_dependency('actionmailer', '>= 3.0', '<= 5.3')
29
+ spec.add_dependency('paubox', '~> 0.3', '>= 0.3.0')
30
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: phs_mailer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Niu
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-08-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: actionmailer
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ - - "<="
49
+ - !ruby/object:Gem::Version
50
+ version: '5.3'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '3.0'
58
+ - - "<="
59
+ - !ruby/object:Gem::Version
60
+ version: '5.3'
61
+ - !ruby/object:Gem::Dependency
62
+ name: paubox
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 0.3.0
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '0.3'
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 0.3.0
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '0.3'
81
+ description: Prevail Health 3rd party mailer adapter gem.
82
+ email:
83
+ - benniu@prevailhealth.com
84
+ executables: []
85
+ extensions: []
86
+ extra_rdoc_files: []
87
+ files:
88
+ - ".gitignore"
89
+ - Gemfile
90
+ - Gemfile.lock
91
+ - README.md
92
+ - Rakefile
93
+ - bin/console
94
+ - bin/setup
95
+ - lib/phs_mailer.rb
96
+ - lib/phs_mailer/railtie.rb
97
+ - lib/phs_mailer/version.rb
98
+ - phs_mailer.gemspec
99
+ homepage: https://www.prevailhealth.com
100
+ licenses: []
101
+ metadata:
102
+ homepage_uri: https://www.prevailhealth.com
103
+ post_install_message:
104
+ rdoc_options: []
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubygems_version: 3.0.6
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: Prevail Health 3rd party mailer adapter.
122
+ test_files: []