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/config/routes.erb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'sidekiq/web'
|
2
|
-
require 'sidekiq/cron/web'
|
3
|
-
|
4
|
-
Rails.application.routes.draw do
|
5
|
-
|
6
|
-
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
|
7
|
-
username == Settings.sidekiq.username && password == Settings.sidekiq.password
|
8
|
-
end if Rails.env.production?
|
9
|
-
mount Sidekiq::Web, at: '/sidekiq'
|
10
|
-
|
11
|
-
concern :activeable do
|
12
|
-
post :toggle_is_active, on: :member
|
13
|
-
end
|
14
|
-
|
15
|
-
# Admins
|
16
|
-
devise_for :admins, controllers: { sessions: 'hq/sessions', registrations: 'hq/registrations', passwords: 'hq/passwords' }, path: 'hq',
|
17
|
-
path_names: { sign_in: 'login', sign_out: 'logout', password: 'secret', confirmation: 'verification' }
|
18
|
-
as :admin do
|
19
|
-
get 'hq/edit' => 'hq/registrations#edit', as: 'edit_admin_registration'
|
20
|
-
put 'hq' => 'hq/registrations#update', as: 'admin_registration'
|
21
|
-
end
|
22
|
-
namespace :hq do
|
23
|
-
root to: 'dashboard#index'
|
24
|
-
resources :dashboard, only: [:index]
|
25
|
-
resources :admins, concerns: [:activeable]
|
26
|
-
resources :users, concerns: [:activeable]
|
27
|
-
resources :countries
|
28
|
-
resources :cities
|
29
|
-
resources :audits, only: [:index, :show]
|
30
|
-
end
|
31
|
-
# Users
|
32
|
-
devise_for :users, controllers: { sessions: 'user/sessions', registrations: 'user/registrations', passwords: 'user/passwords' }, path: 'user',
|
33
|
-
path_names: { sign_in: 'login', sign_out: 'logout', password: 'secret', confirmation: 'verification' }
|
34
|
-
as :user do
|
35
|
-
get 'user/edit' => 'user/registrations#edit', as: 'edit_user_profile_registration'
|
36
|
-
put 'user' => 'user/registrations#update', as: 'user_profile_registration'
|
37
|
-
end
|
38
|
-
namespace :user do
|
39
|
-
root to: 'dashboard#index'
|
40
|
-
resources :dashboard, only: [:index]
|
41
|
-
resources :profile, only: [:show, :edit, :update]
|
42
|
-
end
|
43
|
-
|
44
|
-
# Common pages
|
45
|
-
root to: 'welcome#index'
|
46
|
-
|
47
|
-
if Rails.env.production? or Rails.env.staging?
|
48
|
-
match '*unmatched_route', to: 'application#page_not_found', via: :all
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
data/templates/cybele_Gemfile
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'dotenv-rails', require: 'dotenv/rails-now'
|
4
|
-
gem 'rails', '~> 4.2.6'
|
5
|
-
gem 'pg', '~> 0.18.4'
|
6
|
-
gem 'rails_config', '~> 0.4.2'
|
7
|
-
gem 'devise', '~> 3.4.1'
|
8
|
-
gem 'devise-i18n', '~> 0.9.0'
|
9
|
-
gem 'paperclip', '~> 4.3.0'
|
10
|
-
gem 'kangal', '~> 1.2.3'
|
11
|
-
gem 'annotate', '~> 2.6.0'
|
12
|
-
gem 'recipient_interceptor', '~> 0.1.2'
|
13
|
-
gem 'rails-i18n', '~> 4.0.4'
|
14
|
-
gem 'ransack', '~> 1.6.6'
|
15
|
-
gem 'polyamorous', '~> 1.2.0'
|
16
|
-
|
17
|
-
# Deployment gems
|
18
|
-
gem 'capistrano', '~> 3.4.0'
|
19
|
-
group :development do
|
20
|
-
gem 'capistrano-rails', '~> 1.1', require: false
|
21
|
-
gem 'capistrano-bundler', '~> 1.1', require: false
|
22
|
-
gem 'sshkit-sudo', require: false
|
23
|
-
gem 'capistrano-maintenance', '~> 1.0', require: false
|
24
|
-
gem 'recipes_matic', '~> 1.3.0'
|
25
|
-
end
|
26
|
-
|
27
|
-
gem 'exception_notification', '~> 4.1.1'
|
28
|
-
gem 'responders', '~> 2.1.0'
|
29
|
-
gem 'will_paginate', '~> 3.0.4'
|
30
|
-
gem 'will_paginate-bootstrap', '~> 0.2.3'
|
31
|
-
gem 'will-paginate-i18n', '~> 0.1.13'
|
32
|
-
gem 'rails_best_practices', '~> 1.15.1'
|
33
|
-
gem 'simple_form', '~> 3.2.0'
|
34
|
-
gem 'client_side_validations', '~> 4.2', '>= 4.2.1'
|
35
|
-
gem 'client_side_validations-simple_form', '~> 3.2', '>= 3.2.1'
|
36
|
-
gem 'show_for', '~> 0.4.0'
|
37
|
-
gem 'uglifier', '~> 2.7.1'
|
38
|
-
gem 'coffee-rails', '~> 4.1.0'
|
39
|
-
gem 'jquery-rails', '~> 4.0.4'
|
40
|
-
gem 'turbolinks', '~> 2.5.3'
|
41
|
-
gem 'haml', '~> 4.0.2'
|
42
|
-
gem 'haml-rails', '0.9.0'
|
43
|
-
gem 'breadcrumbs_on_rails', '~> 2.3.1'
|
44
|
-
gem 'blankable', '~> 0.2.0'
|
45
|
-
gem 'hierapolis-rails', '~> 1.1.3'
|
46
|
-
gem 'sass-rails', '~> 5.0.3'
|
47
|
-
gem 'compass-rails', '~> 2.0.5'
|
48
|
-
gem 'bootstrap-sass', '~> 3.3.4'
|
49
|
-
gem 'enum_help', '~> 0.0.14'
|
50
|
-
gem 'chosen-rails', '1.4.1'
|
51
|
-
gem 'bootstrap-chosen-rails', '0.0.4'
|
52
|
-
gem 'model_to_locale'
|
53
|
-
gem 'link_to_active_state'
|
54
|
-
gem 'jbuilder', '~> 2.4'
|
55
|
-
|
56
|
-
group :doc do
|
57
|
-
gem 'sdoc', require: false
|
58
|
-
end
|
59
|
-
|
60
|
-
group :development, :test do
|
61
|
-
gem 'better_errors'
|
62
|
-
gem 'letter_opener'
|
63
|
-
gem 'rspec-rails'
|
64
|
-
gem 'binding_of_caller'
|
65
|
-
gem 'katip'
|
66
|
-
gem 'capybara'
|
67
|
-
gem 'bullet'
|
68
|
-
gem 'quiet_assets'
|
69
|
-
end
|
70
|
-
|
71
|
-
# For heroku
|
72
|
-
group :production, :staging do
|
73
|
-
gem 'rails_12factor'
|
74
|
-
end
|
75
|
-
|
76
|
-
# Notifications
|
77
|
-
gem 'rollbar', '~> 2.7.1'
|
78
|
-
|
79
|
-
# App server
|
80
|
-
# gem 'unicorn', '~> 4.9.0'
|
81
|
-
gem 'puma', '~> 3.4.0'
|
82
|
-
|
83
|
-
# Backgorund jobs
|
84
|
-
# Sidekiq
|
85
|
-
gem 'sidekiq', '~> 4.1'
|
86
|
-
gem 'devise-async', '~> 0.10.1'
|
87
|
-
gem 'sidekiq-cron', '~> 0.4.2'
|
88
|
-
gem 'sinatra', require: nil
|
89
|
-
|
90
|
-
# Comand line execution
|
91
|
-
gem 'cocaine', '~> 0.5.8'
|
92
|
-
|
93
|
-
# AWS
|
94
|
-
gem 'aws-sdk', '~> 1.6'
|
95
|
-
|
96
|
-
# Phony Rails
|
97
|
-
gem 'phony_rails', '~> 0.12.11'
|
98
|
-
|
99
|
-
# Excell export
|
100
|
-
gem 'to_xls', '~> 1.5', '>= 1.5.3'
|
101
|
-
|
102
|
-
# Keep user activities
|
103
|
-
gem 'audited-activerecord', '~> 4.2'
|
104
|
-
|
105
|
-
# GSM service
|
106
|
-
# gem 'bulutfon_sdk', '~> 1.1', '>= 1.1.3'
|
@@ -1 +0,0 @@
|
|
1
|
-
v1.0.0
|
data/templates/env.sample.erb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
ROOT_PATH=http://localhost:3000
|
2
|
-
|
3
|
-
SMTP_PASSWORD=
|
4
|
-
SMTP_USER_NAME=admin@<%= app_name %>.com
|
5
|
-
SMTP_ADDRESS=smtp.sendgrid.net
|
6
|
-
|
7
|
-
BASIC_AUTH_IS_ACTIVE=no
|
8
|
-
S3_BUCKET_NAME=<%= app_name %>-v3-staging
|
9
|
-
AWS_RAW_URL=<%= app_name %>-v3-staging.s3.amazonaws.com
|
10
|
-
AWS_ACCESS_KEY_ID=
|
11
|
-
AWS_SECRET_ACCESS_KEY=
|
@@ -1,8 +0,0 @@
|
|
1
|
-
class ApplicationResponder < ActionController::Responder
|
2
|
-
include Responders::FlashResponder
|
3
|
-
include Responders::HttpCacheResponder
|
4
|
-
|
5
|
-
# Uncomment this responder if you want your resources to redirect to the collection
|
6
|
-
# path (index action) instead of the resource path for POST/PUT/DELETE requests.
|
7
|
-
# include Responders::CollectionResponder
|
8
|
-
end
|
@@ -1,163 +0,0 @@
|
|
1
|
-
---
|
2
|
-
-
|
3
|
-
name: "Adana"
|
4
|
-
-
|
5
|
-
name: "Adıyaman"
|
6
|
-
-
|
7
|
-
name: "Afyonkarahisar"
|
8
|
-
-
|
9
|
-
name: "Ağrı"
|
10
|
-
-
|
11
|
-
name: "Amasya"
|
12
|
-
-
|
13
|
-
name: "Ankara"
|
14
|
-
-
|
15
|
-
name: "Antalya"
|
16
|
-
-
|
17
|
-
name: "Artvin"
|
18
|
-
-
|
19
|
-
name: "Aydın"
|
20
|
-
-
|
21
|
-
name: "Balıkesir"
|
22
|
-
-
|
23
|
-
name: "Bilecik"
|
24
|
-
-
|
25
|
-
name: "Bingöl"
|
26
|
-
-
|
27
|
-
name: "Bitlis"
|
28
|
-
-
|
29
|
-
name: "Bolu"
|
30
|
-
-
|
31
|
-
name: "Burdur"
|
32
|
-
-
|
33
|
-
name: "Bursa"
|
34
|
-
-
|
35
|
-
name: "Çanakkale"
|
36
|
-
-
|
37
|
-
name: "Çankırı"
|
38
|
-
-
|
39
|
-
name: "Çorum"
|
40
|
-
-
|
41
|
-
name: "Denizli"
|
42
|
-
-
|
43
|
-
name: "Diyarbakır"
|
44
|
-
-
|
45
|
-
name: "Edirne"
|
46
|
-
-
|
47
|
-
name: "Elazığ"
|
48
|
-
-
|
49
|
-
name: "Erzincan"
|
50
|
-
-
|
51
|
-
name: "Erzurum"
|
52
|
-
-
|
53
|
-
name: "Eskişehir"
|
54
|
-
-
|
55
|
-
name: "Gaziantep"
|
56
|
-
-
|
57
|
-
name: "Giresun"
|
58
|
-
-
|
59
|
-
name: "Gümüşhane"
|
60
|
-
-
|
61
|
-
name: "Hakkari"
|
62
|
-
-
|
63
|
-
name: "Hatay"
|
64
|
-
-
|
65
|
-
name: "Isparta"
|
66
|
-
-
|
67
|
-
name: "Mersin"
|
68
|
-
-
|
69
|
-
name: "İstanbul"
|
70
|
-
-
|
71
|
-
name: "İzmir"
|
72
|
-
-
|
73
|
-
name: "Kars"
|
74
|
-
-
|
75
|
-
name: "Kastamonu"
|
76
|
-
-
|
77
|
-
name: "Kayseri"
|
78
|
-
-
|
79
|
-
name: "Kırklareli"
|
80
|
-
-
|
81
|
-
name: "Kırşehir"
|
82
|
-
-
|
83
|
-
name: "Kocaeli"
|
84
|
-
-
|
85
|
-
name: "Konya"
|
86
|
-
-
|
87
|
-
name: "Kütahya"
|
88
|
-
-
|
89
|
-
name: "Malatya"
|
90
|
-
-
|
91
|
-
name: "Manisa"
|
92
|
-
-
|
93
|
-
name: "Kahramanmaraş"
|
94
|
-
-
|
95
|
-
name: "Mardin"
|
96
|
-
-
|
97
|
-
name: "Muğla"
|
98
|
-
-
|
99
|
-
name: "Muş"
|
100
|
-
-
|
101
|
-
name: "Nevşehir"
|
102
|
-
-
|
103
|
-
name: "Niğde"
|
104
|
-
-
|
105
|
-
name: "Ordu"
|
106
|
-
-
|
107
|
-
name: "Rize"
|
108
|
-
-
|
109
|
-
name: "Sakarya"
|
110
|
-
-
|
111
|
-
name: "Samsun"
|
112
|
-
-
|
113
|
-
name: "Siirt"
|
114
|
-
-
|
115
|
-
name: "Sinop"
|
116
|
-
-
|
117
|
-
name: "Sivas"
|
118
|
-
-
|
119
|
-
name: "Tekirdağ"
|
120
|
-
-
|
121
|
-
name: "Tokat"
|
122
|
-
-
|
123
|
-
name: "Trabzon"
|
124
|
-
-
|
125
|
-
name: "Tunceli"
|
126
|
-
-
|
127
|
-
name: "Şanlıurfa"
|
128
|
-
-
|
129
|
-
name: "Uşak"
|
130
|
-
-
|
131
|
-
name: "Van"
|
132
|
-
-
|
133
|
-
name: "Yozgat"
|
134
|
-
-
|
135
|
-
name: "Zonguldak"
|
136
|
-
-
|
137
|
-
name: "Aksaray"
|
138
|
-
-
|
139
|
-
name: "Bayburt"
|
140
|
-
-
|
141
|
-
name: "Karaman"
|
142
|
-
-
|
143
|
-
name: "Kırıkkale"
|
144
|
-
-
|
145
|
-
name: "Batman"
|
146
|
-
-
|
147
|
-
name: "Şırnak"
|
148
|
-
-
|
149
|
-
name: "Bartın"
|
150
|
-
-
|
151
|
-
name: "Ardahan"
|
152
|
-
-
|
153
|
-
name: "Iğdır"
|
154
|
-
-
|
155
|
-
name: "Yalova"
|
156
|
-
-
|
157
|
-
name: "Karabük"
|
158
|
-
-
|
159
|
-
name: "Kilis"
|
160
|
-
-
|
161
|
-
name: "Osmaniye"
|
162
|
-
-
|
163
|
-
name: "Düzce"
|
@@ -1,56 +0,0 @@
|
|
1
|
-
namespace :dev do
|
2
|
-
# Just run development env
|
3
|
-
# This code run insert seed and agency data
|
4
|
-
# A simple trick to over migration problem
|
5
|
-
task setup: [:environment] do
|
6
|
-
raise 'Nah, You are at production' if Rails.env.production?
|
7
|
-
Rake::Task['dev:kill_postgres_connections'].execute
|
8
|
-
Rake::Task['db:drop'].execute
|
9
|
-
Rake::Task['db:create'].execute
|
10
|
-
Rake::Task['db:migrate'].execute
|
11
|
-
Rake::Task['dev:seed'].execute
|
12
|
-
end
|
13
|
-
|
14
|
-
desc 'seed test data'
|
15
|
-
task seed: [:environment] do
|
16
|
-
Rake::Task['db:seed'].execute
|
17
|
-
Rake::Task['dev:countries'].execute
|
18
|
-
Rake::Task['dev:cities'].execute
|
19
|
-
end
|
20
|
-
|
21
|
-
desc 'import countries'
|
22
|
-
task countries: [:environment] do
|
23
|
-
Country.destroy_all
|
24
|
-
Country.create!(name: 'Türkiye')
|
25
|
-
end
|
26
|
-
|
27
|
-
desc 'import turkey cities'
|
28
|
-
task cities: [:environment] do
|
29
|
-
City.destroy_all
|
30
|
-
cities = YAML.load_file( "#{Rails.root.to_s}/lib/data/cities.yml")
|
31
|
-
cities_array = []
|
32
|
-
turkey = Country.first
|
33
|
-
cities.each do |city|
|
34
|
-
print '.'
|
35
|
-
cities_array << {
|
36
|
-
name: city['name'],
|
37
|
-
country_id: turkey.id
|
38
|
-
}
|
39
|
-
end
|
40
|
-
City.create!(cities_array)
|
41
|
-
end
|
42
|
-
|
43
|
-
task kill_postgres_connections: [:environment] do
|
44
|
-
db_name = "#{File.basename(Rails.root)}_#{Rails.env}"
|
45
|
-
sh = <<EOF
|
46
|
-
ps xa \
|
47
|
-
| grep postgres: \
|
48
|
-
| grep #{db_name} \
|
49
|
-
| grep -v grep \
|
50
|
-
| awk '{print $1}' \
|
51
|
-
| xargs kill
|
52
|
-
EOF
|
53
|
-
puts `#{sh}`
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
namespace :sidekiq do
|
2
|
-
|
3
|
-
desc 'Starts Sidekiq'
|
4
|
-
task start: [:environment] do
|
5
|
-
cmd = Cocaine::CommandLine.new('bundle exec sidekiq', '-C config/sidekiq.yml')
|
6
|
-
mes = cmd.run
|
7
|
-
if mes == ''
|
8
|
-
puts 'Sidekiq started successfully.'
|
9
|
-
else
|
10
|
-
mes
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
desc 'Stops Sidekiq'
|
15
|
-
task stop: [:environment] do
|
16
|
-
cmd = Cocaine::CommandLine.new('sidekiqctl', 'stop tmp/pids/sidekiq.pid')
|
17
|
-
puts cmd.run
|
18
|
-
end
|
19
|
-
|
20
|
-
desc 'Restarts Sidekiq'
|
21
|
-
task restart: [:environment] do
|
22
|
-
Rake::Task['sidekiq:stop'].execute
|
23
|
-
Rake::Task['sidekiq:start'].execute
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|