cybele 2.2.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +64 -0
  3. data/lib/cybele/app_builder.rb +11 -0
  4. data/lib/cybele/generators/app_generator.rb +10 -1
  5. data/lib/cybele/version.rb +1 -1
  6. data/spec/features/new_default_project_spec.rb +1 -5
  7. data/spec/features/new_not_default_project_spec.rb +1 -15
  8. data/spec/files/README_DEFAULT.md +1 -0
  9. data/spec/files/README_ONLY_NO_SKIP_DOCKER.md +1 -0
  10. data/spec/files/README_ONLY_NO_SKIP_SIDEKIQ.md +1 -0
  11. data/spec/files/README_SKIP_ALL.md +1 -0
  12. data/spec/support/cybele_test_helpers.rb +1 -1
  13. data/spec/support/shared_examples/locale_language_test_helper.rb +0 -1
  14. data/spec/support/shared_examples/postgresql_test_helper.rb +11 -0
  15. data/templates/Gemfile.erb +0 -15
  16. data/templates/README.md.erb +1 -0
  17. data/templates/active_storage/amazon_env_all.erb +2 -1
  18. data/templates/app_files/app/views/hq/audits/show.html.haml +20 -6
  19. data/templates/app_files/app/views/layouts/application.html.haml.erb +1 -1
  20. data/templates/app_files/app/views/layouts/hq/application.html.haml.erb +2 -5
  21. data/templates/config/locales/en.yml +1 -18
  22. data/templates/config/locales/show_for.tr.yml +0 -1
  23. data/templates/config/locales/simple_form.tr.yml +0 -1
  24. data/templates/config/locales/tr.yml +0 -17
  25. data/templates/config/locales/view.en.yml +2 -9
  26. data/templates/config/locales/view.tr.yml +2 -9
  27. data/templates/docker/docker_env_local_sample.erb +2 -2
  28. data/templates/docker/docker_env_local_sample_host.erb +1 -1
  29. data/templates/environment/environment_generator.rb +9 -0
  30. data/templates/mailer/.env.local.erb +2 -1
  31. data/templates/pronto/pronto_Gemfile.erb +12 -0
  32. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f726b1cb6912328b92da71be0e88f7bfd204f208bbe520d2fcdcdb54ff8a46b7
4
- data.tar.gz: 75b6bc1732f293fbe7b03fb8a98af2f089bf2ce1a46d46cd017211c2e8a76b6c
3
+ metadata.gz: fe94c79bf87b375e7103bc541381963da7dfd1c0fbbee585585f0755bc191fd3
4
+ data.tar.gz: c8855bae75edf65090fb1d01528f91cb6dccc28d181e79792cb9e2fc4fbcc1e5
5
5
  SHA512:
6
- metadata.gz: e1952a826bf490f40c326f54c9c07657b5a0cf974a91b52a2a8f3e9c141af30cb2313c9fd68e891362f3b9cc3ea8ff4062031a872e8cbb2f74d27d203186d77d
7
- data.tar.gz: c902a27a5e6fc011caf907cb2e912b9089913afe98dc0a2b83307c37e3c68d85b8760686d5bbfe052167902618d8a174d9934de7372332fe0b9934b8be2d1562
6
+ metadata.gz: cc214fa999ded535618e2842b6ede89a5469d3fc9c2269f2d1fd263bcc05611405d997e8d5e2d20755b9ed13f024aa66b37acfa0761bd6b0514041d6f33c0136
7
+ data.tar.gz: d32d85db202c0f66c1b4f84fce97197317e580b75073a1af8e99ee24e1dc05a4d8574dbb17ae059e7d52e7c2bdbf539ec9d82bb1ad92520b98646763b5d6183a
@@ -1,5 +1,69 @@
1
1
 
2
2
  #### [Current]
3
+ * [9af28ad](../../commit/9af28ad) - __(İsmail AKBUDAK)__ Merge pull request [#131](../../issues/131) from lab2023/feature/fix_broken_specs
4
+
5
+ Fix broken specs after changes
6
+ * [980fd25](../../commit/980fd25) - __(İsmail Akbudak)__ Fix broken specs after changes
7
+ * [b5cde72](../../commit/b5cde72) - __(Kemal AKIN)__ Merged in feature/environment_generator (pull request [#50](../../issues/50))
8
+
9
+ Added new generator for environments
10
+
11
+ Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
12
+
13
+ * [fb4b71d](../../commit/fb4b71d) - __(Kemal AKIN)__ Merged in feature/fix_yml_problem (pull request [#49](../../issues/49))
14
+
15
+ Re added files for build problem
16
+
17
+ Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
18
+
19
+ * [b23b525](../../commit/b23b525) - __(Kemal AKIN)__ Merged in feature/improve_views (pull request [#46](../../issues/46))
20
+
21
+ Feature/improve views
22
+
23
+ Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
24
+
25
+ * [63656c9](../../commit/63656c9) - __(Kemal AKIN)__ View i18n files revised
26
+ * [fd2ac29](../../commit/fd2ac29) - __(Kemal AKIN)__ Improve base i18n files
27
+ * [ff6e546](../../commit/ff6e546) - __(Kemal AKIN)__ Generator name edited
28
+ * [c08b07f](../../commit/c08b07f) - __(Kemal AKIN)__ Edited README.md for environment generator
29
+ * [00b3c6c](../../commit/00b3c6c) - __(Kemal AKIN)__ Deleted unless lines
30
+ * [77315d9](../../commit/77315d9) - __(Kemal AKIN)__ Added new generator for environments
31
+ * [5e997d6](../../commit/5e997d6) - __(Kemal AKIN)__ Re added files for build problem
32
+ * [f290325](../../commit/f290325) - __(Kemal AKIN)__ Merged in feature/improve_views (pull request [#44](../../issues/44))
33
+
34
+ Feature/improve views
35
+
36
+ Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
37
+
38
+ * [b6c0d0d](../../commit/b6c0d0d) - __(Kemal AKIN)__ Deleted not used keys
39
+ * [009f8b3](../../commit/009f8b3) - __(Kemal AKIN)__ Not use view keys deleted
40
+ * [73c8656](../../commit/73c8656) - __(Kemal AKIN)__ Deleted non used keys from view.tr.yml
41
+ * [77c3dc5](../../commit/77c3dc5) - __(Kemal AKIN)__ Merged in feature/fix_pronto_thor_problem (pull request [#45](../../issues/45))
42
+
43
+ Refactored app build method for pronto
44
+
45
+ Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
46
+
47
+ * [74d395b](../../commit/74d395b) - __(Kemal AKIN)__ Pronto Gem file based revised
48
+ * [9aff62d](../../commit/9aff62d) - __(Kemal AKIN)__ Bundle commands refactored
49
+ * [62a686e](../../commit/62a686e) - __(Kemal AKIN)__ Refactored app build method for pronto
50
+ * [4dfccd1](../../commit/4dfccd1) - __(Kemal AKIN)__ Merged in feature/evn_file_comments_improve (pull request [#43](../../issues/43))
51
+
52
+ Feature/evn file comments improve
53
+
54
+ Approved-by: İsmail Akbudak <ismail.akbudak@lab2023.com>
55
+
56
+ * [a3c4ea1](../../commit/a3c4ea1) - __(Kemal AKIN)__ Revised HQ Audits show page
57
+ * [cd84ed1](../../commit/cd84ed1) - __(Kemal AKIN)__ Application title tag improve
58
+ * [7be9213](../../commit/7be9213) - __(Kemal AKIN)__ Updated Font Awesome version
59
+ * [4664bf3](../../commit/4664bf3) - __(Kemal AKIN)__ Edited Comment lines
60
+ * [6ee9635](../../commit/6ee9635) - __(Kemal AKIN)__ Remove comments
61
+ * [c16931e](../../commit/c16931e) - __(İsmail Akbudak)__ Merge tag 'v2.2.0' into develop
62
+
63
+ v2.2.0
64
+
65
+ #### v2.2.0
66
+ * [b5b6990](../../commit/b5b6990) - __(İsmail Akbudak)__ Update version v2.2.0
3
67
  * [864753a](../../commit/864753a) - __(İsmail Akbudak)__ Merged in feature/improve_gems (pull request [#42](../../issues/42))
4
68
 
5
69
  Feature/improve gems
@@ -63,5 +63,16 @@ module Cybele
63
63
  git add: '.'
64
64
  git commit: '-m "Project initialized"'
65
65
  end
66
+
67
+ def add_pronto_to_gemfile
68
+ # Add gems
69
+ append_file('Gemfile', template_content('pronto/pronto_Gemfile.erb'))
70
+ bundle_command 'update'
71
+ bundle_command 'install'
72
+ end
73
+
74
+ def add_environment_to_lib
75
+ copy_file 'environment/environment_generator.rb', 'lib/generators/environment/environment_generator.rb'
76
+ end
66
77
  end
67
78
  end
@@ -86,7 +86,6 @@ module Cybele
86
86
  def customize_gemfile
87
87
  say 'Customize gem file', :green
88
88
  build :add_gems
89
- bundle_command 'update thor'
90
89
  build :add_simple_form_gem unless @options[:skip_simple_form]
91
90
  build :add_show_for_gem unless @options[:skip_show_for]
92
91
  build :add_haml_gems unless @options[:skip_haml]
@@ -257,6 +256,16 @@ module Cybele
257
256
  build :setup_docker_development_env
258
257
  end
259
258
 
259
+ def setup_pronto
260
+ say 'Pronto is setup', :green
261
+ build :add_pronto_to_gemfile
262
+ end
263
+
264
+ def setup_environment_generator
265
+ say 'Environment generator setup', :green
266
+ build :add_environment_to_lib
267
+ end
268
+
260
269
  def setup_git_and_git_flow
261
270
  say 'Initialize git and git flow'
262
271
  build :git_and_git_flow_commands
@@ -3,5 +3,5 @@
3
3
  module Cybele
4
4
  RAILS_VERSION = ['~> 5.2.2', '>= 5.2.2'].freeze
5
5
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
6
- VERSION = '2.2.0'
6
+ VERSION = '2.3.1'
7
7
  end
@@ -18,11 +18,7 @@ RSpec.describe 'Create new project with default configuration' do
18
18
  expect(readme_file).to match(/^➜ ✗ redis-server/)
19
19
  end
20
20
 
21
- it 'uses postgresql database template' do
22
- database_file = content('config/database.yml')
23
- expect(database_file).to match(/^connection: &connection/)
24
- expect(database_file).to match(/^ database: #{app_name}_staging/)
25
- end
21
+ it_behaves_like 'uses postgresql database'
26
22
 
27
23
  it_behaves_like 'uses sidekiq'
28
24
 
@@ -9,21 +9,7 @@ RSpec.describe 'Create new project without default configuration' do
9
9
  setup_app_dependencies
10
10
  end
11
11
 
12
- it 'uses sqlite3 instead of default pg in Gemfile' do
13
- gemfile_file = content('Gemfile')
14
- readme_file = content('README.md')
15
- expect(gemfile_file).not_to match(/^gem 'pg'/)
16
- expect(gemfile_file).to match(/^gem 'sqlite3'/)
17
- expect(readme_file).to match(/^# #{app_name.capitalize}/)
18
- expect(readme_file).not_to match(/^# Docker development/)
19
- expect(readme_file).not_to match(/^➜ ✗ redis-server/)
20
- end
21
-
22
- it 'uses sqlite3 database template' do
23
- database_file = content('config/database.yml')
24
- expect(database_file).to match(/^default: &default/)
25
- expect(database_file).to match(/adapter: sqlite3/)
26
- end
12
+ it_behaves_like 'uses postgresql database'
27
13
 
28
14
  it 'do not use sidekiq' do
29
15
  gemfile_file = content('Gemfile')
@@ -4,6 +4,7 @@
4
4
  - Change email sender domain address and basic_auth info in `config/settings.yml`
5
5
  - Change email sender domain address in `config/initializers/devise.rb`
6
6
  - Create `.pronto.yml` file from `example.pronto.yml` file
7
+ - Run command for create environments ➜ ✗ `rails g environment`
7
8
 
8
9
  # Infos
9
10
  - Edit secret keys
@@ -4,6 +4,7 @@
4
4
  - Change email sender domain address and basic_auth info in `config/settings.yml`
5
5
  - Change email sender domain address in `config/initializers/devise.rb`
6
6
  - Create `.pronto.yml` file from `example.pronto.yml` file
7
+ - Run command for create environments ➜ ✗ `rails g environment`
7
8
 
8
9
  # Infos
9
10
  - Edit secret keys
@@ -4,6 +4,7 @@
4
4
  - Change email sender domain address and basic_auth info in `config/settings.yml`
5
5
  - Change email sender domain address in `config/initializers/devise.rb`
6
6
  - Create `.pronto.yml` file from `example.pronto.yml` file
7
+ - Run command for create environments ➜ ✗ `rails g environment`
7
8
 
8
9
  # Infos
9
10
  - Edit secret keys
@@ -4,6 +4,7 @@
4
4
  - Change email sender domain address and basic_auth info in `config/settings.yml`
5
5
  - Change email sender domain address in `config/initializers/devise.rb`
6
6
  - Create `.pronto.yml` file from `example.pronto.yml` file
7
+ - Run command for create environments ➜ ✗ `rails g environment`
7
8
 
8
9
  # Infos
9
10
  - Edit secret keys
@@ -28,7 +28,7 @@ module CybeleTestHelpers
28
28
  skips = commands.map do |command|
29
29
  "--skip-#{command}"
30
30
  end
31
- '--database=sqlite3 ' + skips.join(' ')
31
+ '--skip-create-database ' + skips.join(' ')
32
32
  end
33
33
 
34
34
  def content(file_path)
@@ -12,7 +12,6 @@ shared_examples 'uses locale_language' do
12
12
 
13
13
  def file_content_control_test
14
14
  locale_file = content('config/locales/tr.yml')
15
- expect(locale_file).to match('phone:')
16
15
  expect(locale_file).to match('date:')
17
16
  expect(locale_file).to match('time:')
18
17
  expect(locale_file).to match('number:')
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples 'uses postgresql database' do
4
+ context do
5
+ it do
6
+ database_file = content('config/database.yml')
7
+ expect(database_file).to match(/^connection: &connection/)
8
+ expect(database_file).to match(/^ database: #{app_name}_staging/)
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,4 @@
1
1
 
2
- # General requirement
3
- gem 'thor', '~> 0.19.4'
4
-
5
2
  # For never accidentally send emails to real people from staging environment.
6
3
  gem 'recipient_interceptor', '~> 0.2.0'
7
4
 
@@ -36,18 +33,6 @@ group :development, :test do
36
33
  gem 'colorize', '~> 0.8.1'
37
34
  end
38
35
 
39
- # Pronto runners
40
- group :development do
41
- gem 'pronto', '~> 0.9.5'
42
- gem 'pronto-erb_lint', require: false
43
- gem 'pronto-brakeman', require: false
44
- gem 'pronto-fasterer', require: false
45
- gem 'pronto-flay', require: false
46
- gem 'pronto-haml', require: false
47
- gem 'pronto-poper', require: false
48
- gem 'pronto-rubocop', require: false
49
- end
50
-
51
36
  # A set of common locale data and translations to internationalize and/or localize your Rails applications.
52
37
  gem 'rails-i18n', '~> 5.1'
53
38
 
@@ -4,6 +4,7 @@
4
4
  - Change email sender domain address and basic_auth info in `config/settings.yml`
5
5
  - Change email sender domain address in `config/initializers/devise.rb`
6
6
  - Create `.pronto.yml` file from `example.pronto.yml` file
7
+ - Run command for create environments ➜ ✗ `rails g environment`
7
8
 
8
9
  # Infos
9
10
  - Edit secret keys
@@ -1,4 +1,5 @@
1
1
 
2
- AWS_S3_BUCKET_NAME= # S3 Settings
2
+ # S3 Settings
3
+ AWS_S3_BUCKET_NAME=
3
4
  AWS_ACCESS_KEY_ID=
4
5
  AWS_SECRET_ACCESS_KEY=
@@ -1,8 +1,22 @@
1
1
  .card
2
+ .card-header
3
+ %i.fas.fa-microchip
4
+ = t('activerecord.models.audits')
2
5
  .card-body
3
- - @audit.audited_changes.each_key do |key|
4
- %p
5
- %strong
6
- - if @audit.try(:auditable_type).present?
7
- = t("activerecord.attributes.#{@audit.try(:auditable_type).try(:underscore)}.#{key}")
8
- = @audit.audited_changes[key]
6
+ %table.table.table-striped.table-bordered
7
+ %thead
8
+ %tr
9
+ %th{scope: 'col'}= t('activerecord.attributes.audit.action')
10
+ %th{scope: 'col'}= t('view.previous_value')
11
+ %th{scope: 'col'}= t('view.current_value')
12
+ %tbody
13
+ - @audit.audited_changes.each_key do |key|
14
+ %tr
15
+ - if @audit.try(:auditable_type).present?
16
+ %th{scope: 'row'}= t("activerecord.attributes.#{@audit.try(:auditable_type).try(:underscore)}.#{key}")
17
+ - if @audit.audited_changes[key].is_a?(Array)
18
+ %td= @audit.audited_changes[key][0]
19
+ %td= @audit.audited_changes[key][1]
20
+ - else
21
+ %td= @audit.audited_changes[key]
22
+ %td= @audit.audited_changes[key]
@@ -12,7 +12,7 @@
12
12
  %meta{ name: 'author', content: '<%= app_name.capitalize %>' }
13
13
  %link{ rel: 'shortcut icon', href: '/images/favicon.png' }
14
14
 
15
- = stylesheet_link_tag 'https://use.fontawesome.com/releases/v5.0.8/css/all.css',
15
+ = stylesheet_link_tag 'https://use.fontawesome.com/releases/v5.7.0/css/all.css',
16
16
  'application', media: 'all', 'data-turbolinks-track': 'reload'
17
17
  = javascript_include_tag 'application',
18
18
  'data-turbolinks-track': 'reload'
@@ -5,10 +5,7 @@
5
5
  %html.no-js{ lang: I18n.locale }
6
6
  %head
7
7
  %title
8
- - if content_for?(:title)
9
- = "#{yield(:title)} - <%= app_name.capitalize %>"
10
- - else
11
- = '<%= app_name.capitalize %>'
8
+ = content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>'
12
9
  %meta{ 'http-equiv': 'content-type', content: 'text/html', charset: 'utf-8' }
13
10
  %meta{ 'http-equiv': 'x-ua-compatible', content: 'ie=edge,chrome=1' }
14
11
  %meta{ name: 'description', content: '<%= app_name.capitalize %>' }
@@ -25,7 +22,7 @@
25
22
  = csrf_meta_tags
26
23
 
27
24
  / Stylesheets (Don't change include order)
28
- = stylesheet_link_tag 'https://use.fontawesome.com/releases/v5.0.8/css/all.css',
25
+ = stylesheet_link_tag 'https://use.fontawesome.com/releases/v5.7.0/css/all.css',
29
26
  'hq/application', media: 'all', 'data-turbolinks-track': 'reload'
30
27
 
31
28
  / Javascripts
@@ -1,34 +1,17 @@
1
1
  ---
2
2
  en:
3
- phone:
4
- formats:
5
- long: '+99 (999) 999-9999'
6
3
  date:
7
4
  formats:
8
- excel:
9
- rails: '%d/%m/%Y'
10
- datepicker:
11
- rails: '%d/%m/%Y'
12
- js: 'd/m/Y'
13
5
  default: "%d/%m/%Y"
14
6
  year_month: "%Y-%B"
15
7
  date: '%d %B %Y'
16
8
  time:
17
9
  formats:
18
- certificate_completed_at_english: '%m/%d/%Y'
19
- certificate_completed_at: '%d/%m/%Y'
20
- datetimepicker_rails: '%d/%m/%Y %H:%M'
21
- datetimepicker:
22
- rails: '%d/%m/%Y %H:%M'
23
- js: 'd/m/Y H:i'
24
10
  default: "%d/%m/%Y %H:%M"
25
11
  year_month: "%Y-%B"
26
12
  date: '%d %B %Y'
27
- due_at:
28
- rails: '%d/%m/%Y %H:%M'
29
- js: 'd/m/Y H:i'
30
13
  number:
31
14
  currency:
32
15
  format:
33
16
  format: "%u %n"
34
- unit: ""
17
+ unit: "$"
@@ -1,4 +1,3 @@
1
- ---
2
1
  tr:
3
2
  show_for:
4
3
  blank: "Belirtilmemiş"
@@ -1,4 +1,3 @@
1
- ---
2
1
  tr:
3
2
  simple_form:
4
3
  "yes": 'Evet'
@@ -1,32 +1,15 @@
1
1
  ---
2
2
  tr:
3
- phone:
4
- formats:
5
- long: '+99 (999) 999-9999'
6
3
  date:
7
4
  formats:
8
- excel:
9
- rails: '%d/%m/%Y'
10
- datepicker:
11
- rails: '%d/%m/%Y'
12
- js: 'd/m/Y'
13
5
  default: "%d/%m/%Y"
14
6
  year_month: "%Y-%B"
15
7
  date: '%d %B %Y'
16
8
  time:
17
9
  formats:
18
- certificate_completed_at_english: '%m/%d/%Y'
19
- certificate_completed_at: '%d/%m/%Y'
20
- datetimepicker_rails: '%d/%m/%Y %H:%M'
21
- datetimepicker:
22
- rails: '%d/%m/%Y %H:%M'
23
- js: 'd/m/Y H:i'
24
10
  default: "%d/%m/%Y %H:%M"
25
11
  year_month: "%Y-%B"
26
12
  date: '%d %B %Y'
27
- due_at:
28
- rails: '%d/%m/%Y %H:%M'
29
- js: 'd/m/Y H:i'
30
13
  number:
31
14
  currency:
32
15
  format:
@@ -1,6 +1,5 @@
1
1
  en:
2
2
  view:
3
- excel_export: Export as Excel
4
3
  make_passive: Make Passive
5
4
  make_active: Make Active
6
5
  table_actions: Actions
@@ -8,19 +7,16 @@ en:
8
7
  select: Select
9
8
  active: Active
10
9
  passive: Passive
11
- start: Start
12
- end: End
13
- used: Used
14
- not_used: Not Used
15
10
  cancel: Cancel
16
11
  all: All
17
12
  reset: Reset
18
13
  quick_search: Search...
19
14
  reload: Reload
15
+ current_value: Current Value
16
+ previous_value: Previous Value
20
17
  hello: "Hello %{user}"
21
18
  there_is_no_data: "There is no %{resource}."
22
19
  create_resource_mail_info: "When you add a new %{resource}, login information will be sent to your e-mail address."
23
- admin_info: Admin Info
24
20
  title:
25
21
  edit: "Edit %{resource_name}"
26
22
  show: "Detail %{resource_name}"
@@ -32,7 +28,6 @@ en:
32
28
  destroy: Destroy
33
29
  delete: Delete
34
30
  navbar:
35
- settings: Settings
36
31
  signup: Sign Up
37
32
  signin: Sign In
38
33
  sign_out: Sign Out
@@ -49,7 +44,6 @@ en:
49
44
  delete: "Delete"
50
45
  new: "New"
51
46
  are_you_sure: "Are you sure you want to continue?"
52
- choose: "Select"
53
47
  show: "Show"
54
48
  btn:
55
49
  add: Add
@@ -62,7 +56,6 @@ en:
62
56
  profile: "Profile"
63
57
  system_users: "System users"
64
58
  system_datas: "System data"
65
- system: "System"
66
59
  error:
67
60
  internal_server_error: "We are sorry. An error occured. Our engineers are working on it. We will solve it as soon as possible."
68
61
  not_found: "We are sorry. Page was not found. It may have been moved."
@@ -1,6 +1,5 @@
1
1
  tr:
2
2
  view:
3
- excel_export: Excel Olarak Çıkart
4
3
  make_passive: Pasif et
5
4
  make_active: Aktif et
6
5
  table_actions: İşlemler
@@ -8,19 +7,16 @@ tr:
8
7
  select: Seçiniz
9
8
  active: Aktif
10
9
  passive: Pasif
11
- start: Başlangıç
12
- end: Bitiş
13
- used: Kullanılan
14
- not_used: Kullanılmayan
15
10
  cancel: İptal et
16
11
  all: Hepsi
17
12
  reset: Temizle
18
13
  quick_search: Arama yap..
19
14
  reload: Yeniden yükle
15
+ current_value: Şuanki Değeri
16
+ previous_value: Önceki Değeri
20
17
  hello: "Merhaba %{user}"
21
18
  there_is_no_data: "Hiç %{resource} eklenmemiş."
22
19
  create_resource_mail_info: "Yeni bir %{resource} eklediğinizde e-posta adresine giriş bilgileri gönderilecektir."
23
- admin_info: Yönetici Bilgilerini
24
20
  title:
25
21
  edit: "%{resource_name} Düzenle"
26
22
  show: "%{resource_name} Detay"
@@ -32,7 +28,6 @@ tr:
32
28
  delete: Silme
33
29
  new: "Yeni %{resource_name}"
34
30
  navbar:
35
- settings: Ayarlar
36
31
  signup: Kayıt ol
37
32
  signin: Giriş Yap
38
33
  sign_out: Çıkış yap
@@ -49,7 +44,6 @@ tr:
49
44
  delete: "Sil"
50
45
  new: "Yeni"
51
46
  are_you_sure: "Devam etmek istediğinize emin misiniz?"
52
- choose: "Seçiniz"
53
47
  show: "Göster"
54
48
  btn:
55
49
  add: Ekle
@@ -59,7 +53,6 @@ tr:
59
53
  delete: Sil
60
54
  dock:
61
55
  dashboard: Kontrol Paneli
62
- dashboard: Kontrol paneli
63
56
  profile: Profil
64
57
  system_users: Sistem kullanıcıları
65
58
  system_datas: Sistem verileri
@@ -1,3 +1,3 @@
1
1
 
2
- RACK_ENV=development # Docker compose environments
3
- POSTGRESQL_HOST=postgres # Docker compose environments
2
+ RACK_ENV=development
3
+ POSTGRESQL_HOST=postgres
@@ -1 +1 @@
1
- REDIS_HOST=redis # Docker compose environments
1
+ REDIS_HOST=redis
@@ -0,0 +1,9 @@
1
+ class EnvironmentGenerator < Rails::Generators::Base
2
+ desc 'This generetor create .env.local file from .env.sample'
3
+
4
+ source_root File.expand_path(Rails.root, __dir__)
5
+
6
+ def copy_environment_file
7
+ copy_file ".env.sample", ".environments/.env.local"
8
+ end
9
+ end
@@ -1,5 +1,6 @@
1
1
 
2
- SMTP_USER_NAME= # SMTP Get username and password from https://mailtrap.io
2
+ # SMTP Get username and password from https://mailtrap.io
3
+ SMTP_USER_NAME=
3
4
  SMTP_PASSWORD=
4
5
  SMTP_PORT=2525
5
6
  SMTP_ADDRESS=smtp.mailtrap.io
@@ -0,0 +1,12 @@
1
+
2
+ # Pronto runners
3
+ group :development do
4
+ gem 'pronto', '~> 0.9.5'
5
+ gem 'pronto-erb_lint', require: false
6
+ gem 'pronto-brakeman', require: false
7
+ gem 'pronto-fasterer', require: false
8
+ gem 'pronto-flay', require: false
9
+ gem 'pronto-haml', require: false
10
+ gem 'pronto-poper', require: false
11
+ gem 'pronto-rubocop', require: false
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybele
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lab2023
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-25 00:00:00.000000000 Z
11
+ date: 2019-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -218,6 +218,7 @@ files:
218
218
  - spec/support/shared_examples/locale_language_test_helper.rb
219
219
  - spec/support/shared_examples/mailer_test_helper.rb
220
220
  - spec/support/shared_examples/model_test_helper.rb
221
+ - spec/support/shared_examples/postgresql_test_helper.rb
221
222
  - spec/support/shared_examples/pronto_test_helper.rb
222
223
  - spec/support/shared_examples/rails_i18n_test_helper.rb
223
224
  - spec/support/shared_examples/ransack_test_helper.rb
@@ -386,6 +387,7 @@ files:
386
387
  - templates/dotenv/.env.staging.erb
387
388
  - templates/dotenv/dotenv_Gemfile.erb
388
389
  - templates/editorconfig
390
+ - templates/environment/environment_generator.rb
389
391
  - templates/error_pages/error_control.erb
390
392
  - templates/error_pages/error_method.erb
391
393
  - templates/error_pages/error_route.erb.rb
@@ -402,6 +404,7 @@ files:
402
404
  - templates/pronto/.haml-lint.yml.erb
403
405
  - templates/pronto/.rubocop.yml.erb
404
406
  - templates/pronto/example.pronto.yml.erb
407
+ - templates/pronto/pronto_Gemfile.erb
405
408
  - templates/pronto/rubo.erb
406
409
  - templates/recipient_interceptor/recipient_interceptor_settings.yml.erb
407
410
  - templates/recipient_interceptor/recipient_interceptor_staging.rb.erb
@@ -474,6 +477,7 @@ test_files:
474
477
  - spec/support/shared_examples/locale_language_test_helper.rb
475
478
  - spec/support/shared_examples/mailer_test_helper.rb
476
479
  - spec/support/shared_examples/model_test_helper.rb
480
+ - spec/support/shared_examples/postgresql_test_helper.rb
477
481
  - spec/support/shared_examples/pronto_test_helper.rb
478
482
  - spec/support/shared_examples/rails_i18n_test_helper.rb
479
483
  - spec/support/shared_examples/ransack_test_helper.rb