cybele 1.9.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.fasterer.yml +5 -0
- data/.flayignore +3 -0
- data/.gitignore +4 -1
- data/.haml-lint.yml +5 -0
- data/.poper.yml +7 -0
- data/.rubocop.yml +59 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +458 -2
- data/Gemfile +2 -0
- data/README.md +16 -20
- data/Rakefile +1 -1
- data/USAGE +12 -0
- data/bin/build_app +18 -0
- data/bin/build_gem +20 -0
- data/bin/cybele +21 -6
- data/config.reek +29 -0
- data/cybele.gemspec +14 -6
- data/example.pronto.yml +8 -0
- data/lib/cybele.rb +33 -0
- data/lib/cybele/app_builder.rb +43 -510
- data/lib/cybele/generators/app_generator.rb +240 -180
- data/lib/cybele/helpers.rb +104 -0
- data/lib/cybele/helpers/app_files/assets_files.rb +43 -0
- data/lib/cybele/helpers/app_files/controller_files.rb +23 -0
- data/lib/cybele/helpers/app_files/helper_files.rb +15 -0
- data/lib/cybele/helpers/app_files/mailer_files.rb +15 -0
- data/lib/cybele/helpers/app_files/model_files.rb +16 -0
- data/lib/cybele/helpers/app_files/vendor_files.rb +14 -0
- data/lib/cybele/helpers/app_files/view_files.rb +62 -0
- data/lib/cybele/helpers/app_files/view_gems.rb +20 -0
- data/lib/cybele/helpers/audited.rb +12 -0
- data/lib/cybele/helpers/basic_authentication.rb +44 -0
- data/lib/cybele/helpers/devise.rb +67 -0
- data/lib/cybele/helpers/docker.rb +53 -0
- data/lib/cybele/helpers/dotenv.rb +23 -0
- data/lib/cybele/helpers/error_pages.rb +37 -0
- data/lib/cybele/helpers/general.rb +87 -0
- data/lib/cybele/helpers/haml.rb +18 -0
- data/lib/cybele/helpers/locale_language.rb +23 -0
- data/lib/cybele/helpers/mailer.rb +25 -0
- data/lib/cybele/helpers/paperclip.rb +33 -0
- data/lib/cybele/helpers/pronto.rb +34 -0
- data/lib/cybele/helpers/recipient_interceptor.rb +18 -0
- data/lib/cybele/helpers/responders.rb +36 -0
- data/lib/cybele/helpers/routes.rb +18 -0
- data/lib/cybele/helpers/show_for.rb +20 -0
- data/lib/cybele/helpers/sidekiq.rb +37 -0
- data/lib/cybele/helpers/simple_form.rb +19 -0
- data/lib/cybele/helpers/staging.rb +15 -0
- data/lib/cybele/version.rb +5 -3
- data/spec/features/cli_help_spec.rb +42 -0
- data/spec/features/git_and_git_flow_spec.rb +30 -0
- data/spec/features/new_default_project_spec.rb +465 -0
- data/spec/features/new_not_default_project_spec.rb +412 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/config_test_helper.rb +36 -0
- data/spec/support/cybele_test_helpers.rb +115 -0
- data/spec/support/devise_test_helper.rb +45 -0
- data/spec/support/dotenv_test_helper.rb +31 -0
- data/spec/support/error_pages_test_helper.rb +24 -0
- data/spec/support/force_ssl_test_helper.rb +24 -0
- data/spec/support/git_ignore_test_helper.rb +10 -0
- data/spec/support/locale_language_test_helper.rb +43 -0
- data/spec/support/mail_test_helpers.rb +15 -0
- data/spec/support/paperclip_test_helper.rb +38 -0
- data/spec/support/pronto_test_helpers.rb +41 -0
- data/spec/support/responder_test_helper.rb +32 -0
- data/templates/Gemfile.erb +59 -0
- data/templates/README.md.erb +23 -20
- data/templates/VERSION.txt +1 -0
- data/templates/app_files/app/assets/javascripts/application.js +81 -0
- data/templates/app_files/app/assets/javascripts/hq/application.js +80 -0
- data/templates/{app/assets/stylesheets/application.css.sass → app_files/app/assets/stylesheets/application.sass} +27 -16
- data/templates/app_files/app/assets/stylesheets/hq/_sidebar.sass +89 -0
- data/templates/app_files/app/assets/stylesheets/hq/application.sass +74 -0
- data/templates/app_files/app/controllers/concerns/activatable.rb +16 -0
- data/templates/{app → app_files/app}/controllers/hq/admins_controller.rb +7 -10
- data/templates/app_files/app/controllers/hq/application_controller.rb +13 -0
- data/templates/{app → app_files/app}/controllers/hq/audits_controller.rb +3 -3
- data/templates/app_files/app/controllers/hq/dashboard_controller.rb +7 -0
- data/templates/{app → app_files/app}/controllers/hq/passwords_controller.rb +3 -2
- data/templates/app_files/app/controllers/hq/registrations_controller.rb +22 -0
- data/templates/{app → app_files/app}/controllers/hq/sessions_controller.rb +5 -4
- data/templates/{app → app_files/app}/controllers/hq/users_controller.rb +7 -10
- data/templates/app_files/app/controllers/user/application_controller.rb +18 -0
- data/templates/app_files/app/controllers/user/dashboard_controller.rb +7 -0
- data/templates/{app → app_files/app}/controllers/user/passwords_controller.rb +3 -4
- data/templates/app_files/app/controllers/user/profile_controller.rb +30 -0
- data/templates/{app → app_files/app}/controllers/user/registrations_controller.rb +7 -8
- data/templates/{app → app_files/app}/controllers/user/sessions_controller.rb +5 -6
- data/templates/app_files/app/controllers/welcome_controller.rb +9 -0
- data/templates/app_files/app/helpers/application_helper.rb.erb +61 -0
- data/templates/app_files/app/mailers/admin_mailer.rb +10 -0
- data/templates/app_files/app/mailers/application_mailer.rb +6 -0
- data/templates/app_files/app/mailers/user_mailer.rb +10 -0
- data/templates/app_files/app/models/admin.rb +42 -0
- data/templates/app_files/app/models/audit.rb +4 -0
- data/templates/app_files/app/models/concerns/password_creatable.rb +39 -0
- data/templates/app_files/app/models/user.rb +43 -0
- data/templates/app_files/app/vendor/assets/javascripts/footable.min.js +10 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/jquery.datetimepicker.js +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/jquery.maskedinput.min.js +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/nprogress.js +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/trix.js +0 -0
- data/templates/app_files/app/vendor/assets/stylesheets/footable.bootstrap.min.css +1 -0
- data/templates/{vendor → app_files/app/vendor}/assets/stylesheets/jquery.datetimepicker.css +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/stylesheets/nprogress.css +0 -1
- data/templates/{vendor → app_files/app/vendor}/assets/stylesheets/trix.css +0 -0
- data/templates/app_files/app/views/admin_mailer/login_info.html.haml +13 -0
- data/templates/app_files/app/views/hq/admins/_admin.html.haml +38 -0
- data/templates/{app → app_files/app}/views/hq/admins/_blank.html.haml +3 -3
- data/templates/app_files/app/views/hq/admins/_filters.html.haml +27 -0
- data/templates/app_files/app/views/hq/admins/_form.html.haml +17 -0
- data/templates/app_files/app/views/hq/admins/_list.html.haml +20 -0
- data/templates/app_files/app/views/hq/admins/edit.html.haml +3 -0
- data/templates/app_files/app/views/hq/admins/index.html.haml +18 -0
- data/templates/{app → app_files/app}/views/hq/admins/new.html.haml +2 -2
- data/templates/{app → app_files/app}/views/hq/admins/show.html.haml +8 -8
- data/templates/app_files/app/views/hq/audits/_filters.html.haml +48 -0
- data/templates/app_files/app/views/hq/audits/_list.html.haml +47 -0
- data/templates/{app → app_files/app}/views/hq/audits/index.html.haml +3 -3
- data/templates/app_files/app/views/hq/audits/show.html.haml +8 -0
- data/templates/app_files/app/views/hq/dashboard/index.html.haml +13 -0
- data/templates/app_files/app/views/hq/passwords/edit.html.haml +24 -0
- data/templates/app_files/app/views/hq/passwords/new.html.haml +21 -0
- data/templates/app_files/app/views/hq/registrations/edit.html.haml +30 -0
- data/templates/app_files/app/views/hq/sessions/new.html.haml +20 -0
- data/templates/{app → app_files/app}/views/hq/users/_blank.html.haml +3 -3
- data/templates/app_files/app/views/hq/users/_filters.html.haml +26 -0
- data/templates/app_files/app/views/hq/users/_form.html.haml +17 -0
- data/templates/app_files/app/views/hq/users/_list.html.haml +21 -0
- data/templates/app_files/app/views/hq/users/_user.html.haml +38 -0
- data/templates/app_files/app/views/hq/users/edit.html.haml +3 -0
- data/templates/app_files/app/views/hq/users/index.html.haml +18 -0
- data/templates/{app → app_files/app}/views/hq/users/new.html.haml +2 -2
- data/templates/{app → app_files/app}/views/hq/users/show.html.haml +8 -9
- data/templates/app_files/app/views/layouts/application.html.haml.erb +33 -0
- data/templates/app_files/app/views/layouts/hq/application.html.haml.erb +57 -0
- data/templates/app_files/app/views/layouts/hq/login.html.haml.erb +47 -0
- data/templates/app_files/app/views/layouts/hq/partials/_breadcrumb.html.haml +3 -0
- data/templates/app_files/app/views/layouts/hq/partials/_dock.html.haml +95 -0
- data/templates/{app/views/layouts/hq/partials/_footer.html.haml.erb → app_files/app/views/layouts/hq/partials/_footer.html.haml} +0 -0
- data/templates/app_files/app/views/layouts/hq/partials/_navbar.html.haml +35 -0
- data/templates/app_files/app/views/layouts/hq/partials/_toolbar.html.haml +3 -0
- data/templates/{app/views/layouts/hq/partials/_trackers.html.haml.erb → app_files/app/views/layouts/hq/partials/_trackers.html.haml} +0 -0
- data/templates/app_files/app/views/layouts/mailer.html.haml.erb +255 -0
- data/templates/app_files/app/views/layouts/partials/_messages.html.haml +11 -0
- data/templates/app_files/app/views/layouts/partials/_navbar.html.haml.erb +37 -0
- data/templates/{app/views/layouts/partials/_footer.html.haml.erb → app_files/app/views/layouts/partials/_warnings.html.haml} +0 -0
- data/templates/app_files/app/views/user/dashboard/index.html.haml +11 -0
- data/templates/app_files/app/views/user/passwords/edit.html.haml +18 -0
- data/templates/app_files/app/views/user/passwords/new.html.haml +18 -0
- data/templates/{app → app_files/app}/views/user/profile/_form.html.haml +5 -5
- data/templates/app_files/app/views/user/profile/edit.html.haml +3 -0
- data/templates/app_files/app/views/user/profile/show.html.haml +18 -0
- data/templates/app_files/app/views/user/registrations/edit.html.haml +30 -0
- data/templates/app_files/app/views/user/registrations/new.html.haml +33 -0
- data/templates/app_files/app/views/user/sessions/new.html.haml +15 -0
- data/templates/app_files/app/views/user_mailer/login_info.html.haml +13 -0
- data/templates/app_files/app/views/welcome/about.html.haml +3 -0
- data/templates/app_files/app/views/welcome/contact.html.haml +3 -0
- data/templates/app_files/app/views/welcome/index.html.haml.erb +19 -0
- data/templates/app_files/bootstrap_Gemfile.erb +4 -0
- data/templates/app_files/breadcrumb_Gemfile.erb +4 -0
- data/templates/app_files/jquery_Gemfile.erb +4 -0
- data/templates/{public → app_files/public}/images/favicon.png +0 -0
- data/templates/{public → app_files/public}/images/mail-logo.png +0 -0
- data/templates/basic_authentication/basic_authentication.rb +22 -0
- data/templates/basic_authentication/basic_authentication_settings.yml.erb +3 -0
- data/templates/basic_authentication/include_module.erb +2 -0
- data/templates/basic_authentication/no_basic_authentication.erb +2 -0
- data/templates/basic_authentication/yes_basic_authentication.erb +2 -0
- data/templates/bullet/bullet_settings.rb.erb +9 -0
- data/templates/config/config_application.rb.erb +4 -0
- data/templates/config/locales/devise.en.yml +99 -0
- data/templates/config/locales/devise.tr.yml +97 -0
- data/templates/config/locales/en.yml +34 -0
- data/templates/config/locales/mailer.en.yml +32 -0
- data/templates/config/locales/{email.tr.yml → mailer.tr.yml} +6 -2
- data/templates/config/locales/models.en.yml +74 -0
- data/templates/config/locales/models.tr.yml +11 -27
- data/templates/config/locales/responders.en.yml +15 -0
- data/templates/config/locales/responders.tr.yml +3 -2
- data/templates/config/locales/show_for.tr.yml +3 -3
- data/templates/config/locales/view.en.yml +73 -0
- data/templates/config/locales/view.tr.yml +55 -82
- data/templates/config/routes.rb.erb +63 -0
- data/templates/cybele_gitignore +4 -3
- data/templates/devise/devise_authenticate_admin.rb.erb +2 -0
- data/templates/devise/devise_before_action_strong_parameter.rb.erb +3 -0
- data/templates/devise/devise_mailer.rb.erb +1 -0
- data/templates/devise/devise_strong_parameter.rb.erb +13 -0
- data/templates/{app/views/devise → devise/devise_views}/confirmations/new.html.haml +4 -1
- data/templates/devise/devise_views/mailer/confirmation_instructions.html.haml +5 -0
- data/templates/devise/devise_views/mailer/reset_password_instructions.html.haml +7 -0
- data/templates/{app/views/devise → devise/devise_views}/mailer/unlock_instructions.html.haml +1 -1
- data/templates/devise/devise_views/passwords/edit.html.haml +19 -0
- data/templates/devise/devise_views/passwords/new.html.haml +14 -0
- data/templates/devise/devise_views/registrations/edit.html.haml +21 -0
- data/templates/devise/devise_views/registrations/new.html.haml +32 -0
- data/templates/{app/views/devise → devise/devise_views}/sessions/new.html.haml +8 -3
- data/templates/devise/devise_views/shared/_links.haml +29 -0
- data/templates/{app/views/devise → devise/devise_views}/unlocks/new.html.haml +4 -1
- data/templates/devise/seeds.rb.erb +1 -0
- data/templates/docker/Dockerfile.erb +48 -0
- data/templates/docker/docker-compose.yml.erb +46 -0
- data/templates/docker/docker_env_local_sample.erb +6 -0
- data/templates/docker/docker_env_local_sample_host.erb +1 -0
- data/templates/docker/docker_env_local_sample_sidekiq.erb +2 -0
- data/templates/docker/docker_env_staging_production_sidekiq.erb +2 -0
- data/templates/docker/start-app.sh.erb +7 -0
- data/templates/docker/start-sidekiq.sh.erb +27 -0
- data/templates/dotenv/.env.local.erb +5 -0
- data/templates/dotenv/.env.production.erb +5 -0
- data/templates/dotenv/.env.sample.erb +5 -0
- data/templates/dotenv/.env.staging.erb +5 -0
- data/templates/dotenv/dotenv_Gemfile.erb +2 -0
- data/templates/error_pages/error_control.erb +7 -0
- data/templates/error_pages/error_method.erb +10 -0
- data/templates/error_pages/error_route.erb.rb +2 -0
- data/templates/error_pages/internal_server_error.html.haml +2 -0
- data/templates/error_pages/not_found.html.haml +2 -0
- data/templates/guardfile/guardfile_settings.rb.erb +49 -0
- data/templates/haml/haml_Gemfile.erb +5 -0
- data/templates/mailer/.env.local.erb +7 -0
- data/templates/mailer/host.rb.erb +2 -0
- data/templates/mailer/mailer_settings.yml.erb +8 -0
- data/templates/mailer/smtp.rb.erb +10 -0
- data/templates/paperclip/paperclip.rb.erb +11 -0
- data/templates/paperclip/paperclip_Gemfile.erb +4 -0
- data/templates/paperclip/paperclip_env_local.erb +6 -0
- data/templates/paperclip/paperclip_env_production.erb +6 -0
- data/templates/paperclip/paperclip_env_sample.erb +6 -0
- data/templates/paperclip/paperclip_env_staging.erb +6 -0
- data/templates/paperclip/paperclip_settings.yml.erb +10 -0
- data/templates/postgresql_database.yml.erb +24 -0
- data/templates/pronto/.flayignore.erb +5 -0
- data/templates/pronto/.haml-lint.yml.erb +5 -0
- data/templates/pronto/.rubocop.yml.erb +38 -0
- data/templates/pronto/config.reek.erb +42 -0
- data/templates/pronto/example.pronto.yml.erb +27 -0
- data/templates/pronto/rubo.erb +24 -0
- data/templates/recipient_interceptor/recipient_interceptor_settings.yml.erb +4 -0
- data/templates/recipient_interceptor/recipient_interceptor_staging.rb.erb +2 -0
- data/templates/responders/responders_Gemfile.erb +3 -0
- data/templates/ruby-version +1 -1
- data/templates/secrets.yml.erb +3 -0
- data/templates/settings.yml.erb +1 -0
- data/templates/show_for/show_for_Gemfile.erb +3 -0
- data/templates/sidekiq/sidekiq.rake.erb +42 -0
- data/templates/sidekiq/sidekiq.rb.erb +18 -0
- data/templates/sidekiq/sidekiq.yml.erb +18 -0
- data/templates/sidekiq/sidekiq_Gemfile.erb +8 -0
- data/templates/{Procfile.erb → sidekiq/sidekiq_Procfile.erb} +0 -0
- data/templates/sidekiq/sidekiq_application.rb.erb +3 -0
- data/templates/sidekiq/sidekiq_routes_mount.erb +8 -0
- data/templates/sidekiq/sidekiq_routes_require.erb +3 -0
- data/templates/{config/schedule.yml → sidekiq/sidekiq_schedule.yml.erb} +6 -4
- data/templates/simple_form/simple_form_Gemfile.erb +3 -0
- data/templates/ssl/ssl_env_all.erb +2 -0
- metadata +369 -179
- data/templates/.env.local.erb +0 -11
- data/templates/.env.production.erb +0 -11
- data/templates/.env.staging.erb +0 -11
- data/templates/app/assets/javascripts/application.js.coffee +0 -81
- data/templates/app/assets/javascripts/hq/application.js.coffee +0 -94
- data/templates/app/assets/stylesheets/hq/application.css.sass +0 -92
- data/templates/app/controllers/application_controller.rb.erb +0 -48
- data/templates/app/controllers/concerns/basic_authentication.rb +0 -18
- data/templates/app/controllers/hq/application_controller.rb +0 -18
- data/templates/app/controllers/hq/cities_controller.rb +0 -54
- data/templates/app/controllers/hq/countries_controller.rb +0 -54
- data/templates/app/controllers/hq/dashboard_controller.rb +0 -8
- data/templates/app/controllers/hq/registrations_controller.rb +0 -21
- data/templates/app/controllers/user/dashboard_controller.rb +0 -8
- data/templates/app/controllers/user/profile_controller.rb +0 -34
- data/templates/app/controllers/user/user_application_controller.rb +0 -26
- data/templates/app/controllers/welcome_controller.rb +0 -4
- data/templates/app/helpers/application_helper.rb.erb +0 -27
- data/templates/app/mailers/admin_mailer.rb +0 -10
- data/templates/app/mailers/base_mailer.rb +0 -4
- data/templates/app/mailers/user_mailer.rb +0 -10
- data/templates/app/models/admin.rb +0 -51
- data/templates/app/models/audit.rb +0 -3
- data/templates/app/models/city.rb +0 -12
- data/templates/app/models/country.rb +0 -12
- data/templates/app/models/user.rb +0 -54
- data/templates/app/views/admin_mailer/login_info.html.haml +0 -13
- data/templates/app/views/devise/mailer/confirmation_instructions.html.haml +0 -6
- data/templates/app/views/devise/mailer/reset_password_instructions.html.haml +0 -9
- data/templates/app/views/devise/passwords/edit.html.haml +0 -11
- data/templates/app/views/devise/passwords/new.html.haml +0 -9
- data/templates/app/views/devise/registrations/edit.html.haml +0 -12
- data/templates/app/views/devise/registrations/new.html.haml +0 -24
- data/templates/app/views/devise/shared/_links.haml +0 -22
- data/templates/app/views/errors/internal_server_error.html.haml +0 -2
- data/templates/app/views/errors/not_found.html.haml +0 -2
- data/templates/app/views/hq/admins/_admin.html.haml +0 -21
- data/templates/app/views/hq/admins/_filters.html.haml +0 -20
- data/templates/app/views/hq/admins/_form.html.haml +0 -17
- data/templates/app/views/hq/admins/_list.html.haml +0 -15
- data/templates/app/views/hq/admins/edit.html.haml +0 -3
- data/templates/app/views/hq/admins/index.html.haml +0 -18
- data/templates/app/views/hq/audits/_filters.html.haml +0 -32
- data/templates/app/views/hq/audits/_list.html.haml +0 -37
- data/templates/app/views/hq/audits/show.html.haml +0 -5
- data/templates/app/views/hq/cities/_blank.html.haml +0 -9
- data/templates/app/views/hq/cities/_city.html.haml +0 -12
- data/templates/app/views/hq/cities/_filters.html.haml +0 -15
- data/templates/app/views/hq/cities/_form.html.haml +0 -15
- data/templates/app/views/hq/cities/_list.html.haml +0 -13
- data/templates/app/views/hq/cities/edit.html.haml +0 -3
- data/templates/app/views/hq/cities/index.html.haml +0 -18
- data/templates/app/views/hq/cities/new.html.haml +0 -3
- data/templates/app/views/hq/cities/show.html.haml +0 -13
- data/templates/app/views/hq/countries/_blank.html.haml +0 -9
- data/templates/app/views/hq/countries/_country.html.haml +0 -11
- data/templates/app/views/hq/countries/_filters.html.haml +0 -14
- data/templates/app/views/hq/countries/_form.html.haml +0 -14
- data/templates/app/views/hq/countries/_list.html.haml +0 -12
- data/templates/app/views/hq/countries/edit.html.haml +0 -3
- data/templates/app/views/hq/countries/index.html.haml +0 -18
- data/templates/app/views/hq/countries/new.html.haml +0 -3
- data/templates/app/views/hq/countries/show.html.haml +0 -14
- data/templates/app/views/hq/dashboard/index.html.haml +0 -8
- data/templates/app/views/hq/passwords/edit.html.haml +0 -12
- data/templates/app/views/hq/passwords/new.html.haml +0 -9
- data/templates/app/views/hq/registrations/edit.html.haml +0 -19
- data/templates/app/views/hq/sessions/new.html.haml +0 -11
- data/templates/app/views/hq/users/_filters.html.haml +0 -20
- data/templates/app/views/hq/users/_form.html.haml +0 -18
- data/templates/app/views/hq/users/_list.html.haml +0 -15
- data/templates/app/views/hq/users/_user.html.haml +0 -20
- data/templates/app/views/hq/users/edit.html.haml +0 -3
- data/templates/app/views/hq/users/index.html.haml +0 -18
- data/templates/app/views/layouts/application.html.haml.erb +0 -56
- data/templates/app/views/layouts/hq/application.html.haml.erb +0 -55
- data/templates/app/views/layouts/hq/login.html.haml.erb +0 -35
- data/templates/app/views/layouts/hq/partials/_dock.html.haml.erb +0 -36
- data/templates/app/views/layouts/hq/partials/_navbar.html.haml.erb +0 -22
- data/templates/app/views/layouts/mailer.html.haml.erb +0 -321
- data/templates/app/views/layouts/mailer.text.haml +0 -1
- data/templates/app/views/layouts/partials/_trackers.html.haml.erb +0 -0
- data/templates/app/views/layouts/partials/_warnings.html.haml.erb +0 -3
- data/templates/app/views/user/dashboard/index.html.haml +0 -8
- data/templates/app/views/user/passwords/edit.html.haml +0 -12
- data/templates/app/views/user/passwords/new.html.haml +0 -10
- data/templates/app/views/user/profile/edit.html.haml +0 -3
- data/templates/app/views/user/profile/show.html.haml +0 -18
- data/templates/app/views/user/registrations/edit.html.haml +0 -19
- data/templates/app/views/user/sessions/new.html.haml +0 -11
- data/templates/app/views/user_mailer/login_info.html.haml +0 -13
- data/templates/app/views/welcome/index.html.haml.erb +0 -16
- data/templates/config/database.yml.erb +0 -21
- data/templates/config/deploy.rb +0 -56
- data/templates/config/initializers/devise_async.rb +0 -6
- data/templates/config/initializers/disable_xml_params.rb +0 -3
- data/templates/config/initializers/mail.rb +0 -13
- data/templates/config/initializers/paperclip.rb +0 -10
- data/templates/config/initializers/secret_token.erb +0 -25
- data/templates/config/initializers/show_for.rb +0 -3
- data/templates/config/initializers/sidekiq.rb +0 -13
- data/templates/config/initializers/simple_form.rb +0 -142
- data/templates/config/initializers/simple_form_bootstrap.rb +0 -207
- data/templates/config/routes.erb +0 -51
- data/templates/config/settings.yml +0 -0
- data/templates/config/settings/production.yml +0 -0
- data/templates/config/settings/staging.yml +0 -0
- data/templates/config/sidekiq.yml +0 -13
- data/templates/cybele_Gemfile +0 -106
- data/templates/cybele_version.txt +0 -1
- data/templates/env.sample.erb +0 -11
- data/templates/lib/application_responder.rb +0 -8
- data/templates/lib/data/cities.yml +0 -163
- data/templates/lib/tasks/annotate.rake +0 -6
- data/templates/lib/tasks/dev.rake +0 -56
- data/templates/lib/tasks/sidekiq.rake +0 -26
- data/templates/lib/templates/rails/responders_controller/controller.rb +0 -56
- data/templates/public/images/missing_cover.png +0 -0
- data/templates/public/images/missing_cover@2x.png +0 -0
- data/templates/public/images/missing_logo.png +0 -0
- data/templates/public/images/missing_logo@2x.png +0 -0
- data/templates/public/images/sprite.png +0 -0
data/templates/README.md.erb
CHANGED
@@ -1,24 +1,27 @@
|
|
1
1
|
# <%= app_name.capitalize %>
|
2
2
|
|
3
3
|
# TODOs
|
4
|
+
- Change email sender domain address and basic_auth info in `config/settings.yml`
|
5
|
+
- Change email sender domain address in `config/initializers/devise.rb`
|
6
|
+
- Add your secret keys to `.environments/` directory. In this directory there mus be .env.local file created from .env.sample
|
4
7
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
rake
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
8
|
+
<% unless @options[:skip_docker] %>
|
9
|
+
# Docker development
|
10
|
+
- run following commands on terminal
|
11
|
+
➜ ✗ docker-compose build
|
12
|
+
➜ ✗ docker-compose run app bundle install
|
13
|
+
➜ ✗ docker-compose run app bundle exec rails db:create db:migrate db:seed
|
14
|
+
➜ ✗ docker-compose up
|
15
|
+
- open in your browser localhost:3000 or lvh.me:3000
|
16
|
+
<% end %>
|
17
|
+
# Local development
|
18
|
+
- run following commands on terminal
|
19
|
+
➜ ✗ bundle exec rails server
|
20
|
+
- open in your browser localhost:3000 or lvh.me:3000
|
21
|
+
<% unless @options[:skip_sidekiq] %>
|
22
|
+
➜ ✗ redis-server
|
23
|
+
➜ ✗ bundle exec rake sidekiq:start
|
24
|
+
<% end %>
|
25
|
+
# Development
|
26
|
+
➜ ✗ pronto run
|
27
|
+
➜ ✗ pronto run -r haml
|
@@ -0,0 +1 @@
|
|
1
|
+
v0.1.0
|
@@ -0,0 +1,81 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
+
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require popper
|
14
|
+
//= require jquery
|
15
|
+
//= require rails-ujs
|
16
|
+
//= require turbolinks
|
17
|
+
//= require bootstrap
|
18
|
+
//= require footable.min
|
19
|
+
//= require jquery.maskedinput.min
|
20
|
+
//= require trix
|
21
|
+
//= require jquery.datetimepicker
|
22
|
+
//= require nprogress
|
23
|
+
//= require_tree .
|
24
|
+
|
25
|
+
var ready = function(){
|
26
|
+
$('.table').footable();
|
27
|
+
|
28
|
+
$('.datetimepicker').datetimepicker({
|
29
|
+
format: $('.datetimepicker').data('format'),
|
30
|
+
step: 60,
|
31
|
+
lang: 'tr',
|
32
|
+
minDate: 0,
|
33
|
+
defaultTime: '12:00'
|
34
|
+
});
|
35
|
+
|
36
|
+
$(function () {
|
37
|
+
$('[data-toggle="tooltip"]').tooltip();
|
38
|
+
});
|
39
|
+
|
40
|
+
$("[data-mask]").each(function(index, element) {
|
41
|
+
var $element;
|
42
|
+
$element = $(element);
|
43
|
+
$element.mask($element.data('mask'));
|
44
|
+
});
|
45
|
+
$('form[data-turboform]').on('submit', function(e) {
|
46
|
+
Turbolinks.visit(this.action + (this.action.indexOf('?') === -1 ? '?' : '&') + $(this).serialize());
|
47
|
+
return false;
|
48
|
+
});
|
49
|
+
};
|
50
|
+
|
51
|
+
$(document).on('turbolinks:load', function () {
|
52
|
+
ready();
|
53
|
+
var script = document.createElement("script");
|
54
|
+
script.src = "https://use.fontawesome.com/releases/v5.0.1/js/all.js";
|
55
|
+
document.head.appendChild(script);
|
56
|
+
});
|
57
|
+
|
58
|
+
document.addEventListener("turbolinks:load", ready)
|
59
|
+
|
60
|
+
$(window).on('page:load', ready);
|
61
|
+
|
62
|
+
$(document).on('page:fetch', function() {
|
63
|
+
NProgress.start();
|
64
|
+
});
|
65
|
+
|
66
|
+
$(document).on('page:change', function() {
|
67
|
+
NProgress.done();
|
68
|
+
});
|
69
|
+
|
70
|
+
$(document).on('page:restore', function() {
|
71
|
+
NProgress.remove();
|
72
|
+
});
|
73
|
+
|
74
|
+
$(document).ajaxStart(function() {
|
75
|
+
NProgress.start();
|
76
|
+
});
|
77
|
+
|
78
|
+
$(document).ajaxComplete(function() {
|
79
|
+
NProgress.done();
|
80
|
+
});
|
81
|
+
|
@@ -0,0 +1,80 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
+
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require popper
|
14
|
+
//= require jquery
|
15
|
+
//= require rails-ujs
|
16
|
+
//= require turbolinks
|
17
|
+
//= require bootstrap
|
18
|
+
//= require footable.min
|
19
|
+
//= require jquery.maskedinput.min
|
20
|
+
//= require trix
|
21
|
+
//= require jquery.datetimepicker
|
22
|
+
//= require nprogress
|
23
|
+
|
24
|
+
var ready = function(){
|
25
|
+
$('.table').footable();
|
26
|
+
|
27
|
+
$('.datetimepicker').datetimepicker({
|
28
|
+
format: $('.datetimepicker').data('format'),
|
29
|
+
step: 60,
|
30
|
+
lang: 'tr',
|
31
|
+
minDate: 0,
|
32
|
+
defaultTime: '12:00'
|
33
|
+
});
|
34
|
+
|
35
|
+
$(function () {
|
36
|
+
$('[data-toggle="tooltip"]').tooltip();
|
37
|
+
});
|
38
|
+
|
39
|
+
$("[data-mask]").each(function(index, element) {
|
40
|
+
var $element;
|
41
|
+
$element = $(element);
|
42
|
+
$element.mask($element.data('mask'));
|
43
|
+
});
|
44
|
+
$('form[data-turboform]').on('submit', function(e) {
|
45
|
+
Turbolinks.visit(this.action + (this.action.indexOf('?') === -1 ? '?' : '&') + $(this).serialize());
|
46
|
+
return false;
|
47
|
+
});
|
48
|
+
};
|
49
|
+
|
50
|
+
document.addEventListener("turbolinks:load", ready);
|
51
|
+
|
52
|
+
$(document).on('turbolinks:load', function () {
|
53
|
+
ready();
|
54
|
+
var script = document.createElement("script");
|
55
|
+
script.src = "https://use.fontawesome.com/releases/v5.0.1/js/all.js";
|
56
|
+
document.head.appendChild(script);
|
57
|
+
});
|
58
|
+
|
59
|
+
$(window).on('page:load', ready);
|
60
|
+
|
61
|
+
$(document).on('page:fetch', function() {
|
62
|
+
NProgress.start();
|
63
|
+
});
|
64
|
+
|
65
|
+
$(document).on('page:change', function() {
|
66
|
+
NProgress.done();
|
67
|
+
});
|
68
|
+
|
69
|
+
$(document).on('page:restore', function() {
|
70
|
+
NProgress.remove();
|
71
|
+
});
|
72
|
+
|
73
|
+
$(document).ajaxStart(function() {
|
74
|
+
NProgress.start();
|
75
|
+
});
|
76
|
+
|
77
|
+
$(document).ajaxComplete(function() {
|
78
|
+
NProgress.done();
|
79
|
+
});
|
80
|
+
|
@@ -10,26 +10,18 @@
|
|
10
10
|
*
|
11
11
|
*= require_self
|
12
12
|
|
13
|
-
@import "compass"
|
14
13
|
@import "bootstrap"
|
15
|
-
@import 'nprogress'
|
16
|
-
@import "bootstrap-chosen"
|
17
|
-
@import "jquery.datetimepicker"
|
18
|
-
@import "nprogress"
|
19
|
-
@import 'trix'
|
20
|
-
|
21
14
|
|
22
|
-
/*
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
height: 100% !important
|
27
|
-
margin: 0px 0px 12px 0px
|
15
|
+
/* from vendor
|
16
|
+
@import "nprogress"
|
17
|
+
@import "trix"
|
18
|
+
@import "jquery.datetimepicker"
|
28
19
|
|
29
20
|
/* Custom container
|
30
21
|
|
31
22
|
body
|
32
|
-
padding-
|
23
|
+
padding-top: 1.5rem
|
24
|
+
padding-bottom: 1.5rem
|
33
25
|
|
34
26
|
.container-narrow
|
35
27
|
margin: 0 auto
|
@@ -38,7 +30,6 @@ body
|
|
38
30
|
margin: 30px 0
|
39
31
|
|
40
32
|
/* Main marketing message and sign up button
|
41
|
-
|
42
33
|
.jumbotron
|
43
34
|
margin: 60px 0
|
44
35
|
text-align: center
|
@@ -49,9 +40,29 @@ body
|
|
49
40
|
font-size: 21px
|
50
41
|
padding: 14px 24px
|
51
42
|
|
43
|
+
.header
|
44
|
+
padding-bottom: 1rem
|
45
|
+
color: #777
|
46
|
+
border-bottom: .05rem solid #e5e5e5
|
47
|
+
|
48
|
+
.footer
|
49
|
+
padding-top: 1.5rem
|
50
|
+
color: #777
|
51
|
+
border-top: .05rem solid #e5e5e5
|
52
|
+
|
53
|
+
.simple_form
|
54
|
+
.form-actions
|
55
|
+
text-align: right
|
56
|
+
|
57
|
+
.form-group
|
58
|
+
.checkbox
|
59
|
+
label
|
60
|
+
input[type="checkbox"]
|
61
|
+
margin: 0 10px 0 0
|
62
|
+
|
52
63
|
/* Supporting marketing content
|
53
64
|
|
54
|
-
.
|
65
|
+
.about-contact
|
55
66
|
margin: 60px 0
|
56
67
|
p + h4
|
57
68
|
margin-top: 28px
|
@@ -0,0 +1,89 @@
|
|
1
|
+
#sidebar
|
2
|
+
overflow: hidden
|
3
|
+
z-index: 3
|
4
|
+
.list-group
|
5
|
+
min-width: 400px
|
6
|
+
background-color: #343a40
|
7
|
+
min-height: 100vh
|
8
|
+
i
|
9
|
+
margin-right: 6px
|
10
|
+
.list-group-item
|
11
|
+
border-radius: 0
|
12
|
+
background-color: #343a40
|
13
|
+
color: #ccc
|
14
|
+
border-left: 0
|
15
|
+
border-right: 0
|
16
|
+
border-color: #2c2c2c
|
17
|
+
white-space: nowrap
|
18
|
+
&:not(.collapsed)
|
19
|
+
background-color: #222
|
20
|
+
.list-group
|
21
|
+
.list-group-item
|
22
|
+
padding: .75rem 1.25rem
|
23
|
+
&[aria-expanded="false"]::after
|
24
|
+
content: '>'
|
25
|
+
display: inline
|
26
|
+
text-align: right
|
27
|
+
padding-left: 5px
|
28
|
+
&[aria-expanded="true"]
|
29
|
+
background-color: #222
|
30
|
+
&::after
|
31
|
+
content: '<'
|
32
|
+
display: inline
|
33
|
+
text-align: right
|
34
|
+
padding-left: 5px
|
35
|
+
.collapse .list-group-item, .collapsing .list-group-item
|
36
|
+
padding-left: 20px
|
37
|
+
.collapse > .collapse .list-group-item, .collapsing .list-group-item
|
38
|
+
padding-left: 1.25rem
|
39
|
+
.collapse > .collapse .list-group-item
|
40
|
+
padding-left: 40px
|
41
|
+
|
42
|
+
|
43
|
+
@media (max-width: 768px)
|
44
|
+
#sidebar
|
45
|
+
min-width: 35px
|
46
|
+
max-width: 40px
|
47
|
+
overflow-y: auto
|
48
|
+
overflow-x: visible
|
49
|
+
transition: all 0.25s ease
|
50
|
+
transform: translateX(-45px)
|
51
|
+
position: fixed
|
52
|
+
&.show
|
53
|
+
transform: translateX(0)
|
54
|
+
&::-webkit-scrollbar
|
55
|
+
width: 0px
|
56
|
+
overflow: visible
|
57
|
+
.list-group
|
58
|
+
min-width: 40px
|
59
|
+
overflow: visible
|
60
|
+
.collapse.show, .collapsing
|
61
|
+
position: relative
|
62
|
+
z-index: 1
|
63
|
+
width: 190px
|
64
|
+
top: 0
|
65
|
+
> .list-group-item
|
66
|
+
text-align: center
|
67
|
+
padding: .75rem .75rem
|
68
|
+
&[aria-expanded="true"]::after, &[aria-expanded="false"]::after
|
69
|
+
display: none
|
70
|
+
/* overlay sub levels on small screens
|
71
|
+
/* hide caret icons of top level when collapsed
|
72
|
+
|
73
|
+
.collapse.show
|
74
|
+
visibility: visible
|
75
|
+
|
76
|
+
.collapsing
|
77
|
+
visibility: visible
|
78
|
+
height: 0
|
79
|
+
-webkit-transition-property: height, visibility
|
80
|
+
transition-property: height, visibility
|
81
|
+
-webkit-transition-timing-function: ease-out
|
82
|
+
transition-timing-function: ease-out
|
83
|
+
&.width
|
84
|
+
-webkit-transition-property: width, visibility
|
85
|
+
transition-property: width, visibility
|
86
|
+
width: 0
|
87
|
+
height: 100%
|
88
|
+
-webkit-transition-timing-function: ease-out
|
89
|
+
transition-timing-function: ease-out
|
@@ -0,0 +1,74 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that will be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
|
13
|
+
@import "bootstrap"
|
14
|
+
@import "sidebar"
|
15
|
+
@import "footable.bootstrap.min"
|
16
|
+
|
17
|
+
/* from vendor
|
18
|
+
@import "nprogress"
|
19
|
+
@import "trix"
|
20
|
+
@import "jquery.datetimepicker"
|
21
|
+
|
22
|
+
body
|
23
|
+
main
|
24
|
+
@media (max-width: 767px)
|
25
|
+
margin-left: 2.45rem
|
26
|
+
.users
|
27
|
+
.active
|
28
|
+
color: green !important
|
29
|
+
.passive
|
30
|
+
background-color: rgba(230, 161, 161, 0.37) !important
|
31
|
+
|
32
|
+
.table
|
33
|
+
tbody
|
34
|
+
.action
|
35
|
+
a
|
36
|
+
margin: 0.5px
|
37
|
+
|
38
|
+
.filters
|
39
|
+
a
|
40
|
+
margin: 1px 1px
|
41
|
+
form
|
42
|
+
input
|
43
|
+
min-width: 115px
|
44
|
+
|
45
|
+
#toolbar
|
46
|
+
text-align: right
|
47
|
+
a
|
48
|
+
margin-bottom: 12px
|
49
|
+
|
50
|
+
#admin-devise-page
|
51
|
+
.card
|
52
|
+
margin-top: 50px
|
53
|
+
width: 30rem
|
54
|
+
|
55
|
+
.simple_form
|
56
|
+
.form-actions
|
57
|
+
text-align: right
|
58
|
+
|
59
|
+
.form-group
|
60
|
+
.checkbox
|
61
|
+
label
|
62
|
+
input[type="checkbox"]
|
63
|
+
margin: 0 10px 0 0
|
64
|
+
|
65
|
+
.audit.form-inline
|
66
|
+
.form-group
|
67
|
+
margin: 0px 10px
|
68
|
+
|
69
|
+
label
|
70
|
+
padding: 0 5px
|
71
|
+
|
72
|
+
.alert.message
|
73
|
+
.far.fa-smile
|
74
|
+
padding: 0 5px
|