effective_email_templates 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +195 -0
  4. data/Rakefile +23 -0
  5. data/app/assets/javascripts/effective_email_templates.js +1 -0
  6. data/app/assets/stylesheets/effective_email_templates.css.scss +1 -0
  7. data/app/controllers/admin/email_templates_controller.rb +63 -0
  8. data/app/errors/effective/access_denied.rb +18 -0
  9. data/app/helpers/effective_email_templates_helper.rb +19 -0
  10. data/app/mailers/effective/email_template_mailer.rb +14 -0
  11. data/app/models/effective/datatables/email_templates.rb +22 -0
  12. data/app/models/effective/email_template.rb +55 -0
  13. data/app/views/admin/email_templates/_actions.html.haml +2 -0
  14. data/app/views/admin/email_templates/_form.html.haml +9 -0
  15. data/app/views/admin/email_templates/edit.html.haml +3 -0
  16. data/app/views/admin/email_templates/index.html.haml +3 -0
  17. data/app/views/effective/email_template_mailer/templated_email.html.haml +1 -0
  18. data/config/routes.rb +11 -0
  19. data/db/migrate/01_create_effective_email_templates.rb.erb +20 -0
  20. data/lib/effective/liquid_mailer.rb +12 -0
  21. data/lib/effective_email_templates.rb +33 -0
  22. data/lib/effective_email_templates/email_view_template.rb +29 -0
  23. data/lib/effective_email_templates/engine.rb +27 -0
  24. data/lib/effective_email_templates/liquid_resolver.rb +46 -0
  25. data/lib/effective_email_templates/template_importer.rb +46 -0
  26. data/lib/effective_email_templates/version.rb +3 -0
  27. data/lib/generators/effective_email_templates/install_generator.rb +32 -0
  28. data/lib/generators/templates/README +1 -0
  29. data/lib/generators/templates/effective_email_templates.rb +51 -0
  30. data/lib/tasks/effective_email_templates/import_default_views.rake +5 -0
  31. data/spec/controllers/admin/email_templates_controller_spec.rb +60 -0
  32. data/spec/dummy/README.rdoc +28 -0
  33. data/spec/dummy/Rakefile +6 -0
  34. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  35. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  36. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  37. data/spec/dummy/app/controllers/welcome_controller.rb +4 -0
  38. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  39. data/spec/dummy/app/mailers/liquid_resolved_mailer.rb +9 -0
  40. data/spec/dummy/app/mailers/user_liquid_mailer.rb +10 -0
  41. data/spec/dummy/app/models/user.rb +15 -0
  42. data/spec/dummy/app/views/layouts/application.html.erb +17 -0
  43. data/spec/dummy/app/views/user_liquid/after_create_user.liquid +7 -0
  44. data/spec/dummy/app/views/welcome/index.html.haml +1 -0
  45. data/spec/dummy/bin/bundle +3 -0
  46. data/spec/dummy/bin/rails +4 -0
  47. data/spec/dummy/bin/rake +4 -0
  48. data/spec/dummy/config.ru +4 -0
  49. data/spec/dummy/config/application.rb +26 -0
  50. data/spec/dummy/config/boot.rb +5 -0
  51. data/spec/dummy/config/database.yml +25 -0
  52. data/spec/dummy/config/environment.rb +5 -0
  53. data/spec/dummy/config/environments/development.rb +37 -0
  54. data/spec/dummy/config/environments/production.rb +78 -0
  55. data/spec/dummy/config/environments/test.rb +40 -0
  56. data/spec/dummy/config/initializers/assets.rb +8 -0
  57. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  58. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  59. data/spec/dummy/config/initializers/devise.rb +259 -0
  60. data/spec/dummy/config/initializers/effective_email_templates.rb +51 -0
  61. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  62. data/spec/dummy/config/initializers/inflections.rb +16 -0
  63. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  64. data/spec/dummy/config/initializers/session_store.rb +3 -0
  65. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/spec/dummy/config/locales/devise.en.yml +60 -0
  67. data/spec/dummy/config/locales/en.yml +23 -0
  68. data/spec/dummy/config/routes.rb +57 -0
  69. data/spec/dummy/config/secrets.yml +22 -0
  70. data/spec/dummy/db/migrate/20141126222940_devise_create_users.rb +42 -0
  71. data/spec/dummy/db/migrate/20141126222941_create_effective_email_templates.rb +20 -0
  72. data/spec/dummy/db/schema.rb +46 -0
  73. data/spec/dummy/public/404.html +67 -0
  74. data/spec/dummy/public/422.html +67 -0
  75. data/spec/dummy/public/500.html +66 -0
  76. data/spec/dummy/public/favicon.ico +0 -0
  77. data/spec/effective_email_templates_spec.rb +35 -0
  78. data/spec/factories/email_template.rb +12 -0
  79. data/spec/factories/user.rb +16 -0
  80. data/spec/factory_spec.rb +10 -0
  81. data/spec/lib/effective_email_templates/template_importer_spec.rb +44 -0
  82. data/spec/mailers/liquid_resolved_mailer_spec.rb +38 -0
  83. data/spec/models/email_template_spec.rb +61 -0
  84. data/spec/models/user_spec.rb +10 -0
  85. data/spec/sanity_spec.rb +7 -0
  86. data/spec/spec_helper.rb +26 -0
  87. metadata +353 -0
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe EffectiveEmailTemplates do
4
+ describe '::get' do
5
+ it 'finds templates by their slug' do
6
+ template = create(:email_template, slug: 'a_unique_email_template_identifier')
7
+ expect(
8
+ EffectiveEmailTemplates.get(:a_unique_email_template_identifier)
9
+ ).to eq( template )
10
+ end
11
+
12
+ context 'when the template does not exist' do
13
+ before :each do
14
+ @template = EffectiveEmailTemplates.get(:this_doesnt_exist)
15
+ end
16
+
17
+ it "returns a template object" do
18
+ expect(@template).to be_a(Effective::EmailTemplate)
19
+ end
20
+
21
+ it 'returns a template object with a slug' do
22
+ expect(@template.slug).to eq(:this_doesnt_exist)
23
+ end
24
+
25
+ it 'returns a template object without other attributes' do
26
+ # The template automatically gets generated by Rail's ::serialize method but its an empty template
27
+ expect(@template.template.render('')).to eq ''
28
+ attributes = @template.attributes
29
+ attributes.delete("slug")
30
+ attributes.delete("template")
31
+ expect(attributes.values.compact).to be_empty
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,12 @@
1
+ FactoryGirl.define do
2
+ factory :email_template, class: Effective::EmailTemplate do
3
+ from "user@example.com"
4
+ cc nil
5
+ bcc nil
6
+ subject "something important"
7
+ body "Hello World"
8
+
9
+ sequence(:slug, 'a') {|a| "unique_slug_#{a}" }
10
+ end
11
+ end
12
+
@@ -0,0 +1,16 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ password "password"
4
+ password_confirmation "password"
5
+
6
+ sequence(:email) { |n| "john-#{n}@example.com" }
7
+
8
+ before(:create) do |user, evaluator|
9
+ FactoryGirl.create(:email_template, slug: :after_create_user)
10
+ end
11
+ end
12
+
13
+ factory :admin, parent: :user do
14
+ end
15
+ end
16
+
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe "FactoryGirl Factories" do
4
+ let(:factories) { [ :user, :email_template ] }
5
+
6
+ it "has factories that are valid" do
7
+ factories.each { |f| FactoryGirl.create(f).valid?.should eq true }
8
+ end
9
+ end
10
+
@@ -0,0 +1,44 @@
1
+ require 'spec_helper'
2
+ require 'effective_email_templates/template_importer'
3
+
4
+ describe EffectiveEmailTemplates::TemplateImporter do
5
+ before :each do
6
+ Effective::EmailTemplate.delete_all
7
+ end
8
+
9
+ describe 'well formatted template files' do
10
+ it 'imports templates from view files' do
11
+ expect{ EffectiveEmailTemplates::TemplateImporter.invoke }.to change { Effective::EmailTemplate.count }
12
+ end
13
+
14
+ it 'does not import templates if a template already exists in the database' do
15
+ expect{ EffectiveEmailTemplates::TemplateImporter.invoke }.to change { Effective::EmailTemplate.count }
16
+ expect{ EffectiveEmailTemplates::TemplateImporter.invoke }.to_not change { Effective::EmailTemplate.count }
17
+ end
18
+
19
+ it 'does not print errors' do
20
+ importer = EffectiveEmailTemplates::TemplateImporter.new
21
+ expect(importer).to_not receive(:print_errors)
22
+ EffectiveEmailTemplates::TemplateImporter.invoke(importer)
23
+ end
24
+ end
25
+
26
+ describe 'poorly formatted template files' do
27
+ let(:filepath) { Rails.root.join('app', 'views', 'user_liquid', 'some_template.liquid') }
28
+ before do
29
+ File.open(filepath, 'w') do |f|
30
+ f.write("--\n---\nbody")
31
+ end
32
+ end
33
+
34
+ after do
35
+ File.delete(filepath)
36
+ end
37
+
38
+ it 'prints errors if there is a problem with a template' do
39
+ importer = EffectiveEmailTemplates::TemplateImporter.new
40
+ expect(importer).to receive(:print_errors)
41
+ EffectiveEmailTemplates::TemplateImporter.invoke(importer)
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+
3
+ describe LiquidResolvedMailer do
4
+
5
+ describe 'basic template resolution and rendering' do
6
+ before :each do
7
+ @email_body = 'liquid resolution!'
8
+ @template = create(:email_template, slug: 'test_email', body: @email_body)
9
+ @mail = LiquidResolvedMailer.test_email
10
+ end
11
+
12
+ it 'creates emails using a liquid template' do
13
+ expect(@mail.body.to_s).to eq(@email_body)
14
+ end
15
+ end
16
+
17
+ describe 'embedded template resolution and rendering' do
18
+ it 'correctly renders emails using an embedded liquid template' do
19
+ @email_body = 'liquid {{ noun }}!'
20
+ @renderred_body = 'liquid resolution!'
21
+ @template = create(:email_template, slug: 'test_email', body: @email_body)
22
+ @mail = LiquidResolvedMailer.test_email
23
+ expect(@mail.body.to_s).to eq(@renderred_body)
24
+ end
25
+
26
+ it 'renders emails with nested variables' do
27
+ @email_body = 'liquid {{ noun.for_the_new_year }}!'
28
+ @renderred_body = 'liquid resolution!'
29
+ @template = create(:email_template, slug: 'test_email', body: @email_body)
30
+ @mail = LiquidResolvedMailer.test_email({
31
+ 'noun' => {
32
+ 'for_the_new_year' => 'resolution'
33
+ }
34
+ })
35
+ expect(@mail.body.to_s).to eq(@renderred_body)
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,61 @@
1
+ require 'spec_helper'
2
+
3
+ describe Effective::EmailTemplate do
4
+ before :each do
5
+ @email = create(:email_template)
6
+ end
7
+
8
+ describe 'slug' do
9
+ it 'can have numbers in the slug' do
10
+ email = build(:email_template, slug: 'reminder_30_days')
11
+ expect(email).to be_valid
12
+ end
13
+
14
+ it 'cannot have spaces in the slug' do
15
+ email = build(:email_template, slug: 'reminder 30 days')
16
+ expect(email).to_not be_valid
17
+ end
18
+ end
19
+
20
+ it 'should be persisted' do
21
+ expect(@email.persisted?).to be(true)
22
+ end
23
+
24
+ it 'can be valid without a template explicitly stored' do
25
+ email = build(:email_template, template: nil)
26
+ expect(email).to be_valid
27
+ end
28
+
29
+ it 'stores a template after precompiling' do
30
+ email = build(:email_template)
31
+
32
+ # The initial template is an empty liquid template provided by the ::serialize method
33
+ expect(email.template.render).to be_blank
34
+
35
+ email.precompile
36
+
37
+ expect(email.template.render).not_to be_blank
38
+ end
39
+
40
+ it 'stores a precompiled template' do
41
+ expect(@email.template).to be_a(Liquid::Template)
42
+ end
43
+
44
+ it 'knows how to render itself' do
45
+ expect(@email.render).to be_a(String)
46
+ end
47
+
48
+ it 'does not precompile if the body has not changed' do
49
+ @email.from = 'other@example.com'
50
+ expect(Liquid::Template).to_not receive(:parse).with(@email.body)
51
+ @email.save
52
+ end
53
+
54
+ it 'does precompile if the body has changed' do
55
+ @email.body = 'Hello World -- changed'
56
+ parsed_template = Liquid::Template.parse(@email.body)
57
+ expect(Liquid::Template).to receive(:parse).with(@email.body).and_return(parsed_template)
58
+ @email.save
59
+ end
60
+ end
61
+
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe User do
4
+ it 'sends an email after creation' do
5
+ expect {
6
+ create(:user)
7
+ }.to change { ActionMailer::Base.deliveries.length }.by(1)
8
+ end
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Using RSpec" do
4
+ it "tests the truth" do
5
+ expect(EffectiveEmailTemplates).to be_a(Module)
6
+ end
7
+ end
@@ -0,0 +1,26 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ # Not sure if I need this
5
+ # ActiveRecord::Migrator.migrations_paths = [File.expand_path("../dummy/db/migrate", __FILE__)]
6
+
7
+ require 'rspec/rails'
8
+ require 'rspec/autorun'
9
+ require 'factory_girl_rails'
10
+ require 'pry'
11
+
12
+ Rails.backtrace_cleaner.remove_silencers!
13
+
14
+ # Load support files
15
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
16
+
17
+ RSpec.configure do |config|
18
+ config.mock_with :rspec
19
+ config.use_transactional_fixtures = true
20
+ config.infer_base_class_for_anonymous_controllers = false
21
+ config.infer_spec_type_from_file_location!
22
+ config.order = "random"
23
+ config.include Devise::TestHelpers, type: :controller
24
+ config.include FactoryGirl::Syntax::Methods
25
+ end
26
+
metadata ADDED
@@ -0,0 +1,353 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: effective_email_templates
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.8
5
+ platform: ruby
6
+ authors:
7
+ - Code and Effect
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: haml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: migrant
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: liquid
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 3.0.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: simple_form
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: factory_girl_rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sqlite3
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: effective_datatables
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '='
144
+ - !ruby/object:Gem::Version
145
+ version: 0.3.17
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: 0.3.17
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: devise
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description: Uses liquid templates
182
+ email:
183
+ - info@codeandeffect.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - MIT-LICENSE
189
+ - README.md
190
+ - Rakefile
191
+ - app/assets/javascripts/effective_email_templates.js
192
+ - app/assets/stylesheets/effective_email_templates.css.scss
193
+ - app/controllers/admin/email_templates_controller.rb
194
+ - app/errors/effective/access_denied.rb
195
+ - app/helpers/effective_email_templates_helper.rb
196
+ - app/mailers/effective/email_template_mailer.rb
197
+ - app/models/effective/datatables/email_templates.rb
198
+ - app/models/effective/email_template.rb
199
+ - app/views/admin/email_templates/_actions.html.haml
200
+ - app/views/admin/email_templates/_form.html.haml
201
+ - app/views/admin/email_templates/edit.html.haml
202
+ - app/views/admin/email_templates/index.html.haml
203
+ - app/views/effective/email_template_mailer/templated_email.html.haml
204
+ - config/routes.rb
205
+ - db/migrate/01_create_effective_email_templates.rb.erb
206
+ - lib/effective/liquid_mailer.rb
207
+ - lib/effective_email_templates.rb
208
+ - lib/effective_email_templates/email_view_template.rb
209
+ - lib/effective_email_templates/engine.rb
210
+ - lib/effective_email_templates/liquid_resolver.rb
211
+ - lib/effective_email_templates/template_importer.rb
212
+ - lib/effective_email_templates/version.rb
213
+ - lib/generators/effective_email_templates/install_generator.rb
214
+ - lib/generators/templates/README
215
+ - lib/generators/templates/effective_email_templates.rb
216
+ - lib/tasks/effective_email_templates/import_default_views.rake
217
+ - spec/controllers/admin/email_templates_controller_spec.rb
218
+ - spec/dummy/README.rdoc
219
+ - spec/dummy/Rakefile
220
+ - spec/dummy/app/assets/javascripts/application.js
221
+ - spec/dummy/app/assets/stylesheets/application.css
222
+ - spec/dummy/app/controllers/application_controller.rb
223
+ - spec/dummy/app/controllers/welcome_controller.rb
224
+ - spec/dummy/app/helpers/application_helper.rb
225
+ - spec/dummy/app/mailers/liquid_resolved_mailer.rb
226
+ - spec/dummy/app/mailers/user_liquid_mailer.rb
227
+ - spec/dummy/app/models/user.rb
228
+ - spec/dummy/app/views/layouts/application.html.erb
229
+ - spec/dummy/app/views/user_liquid/after_create_user.liquid
230
+ - spec/dummy/app/views/welcome/index.html.haml
231
+ - spec/dummy/bin/bundle
232
+ - spec/dummy/bin/rails
233
+ - spec/dummy/bin/rake
234
+ - spec/dummy/config.ru
235
+ - spec/dummy/config/application.rb
236
+ - spec/dummy/config/boot.rb
237
+ - spec/dummy/config/database.yml
238
+ - spec/dummy/config/environment.rb
239
+ - spec/dummy/config/environments/development.rb
240
+ - spec/dummy/config/environments/production.rb
241
+ - spec/dummy/config/environments/test.rb
242
+ - spec/dummy/config/initializers/assets.rb
243
+ - spec/dummy/config/initializers/backtrace_silencers.rb
244
+ - spec/dummy/config/initializers/cookies_serializer.rb
245
+ - spec/dummy/config/initializers/devise.rb
246
+ - spec/dummy/config/initializers/effective_email_templates.rb
247
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
248
+ - spec/dummy/config/initializers/inflections.rb
249
+ - spec/dummy/config/initializers/mime_types.rb
250
+ - spec/dummy/config/initializers/session_store.rb
251
+ - spec/dummy/config/initializers/wrap_parameters.rb
252
+ - spec/dummy/config/locales/devise.en.yml
253
+ - spec/dummy/config/locales/en.yml
254
+ - spec/dummy/config/routes.rb
255
+ - spec/dummy/config/secrets.yml
256
+ - spec/dummy/db/migrate/20141126222940_devise_create_users.rb
257
+ - spec/dummy/db/migrate/20141126222941_create_effective_email_templates.rb
258
+ - spec/dummy/db/schema.rb
259
+ - spec/dummy/public/404.html
260
+ - spec/dummy/public/422.html
261
+ - spec/dummy/public/500.html
262
+ - spec/dummy/public/favicon.ico
263
+ - spec/effective_email_templates_spec.rb
264
+ - spec/factories/email_template.rb
265
+ - spec/factories/user.rb
266
+ - spec/factory_spec.rb
267
+ - spec/lib/effective_email_templates/template_importer_spec.rb
268
+ - spec/mailers/liquid_resolved_mailer_spec.rb
269
+ - spec/models/email_template_spec.rb
270
+ - spec/models/user_spec.rb
271
+ - spec/sanity_spec.rb
272
+ - spec/spec_helper.rb
273
+ homepage: https://github.com/code-and-effect/effective_email_templates
274
+ licenses:
275
+ - MIT
276
+ metadata: {}
277
+ post_install_message:
278
+ rdoc_options: []
279
+ require_paths:
280
+ - lib
281
+ required_ruby_version: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ required_rubygems_version: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: '0'
291
+ requirements: []
292
+ rubyforge_project:
293
+ rubygems_version: 2.4.3
294
+ signing_key:
295
+ specification_version: 4
296
+ summary: Effective Email Templates provides an admin access to modify email templates
297
+ test_files:
298
+ - spec/controllers/admin/email_templates_controller_spec.rb
299
+ - spec/dummy/app/assets/javascripts/application.js
300
+ - spec/dummy/app/assets/stylesheets/application.css
301
+ - spec/dummy/app/controllers/application_controller.rb
302
+ - spec/dummy/app/controllers/welcome_controller.rb
303
+ - spec/dummy/app/helpers/application_helper.rb
304
+ - spec/dummy/app/mailers/liquid_resolved_mailer.rb
305
+ - spec/dummy/app/mailers/user_liquid_mailer.rb
306
+ - spec/dummy/app/models/user.rb
307
+ - spec/dummy/app/views/layouts/application.html.erb
308
+ - spec/dummy/app/views/user_liquid/after_create_user.liquid
309
+ - spec/dummy/app/views/welcome/index.html.haml
310
+ - spec/dummy/bin/bundle
311
+ - spec/dummy/bin/rails
312
+ - spec/dummy/bin/rake
313
+ - spec/dummy/config/application.rb
314
+ - spec/dummy/config/boot.rb
315
+ - spec/dummy/config/database.yml
316
+ - spec/dummy/config/environment.rb
317
+ - spec/dummy/config/environments/development.rb
318
+ - spec/dummy/config/environments/production.rb
319
+ - spec/dummy/config/environments/test.rb
320
+ - spec/dummy/config/initializers/assets.rb
321
+ - spec/dummy/config/initializers/backtrace_silencers.rb
322
+ - spec/dummy/config/initializers/cookies_serializer.rb
323
+ - spec/dummy/config/initializers/devise.rb
324
+ - spec/dummy/config/initializers/effective_email_templates.rb
325
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
326
+ - spec/dummy/config/initializers/inflections.rb
327
+ - spec/dummy/config/initializers/mime_types.rb
328
+ - spec/dummy/config/initializers/session_store.rb
329
+ - spec/dummy/config/initializers/wrap_parameters.rb
330
+ - spec/dummy/config/locales/devise.en.yml
331
+ - spec/dummy/config/locales/en.yml
332
+ - spec/dummy/config/routes.rb
333
+ - spec/dummy/config/secrets.yml
334
+ - spec/dummy/config.ru
335
+ - spec/dummy/db/migrate/20141126222940_devise_create_users.rb
336
+ - spec/dummy/db/migrate/20141126222941_create_effective_email_templates.rb
337
+ - spec/dummy/db/schema.rb
338
+ - spec/dummy/public/404.html
339
+ - spec/dummy/public/422.html
340
+ - spec/dummy/public/500.html
341
+ - spec/dummy/public/favicon.ico
342
+ - spec/dummy/Rakefile
343
+ - spec/dummy/README.rdoc
344
+ - spec/effective_email_templates_spec.rb
345
+ - spec/factories/email_template.rb
346
+ - spec/factories/user.rb
347
+ - spec/factory_spec.rb
348
+ - spec/lib/effective_email_templates/template_importer_spec.rb
349
+ - spec/mailers/liquid_resolved_mailer_spec.rb
350
+ - spec/models/email_template_spec.rb
351
+ - spec/models/user_spec.rb
352
+ - spec/sanity_spec.rb
353
+ - spec/spec_helper.rb