phcdevworks_mailer_form 0.5.0b → 1.0.0b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -36
- data/Rakefile +5 -29
- data/app/controllers/phcdevworks_mailer_form/application_controller.rb +8 -8
- data/app/views/layouts/phcdevworks_mailer_form/application.html.erb +35 -5
- data/lib/phcdevworks_mailer_form.rb +1 -0
- data/lib/phcdevworks_mailer_form/engine.rb +45 -38
- data/lib/phcdevworks_mailer_form/version.rb +1 -1
- metadata +11 -8
- data/app/assets/javascripts/website/pages.coffee +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a03359be9d59aabfeb31f0e2b2b51f320b35a7872e7f7227dc7dce63cae9c51
|
4
|
+
data.tar.gz: '069cacdeb4e2ca68e6974b4f3c2d46b92459679f0d8ed2e24855706008cb31bf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56d6ab73f266fc376ef192fbd1aae95106e7cd1fac3e8c3621ac6699e3bc2f94dff7e10052e8a7019a3851b895cf38a965cea9580699d2eff205c31fa57565c9
|
7
|
+
data.tar.gz: 1c7f128402762b0f0761a3ae345885e6f56394976aa9d0c7afc3ef366a649e6c3e16e09fc3081cc5712a61bf19cf9c0bd4a846ed55885efd4afb487f7f5fbf3d
|
data/README.md
CHANGED
@@ -1,36 +0,0 @@
|
|
1
|
-
### PHCMailerForm (Rails Contact Us Mailer Form) Documentation
|
2
|
-
PHCMailerForm Rails Engine contact form using ActionMailer.
|
3
|
-
|
4
|
-
* Customizable form using standard Bootstrap or HTML code.
|
5
|
-
* Compatible with any mailer service using ActionMailer.
|
6
|
-
|
7
|
-
#### Step 1 - Add PHCMailerForm to your gemfile and run install command
|
8
|
-
|
9
|
-
gem 'phccontactorpro'
|
10
|
-
bundle install
|
11
|
-
|
12
|
-
#### Step 2 - Mount Engines (User Authentication Engine Included but not Nescessary)
|
13
|
-
|
14
|
-
mount Phccontactor::Engine => "/contact_us"
|
15
|
-
|
16
|
-
|
17
|
-
#### Step 4 - Configure ActionMailer
|
18
|
-
|
19
|
-
- Configure ActionMailer in your Production.rb with any service.
|
20
|
-
|
21
|
-
#### Step 5 - Recompile Assets
|
22
|
-
To properly function re-compile your application's assets to copy over required files.
|
23
|
-
|
24
|
-
rails assets:clobber
|
25
|
-
rails assets:precompile
|
26
|
-
|
27
|
-
#### Step 6 - Generate Contact Form View (Customization)
|
28
|
-
PHCMailerForm form and layout view can be overwritten by copy files to your application.
|
29
|
-
|
30
|
-
rails generate phccontactor:views
|
31
|
-
|
32
|
-
#### Step 7 - Setup ENV Variables
|
33
|
-
|
34
|
-
ENV["PHC_CONTACTOR_SENDER"]
|
35
|
-
|
36
|
-
#### Additional Information
|
data/Rakefile
CHANGED
@@ -1,32 +1,8 @@
|
|
1
|
-
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
1
|
+
require "bundler/setup"
|
6
2
|
|
7
|
-
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
8
5
|
|
9
|
-
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
11
|
-
rdoc.title = 'PhcdevworksMailerForm'
|
12
|
-
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.md')
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
-
end
|
6
|
+
load "rails/tasks/statistics.rake"
|
16
7
|
|
17
|
-
|
18
|
-
load 'rails/tasks/engine.rake'
|
19
|
-
|
20
|
-
load 'rails/tasks/statistics.rake'
|
21
|
-
|
22
|
-
require 'bundler/gem_tasks'
|
23
|
-
|
24
|
-
require 'rake/testtask'
|
25
|
-
|
26
|
-
Rake::TestTask.new(:test) do |t|
|
27
|
-
t.libs << 'test'
|
28
|
-
t.pattern = 'test/**/*_test.rb'
|
29
|
-
t.verbose = false
|
30
|
-
end
|
31
|
-
|
32
|
-
task default: :test
|
8
|
+
require "bundler/gem_tasks"
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module PhcdevworksMailerForm
|
2
|
-
|
2
|
+
class ApplicationController < ActionController::Base
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
# Security Filters
|
5
|
+
protect_from_forgery with: :exception
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
# Load Requried Helper Files
|
8
|
+
helper PhcdevworksActiveMenus::Engine.helpers
|
9
|
+
helper PhcdevworksNotifications::Engine.helpers
|
10
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
11
11
|
|
12
|
-
|
12
|
+
end
|
13
13
|
end
|
@@ -1,15 +1,45 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>Phcdevworks mailer form</title>
|
5
|
-
<%= csrf_meta_tags %>
|
6
|
-
<%= csp_meta_tag %>
|
7
4
|
|
8
|
-
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Mailer Forms" %>
|
7
|
+
<% phc_seo_description "Contact form using Rails ActionMailer." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
29
|
+
|
9
30
|
</head>
|
10
31
|
<body>
|
11
32
|
|
12
|
-
|
33
|
+
<!-- Page Container -->
|
34
|
+
<div id="page-container" class="fade page-without-sidebar page-header-fixed">
|
35
|
+
<!-- Page Content -->
|
36
|
+
<div id="content" class="content">
|
37
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
38
|
+
<%= yield %>
|
39
|
+
</div>
|
40
|
+
<!-- Page Content -->
|
41
|
+
</div>
|
42
|
+
<!-- Page Container -->
|
13
43
|
|
14
44
|
</body>
|
15
45
|
</html>
|
@@ -1,40 +1,47 @@
|
|
1
1
|
module PhcdevworksMailerForm
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# Load User Accounts
|
33
|
+
require "phcdevworks_accounts"
|
34
|
+
require "phcdevworks_core_modules"
|
35
|
+
|
36
|
+
# Engine Namespace
|
37
|
+
isolate_namespace PhcdevworksMailerForm
|
38
|
+
|
39
|
+
# Rspec Generators
|
40
|
+
config.generators do |g|
|
41
|
+
g.test_framework :rspec
|
42
|
+
g.fixture_replacement :factory_bot
|
43
|
+
g.factory_bot dir: 'spec/factories'
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
40
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_mailer_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '7.0'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '7.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: wicked
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: '
|
257
|
+
version: '3.0'
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: '
|
264
|
+
version: '3.0'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: factory_bot_rails
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -349,7 +349,6 @@ files:
|
|
349
349
|
- README.md
|
350
350
|
- Rakefile
|
351
351
|
- app/assets/config/phcdevworks_mailer_form_manifest.js
|
352
|
-
- app/assets/javascripts/website/pages.coffee
|
353
352
|
- app/assets/stylesheets/phcdevworks_mailer_form/application.scss
|
354
353
|
- app/assets/stylesheets/phcdevworks_mailer_form/website/pages.scss
|
355
354
|
- app/controllers/phcdevworks_mailer_form/application_controller.rb
|
@@ -371,7 +370,11 @@ files:
|
|
371
370
|
homepage: https://phcdevworks.com/
|
372
371
|
licenses:
|
373
372
|
- MIT
|
374
|
-
metadata:
|
373
|
+
metadata:
|
374
|
+
allowed_push_host: https://rubygems.org/
|
375
|
+
homepage_uri: https://phcdevworks.com/
|
376
|
+
source_code_uri: https://github.com/phcdevworks/phcdevworks_mailer_form
|
377
|
+
changelog_uri: https://github.com/phcdevworks/phcdevworks_mailer_form/releases
|
375
378
|
post_install_message:
|
376
379
|
rdoc_options: []
|
377
380
|
require_paths:
|
File without changes
|