mr_common 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/mr_common/views/USAGE +12 -0
- data/lib/generators/mr_common/views/templates/mr_common/registration_mailer/confirmation.html.erb +4 -0
- data/lib/generators/mr_common/views/templates/mr_common/registration_mailer/confirmation.text.erb +6 -0
- data/lib/generators/mr_common/views/templates/mr_common/registrations/public/new.html.erb +6 -0
- data/lib/generators/mr_common/views/templates/mr_common/registrations/success/index.html.erb +2 -0
- data/lib/generators/mr_common/views/views_generator.rb +25 -0
- data/lib/mr_common/version.rb +1 -1
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4a4a712e4796b70a13f856f55a3d840119ade02c2c2b94f8e3f5c11758a65d
|
4
|
+
data.tar.gz: 4b260c79d0dc81f9efbde8c4ff168802db0ca042680bedeaed2e7c96558d656f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cb3d5d4e13c135c87c9534dcc3f9592f5ab87215a42950b42b0dca67fac9d324e159ce4a96135910ff9ddb9998a12a89206cd76cc481210b433c2f3155eaec5
|
7
|
+
data.tar.gz: 6d6c5275d16e58342b4be91603628c61f8b385a7d1642a67096196863727ae0e789f67451b2f9f5ded12658a005bb80f35d00465968d79ba13869934b3726d9e
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Description:
|
2
|
+
Copy bare-bones view templates for overriding the ugly
|
3
|
+
defaults that come with the engine.
|
4
|
+
|
5
|
+
Example:
|
6
|
+
rails generate mr_common:views
|
7
|
+
|
8
|
+
This will create view overrides for customization at:
|
9
|
+
app/views/mr_common/registrations/public/new.html.erb
|
10
|
+
app/views/mr_common/registrations/success/index.html.erb
|
11
|
+
app/views/mr_common/registration_mailer/confirmation.html.erb
|
12
|
+
app/views/mr_common/registration_mailer/confirmation.text.erb
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module MrCommon
|
4
|
+
class ViewsGenerator < Rails::Generators::Base
|
5
|
+
desc "Copy bare-bones view templates for overriding the ugly
|
6
|
+
defaults that come with the engine."
|
7
|
+
|
8
|
+
source_root File.expand_path("templates", __dir__)
|
9
|
+
|
10
|
+
def copy_skeleton_views
|
11
|
+
template_paths.each do |file|
|
12
|
+
copy_file file, "app/views/#{file}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def template_paths
|
19
|
+
%w( mr_common/registrations/public/new.html.erb
|
20
|
+
mr_common/registrations/success/index.html.erb
|
21
|
+
mr_common/registration_mailer/confirmation.html.erb
|
22
|
+
mr_common/registration_mailer/confirmation.text.erb )
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/mr_common/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mr_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Smedstad
|
@@ -234,6 +234,12 @@ files:
|
|
234
234
|
- db/migrate/20190110202347_create_reminders.rb
|
235
235
|
- db/migrate/20190122185500_create_registrations.rb
|
236
236
|
- db/migrate/20190124160301_add_include_to_reminders.rb
|
237
|
+
- lib/generators/mr_common/views/USAGE
|
238
|
+
- lib/generators/mr_common/views/templates/mr_common/registration_mailer/confirmation.html.erb
|
239
|
+
- lib/generators/mr_common/views/templates/mr_common/registration_mailer/confirmation.text.erb
|
240
|
+
- lib/generators/mr_common/views/templates/mr_common/registrations/public/new.html.erb
|
241
|
+
- lib/generators/mr_common/views/templates/mr_common/registrations/success/index.html.erb
|
242
|
+
- lib/generators/mr_common/views/views_generator.rb
|
237
243
|
- lib/mr_common.rb
|
238
244
|
- lib/mr_common/engine.rb
|
239
245
|
- lib/mr_common/version.rb
|