rails_app_generator 0.2.3 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/after_templates/addons/lograge/_.rb +22 -0
- data/after_templates/addons/lograge/app/controllers/home_controller.rb +9 -0
- data/after_templates/addons/lograge/app/views/home/index.html.erb +11 -0
- data/after_templates/addons/lograge/app/views/layouts/application.html.erb +21 -0
- data/after_templates/addons/phony_rails/_.rb +62 -0
- data/after_templates/addons/phony_rails/app/controllers/home_controller.rb +7 -0
- data/after_templates/addons/phony_rails/app/views/home/index.html.erb +46 -0
- data/after_templates/addons/phony_rails/app/views/layouts/application.html.erb +19 -0
- data/after_templates/addons/phony_rails/db/seeds.rb +16 -0
- data/after_templates/addons/public_suffix/_.rb +23 -0
- data/after_templates/addons/public_suffix/app/controllers/home_controller.rb +7 -0
- data/after_templates/addons/public_suffix/app/views/home/index.html.erb +29 -0
- data/after_templates/addons/public_suffix/app/views/layouts/application.html.erb +23 -0
- data/after_templates/application/printspeak/_.rb +21 -27
- data/after_templates/application/printspeak/app/assets/stylesheets/application.bootstrap.scss +1 -1
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/_global.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/_variables.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/components/_buttons.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/components/_navbar.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/sections/_contact.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/sections/_footer.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/sections/_masthead.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/page/sections/_pagehead.scss +52 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/sections/_portfolio.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/sections/_team.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/sections/_timeline.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/styles.scss +1 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/variables/_colors.scss +0 -0
- data/after_templates/application/printspeak/app/assets/stylesheets/{home → page}/variables/_typography.scss +0 -0
- data/after_templates/application/printspeak/app/controllers/application_controller.rb +41 -0
- data/after_templates/application/printspeak/app/controllers/home_controller.rb +3 -3
- data/after_templates/application/printspeak/app/controllers/page_controller.rb +13 -0
- data/after_templates/application/printspeak/app/views/home/_body_end.html.erb +45 -0
- data/after_templates/application/printspeak/app/views/home/_navbar.html.erb +14 -0
- data/after_templates/application/printspeak/app/views/home/index.html.erb +234 -283
- data/after_templates/application/printspeak/app/views/layouts/_body_end.html.erb +0 -0
- data/after_templates/application/printspeak/app/views/layouts/_footer.html.erb +2 -2
- data/after_templates/application/printspeak/app/views/layouts/_head.html.erb +0 -0
- data/after_templates/application/printspeak/app/views/layouts/application.html.erb +3 -3
- data/after_templates/application/printspeak/app/views/page/_navbar.html.erb +9 -0
- data/after_templates/application/printspeak/app/views/page/benefits.html.erb +28 -0
- data/after_templates/application/printspeak/app/views/page/privacy.html.erb +12 -0
- data/after_templates/application/printspeak/app/views/page/terms.html.erb +12 -0
- data/docs/last_run/app_generator_class.json +24 -0
- data/docs/last_run/app_generator_data.json +5 -2
- data/docs/last_run/rails_options_class.json +25 -1
- data/docs/last_run/rails_options_data.json +5 -2
- data/lib/rails_app_generator/addons/docker.rb +1 -0
- data/lib/rails_app_generator/addons/generators.rb +1 -0
- data/lib/rails_app_generator/addons/lograge.rb +3 -1
- data/lib/rails_app_generator/addons/phony_rails.rb +13 -0
- data/lib/rails_app_generator/addons/public_suffix.rb +13 -0
- data/lib/rails_app_generator/app_generator.rb +10 -2
- data/lib/rails_app_generator/rag_initializer.rb +14 -128
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/profiles/addons/lograge.json +12 -0
- data/profiles/addons/phony_rails.json +12 -0
- data/profiles/addons/public_suffix.json +12 -0
- data/profiles/application/printspeak.json +2 -1
- data/templates/addons/lograge/config/initializers/lograge.rb +9 -1
- data/templates/thor_task/profile/after_template.rb +17 -8
- metadata +44 -21
- data/after_templates/application/printspeak/app/views/layouts/_alerts.html.erb +0 -2
- data/after_templates/application/printspeak/app/views/page/_footer.html.erb +0 -184
- data/after_templates/application/printspeak/app/views/page/architecture.html.erb +0 -33
- data/after_templates/application/printspeak/app/views/page/blog.html.erb +0 -44
- data/after_templates/application/printspeak/app/views/page/page_controller.rb +0 -27
- data/after_templates/application/printspeak/app/views/page/readme.html.erb +0 -49
@@ -15,15 +15,15 @@
|
|
15
15
|
<%- else -%>
|
16
16
|
<%%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
17
17
|
<%- end -%>
|
18
|
+
<%%= render head_partial if head_partial %>
|
18
19
|
</head>
|
19
20
|
|
20
21
|
<body id="page-top">
|
21
|
-
<%%= render
|
22
|
+
<%%= render navbar_partial if navbar_partial %>
|
22
23
|
<main>
|
23
|
-
<%%= render 'layouts/alerts' %>
|
24
24
|
<%%= yield %>
|
25
25
|
</main>
|
26
|
-
<%%= render
|
26
|
+
<%%= render footer_partial if footer_partial %>
|
27
27
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
|
28
28
|
</body>
|
29
29
|
</html>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
|
2
|
+
<div class="container"><a class="navbar-brand" href="#page-top"><%= image_tag "printspeak-logo.svg", alt: "..." %></a><button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">Menu<i class="fas fa-bars ms-1"></i></button>
|
3
|
+
<div class="collapse navbar-collapse" id="navbarResponsive">
|
4
|
+
<ul class="navbar-nav text-uppercase ms-auto py-4 py-lg-0">
|
5
|
+
<li class="nav-item"><%= link_to 'Home', root_path, class: "nav-link" %></li>
|
6
|
+
</ul>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
</nav>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<header class="pagehead">
|
2
|
+
<div class="pagehead-subheading">Benefits</div>
|
3
|
+
</header>
|
4
|
+
|
5
|
+
<section class="page-section">
|
6
|
+
<div class="container">
|
7
|
+
<div class="text-center">
|
8
|
+
<h2 class="section-heading text-uppercase">More Leads/More Sales</h2>
|
9
|
+
<h3 class="section-subheading text-muted">Easy to say, and thanks to Print Speak, it’s becoming easier to do.</h3>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
|
13
|
+
<div class="row text-center">
|
14
|
+
<div class="col-md-4"><span class="fa-stack fa-4x"><i class="fas fa-circle fa-stack-2x text-primary"></i><i class="fas fa-shopping-cart fa-stack-1x fa-inverse"></i></span>
|
15
|
+
<h4 class="my-3">Its in the Details</h4>
|
16
|
+
<p class="text-muted">Ensuring smaller tasks that are often left behind get done, like estimate follow-ups and order acknowledgements, is the key to small but constant improvements</p>
|
17
|
+
</div>
|
18
|
+
<div class="col-md-4"><span class="fa-stack fa-4x"><i class="fas fa-circle fa-stack-2x text-primary"></i><i class="fas fa-laptop fa-stack-1x fa-inverse"></i></span>
|
19
|
+
<h4 class="my-3">One Percenters</h4>
|
20
|
+
<p class="text-muted">These “one-percenters” make a big difference to overall performance, which is why Print Speak subscribers benefit from the streamlined processes and convenient tools that allow them to outperform those that go it alone.</p>
|
21
|
+
</div>
|
22
|
+
<div class="col-md-4"><span class="fa-stack fa-4x"><i class="fas fa-circle fa-stack-2x text-primary"></i><i class="fas fa-lock fa-stack-1x fa-inverse"></i></span>
|
23
|
+
<h4 class="my-3">Conversion</h4>
|
24
|
+
<p class="text-muted">Remember, every little bit counts towards better conversion rates. You can count on Print Speak to help with the little things that matter most, converting opportunities into sales.</p>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</section>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<header class="pagehead">
|
2
|
+
<div class="pagehead-subheading">Privacy</div>
|
3
|
+
</header>
|
4
|
+
|
5
|
+
<section class="page-section">
|
6
|
+
<div class="container">
|
7
|
+
<div class="text-center">
|
8
|
+
<h2 class="section-heading text-uppercase">Blah</h2>
|
9
|
+
<h3 class="section-subheading text-muted">Blah Blah</h3>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</section>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<header class="pagehead">
|
2
|
+
<div class="pagehead-subheading">Terms and Conditions</div>
|
3
|
+
</header>
|
4
|
+
|
5
|
+
<section class="page-section">
|
6
|
+
<div class="container">
|
7
|
+
<div class="text-center">
|
8
|
+
<h2 class="section-heading text-uppercase">Blah</h2>
|
9
|
+
<h3 class="section-subheading text-muted">Blah Blah</h3>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</section>
|
@@ -44,6 +44,7 @@
|
|
44
44
|
"add_dotenv",
|
45
45
|
"add_rubocop",
|
46
46
|
"add_annotate",
|
47
|
+
"add_lograge",
|
47
48
|
"add_acts_as_list",
|
48
49
|
"add_browser",
|
49
50
|
"add_chartkick",
|
@@ -53,6 +54,8 @@
|
|
53
54
|
"add_httparty",
|
54
55
|
"add_honeybadger",
|
55
56
|
"add_mini_magick",
|
57
|
+
"add_phony_rails",
|
58
|
+
"add_public_suffix",
|
56
59
|
"add_rails_html_sanitizer",
|
57
60
|
"add_twilio_ruby"
|
58
61
|
],
|
@@ -365,6 +368,13 @@
|
|
365
368
|
"default": false,
|
366
369
|
"required": false
|
367
370
|
},
|
371
|
+
{
|
372
|
+
"name": "add_lograge",
|
373
|
+
"description": "Indicates when to generate add lograge",
|
374
|
+
"type": "boolean",
|
375
|
+
"default": false,
|
376
|
+
"required": false
|
377
|
+
},
|
368
378
|
{
|
369
379
|
"name": "add_acts_as_list",
|
370
380
|
"description": "Indicates when to generate add acts as list",
|
@@ -428,6 +438,20 @@
|
|
428
438
|
"default": false,
|
429
439
|
"required": false
|
430
440
|
},
|
441
|
+
{
|
442
|
+
"name": "add_phony_rails",
|
443
|
+
"description": "Indicates when to generate add phony rails",
|
444
|
+
"type": "boolean",
|
445
|
+
"default": false,
|
446
|
+
"required": false
|
447
|
+
},
|
448
|
+
{
|
449
|
+
"name": "add_public_suffix",
|
450
|
+
"description": "Indicates when to generate add public suffix",
|
451
|
+
"type": "boolean",
|
452
|
+
"default": false,
|
453
|
+
"required": false
|
454
|
+
},
|
431
455
|
{
|
432
456
|
"name": "add_rails_html_sanitizer",
|
433
457
|
"description": "Indicates when to generate add rails html sanitizer",
|
@@ -32,8 +32,9 @@
|
|
32
32
|
"test": "rspec",
|
33
33
|
"add_devise": false,
|
34
34
|
"add_dotenv": false,
|
35
|
-
"add_rubocop":
|
35
|
+
"add_rubocop": false,
|
36
36
|
"add_annotate": false,
|
37
|
+
"add_lograge": false,
|
37
38
|
"add_acts_as_list": false,
|
38
39
|
"add_browser": false,
|
39
40
|
"add_chartkick": false,
|
@@ -43,8 +44,10 @@
|
|
43
44
|
"add_httparty": false,
|
44
45
|
"add_honeybadger": false,
|
45
46
|
"add_mini_magick": false,
|
47
|
+
"add_phony_rails": true,
|
48
|
+
"add_public_suffix": false,
|
46
49
|
"add_rails_html_sanitizer": false,
|
47
50
|
"add_twilio_ruby": false,
|
48
|
-
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/
|
51
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/phony_rails/_.rb"
|
49
52
|
}
|
50
53
|
}
|
@@ -44,6 +44,7 @@
|
|
44
44
|
"add_dotenv",
|
45
45
|
"add_rubocop",
|
46
46
|
"add_annotate",
|
47
|
+
"add_lograge",
|
47
48
|
"add_acts_as_list",
|
48
49
|
"add_browser",
|
49
50
|
"add_chartkick",
|
@@ -53,6 +54,8 @@
|
|
53
54
|
"add_httparty",
|
54
55
|
"add_honeybadger",
|
55
56
|
"add_mini_magick",
|
57
|
+
"add_phony_rails",
|
58
|
+
"add_public_suffix",
|
56
59
|
"add_rails_html_sanitizer",
|
57
60
|
"add_twilio_ruby"
|
58
61
|
],
|
@@ -365,6 +368,13 @@
|
|
365
368
|
"default": false,
|
366
369
|
"required": false
|
367
370
|
},
|
371
|
+
{
|
372
|
+
"name": "add_lograge",
|
373
|
+
"description": "",
|
374
|
+
"type": "boolean",
|
375
|
+
"default": false,
|
376
|
+
"required": false
|
377
|
+
},
|
368
378
|
{
|
369
379
|
"name": "add_acts_as_list",
|
370
380
|
"description": "",
|
@@ -423,7 +433,21 @@
|
|
423
433
|
},
|
424
434
|
{
|
425
435
|
"name": "add_mini_magick",
|
426
|
-
"description": "
|
436
|
+
"description": "",
|
437
|
+
"type": "boolean",
|
438
|
+
"default": false,
|
439
|
+
"required": false
|
440
|
+
},
|
441
|
+
{
|
442
|
+
"name": "add_phony_rails",
|
443
|
+
"description": "",
|
444
|
+
"type": "boolean",
|
445
|
+
"default": false,
|
446
|
+
"required": false
|
447
|
+
},
|
448
|
+
{
|
449
|
+
"name": "add_public_suffix",
|
450
|
+
"description": "",
|
427
451
|
"type": "boolean",
|
428
452
|
"default": false,
|
429
453
|
"required": false
|
@@ -7,7 +7,7 @@
|
|
7
7
|
"quiet": false,
|
8
8
|
"skip": false,
|
9
9
|
"ruby": "/Users/davidcruwys/.asdf/installs/ruby/2.7.6/bin/ruby",
|
10
|
-
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/
|
10
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/phony_rails/_.rb",
|
11
11
|
"database": "sqlite3",
|
12
12
|
"skip_git": true,
|
13
13
|
"skip_keeps": false,
|
@@ -42,8 +42,9 @@
|
|
42
42
|
"test": "rspec",
|
43
43
|
"add_devise": false,
|
44
44
|
"add_dotenv": false,
|
45
|
-
"add_rubocop":
|
45
|
+
"add_rubocop": false,
|
46
46
|
"add_annotate": false,
|
47
|
+
"add_lograge": false,
|
47
48
|
"add_acts_as_list": false,
|
48
49
|
"add_browser": false,
|
49
50
|
"add_chartkick": false,
|
@@ -53,6 +54,8 @@
|
|
53
54
|
"add_httparty": false,
|
54
55
|
"add_honeybadger": false,
|
55
56
|
"add_mini_magick": false,
|
57
|
+
"add_phony_rails": true,
|
58
|
+
"add_public_suffix": false,
|
56
59
|
"add_rails_html_sanitizer": false,
|
57
60
|
"add_twilio_ruby": false
|
58
61
|
}
|
@@ -5,6 +5,7 @@ module RailsAppGenerator
|
|
5
5
|
module AddOns
|
6
6
|
# Add Rails Generator configuration to rails application
|
7
7
|
class Generators < RailsAppGenerator::Addon
|
8
|
+
# Requires Testing (NOT SURE IF THIS IS A GOOD APPROACH, need to look at other generator systems)
|
8
9
|
def apply
|
9
10
|
directory('lib/generators/rails/navigation', 'lib/generators/rails/navigation') if uses?(:views)
|
10
11
|
|
@@ -3,8 +3,10 @@
|
|
3
3
|
module RailsAppGenerator
|
4
4
|
# Custom add-ons for RailsAppGenerator
|
5
5
|
module AddOns
|
6
|
-
# Add
|
6
|
+
# Add Lograge to rails application
|
7
7
|
class Lograge < RailsAppGenerator::Addon
|
8
|
+
required_gem gem.version('lograge', '0.12.0', 'Tame Rails multi-line logging into a single line per request')
|
9
|
+
|
8
10
|
def apply
|
9
11
|
template 'config/initializers/lograge.rb'
|
10
12
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RailsAppGenerator
|
4
|
+
# Custom add-ons for RailsAppGenerator
|
5
|
+
module AddOns
|
6
|
+
# Add PhonyRails to rails application
|
7
|
+
class PhonyRails < RailsAppGenerator::Addon
|
8
|
+
required_gem gem.version('phony_rails', '0.15.0', 'This Gem adds useful methods to your Rails app to validate, display and save phone numbers.')
|
9
|
+
|
10
|
+
def apply; end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RailsAppGenerator
|
4
|
+
# Custom add-ons for RailsAppGenerator
|
5
|
+
module AddOns
|
6
|
+
# Add PublicSuffix to rails application
|
7
|
+
class PublicSuffix < RailsAppGenerator::Addon
|
8
|
+
required_gem gem.version('public_suffix', '5.0.0', 'PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains.')
|
9
|
+
|
10
|
+
def apply; end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -110,7 +110,6 @@ module RailsAppGenerator
|
|
110
110
|
# # invoke :copy_miscellaneous_files
|
111
111
|
# # invoke :setup_database
|
112
112
|
# # invoke :create_github_repo
|
113
|
-
# # binding.pry
|
114
113
|
# # invoke :generate_default
|
115
114
|
# # invoke :create_heroku_apps
|
116
115
|
# # invoke :generate_deployment_default
|
@@ -121,7 +120,6 @@ module RailsAppGenerator
|
|
121
120
|
|
122
121
|
# def xxx_generate_default
|
123
122
|
# puts 'xxx_generate_default'
|
124
|
-
# # binding.pry
|
125
123
|
# # run("spring stop > /dev/null 2>&1 || true")
|
126
124
|
# generate("rails_app_generator:foo")
|
127
125
|
# # generate("suspenders:runner")
|
@@ -245,6 +243,10 @@ module RailsAppGenerator
|
|
245
243
|
generate(:migration, name, *args)
|
246
244
|
end
|
247
245
|
|
246
|
+
def rubocop
|
247
|
+
run('rubocop -A --config .rubocop.yml')
|
248
|
+
end
|
249
|
+
|
248
250
|
def db_migrate
|
249
251
|
rails_command('db:migrate')
|
250
252
|
end
|
@@ -257,6 +259,12 @@ module RailsAppGenerator
|
|
257
259
|
generate(:stimulus, name, *args)
|
258
260
|
end
|
259
261
|
|
262
|
+
def bundle_install
|
263
|
+
Bundler.with_unbundled_env do
|
264
|
+
run('bundle install')
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
260
268
|
def bundle_add(name)
|
261
269
|
run("bundle add #{name}")
|
262
270
|
end
|
@@ -12,122 +12,6 @@ KConfig.configure do |config|
|
|
12
12
|
|
13
13
|
# rag.add_option :test , type: :string , default: 'rspec'
|
14
14
|
|
15
|
-
# # Gem Current Latest Requested Groups
|
16
|
-
# # aws-sdk
|
17
|
-
# # capistrano-bundler 1.6.0 2.1.0 ~> 1.2 development, test
|
18
|
-
# # capybara 3.33.0 3.37.1 = 3.33.0 development, test
|
19
|
-
# # clamby 1.6.6 1.6.8 = 1.6.6 default
|
20
|
-
# # createsend 5.1.1 6.0.0 ~> 5.1 default
|
21
|
-
# # database_cleaner 1.7.0 2.0.1 = 1.7.0 development, test
|
22
|
-
# # erubi 1.10.0 1.11.0
|
23
|
-
# # factory_bot 5.2.0 6.2.1
|
24
|
-
# # factory_bot_rails 5.2.0 6.2.0 = 5.2.0 development, test
|
25
|
-
# # guard-bundler 2.2.1 3.0.0 = 2.2.1 development, test
|
26
|
-
# # guard-rubocop 1.4.0 1.5.0 = 1.4.0 development, test
|
27
|
-
# # http-accept 1.7.0 2.2.0
|
28
|
-
# # net-ssh 6.1.0 7.0.1
|
29
|
-
# # oauth2 1.4.10 2.0.6
|
30
|
-
# # omniauth-oauth2 1.7.3 1.8.0
|
31
|
-
# # paper_trail 10.3.1 12.3.0 ~> 10.3 default
|
32
|
-
# # pg 0.21.0 1.4.2 ~> 0.20 default
|
33
|
-
# # pg_search 2.3.0 2.3.6 ~> 2.0 default
|
34
|
-
# # pry 0.13.1 0.14.1
|
35
|
-
# # public_suffix 2.0.5 5.0.0 ~> 2.0 default
|
36
|
-
# # pusher 1.4.3 2.0.2 ~> 1.3 default
|
37
|
-
# # rack-mini-profiler 0.10.7 3.0.0 ~> 0.10 default
|
38
|
-
# # rack-test 0.6.3 2.0.2
|
39
|
-
# # rails 5.0.7.2 7.0.3.1 = 5.0.7.2 default
|
40
|
-
# # railties 5.0.7.2 7.0.3.1
|
41
|
-
# # ransack 1.8.10 3.2.1 ~> 1.8 default
|
42
|
-
# # redis 3.3.5 4.7.1 ~> 3.3 default
|
43
|
-
# # redis-store 1.6.0 1.9.1
|
44
|
-
# # regexp_parser 1.8.2 2.5.0
|
45
|
-
# # rspec 3.10.0 3.11.0
|
46
|
-
# # rspec-core 3.10.1 3.11.0 = 3.10.1 development, test
|
47
|
-
# # rspec-expectations 3.10.1 3.11.0 = 3.10.1 development, test
|
48
|
-
# # rspec-mocks 3.10.2 3.11.1 = 3.10.2 development, test
|
49
|
-
# # rspec-rails 4.1.2 5.1.2 = 4.1.2 development, test
|
50
|
-
# # rspec-support 3.10.2 3.11.0 = 3.10.2 development, test
|
51
|
-
# # rubyzip 1.3.0 2.3.2 ~> 1.3 default
|
52
|
-
# # scenic 1.5.4 1.6.0 = 1.5.4 default
|
53
|
-
# # scout_apm 4.1.2 5.2.0 ~> 4.1 default
|
54
|
-
# # selenium-webdriver 3.142.7 4.3.0 = 3.142.7 development, test
|
55
|
-
# # shoulda-matchers 4.0.1 5.1.0 = 4.0.1 development, test
|
56
|
-
# # sidekiq 4.2.10 6.5.1 ~> 4.2 default
|
57
|
-
# # sidekiq-pool 1.9.3 2.0.1 ~> 1.8 default
|
58
|
-
# # sidekiq-unique-jobs 6.0.25 7.1.27 ~> 6.0 default
|
59
|
-
# # spring 2.1.1 4.0.0 ~> 2.0 development, test
|
60
|
-
# # sprockets 3.7.2 4.1.1 ~> 3.7 default
|
61
|
-
# # sprockets-rails 3.2.2 3.4.2
|
62
|
-
# # timecop 0.8.1 0.9.5 = 0.8.1 development, test
|
63
|
-
# # tzinfo 1.2.10 2.0.5
|
64
|
-
# # uglifier 3.2.0 4.2.0 ~> 3.2 default
|
65
|
-
# # unicorn 5.8.0 6.1.0 ~> 5.3 default
|
66
|
-
# # webmock 3.13.0 3.16.0 = 3.13.0 development, test
|
67
|
-
# # websocket-driver 0.6.5 0.7.5
|
68
|
-
|
69
|
-
# # acts_as_list 0.9.19 1.0.4 ~> 0.9 default
|
70
|
-
# # arel 7.1.4 9.0.0
|
71
|
-
# # bigdecimal 1.4.4 3.1.2 ~> 1.4 development, test
|
72
|
-
# # binding_of_caller 0.8.0 1.0.0 ~> 0.8 default
|
73
|
-
# # browser 2.7.1 5.3.1 ~> 2.3 default
|
74
|
-
# # capistrano-bundler 1.6.0 2.1.0 ~> 1.2 development, test
|
75
|
-
# # capybara 3.33.0 3.37.1 = 3.33.0 development, test
|
76
|
-
# # chartkick 2.3.5 4.2.0 ~> 2.3 default
|
77
|
-
# # childprocess 3.0.0 4.1.0
|
78
|
-
# # clamby 1.6.6 1.6.8 = 1.6.6 default
|
79
|
-
# # createsend 5.1.1 6.0.0 ~> 5.1 default
|
80
|
-
# # database_cleaner 1.7.0 2.0.1 = 1.7.0 development, test
|
81
|
-
# # factory_bot 5.2.0 6.2.1
|
82
|
-
# # factory_bot_rails 5.2.0 6.2.0 = 5.2.0 development, test
|
83
|
-
# # faker 1.9.6 2.22.0 ~> 1.7 default
|
84
|
-
# # groupdate 4.3.0 6.1.0 ~> 4.1 default
|
85
|
-
# # guard-bundler 2.2.1 3.0.0 = 2.2.1 development, test
|
86
|
-
# # guard-rubocop 1.4.0 1.5.0 = 1.4.0 development, test
|
87
|
-
# # hashie 3.6.0 5.0.0
|
88
|
-
# # http-accept 1.7.0 2.1.1
|
89
|
-
# # k_log 0.0.18 0.0.33 = 0.0.18 development, test
|
90
|
-
# # net-ssh 6.1.0 7.0.1
|
91
|
-
# # oauth2 1.4.10 2.0.6
|
92
|
-
# # omniauth-oauth2 1.7.3 1.8.0
|
93
|
-
# # paper_trail 10.3.1 12.3.0 ~> 10.3 default
|
94
|
-
# # pg 0.21.0 1.4.2 ~> 0.20 default
|
95
|
-
# # pg_search 2.3.0 2.3.6 ~> 2.0 default
|
96
|
-
# # pry 0.13.1 0.14.1
|
97
|
-
# # public_suffix 2.0.5 5.0.0 ~> 2.0 default
|
98
|
-
# # pusher 1.4.3 2.0.2 ~> 1.3 default
|
99
|
-
# # rack-mini-profiler 0.10.7 3.0.0 ~> 0.10 default
|
100
|
-
# # rack-test 0.6.3 2.0.2
|
101
|
-
# # rails 5.0.7.2 7.0.3.1 = 5.0.7.2 default
|
102
|
-
# # railties 5.0.7.2 7.0.3.1
|
103
|
-
# # ransack 1.8.10 3.2.1 ~> 1.8 default
|
104
|
-
# # redis 3.3.5 4.7.1 ~> 3.3 default
|
105
|
-
# # redis-store 1.6.0 1.9.1
|
106
|
-
# # regexp_parser 1.8.2 2.5.0
|
107
|
-
# # rspec 3.10.0 3.11.0
|
108
|
-
# # rspec-core 3.10.1 3.11.0 = 3.10.1 development, test
|
109
|
-
# # rspec-expectations 3.10.1 3.11.0 = 3.10.1 development, test
|
110
|
-
# # rspec-mocks 3.10.2 3.11.1 = 3.10.2 development, test
|
111
|
-
# # rspec-rails 4.1.2 5.1.2 = 4.1.2 development, test
|
112
|
-
# # rspec-support 3.10.2 3.11.0 = 3.10.2 development, test
|
113
|
-
# # rubyzip 1.3.0 2.3.2 ~> 1.3 default
|
114
|
-
# # scenic 1.5.4 1.6.0 = 1.5.4 default
|
115
|
-
# # scout_apm 4.1.2 5.2.0 ~> 4.1 default
|
116
|
-
# # selenium-webdriver 3.142.7 4.3.0 = 3.142.7 development, test
|
117
|
-
# # shoulda-matchers 4.0.1 5.1.0 = 4.0.1 development, test
|
118
|
-
# # sidekiq 4.2.10 6.5.1 ~> 4.2 default
|
119
|
-
# # sidekiq-pool 1.9.3 2.0.1 ~> 1.8 default
|
120
|
-
# # sidekiq-unique-jobs 6.0.25 7.1.27 ~> 6.0 default
|
121
|
-
# # spring 2.1.1 4.0.0 ~> 2.0 development, test
|
122
|
-
# # sprockets 3.7.2 4.1.1 ~> 3.7 default
|
123
|
-
# # sprockets-rails 3.2.2 3.4.2
|
124
|
-
# # timecop 0.8.1 0.9.5 = 0.8.1 development, test
|
125
|
-
# # tzinfo 1.2.10 2.0.5
|
126
|
-
# # uglifier 3.2.0 4.2.0 ~> 3.2 default
|
127
|
-
# # unicorn 5.8.0 6.1.0 ~> 5.3 default
|
128
|
-
# # webmock 3.13.0 3.14.0 = 3.13.0 development, test
|
129
|
-
# # websocket-driver 0.6.5 0.7.5
|
130
|
-
|
131
15
|
# rag.add_option :skip_namespace , type: :boolean , default: false , description: "Skip namespace (affects only isolated engines)"
|
132
16
|
# rag.add_option :skip_collision_check , type: :boolean , default: false , description: "Skip collision check"
|
133
17
|
rag.add_option :force , type: :boolean , default: nil , description: 'Overwrite files that already exist'
|
@@ -211,7 +95,7 @@ KConfig.configure do |config|
|
|
211
95
|
# rag.add_option :add_continuous_integration , type: :boolean, default: false
|
212
96
|
# rag.add_option :add_high_voltage , type: :boolean, default: false
|
213
97
|
# rag.add_option :add_generators , type: :boolean, default: false
|
214
|
-
|
98
|
+
rag.add_option :add_lograge , type: :boolean, default: false
|
215
99
|
# rag.add_option :add_pundit , type: :boolean, default: false
|
216
100
|
# rag.add_option :add_services , type: :boolean, default: false
|
217
101
|
# rag.add_option :add_sidekiq , type: :boolean, default: false
|
@@ -222,17 +106,19 @@ KConfig.configure do |config|
|
|
222
106
|
# rag.add_option :add_shoulda , type: :boolean, default: false
|
223
107
|
|
224
108
|
# NEW GEM ADDONS
|
225
|
-
rag.add_option :add_acts_as_list
|
226
|
-
rag.add_option :add_browser
|
227
|
-
rag.add_option :add_chartkick
|
228
|
-
rag.add_option :add_faker
|
229
|
-
rag.add_option :add_groupdate
|
230
|
-
rag.add_option :add_hexapdf
|
231
|
-
rag.add_option :add_httparty
|
232
|
-
rag.add_option :add_honeybadger
|
233
|
-
rag.add_option :add_mini_magick
|
234
|
-
rag.add_option :
|
235
|
-
rag.add_option :
|
109
|
+
rag.add_option :add_acts_as_list , type: :boolean, default: false
|
110
|
+
rag.add_option :add_browser , type: :boolean, default: false
|
111
|
+
rag.add_option :add_chartkick , type: :boolean, default: false
|
112
|
+
rag.add_option :add_faker , type: :boolean, default: false
|
113
|
+
rag.add_option :add_groupdate , type: :boolean, default: false
|
114
|
+
rag.add_option :add_hexapdf , type: :boolean, default: false
|
115
|
+
rag.add_option :add_httparty , type: :boolean, default: false
|
116
|
+
rag.add_option :add_honeybadger , type: :boolean, default: false
|
117
|
+
rag.add_option :add_mini_magick , type: :boolean, default: false
|
118
|
+
rag.add_option :add_phony_rails , type: :boolean, default: false
|
119
|
+
rag.add_option :add_public_suffix , type: :boolean, default: false
|
120
|
+
rag.add_option :add_rails_html_sanitizer , type: :boolean, default: false
|
121
|
+
rag.add_option :add_twilio_ruby , type: :boolean, default: false
|
236
122
|
end
|
237
123
|
|
238
124
|
# Make sure that RailsOptions reflect the options available from Railties
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "rails_app_generator",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.6",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "rails_app_generator",
|
9
|
-
"version": "0.2.
|
9
|
+
"version": "0.2.6",
|
10
10
|
"dependencies": {
|
11
11
|
"daisyui": "^2.20.0"
|
12
12
|
},
|
data/package.json
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "lograge",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/addons"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_git": true,
|
8
|
+
"skip_test": true,
|
9
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/lograge/_.rb",
|
10
|
+
"add_lograge": true
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "phony_rails",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/addons"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_git": true,
|
8
|
+
"skip_test": true,
|
9
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/phony_rails/_.rb",
|
10
|
+
"add_phony_rails": true
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "public_suffix",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/addons"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_git": true,
|
8
|
+
"skip_test": true,
|
9
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/public_suffix/_.rb",
|
10
|
+
"add_public_suffix": true
|
11
|
+
}
|
12
|
+
}
|
@@ -2,4 +2,12 @@
|
|
2
2
|
|
3
3
|
Rails.application.configure do
|
4
4
|
config.lograge.enabled = true
|
5
|
-
|
5
|
+
|
6
|
+
# config.lograge.keep_original_rails_log = true
|
7
|
+
|
8
|
+
# config.lograge.custom_options = lambda do |event|
|
9
|
+
# { time1: Time.now, time2: event.time }
|
10
|
+
# end
|
11
|
+
|
12
|
+
# config.lograge.logger = ActiveSupport::Logger.new "#{Rails.root}/log/lograge_#{Rails.env}.log"
|
13
|
+
end
|