dfl_rails_config 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dfl_rails_config/generators/version.rb +1 -1
- data/lib/generators/dfl_rails_config/all_generator.rb +2 -1
- data/lib/generators/dfl_rails_config/{install_generator.rb → basic_generator.rb} +24 -37
- data/lib/generators/dfl_rails_config/gems_generators_generator.rb +48 -0
- data/lib/generators/dfl_rails_config/home_generator.rb +34 -0
- data/lib/generators/dfl_rails_config/templates/application.js +2 -2
- data/lib/generators/dfl_rails_config/templates/bin/{_heroku_vars.sh → deploy/_heroku_vars.sh} +0 -0
- data/lib/generators/dfl_rails_config/templates/bin/{deploy_production → deploy/deploy_production} +0 -0
- data/lib/generators/dfl_rails_config/templates/bin/{deploy_staging → deploy/deploy_staging} +0 -0
- data/lib/generators/dfl_rails_config/templates/bin/{heroku_setup → deploy/heroku_setup} +0 -0
- data/lib/generators/dfl_rails_config/templates/bin/{heroku_setup_staging → deploy/heroku_setup_staging} +0 -0
- data/lib/generators/dfl_rails_config/templates/bundle/config +2 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{bootstrap_datepicker_rails.rb → basic/bootstrap_datepicker_rails.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{bootstrap_filestyle_rails.rb → basic/bootstrap_filestyle_rails.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{bootstrap_flash_messages.rb → basic/bootstrap_flash_messages.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{bootstrap_sass.rb → basic/bootstrap_sass.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{default_value_for.rb → basic/default_value_for.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{devise.rb → basic/devise.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{dotenv_rails.rb → basic/dotenv_rails.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{enum_help.rb → basic/enum_help.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{forgery.rb → basic/forgery.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{heroku.rb → basic/heroku.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{kaminari.rb → basic/kaminari.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{mysql.rb → basic/mysql.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{nprogress_rails.rb → basic/nprogress_rails.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{rails_i18n.rb → basic/rails_i18n.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{ransak.rb → basic/ransak.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{simple_form.rb → basic/simple_form.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{slim_rails.rb → basic/slim_rails.rb} +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/annotate.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/brakeman.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/bump.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/guard_livereload.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/overcommit.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/rails_best_practices.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/rubocop.rb +0 -0
- data/lib/generators/dfl_rails_config/templates/helpers/application_helper.rb +13 -0
- data/lib/generators/dfl_rails_config/templates/layouts/_navbar.html.slim +55 -0
- metadata +37 -33
- data/lib/generators/dfl_rails_config/navbar_generator.rb +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 609c757893941048baab183cb7373b4400694e71
|
|
4
|
+
data.tar.gz: 0614819ea90c4773af461e7d57cb9fc30e4157ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77589df2bb351808f2157b8a5cb7e86b8d9e6666afd4fa0258550a1f6078697cdc4883a88242eda6b939801b6df0c69ccb0bd9dbff59aad3e3efbe8adda051f9
|
|
7
|
+
data.tar.gz: 6346108de1d2ece8f8d5f00762c94f1bbb3c460ab760345fe5d4f644c07b938b4b3d7977bc16cd7a56e9a075bd6596c616ad36b8b172b685280fb412e15a2547
|
|
@@ -8,7 +8,8 @@ module DflRailsConfig
|
|
|
8
8
|
# Load all generators in load path
|
|
9
9
|
# https://github.com/rails/rails/blob/master/railties/lib/rails/generators.rb#L291-L303
|
|
10
10
|
Rails::Generators.lookup!
|
|
11
|
-
DflRailsConfig::Generators.constants.each do |const|
|
|
11
|
+
DflRailsConfig::Generators.constants.sort().each do |const|
|
|
12
|
+
puts const
|
|
12
13
|
generator_class = DflRailsConfig::Generators.const_get(const)
|
|
13
14
|
next if self.class == generator_class
|
|
14
15
|
if generator_class <=> Rails::Generators::Base
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
require 'rails/generators'
|
|
2
2
|
|
|
3
|
-
# TODO: Dividir generator em partes. Ex: DeployGenerator, GemsGenerator, DatabaseGenerator, etc.
|
|
4
3
|
module DflRailsConfig
|
|
5
4
|
module Generators
|
|
6
|
-
class
|
|
5
|
+
class BasicGenerator < Rails::Generators::Base
|
|
7
6
|
source_root File.expand_path('../templates', __FILE__)
|
|
8
7
|
|
|
9
8
|
def create_version_file
|
|
@@ -14,8 +13,8 @@ module DflRailsConfig
|
|
|
14
13
|
FILE
|
|
15
14
|
end
|
|
16
15
|
|
|
17
|
-
def
|
|
18
|
-
directory 'bin/', 'bin/'
|
|
16
|
+
def copy_deploy_files
|
|
17
|
+
directory 'bin/deploy', 'bin/'
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
def replace_deploy_vars
|
|
@@ -78,43 +77,11 @@ module DflRailsConfig
|
|
|
78
77
|
def include_gems_directory
|
|
79
78
|
string_to_append = "\nDir.glob('gemfiles/**/*.rb') { |f| eval_gemfile f }\n"
|
|
80
79
|
regex = /Dir.glob\('gemfiles\/\*\*\/\*.rb'\)/
|
|
81
|
-
directory 'gemfiles/', 'gemfiles/'
|
|
80
|
+
directory 'gemfiles/basic/', 'gemfiles/'
|
|
82
81
|
append_file 'Gemfile', string_to_append unless File.read('Gemfile') =~ regex
|
|
83
82
|
Bundler.with_clean_env {run "bundle install --without production"}
|
|
84
83
|
end
|
|
85
84
|
|
|
86
|
-
def overcommit_install
|
|
87
|
-
# run 'overcommit --install'
|
|
88
|
-
file_name = '.overcommit.yml'
|
|
89
|
-
remove_file file_name
|
|
90
|
-
copy_file file_name, file_name
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
def rspec_install
|
|
94
|
-
run 'rails generate rspec:install'
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
def devise_install
|
|
98
|
-
run 'rails generate devise:install'
|
|
99
|
-
|
|
100
|
-
#password length
|
|
101
|
-
old_config = 'config.password_length = 8..72'
|
|
102
|
-
new_config = 'config.password_length = Rails.env.production? ? 8..72 : 1..8'
|
|
103
|
-
gsub_file 'config/initializers/devise.rb', old_config, new_config
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
def kaminari_views
|
|
107
|
-
run 'rails g kaminari:views bootstrap3'
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
def simple_form_install
|
|
111
|
-
run 'rails generate simple_form:install --bootstrap'
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
def rspec_always_test_env
|
|
115
|
-
gsub_file 'spec/rails_helper.rb', "ENV['RAILS_ENV'] ||= 'test'", "ENV['RAILS_ENV'] = 'test'"
|
|
116
|
-
end
|
|
117
|
-
|
|
118
85
|
def i18n_pt_br
|
|
119
86
|
file_name = 'config/application.rb'
|
|
120
87
|
gsub_file file_name, '# config.i18n.default_locale = :de', "config.i18n.default_locale = :'pt-BR'"
|
|
@@ -150,6 +117,26 @@ module DflRailsConfig
|
|
|
150
117
|
copy_file file_name.split('/').last, file_name
|
|
151
118
|
end
|
|
152
119
|
|
|
120
|
+
def copy_scaffold_templates
|
|
121
|
+
directory 'slim/', 'lib/templates/slim/'
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
def copy_bundle_config
|
|
125
|
+
directory 'bundle/', '.bundle/'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
def inject_flash_messages
|
|
129
|
+
unless File.read('Gemfile') =~ /flash_messages/
|
|
130
|
+
inject_into_file 'app/views/layouts/application.html.erb', after: "<body>" do
|
|
131
|
+
"\n<%= flash_messages :close, :fade %>"
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def copy_application_helper
|
|
137
|
+
copy_file 'helpers/application_helper.rb', 'app/helpers/application_helper.rb'
|
|
138
|
+
end
|
|
139
|
+
|
|
153
140
|
protected
|
|
154
141
|
|
|
155
142
|
def application_name
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
require 'rails/generators'
|
|
2
|
+
|
|
3
|
+
# TODO: Dividir generator em partes. Ex: DeployGenerator, GemsGenerator, DatabaseGenerator, etc.
|
|
4
|
+
module DflRailsConfig
|
|
5
|
+
module Generators
|
|
6
|
+
class GemsGeneratorsGenerator < Rails::Generators::Base
|
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
8
|
+
|
|
9
|
+
def overcommit_install
|
|
10
|
+
# run 'overcommit --install'
|
|
11
|
+
file_name = '.overcommit.yml'
|
|
12
|
+
remove_file file_name
|
|
13
|
+
copy_file file_name, file_name
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def devise_install
|
|
17
|
+
run 'rails generate devise:install'
|
|
18
|
+
|
|
19
|
+
#password length
|
|
20
|
+
old_config = 'config.password_length = 8..72'
|
|
21
|
+
new_config = 'config.password_length = Rails.env.production? ? 8..72 : 1..8'
|
|
22
|
+
gsub_file 'config/initializers/devise.rb', old_config, new_config
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def kaminari_views
|
|
26
|
+
run 'rails g kaminari:views bootstrap3'
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def simple_form_install
|
|
30
|
+
run 'rails generate simple_form:install --bootstrap'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def rspec_gem
|
|
34
|
+
file_name = 'gemfiles/rspec.rb'
|
|
35
|
+
copy_file file_name, file_name
|
|
36
|
+
Bundler.with_clean_env {run "bundle install --without production"}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def rspec_install
|
|
40
|
+
run 'rails generate rspec:install'
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def rspec_always_test_env
|
|
44
|
+
gsub_file 'spec/rails_helper.rb', "ENV['RAILS_ENV'] ||= 'test'", "ENV['RAILS_ENV'] = 'test'"
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
require 'rails/generators'
|
|
2
|
+
|
|
3
|
+
module DflRailsConfig
|
|
4
|
+
module Generators
|
|
5
|
+
class HomeGenerator < Rails::Generators::Base
|
|
6
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
7
|
+
|
|
8
|
+
def create_welcome_controller
|
|
9
|
+
run 'rails generate controller welcome --no-helper --no-assets'
|
|
10
|
+
end
|
|
11
|
+
def create_welcome_index
|
|
12
|
+
create_file "app/views/welcome/index.html.slim", <<-FILE
|
|
13
|
+
h1 Welcome
|
|
14
|
+
FILE
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def change_root_path
|
|
18
|
+
gsub_file 'config/routes.rb', "# root 'welcome#index'", "root 'welcome#index'"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def copy_navbar
|
|
22
|
+
copy_file 'layouts/_navbar.html.slim', 'app/views/layouts/_navbar.html.slim'
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def require_navbar
|
|
26
|
+
unless File.read('Gemfile') =~ /layouts\/navbar/
|
|
27
|
+
inject_into_file 'app/views/layouts/application.html.erb', before: "<%= yield %>" do
|
|
28
|
+
"<%= render 'layouts/navbar' %>\n"
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
//= require jquery_ujs
|
|
15
15
|
//= require turbolinks
|
|
16
16
|
//= require bootstrap
|
|
17
|
-
//= require jquery.mask.min
|
|
18
|
-
//= require jquery.mask.definitions
|
|
19
17
|
//= require bootstrap-datepicker/core
|
|
20
18
|
//= require bootstrap-datepicker/locales/bootstrap-datepicker.pt-BR.js
|
|
21
19
|
//= require bootstrap-filestyle
|
|
22
20
|
//= require_tree .
|
|
21
|
+
//require jquery.mask.min
|
|
22
|
+
//require jquery.mask.definitions
|
|
23
23
|
|
|
24
24
|
$(document).on("ready page:load", function() {
|
|
25
25
|
$(".alert-dismissable" ).slideDown('fast').delay(3000).slideToggle('fast');
|
data/lib/generators/dfl_rails_config/templates/bin/{_heroku_vars.sh → deploy/_heroku_vars.sh}
RENAMED
|
File without changes
|
data/lib/generators/dfl_rails_config/templates/bin/{deploy_production → deploy/deploy_production}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/generators/dfl_rails_config/templates/gemfiles/{dotenv_rails.rb → basic/dotenv_rails.rb}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/generators/dfl_rails_config/templates/gemfiles/{rails_i18n.rb → basic/rails_i18n.rb}
RENAMED
|
File without changes
|
|
File without changes
|
data/lib/generators/dfl_rails_config/templates/gemfiles/{simple_form.rb → basic/simple_form.rb}
RENAMED
|
File without changes
|
data/lib/generators/dfl_rails_config/templates/gemfiles/{slim_rails.rb → basic/slim_rails.rb}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/generators/dfl_rails_config/templates/gemfiles/{tools → basic/tools}/guard_livereload.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module ApplicationHelper
|
|
2
|
+
def han(attribute)
|
|
3
|
+
controller.controller_name.classify.constantize.human_attribute_name attribute rescue attribute
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
def navbar_item_active(controller)
|
|
7
|
+
params[:controller] == controller ? 'active' : ''
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def number_to_currency_br(number)
|
|
11
|
+
number_to_currency(number, unit: 'R$ ', separator: ',', delimiter: '.')
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
nav.navbar.navbar-default
|
|
2
|
+
.container-fluid
|
|
3
|
+
.navbar-header
|
|
4
|
+
button.navbar-toggle.collapsed aria-expanded="false" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
|
|
5
|
+
span.sr-only Toggle navigation
|
|
6
|
+
span.icon-bar
|
|
7
|
+
span.icon-bar
|
|
8
|
+
span.icon-bar
|
|
9
|
+
a.navbar-brand href="#" Brand
|
|
10
|
+
#bs-example-navbar-collapse-1.collapse.navbar-collapse
|
|
11
|
+
ul.nav.navbar-nav
|
|
12
|
+
li.active
|
|
13
|
+
a href="#"
|
|
14
|
+
| Link
|
|
15
|
+
span.sr-only (current)
|
|
16
|
+
li
|
|
17
|
+
a href="#" Link
|
|
18
|
+
li.dropdown
|
|
19
|
+
a.dropdown-toggle aria-expanded="false" aria-haspopup="true" data-toggle="dropdown" href="#" role="button"
|
|
20
|
+
| Dropdown
|
|
21
|
+
span.caret
|
|
22
|
+
ul.dropdown-menu
|
|
23
|
+
li
|
|
24
|
+
a href="#" Action
|
|
25
|
+
li
|
|
26
|
+
a href="#" Another action
|
|
27
|
+
li
|
|
28
|
+
a href="#" Something else here
|
|
29
|
+
li.divider role="separator"
|
|
30
|
+
li
|
|
31
|
+
a href="#" Separated link
|
|
32
|
+
li.divider role="separator"
|
|
33
|
+
li
|
|
34
|
+
a href="#" One more separated link
|
|
35
|
+
form.navbar-form.navbar-left role="search"
|
|
36
|
+
.form-group
|
|
37
|
+
input.form-control placeholder="Search" type="text" /
|
|
38
|
+
button.btn.btn-default type="submit" Submit
|
|
39
|
+
ul.nav.navbar-nav.navbar-right
|
|
40
|
+
li
|
|
41
|
+
a href="#" Link
|
|
42
|
+
li.dropdown
|
|
43
|
+
a.dropdown-toggle aria-expanded="false" aria-haspopup="true" data-toggle="dropdown" href="#" role="button"
|
|
44
|
+
| Dropdown
|
|
45
|
+
span.caret
|
|
46
|
+
ul.dropdown-menu
|
|
47
|
+
li
|
|
48
|
+
a href="#" Action
|
|
49
|
+
li
|
|
50
|
+
a href="#" Another action
|
|
51
|
+
li
|
|
52
|
+
a href="#" Something else here
|
|
53
|
+
li.divider role="separator"
|
|
54
|
+
li
|
|
55
|
+
a href="#" Separated link
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dfl_rails_config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Fernando Lourusso
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -58,48 +58,52 @@ files:
|
|
|
58
58
|
- lib/dfl_rails_config/generators/version.rb
|
|
59
59
|
- lib/generators/dfl_rails_config/USAGE
|
|
60
60
|
- lib/generators/dfl_rails_config/all_generator.rb
|
|
61
|
-
- lib/generators/dfl_rails_config/
|
|
62
|
-
- lib/generators/dfl_rails_config/
|
|
61
|
+
- lib/generators/dfl_rails_config/basic_generator.rb
|
|
62
|
+
- lib/generators/dfl_rails_config/gems_generators_generator.rb
|
|
63
|
+
- lib/generators/dfl_rails_config/home_generator.rb
|
|
63
64
|
- lib/generators/dfl_rails_config/templates/.overcommit.yml
|
|
64
65
|
- lib/generators/dfl_rails_config/templates/.rubocop.yml
|
|
65
66
|
- lib/generators/dfl_rails_config/templates/application.css.scss
|
|
66
67
|
- lib/generators/dfl_rails_config/templates/application.js
|
|
67
|
-
- lib/generators/dfl_rails_config/templates/bin/_heroku_vars.sh
|
|
68
|
-
- lib/generators/dfl_rails_config/templates/bin/deploy_production
|
|
69
|
-
- lib/generators/dfl_rails_config/templates/bin/deploy_staging
|
|
70
|
-
- lib/generators/dfl_rails_config/templates/bin/heroku_setup
|
|
71
|
-
- lib/generators/dfl_rails_config/templates/bin/heroku_setup_staging
|
|
68
|
+
- lib/generators/dfl_rails_config/templates/bin/deploy/_heroku_vars.sh
|
|
69
|
+
- lib/generators/dfl_rails_config/templates/bin/deploy/deploy_production
|
|
70
|
+
- lib/generators/dfl_rails_config/templates/bin/deploy/deploy_staging
|
|
71
|
+
- lib/generators/dfl_rails_config/templates/bin/deploy/heroku_setup
|
|
72
|
+
- lib/generators/dfl_rails_config/templates/bin/deploy/heroku_setup_staging
|
|
72
73
|
- lib/generators/dfl_rails_config/templates/bin/rubocop-precommit
|
|
74
|
+
- lib/generators/dfl_rails_config/templates/bundle/config
|
|
73
75
|
- lib/generators/dfl_rails_config/templates/database.yml
|
|
74
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/bootstrap_datepicker_rails.rb
|
|
75
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/bootstrap_filestyle_rails.rb
|
|
76
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/bootstrap_flash_messages.rb
|
|
77
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/bootstrap_sass.rb
|
|
78
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/default_value_for.rb
|
|
79
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/devise.rb
|
|
80
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/dotenv_rails.rb
|
|
81
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/enum_help.rb
|
|
82
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/forgery.rb
|
|
76
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/bootstrap_datepicker_rails.rb
|
|
77
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/bootstrap_filestyle_rails.rb
|
|
78
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/bootstrap_flash_messages.rb
|
|
79
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/bootstrap_sass.rb
|
|
80
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/default_value_for.rb
|
|
81
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/devise.rb
|
|
82
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/dotenv_rails.rb
|
|
83
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/enum_help.rb
|
|
84
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/forgery.rb
|
|
85
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/heroku.rb
|
|
86
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/kaminari.rb
|
|
87
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/mysql.rb
|
|
88
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/nprogress_rails.rb
|
|
89
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/rails_i18n.rb
|
|
90
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/ransak.rb
|
|
91
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/simple_form.rb
|
|
92
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/slim_rails.rb
|
|
93
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/annotate.rb
|
|
94
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/brakeman.rb
|
|
95
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/bump.rb
|
|
96
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/guard_livereload.rb
|
|
97
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/overcommit.rb
|
|
98
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/rails_best_practices.rb
|
|
99
|
+
- lib/generators/dfl_rails_config/templates/gemfiles/basic/tools/rubocop.rb
|
|
83
100
|
- lib/generators/dfl_rails_config/templates/gemfiles/has_scope.rb
|
|
84
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/heroku.rb
|
|
85
101
|
- lib/generators/dfl_rails_config/templates/gemfiles/inherited_resources.rb
|
|
86
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/kaminari.rb
|
|
87
102
|
- lib/generators/dfl_rails_config/templates/gemfiles/mandrill_api.rb
|
|
88
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/mysql.rb
|
|
89
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/nprogress_rails.rb
|
|
90
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/rails_i18n.rb
|
|
91
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/ransak.rb
|
|
92
103
|
- lib/generators/dfl_rails_config/templates/gemfiles/responders.rb
|
|
93
104
|
- lib/generators/dfl_rails_config/templates/gemfiles/rspec.rb
|
|
94
|
-
- lib/generators/dfl_rails_config/templates/
|
|
95
|
-
- lib/generators/dfl_rails_config/templates/
|
|
96
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/annotate.rb
|
|
97
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/brakeman.rb
|
|
98
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/bump.rb
|
|
99
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/guard_livereload.rb
|
|
100
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/overcommit.rb
|
|
101
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/rails_best_practices.rb
|
|
102
|
-
- lib/generators/dfl_rails_config/templates/gemfiles/tools/rubocop.rb
|
|
105
|
+
- lib/generators/dfl_rails_config/templates/helpers/application_helper.rb
|
|
106
|
+
- lib/generators/dfl_rails_config/templates/layouts/_navbar.html.slim
|
|
103
107
|
- lib/generators/dfl_rails_config/templates/slim/scaffold/_form.html.slim
|
|
104
108
|
- lib/generators/dfl_rails_config/templates/slim/scaffold/edit.html.slim
|
|
105
109
|
- lib/generators/dfl_rails_config/templates/slim/scaffold/index.html.slim
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require 'rails/generators'
|
|
2
|
-
|
|
3
|
-
module DflRailsConfig
|
|
4
|
-
module Generators
|
|
5
|
-
class NavbarGenerator < Rails::Generators::Base
|
|
6
|
-
source_root File.expand_path('../templates', __FILE__)
|
|
7
|
-
|
|
8
|
-
def teste
|
|
9
|
-
puts 'Adicionar codigo para criar navbar'
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|