db_mailer_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/.travis.yml +35 -2
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +5 -5
- data/README.md +8 -3
- data/config/db_mailer_templates.yml +1 -1
- data/db_mailer_rails.gemspec +14 -13
- data/gemfiles/Gemfile.rails-4.1-stable +19 -0
- data/gemfiles/Gemfile.rails-4.1-stable.lock +135 -0
- data/gemfiles/Gemfile.rails-4.2-stable +19 -0
- data/gemfiles/Gemfile.rails-4.2-stable.lock +160 -0
- data/gemfiles/Gemfile.rails-5.0-stable +19 -0
- data/gemfiles/Gemfile.rails-5.0-stable.lock +161 -0
- data/lib/db_mailer_rails/helper.rb +1 -1
- data/lib/db_mailer_rails/version.rb +1 -1
- metadata +16 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03dc18f69a23caf9959707f6b0bbe7d79f066eb3
|
4
|
+
data.tar.gz: 93aa34843235c9d53dde544304513069592dc6a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 320322843f0e5beb1a4510f6fd89db72efb7598bc7560736044791b42693e516445dd5e0e816e50e71513b282b1d8a929c5b4f499900df88f3469479ff16b32d
|
7
|
+
data.tar.gz: b197fb08aec98e72b2c45e8933334bd38e056e07a40a385dd322492a6d7bc93a60835c08121d6fb91e83b4cb6f89efefca1d94c87f9e77511297b33f0eacd192
|
data/.travis.yml
CHANGED
@@ -1,5 +1,38 @@
|
|
1
|
-
sudo: false
|
2
1
|
language: ruby
|
2
|
+
|
3
3
|
rvm:
|
4
|
+
- 2.1.10
|
5
|
+
- 2.2.8
|
6
|
+
- 2.3.5
|
4
7
|
- 2.4.2
|
5
|
-
|
8
|
+
- 2.5.0
|
9
|
+
- ruby-head
|
10
|
+
|
11
|
+
gemfile:
|
12
|
+
- Gemfile
|
13
|
+
- gemfiles/Gemfile.rails-4.1-stable
|
14
|
+
- gemfiles/Gemfile.rails-4.2-stable
|
15
|
+
- gemfiles/Gemfile.rails-5.0-stable
|
16
|
+
|
17
|
+
matrix:
|
18
|
+
exclude:
|
19
|
+
- rvm: 2.1.10
|
20
|
+
gemfile: Gemfile
|
21
|
+
- rvm: 2.1.10
|
22
|
+
gemfile: gemfiles/Gemfile.rails-5.0-stable
|
23
|
+
- rvm: 2.4.2
|
24
|
+
gemfile: gemfiles/Gemfile.rails-4.1-stable
|
25
|
+
- rvm: 2.5.0
|
26
|
+
gemfile: gemfiles/Gemfile.rails-4.1-stable
|
27
|
+
- rvm: ruby-head
|
28
|
+
gemfile: gemfiles/Gemfile.rails-4.1-stable
|
29
|
+
allow_failures:
|
30
|
+
- rvm: ruby-head
|
31
|
+
|
32
|
+
sudo: false
|
33
|
+
|
34
|
+
before_install:
|
35
|
+
- "rm ${BUNDLE_GEMFILE}.lock"
|
36
|
+
- gem update --system
|
37
|
+
|
38
|
+
before_script: 'bundle update'
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
db_mailer_rails (0.1.
|
5
|
-
actionmailer (>= 4.
|
6
|
-
actionpack (>= 4.
|
4
|
+
db_mailer_rails (0.1.1)
|
5
|
+
actionmailer (>= 4.1, < 5.2)
|
6
|
+
actionpack (>= 4.1, < 5.2)
|
7
7
|
mustache (~> 1.0)
|
8
|
-
railties (>= 4.
|
8
|
+
railties (>= 4.1, < 5.2)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
@@ -78,7 +78,7 @@ GEM
|
|
78
78
|
mini_portile2 (2.3.0)
|
79
79
|
minitest (5.10.3)
|
80
80
|
mustache (1.0.5)
|
81
|
-
nio4r (2.
|
81
|
+
nio4r (2.2.0)
|
82
82
|
nokogiri (1.8.1)
|
83
83
|
mini_portile2 (~> 2.3.0)
|
84
84
|
rack (2.0.3)
|
data/README.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
![DbMailerRails Logo](https://raw.github.com/alexhifer/db_mailer_rails/master/db_mailer_rails.png)
|
2
2
|
|
3
|
+
![Gem Version](https://badge.fury.io/rb/db_mailer_rails.svg)
|
4
|
+
![Build Status](https://travis-ci.org/alexhifer/db_mailer_rails.svg?branch=master)
|
5
|
+
|
3
6
|
This gem allows you to store mail templates in the database.
|
4
7
|
|
8
|
+
db_mailer_rails works with **Rails >= 4.1**
|
9
|
+
|
5
10
|
Capabilities:
|
6
11
|
|
7
12
|
* Sending mails with ActionMailer::MessageDelivery (#deliver_now and #deliver_later methods)
|
@@ -38,7 +43,7 @@ Syncing the configuration file(*config/db_mailer_templates.yml*) with database:
|
|
38
43
|
##### A quick example of sending:
|
39
44
|
|
40
45
|
```ruby
|
41
|
-
HelloWorldDbMailer.build(OpenStruct.new(name: '')).deliver_now
|
46
|
+
HelloWorldDbMailer.build(OpenStruct.new(name: 'YourApp')).deliver_now
|
42
47
|
```
|
43
48
|
|
44
49
|
**HelloWorldDbMailer** - this is the inheritance class of DbMailerRails::Base. It provides a mechanism for searching and rendering a template. All db_mailers need to inherit from it. All db_mailers are in the app /db_mailers folder.
|
@@ -146,7 +151,7 @@ After checking out the repo, run `bundle` to install dependencies. Then, run `ra
|
|
146
151
|
|
147
152
|
## Contributing
|
148
153
|
|
149
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
154
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/alexhifer/db_mailer_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
150
155
|
|
151
156
|
## License
|
152
157
|
|
@@ -154,4 +159,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
154
159
|
|
155
160
|
## Code of Conduct
|
156
161
|
|
157
|
-
Everyone interacting in the
|
162
|
+
Everyone interacting in the **db_mailer_rails** project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/db_mailer_rails/blob/master/CODE_OF_CONDUCT.md).
|
@@ -5,4 +5,4 @@ HelloWorldDbMailer:
|
|
5
5
|
body: >
|
6
6
|
Hello, {{user_name}}!<br><br>
|
7
7
|
This is your first e-mail with <b>DbMailerRails gem</b> :)<br><br>
|
8
|
-
Don't forget to "Star" this <a href="https://github.com/
|
8
|
+
Don't forget to "Star" this <a href="https://github.com/alexhifer/db_mailer_rails">gem on GitHub</a>.
|
data/db_mailer_rails.gemspec
CHANGED
@@ -4,25 +4,26 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'db_mailer_rails/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.email
|
7
|
+
s.name = 'db_mailer_rails'
|
8
|
+
s.version = DbMailerRails::VERSION.dup
|
9
|
+
s.authors = 'Alexey Degtyarev'
|
10
|
+
s.email = 'alexhifer@gmail.com'
|
11
11
|
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
12
|
+
s.required_ruby_version = '>= 2.1.0'
|
13
|
+
s.summary = %q{Store mail templates in the database.}
|
14
|
+
s.description = %q{This gem allows you to store mail templates in the database.}
|
15
|
+
s.license = 'MIT'
|
15
16
|
|
16
17
|
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
18
19
|
end
|
19
|
-
s.bindir
|
20
|
-
s.executables
|
21
|
-
s.require_paths
|
20
|
+
s.bindir = 'exe'
|
21
|
+
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
s.require_paths = ['lib']
|
22
23
|
|
23
|
-
s.add_dependency 'actionpack', ['>= 4.
|
24
|
-
s.add_dependency 'actionmailer', ['>= 4.
|
25
|
-
s.add_dependency 'railties', ['>= 4.
|
24
|
+
s.add_dependency 'actionpack', ['>= 4.1', '< 5.2']
|
25
|
+
s.add_dependency 'actionmailer', ['>= 4.1', '< 5.2']
|
26
|
+
s.add_dependency 'railties', ['>= 4.1', '< 5.2']
|
26
27
|
s.add_dependency 'mustache', '~> 1.0'
|
27
28
|
s.add_development_dependency 'rspec', '~> 3.0'
|
28
29
|
s.add_development_dependency 'sqlite3', '~> 1.3.0'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem 'rails', github: "rails/rails", branch: "4-1-stable"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem 'listen', '~> 3.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :development, :test do
|
12
|
+
gem 'factory_bot', '~> 4.0'
|
13
|
+
end
|
14
|
+
|
15
|
+
group :test do
|
16
|
+
gem 'database_cleaner', '~> 1.6'
|
17
|
+
gem 'shoulda-matchers', '~> 3.1'
|
18
|
+
gem 'generator_spec', '~> 0.9'
|
19
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/rails/rails.git
|
3
|
+
revision: 0cad778c2605a5204a05a9f1dbd3344e39f248d8
|
4
|
+
branch: 4-1-stable
|
5
|
+
specs:
|
6
|
+
actionmailer (4.1.16)
|
7
|
+
actionpack (= 4.1.16)
|
8
|
+
actionview (= 4.1.16)
|
9
|
+
mail (~> 2.5, >= 2.5.4)
|
10
|
+
actionpack (4.1.16)
|
11
|
+
actionview (= 4.1.16)
|
12
|
+
activesupport (= 4.1.16)
|
13
|
+
rack (~> 1.5.2)
|
14
|
+
rack-test (~> 0.6.2)
|
15
|
+
actionview (4.1.16)
|
16
|
+
activesupport (= 4.1.16)
|
17
|
+
builder (~> 3.1)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
activemodel (4.1.16)
|
20
|
+
activesupport (= 4.1.16)
|
21
|
+
builder (~> 3.1)
|
22
|
+
activerecord (4.1.16)
|
23
|
+
activemodel (= 4.1.16)
|
24
|
+
activesupport (= 4.1.16)
|
25
|
+
arel (~> 5.0.0)
|
26
|
+
activesupport (4.1.16)
|
27
|
+
i18n (~> 0.6, >= 0.6.9)
|
28
|
+
json (~> 1.7, >= 1.7.7)
|
29
|
+
minitest (~> 5.1)
|
30
|
+
thread_safe (~> 0.1)
|
31
|
+
tzinfo (~> 1.1)
|
32
|
+
rails (4.1.16)
|
33
|
+
actionmailer (= 4.1.16)
|
34
|
+
actionpack (= 4.1.16)
|
35
|
+
actionview (= 4.1.16)
|
36
|
+
activemodel (= 4.1.16)
|
37
|
+
activerecord (= 4.1.16)
|
38
|
+
activesupport (= 4.1.16)
|
39
|
+
bundler (>= 1.3.0, < 2.0)
|
40
|
+
railties (= 4.1.16)
|
41
|
+
sprockets-rails (~> 2.0)
|
42
|
+
railties (4.1.16)
|
43
|
+
actionpack (= 4.1.16)
|
44
|
+
activesupport (= 4.1.16)
|
45
|
+
rake (>= 0.8.7)
|
46
|
+
thor (>= 0.18.1, < 2.0)
|
47
|
+
|
48
|
+
PATH
|
49
|
+
remote: .
|
50
|
+
specs:
|
51
|
+
db_mailer_rails (0.1.1)
|
52
|
+
actionmailer (>= 4.1, < 5.2)
|
53
|
+
actionpack (>= 4.1, < 5.2)
|
54
|
+
mustache (~> 1.0)
|
55
|
+
railties (>= 4.1, < 5.2)
|
56
|
+
|
57
|
+
GEM
|
58
|
+
remote: https://rubygems.org/
|
59
|
+
specs:
|
60
|
+
arel (5.0.1.20140414130214)
|
61
|
+
builder (3.2.3)
|
62
|
+
concurrent-ruby (1.0.5)
|
63
|
+
database_cleaner (1.6.2)
|
64
|
+
diff-lcs (1.3)
|
65
|
+
erubis (2.7.0)
|
66
|
+
factory_bot (4.8.2)
|
67
|
+
activesupport (>= 3.0.0)
|
68
|
+
ffi (1.9.18)
|
69
|
+
generator_spec (0.9.4)
|
70
|
+
activesupport (>= 3.0.0)
|
71
|
+
railties (>= 3.0.0)
|
72
|
+
i18n (0.9.1)
|
73
|
+
concurrent-ruby (~> 1.0)
|
74
|
+
json (1.8.6)
|
75
|
+
listen (3.1.5)
|
76
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
77
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
78
|
+
ruby_dep (~> 1.2)
|
79
|
+
mail (2.7.0)
|
80
|
+
mini_mime (>= 0.1.1)
|
81
|
+
mini_mime (1.0.0)
|
82
|
+
minitest (5.10.3)
|
83
|
+
mustache (1.0.5)
|
84
|
+
rack (1.5.5)
|
85
|
+
rack-test (0.6.3)
|
86
|
+
rack (>= 1.0)
|
87
|
+
rake (12.3.0)
|
88
|
+
rb-fsevent (0.10.2)
|
89
|
+
rb-inotify (0.9.10)
|
90
|
+
ffi (>= 0.5.0, < 2)
|
91
|
+
rspec (3.7.0)
|
92
|
+
rspec-core (~> 3.7.0)
|
93
|
+
rspec-expectations (~> 3.7.0)
|
94
|
+
rspec-mocks (~> 3.7.0)
|
95
|
+
rspec-core (3.7.0)
|
96
|
+
rspec-support (~> 3.7.0)
|
97
|
+
rspec-expectations (3.7.0)
|
98
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
99
|
+
rspec-support (~> 3.7.0)
|
100
|
+
rspec-mocks (3.7.0)
|
101
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
102
|
+
rspec-support (~> 3.7.0)
|
103
|
+
rspec-support (3.7.0)
|
104
|
+
ruby_dep (1.5.0)
|
105
|
+
shoulda-matchers (3.1.2)
|
106
|
+
activesupport (>= 4.0.0)
|
107
|
+
sprockets (3.7.1)
|
108
|
+
concurrent-ruby (~> 1.0)
|
109
|
+
rack (> 1, < 3)
|
110
|
+
sprockets-rails (2.3.3)
|
111
|
+
actionpack (>= 3.0)
|
112
|
+
activesupport (>= 3.0)
|
113
|
+
sprockets (>= 2.8, < 4.0)
|
114
|
+
sqlite3 (1.3.13)
|
115
|
+
thor (0.20.0)
|
116
|
+
thread_safe (0.3.6)
|
117
|
+
tzinfo (1.2.4)
|
118
|
+
thread_safe (~> 0.1)
|
119
|
+
|
120
|
+
PLATFORMS
|
121
|
+
ruby
|
122
|
+
|
123
|
+
DEPENDENCIES
|
124
|
+
database_cleaner (~> 1.6)
|
125
|
+
db_mailer_rails!
|
126
|
+
factory_bot (~> 4.0)
|
127
|
+
generator_spec (~> 0.9)
|
128
|
+
listen (~> 3.0)
|
129
|
+
rails!
|
130
|
+
rspec (~> 3.0)
|
131
|
+
shoulda-matchers (~> 3.1)
|
132
|
+
sqlite3 (~> 1.3.0)
|
133
|
+
|
134
|
+
BUNDLED WITH
|
135
|
+
1.16.0
|
@@ -0,0 +1,19 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem 'rails', github: 'rails/rails', branch: '4-2-stable'
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem 'listen', '~> 3.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :development, :test do
|
12
|
+
gem 'factory_bot', '~> 4.0'
|
13
|
+
end
|
14
|
+
|
15
|
+
group :test do
|
16
|
+
gem 'database_cleaner', '~> 1.6'
|
17
|
+
gem 'shoulda-matchers', '~> 3.1'
|
18
|
+
gem 'generator_spec', '~> 0.9'
|
19
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/rails/rails.git
|
3
|
+
revision: e4a6dd147453aedecda7938a5650fcc2ff6febe9
|
4
|
+
branch: 4-2-stable
|
5
|
+
specs:
|
6
|
+
actionmailer (4.2.10)
|
7
|
+
actionpack (= 4.2.10)
|
8
|
+
actionview (= 4.2.10)
|
9
|
+
activejob (= 4.2.10)
|
10
|
+
mail (~> 2.5, >= 2.5.4)
|
11
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
12
|
+
actionpack (4.2.10)
|
13
|
+
actionview (= 4.2.10)
|
14
|
+
activesupport (= 4.2.10)
|
15
|
+
rack (~> 1.6)
|
16
|
+
rack-test (~> 0.6.2)
|
17
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
19
|
+
actionview (4.2.10)
|
20
|
+
activesupport (= 4.2.10)
|
21
|
+
builder (~> 3.1)
|
22
|
+
erubis (~> 2.7.0)
|
23
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
24
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
25
|
+
activejob (4.2.10)
|
26
|
+
activesupport (= 4.2.10)
|
27
|
+
globalid (>= 0.3.0)
|
28
|
+
activemodel (4.2.10)
|
29
|
+
activesupport (= 4.2.10)
|
30
|
+
builder (~> 3.1)
|
31
|
+
activerecord (4.2.10)
|
32
|
+
activemodel (= 4.2.10)
|
33
|
+
activesupport (= 4.2.10)
|
34
|
+
arel (~> 6.0)
|
35
|
+
activesupport (4.2.10)
|
36
|
+
i18n (~> 0.7)
|
37
|
+
minitest (~> 5.1)
|
38
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
39
|
+
tzinfo (~> 1.1)
|
40
|
+
rails (4.2.10)
|
41
|
+
actionmailer (= 4.2.10)
|
42
|
+
actionpack (= 4.2.10)
|
43
|
+
actionview (= 4.2.10)
|
44
|
+
activejob (= 4.2.10)
|
45
|
+
activemodel (= 4.2.10)
|
46
|
+
activerecord (= 4.2.10)
|
47
|
+
activesupport (= 4.2.10)
|
48
|
+
bundler (>= 1.3.0, < 2.0)
|
49
|
+
railties (= 4.2.10)
|
50
|
+
sprockets-rails
|
51
|
+
railties (4.2.10)
|
52
|
+
actionpack (= 4.2.10)
|
53
|
+
activesupport (= 4.2.10)
|
54
|
+
rake (>= 0.8.7)
|
55
|
+
thor (>= 0.18.1, < 2.0)
|
56
|
+
|
57
|
+
PATH
|
58
|
+
remote: .
|
59
|
+
specs:
|
60
|
+
db_mailer_rails (0.1.1)
|
61
|
+
actionmailer (>= 4.2, < 5.2)
|
62
|
+
actionpack (>= 4.2, < 5.2)
|
63
|
+
mustache (~> 1.0)
|
64
|
+
railties (>= 4.2, < 5.2)
|
65
|
+
|
66
|
+
GEM
|
67
|
+
remote: https://rubygems.org/
|
68
|
+
specs:
|
69
|
+
arel (6.0.4)
|
70
|
+
builder (3.2.3)
|
71
|
+
concurrent-ruby (1.0.5)
|
72
|
+
crass (1.0.3)
|
73
|
+
database_cleaner (1.6.2)
|
74
|
+
diff-lcs (1.3)
|
75
|
+
erubis (2.7.0)
|
76
|
+
factory_bot (4.8.2)
|
77
|
+
activesupport (>= 3.0.0)
|
78
|
+
ffi (1.9.18)
|
79
|
+
generator_spec (0.9.4)
|
80
|
+
activesupport (>= 3.0.0)
|
81
|
+
railties (>= 3.0.0)
|
82
|
+
globalid (0.4.1)
|
83
|
+
activesupport (>= 4.2.0)
|
84
|
+
i18n (0.9.1)
|
85
|
+
concurrent-ruby (~> 1.0)
|
86
|
+
listen (3.1.5)
|
87
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
88
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
89
|
+
ruby_dep (~> 1.2)
|
90
|
+
loofah (2.1.1)
|
91
|
+
crass (~> 1.0.2)
|
92
|
+
nokogiri (>= 1.5.9)
|
93
|
+
mail (2.7.0)
|
94
|
+
mini_mime (>= 0.1.1)
|
95
|
+
mini_mime (1.0.0)
|
96
|
+
mini_portile2 (2.3.0)
|
97
|
+
minitest (5.10.3)
|
98
|
+
mustache (1.0.5)
|
99
|
+
nokogiri (1.8.1)
|
100
|
+
mini_portile2 (~> 2.3.0)
|
101
|
+
rack (1.6.8)
|
102
|
+
rack-test (0.6.3)
|
103
|
+
rack (>= 1.0)
|
104
|
+
rails-deprecated_sanitizer (1.0.3)
|
105
|
+
activesupport (>= 4.2.0.alpha)
|
106
|
+
rails-dom-testing (1.0.9)
|
107
|
+
activesupport (>= 4.2.0, < 5.0)
|
108
|
+
nokogiri (~> 1.6)
|
109
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
110
|
+
rails-html-sanitizer (1.0.3)
|
111
|
+
loofah (~> 2.0)
|
112
|
+
rake (12.3.0)
|
113
|
+
rb-fsevent (0.10.2)
|
114
|
+
rb-inotify (0.9.10)
|
115
|
+
ffi (>= 0.5.0, < 2)
|
116
|
+
rspec (3.7.0)
|
117
|
+
rspec-core (~> 3.7.0)
|
118
|
+
rspec-expectations (~> 3.7.0)
|
119
|
+
rspec-mocks (~> 3.7.0)
|
120
|
+
rspec-core (3.7.0)
|
121
|
+
rspec-support (~> 3.7.0)
|
122
|
+
rspec-expectations (3.7.0)
|
123
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
124
|
+
rspec-support (~> 3.7.0)
|
125
|
+
rspec-mocks (3.7.0)
|
126
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
127
|
+
rspec-support (~> 3.7.0)
|
128
|
+
rspec-support (3.7.0)
|
129
|
+
ruby_dep (1.5.0)
|
130
|
+
shoulda-matchers (3.1.2)
|
131
|
+
activesupport (>= 4.0.0)
|
132
|
+
sprockets (3.7.1)
|
133
|
+
concurrent-ruby (~> 1.0)
|
134
|
+
rack (> 1, < 3)
|
135
|
+
sprockets-rails (3.2.1)
|
136
|
+
actionpack (>= 4.0)
|
137
|
+
activesupport (>= 4.0)
|
138
|
+
sprockets (>= 3.0.0)
|
139
|
+
sqlite3 (1.3.13)
|
140
|
+
thor (0.20.0)
|
141
|
+
thread_safe (0.3.6)
|
142
|
+
tzinfo (1.2.4)
|
143
|
+
thread_safe (~> 0.1)
|
144
|
+
|
145
|
+
PLATFORMS
|
146
|
+
ruby
|
147
|
+
|
148
|
+
DEPENDENCIES
|
149
|
+
database_cleaner (~> 1.6)
|
150
|
+
db_mailer_rails!
|
151
|
+
factory_bot (~> 4.0)
|
152
|
+
generator_spec (~> 0.9)
|
153
|
+
listen (~> 3.0)
|
154
|
+
rails!
|
155
|
+
rspec (~> 3.0)
|
156
|
+
shoulda-matchers (~> 3.1)
|
157
|
+
sqlite3 (~> 1.3.0)
|
158
|
+
|
159
|
+
BUNDLED WITH
|
160
|
+
1.16.0
|
@@ -0,0 +1,19 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem 'rails', '~> 5.0.0'
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem 'listen', '~> 3.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :development, :test do
|
12
|
+
gem 'factory_bot', '~> 4.0'
|
13
|
+
end
|
14
|
+
|
15
|
+
group :test do
|
16
|
+
gem 'database_cleaner', '~> 1.6'
|
17
|
+
gem 'shoulda-matchers', '~> 3.1'
|
18
|
+
gem 'generator_spec', '~> 0.9'
|
19
|
+
end
|
@@ -0,0 +1,161 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
db_mailer_rails (0.1.1)
|
5
|
+
actionmailer (>= 4.2, < 5.2)
|
6
|
+
actionpack (>= 4.2, < 5.2)
|
7
|
+
mustache (~> 1.0)
|
8
|
+
railties (>= 4.2, < 5.2)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
actioncable (5.0.6)
|
14
|
+
actionpack (= 5.0.6)
|
15
|
+
nio4r (>= 1.2, < 3.0)
|
16
|
+
websocket-driver (~> 0.6.1)
|
17
|
+
actionmailer (5.0.6)
|
18
|
+
actionpack (= 5.0.6)
|
19
|
+
actionview (= 5.0.6)
|
20
|
+
activejob (= 5.0.6)
|
21
|
+
mail (~> 2.5, >= 2.5.4)
|
22
|
+
rails-dom-testing (~> 2.0)
|
23
|
+
actionpack (5.0.6)
|
24
|
+
actionview (= 5.0.6)
|
25
|
+
activesupport (= 5.0.6)
|
26
|
+
rack (~> 2.0)
|
27
|
+
rack-test (~> 0.6.3)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
30
|
+
actionview (5.0.6)
|
31
|
+
activesupport (= 5.0.6)
|
32
|
+
builder (~> 3.1)
|
33
|
+
erubis (~> 2.7.0)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
36
|
+
activejob (5.0.6)
|
37
|
+
activesupport (= 5.0.6)
|
38
|
+
globalid (>= 0.3.6)
|
39
|
+
activemodel (5.0.6)
|
40
|
+
activesupport (= 5.0.6)
|
41
|
+
activerecord (5.0.6)
|
42
|
+
activemodel (= 5.0.6)
|
43
|
+
activesupport (= 5.0.6)
|
44
|
+
arel (~> 7.0)
|
45
|
+
activesupport (5.0.6)
|
46
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
|
+
i18n (~> 0.7)
|
48
|
+
minitest (~> 5.1)
|
49
|
+
tzinfo (~> 1.1)
|
50
|
+
arel (7.1.4)
|
51
|
+
builder (3.2.3)
|
52
|
+
concurrent-ruby (1.0.5)
|
53
|
+
crass (1.0.3)
|
54
|
+
database_cleaner (1.6.2)
|
55
|
+
diff-lcs (1.3)
|
56
|
+
erubis (2.7.0)
|
57
|
+
factory_bot (4.8.2)
|
58
|
+
activesupport (>= 3.0.0)
|
59
|
+
ffi (1.9.18)
|
60
|
+
generator_spec (0.9.4)
|
61
|
+
activesupport (>= 3.0.0)
|
62
|
+
railties (>= 3.0.0)
|
63
|
+
globalid (0.4.1)
|
64
|
+
activesupport (>= 4.2.0)
|
65
|
+
i18n (0.9.1)
|
66
|
+
concurrent-ruby (~> 1.0)
|
67
|
+
listen (3.1.5)
|
68
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
69
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
70
|
+
ruby_dep (~> 1.2)
|
71
|
+
loofah (2.1.1)
|
72
|
+
crass (~> 1.0.2)
|
73
|
+
nokogiri (>= 1.5.9)
|
74
|
+
mail (2.7.0)
|
75
|
+
mini_mime (>= 0.1.1)
|
76
|
+
method_source (0.9.0)
|
77
|
+
mini_mime (1.0.0)
|
78
|
+
mini_portile2 (2.3.0)
|
79
|
+
minitest (5.10.3)
|
80
|
+
mustache (1.0.5)
|
81
|
+
nio4r (2.2.0)
|
82
|
+
nokogiri (1.8.1)
|
83
|
+
mini_portile2 (~> 2.3.0)
|
84
|
+
rack (2.0.3)
|
85
|
+
rack-test (0.6.3)
|
86
|
+
rack (>= 1.0)
|
87
|
+
rails (5.0.6)
|
88
|
+
actioncable (= 5.0.6)
|
89
|
+
actionmailer (= 5.0.6)
|
90
|
+
actionpack (= 5.0.6)
|
91
|
+
actionview (= 5.0.6)
|
92
|
+
activejob (= 5.0.6)
|
93
|
+
activemodel (= 5.0.6)
|
94
|
+
activerecord (= 5.0.6)
|
95
|
+
activesupport (= 5.0.6)
|
96
|
+
bundler (>= 1.3.0)
|
97
|
+
railties (= 5.0.6)
|
98
|
+
sprockets-rails (>= 2.0.0)
|
99
|
+
rails-dom-testing (2.0.3)
|
100
|
+
activesupport (>= 4.2.0)
|
101
|
+
nokogiri (>= 1.6)
|
102
|
+
rails-html-sanitizer (1.0.3)
|
103
|
+
loofah (~> 2.0)
|
104
|
+
railties (5.0.6)
|
105
|
+
actionpack (= 5.0.6)
|
106
|
+
activesupport (= 5.0.6)
|
107
|
+
method_source
|
108
|
+
rake (>= 0.8.7)
|
109
|
+
thor (>= 0.18.1, < 2.0)
|
110
|
+
rake (12.3.0)
|
111
|
+
rb-fsevent (0.10.2)
|
112
|
+
rb-inotify (0.9.10)
|
113
|
+
ffi (>= 0.5.0, < 2)
|
114
|
+
rspec (3.7.0)
|
115
|
+
rspec-core (~> 3.7.0)
|
116
|
+
rspec-expectations (~> 3.7.0)
|
117
|
+
rspec-mocks (~> 3.7.0)
|
118
|
+
rspec-core (3.7.0)
|
119
|
+
rspec-support (~> 3.7.0)
|
120
|
+
rspec-expectations (3.7.0)
|
121
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
122
|
+
rspec-support (~> 3.7.0)
|
123
|
+
rspec-mocks (3.7.0)
|
124
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
125
|
+
rspec-support (~> 3.7.0)
|
126
|
+
rspec-support (3.7.0)
|
127
|
+
ruby_dep (1.5.0)
|
128
|
+
shoulda-matchers (3.1.2)
|
129
|
+
activesupport (>= 4.0.0)
|
130
|
+
sprockets (3.7.1)
|
131
|
+
concurrent-ruby (~> 1.0)
|
132
|
+
rack (> 1, < 3)
|
133
|
+
sprockets-rails (3.2.1)
|
134
|
+
actionpack (>= 4.0)
|
135
|
+
activesupport (>= 4.0)
|
136
|
+
sprockets (>= 3.0.0)
|
137
|
+
sqlite3 (1.3.13)
|
138
|
+
thor (0.20.0)
|
139
|
+
thread_safe (0.3.6)
|
140
|
+
tzinfo (1.2.4)
|
141
|
+
thread_safe (~> 0.1)
|
142
|
+
websocket-driver (0.6.5)
|
143
|
+
websocket-extensions (>= 0.1.1)
|
144
|
+
websocket-extensions (0.1.3)
|
145
|
+
|
146
|
+
PLATFORMS
|
147
|
+
ruby
|
148
|
+
|
149
|
+
DEPENDENCIES
|
150
|
+
database_cleaner (~> 1.6)
|
151
|
+
db_mailer_rails!
|
152
|
+
factory_bot (~> 4.0)
|
153
|
+
generator_spec (~> 0.9)
|
154
|
+
listen (~> 3.0)
|
155
|
+
rails (~> 5.0.0)
|
156
|
+
rspec (~> 3.0)
|
157
|
+
shoulda-matchers (~> 3.1)
|
158
|
+
sqlite3 (~> 1.3.0)
|
159
|
+
|
160
|
+
BUNDLED WITH
|
161
|
+
1.16.0
|
@@ -13,7 +13,7 @@ module DbMailerRails
|
|
13
13
|
def db_mailer_rails_fields_render(db_mailer_template)
|
14
14
|
return '' unless db_mailer_template
|
15
15
|
|
16
|
-
list = db_mailer_template.db_mailer.new.fields.map do |field_name, description|
|
16
|
+
list = db_mailer_template.db_mailer.send(:new).fields.map do |field_name, description|
|
17
17
|
field = content_tag('span', "{{#{field_name}}}", class: 'db_mailer__field_name')
|
18
18
|
content_tag('li', "#{field} - #{description}".html_safe, class: 'db_mailer__field')
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: db_mailer_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
|
- Alexey Degtyarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '5.2'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '4.
|
29
|
+
version: '4.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '5.2'
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '4.
|
39
|
+
version: '4.1'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '5.2'
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '4.
|
49
|
+
version: '4.1'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '5.2'
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '4.
|
59
|
+
version: '4.1'
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '5.2'
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '4.
|
69
|
+
version: '4.1'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '5.2'
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- ".gitignore"
|
122
122
|
- ".rspec"
|
123
123
|
- ".travis.yml"
|
124
|
+
- CHANGELOG.md
|
124
125
|
- CODE_OF_CONDUCT.md
|
125
126
|
- Gemfile
|
126
127
|
- Gemfile.lock
|
@@ -132,6 +133,12 @@ files:
|
|
132
133
|
- config/db_mailer_templates.yml
|
133
134
|
- db_mailer_rails.gemspec
|
134
135
|
- db_mailer_rails.png
|
136
|
+
- gemfiles/Gemfile.rails-4.1-stable
|
137
|
+
- gemfiles/Gemfile.rails-4.1-stable.lock
|
138
|
+
- gemfiles/Gemfile.rails-4.2-stable
|
139
|
+
- gemfiles/Gemfile.rails-4.2-stable.lock
|
140
|
+
- gemfiles/Gemfile.rails-5.0-stable
|
141
|
+
- gemfiles/Gemfile.rails-5.0-stable.lock
|
135
142
|
- lib/db_mailer_rails.rb
|
136
143
|
- lib/db_mailer_rails/base.rb
|
137
144
|
- lib/db_mailer_rails/helper.rb
|
@@ -161,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
168
|
requirements:
|
162
169
|
- - ">="
|
163
170
|
- !ruby/object:Gem::Version
|
164
|
-
version:
|
171
|
+
version: 2.1.0
|
165
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
173
|
requirements:
|
167
174
|
- - ">="
|