Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Commit 9735958

Browse files
authored
Merge pull request #880 from omu/develop
Merge develop into master
2 parents 55812ee + f9b0ff9 commit 9735958

File tree

374 files changed

+29982
-3758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

374 files changed

+29982
-3758
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repository: &repository
3232
# build image
3333
ruby_2_6: &ruby_2_6
3434
docker:
35-
- image: circleci/ruby:2.6.1-node-browsers
35+
- image: circleci/ruby:2.6.2-node-browsers
3636
<<: *rails_environment
3737
- image: circleci/postgres:11.1-alpine
3838
<<: *postgres_environment

.env.sample

-3
This file was deleted.

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Organizasyon sırları kurumsal bir `keepass` hesabında tutulmaktadır. Bu sır
4040

4141
- Master.key ve API Anahtarları
4242

43-
Proje sırları `credentials.yml.enc` dosyasında tutulmaktadır. Bu dosyaya erişim bilgilerini [sistem grubu](https://github.com/orgs/omu/teams/ops)'ndan veya `keepass` üzerinden edindikten sonra RAILS_MASTER_KEY isimli bir ortam değişkeni ile anahtarı sisteminize tanımlayın.
43+
Proje sırları `credentials.yml.enc` dosyasında tutulmaktadır. Bu dosyaya erişim bilgilerini [sistem grubu](https://github.com/orgs/omu/teams/ops)'ndan veya `keepass` üzerinden edindikten sonra RAILS_MASTER_KEY ve TENANT_MASTER_KEY ortam değişkenlerini sisteminize tanımlayın.
4444

4545
- VPN
4646

.gitignore

+7-10
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# or operating system, you probably want to add a global ignore instead:
55
# git config --global core.excludesfile '~/.gitignore_global'
66

7-
# Ignore bundler config.
7+
# Ignore bundler config and vendor directory
88
/.bundle
9+
/vendor/*
910

1011
# Ignore the default SQLite database.
1112
/db/*.sqlite3
@@ -16,25 +17,20 @@
1617
/tmp/*
1718
!/log/.keep
1819
!/tmp/.keep
20+
.byebug_history
1921

2022
# Ignore uploaded files in development.
2123
/storage/*
2224
!/storage/.keep
2325

24-
/public/assets
25-
.byebug_history
26-
27-
# Ignore master key for decrypting credentials and more.
28-
/config/master.key
26+
# Ignore yarn dependencies and assets
2927
/public/packs
3028
/public/packs-test
3129
/node_modules
3230
/yarn-error.log
3331
yarn-debug.log*
3432
.yarn-integrity
35-
36-
# Ignore local bundler directory
37-
/vendor/*
33+
/public/assets
3834

3935
# Ignore misc.
4036
/bin/dokku
@@ -44,8 +40,9 @@ yarn-debug.log*
4440
.envrc
4541
/.local/
4642

47-
# Ignore dokku deploy key
43+
# Ignore sensitives
4844
config/deploy_key
45+
/config/master.key
4946

5047
# Ignore auto-generated PDFs of markdown files
5148
.pdf

.hound.yml

-2
This file was deleted.

.markdownlintrc

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"default": true,
3+
"MD003": {
4+
"style": "setext_with_atx"
5+
},
6+
"MD004": {
7+
"style": "sublist"
8+
},
9+
"MD013": {
10+
"code_blocks": false,
11+
"tables": false,
12+
},
13+
"MD024": {
14+
"allow_different_nesting": true
15+
},
16+
"MD029": {
17+
"style": "ordered"
18+
}
19+
}

.rubocop.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,38 @@ Style/AsciiComments:
44
Enabled: false
55
Style/Lambda:
66
Enabled: false
7+
Style/FormatStringToken:
8+
EnforcedStyle: template
79
Documentation:
810
Enabled: false
911
Rails/UnknownEnv:
1012
Environments:
11-
- production
1213
- development
14+
- production
1315
- test
14-
- beta
1516
Metrics/LineLength:
1617
Max: 120
1718
Exclude:
1819
- app/validators/employee_validator.rb # Won't fix
1920
Metrics/BlockLength:
2021
Exclude:
2122
- config/routes/**/*
22-
- lib/tasks/**/*.rake # Won't fix
23+
- lib/tasks/**/*.rake
2324
Metrics/ClassLength:
2425
Exclude:
2526
- test/**/*.rb
2627
AllCops:
2728
TargetRubyVersion: 2.6
2829
# Do not exclude files from ALL COPS unless it's really necessary!
2930
Exclude:
30-
- app/controllers/concerns/reference_resource.rb
31+
- app/controllers/concerns/yoksis_resource.rb
3132
- bin/**/*
32-
- vendor/bundle/**/*
33-
- node_modules/**/*
3433
- db/schema.rb
3534
- db/migrate/*.rb
3635
- config/initializers/simple_form.rb
3736
- config/initializers/simple_form_bootstrap.rb
3837
- config/environments/*.rb
3938
- config/routes.rb
39+
- node_modules/**/*
4040
- Vagrantfile
41+
- vendor/bundle/**/*

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.1
1+
2.6.2

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
FROM ondokuz/ruby-stretch:1.16.1
1+
FROM ondokuz/ruby-stretch:1.17.1
22

33
ENV PATH=/app/bin:$PATH
44

55
ARG NOKUL_TENANT=omu
66
ENV NOKUL_TENANT=$NOKUL_TENANT
77

8-
ARG RAILS_ENV=beta
8+
ARG RAILS_ENV=development
99
ENV RAILS_ENV=$RAILS_ENV
1010

1111
ARG RAILS_MASTER_KEY
1212
ENV RAILS_MASTER_KEY=$RAILS_MASTER_KEY
1313

14+
ARG TENANT_MASTER_KEY
15+
ENV TENANT_MASTER_KEY=$TENANT_MASTER_KEY
16+
1417
ENV RAILS_SERVE_STATIC_FILES=enabled
1518
ENV RAILS_LOG_TO_STDOUT=enabled
1619

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ gem 'webpacker'
3939
gem 'chartkick'
4040
gem 'cocoon'
4141
gem 'font-awesome-rails'
42-
gem 'groupdate' # for chartkick
42+
gem 'groupdate'
4343
gem 'pagy'
4444
gem 'simple_form'
4545
gem 'wicked_pdf'

Gemfile.lock

+23-26
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GIT
88

99
GIT
1010
remote: https://github.com/rails/rails.git
11-
revision: 43fc7b476b483a89dacf9964ccf288f6bc6e1595
11+
revision: efb706daad0e2e1039c6abb4879c837ef8bf4d10
1212
specs:
1313
actioncable (6.0.0.beta3)
1414
actionpack (= 6.0.0.beta3)
@@ -63,7 +63,7 @@ GIT
6363
i18n (>= 0.7, < 2)
6464
minitest (~> 5.1)
6565
tzinfo (~> 1.1)
66-
zeitwerk (~> 1.3, >= 1.3.3)
66+
zeitwerk (~> 1.4)
6767
rails (6.0.0.beta3)
6868
actioncable (= 6.0.0.beta3)
6969
actionmailbox (= 6.0.0.beta3)
@@ -98,9 +98,9 @@ GIT
9898

9999
GIT
100100
remote: https://github.com/rollbar/rollbar-gem.git
101-
revision: a026a7b0fb942e52a892e99a574cc796b7cbd52e
101+
revision: 83ef1acca2b0b1d1b74ff8ef29435ca82e8ca1d6
102102
specs:
103-
rollbar (2.19.2)
103+
rollbar (2.19.3)
104104
multi_json
105105

106106
PATH
@@ -133,18 +133,17 @@ GEM
133133
io-like (~> 0.3.0)
134134
ast (2.4.0)
135135
aws-eventstream (1.0.2)
136-
aws-partitions (1.144.0)
137-
aws-sdk-core (3.47.0)
136+
aws-partitions (1.145.0)
137+
aws-sdk-core (3.48.2)
138138
aws-eventstream (~> 1.0, >= 1.0.2)
139139
aws-partitions (~> 1.0)
140140
aws-sigv4 (~> 1.1)
141-
http-2 (~> 0.10)
142141
jmespath (~> 1.0)
143-
aws-sdk-kms (1.14.0)
144-
aws-sdk-core (~> 3, >= 3.47.0)
142+
aws-sdk-kms (1.16.0)
143+
aws-sdk-core (~> 3, >= 3.48.2)
145144
aws-sigv4 (~> 1.1)
146-
aws-sdk-s3 (1.32.0)
147-
aws-sdk-core (~> 3, >= 3.47.0)
145+
aws-sdk-s3 (1.34.0)
146+
aws-sdk-core (~> 3, >= 3.48.2)
148147
aws-sdk-kms (~> 1)
149148
aws-sigv4 (~> 1.0)
150149
aws-sigv4 (1.1.0)
@@ -161,13 +160,13 @@ GEM
161160
bindex (0.5.0)
162161
bootsnap (1.4.1)
163162
msgpack (~> 1.0)
164-
brakeman (4.4.0)
163+
brakeman (4.5.0)
165164
builder (3.2.3)
166165
bundler-audit (0.6.1)
167166
bundler (>= 1.2.0, < 3)
168167
thor (~> 0.18)
169-
byebug (11.0.0)
170-
capybara (3.14.0)
168+
byebug (11.0.1)
169+
capybara (3.15.0)
171170
addressable
172171
mini_mime (>= 0.1.3)
173172
nokogiri (~> 1.8)
@@ -233,7 +232,6 @@ GEM
233232
activesupport (>= 4.2)
234233
hashdiff (0.3.8)
235234
html_tokenizer (0.0.7)
236-
http-2 (0.10.1)
237235
i18n (1.6.0)
238236
concurrent-ruby (~> 1.0)
239237
image_processing (1.8.0)
@@ -278,25 +276,24 @@ GEM
278276
nokogiri (1.10.1)
279277
mini_portile2 (~> 2.4.0)
280278
orm_adapter (0.5.0)
281-
pagy (2.1.1)
279+
pagy (2.1.3)
282280
parallel (1.14.0)
283-
parser (2.6.0.0)
281+
parser (2.6.2.0)
284282
ast (~> 2.4.0)
285283
pg (1.1.4)
286284
pg_search (2.1.4)
287285
activerecord (>= 4.2)
288286
activesupport (>= 4.2)
289287
pghero (2.2.0)
290288
activerecord
291-
powerpack (0.1.2)
292289
pry (0.12.2)
293290
coderay (~> 1.1.0)
294291
method_source (~> 0.9.0)
295292
pry-rails (0.3.9)
296293
pry (>= 0.10.4)
297294
psych (3.1.0)
298295
public_suffix (3.0.3)
299-
puma (3.12.0)
296+
puma (3.12.1)
300297
pwned (1.2.1)
301298
rack (2.0.6)
302299
rack-attack (5.4.2)
@@ -327,15 +324,14 @@ GEM
327324
responders (2.4.1)
328325
actionpack (>= 4.2.0, < 6.0)
329326
railties (>= 4.2.0, < 6.0)
330-
rubocop (0.65.0)
327+
rubocop (0.66.0)
331328
jaro_winkler (~> 1.5.1)
332329
parallel (~> 1.10)
333330
parser (>= 2.5, != 2.5.1.1)
334-
powerpack (~> 0.1)
335331
psych (>= 3.1.0)
336332
rainbow (>= 2.2.2, < 4.0)
337333
ruby-progressbar (~> 1.7)
338-
unicode-display_width (~> 1.4.0)
334+
unicode-display_width (>= 1.4.0, < 1.6)
339335
ruby-progressbar (1.10.0)
340336
ruby-vips (2.0.13)
341337
ffi (~> 1.9)
@@ -394,7 +390,7 @@ GEM
394390
unf (0.1.4)
395391
unf_ext
396392
unf_ext (0.0.7.5)
397-
unicode-display_width (1.4.1)
393+
unicode-display_width (1.5.0)
398394
uniform_notifier (1.12.1)
399395
warden (1.2.8)
400396
rack (>= 2.0.6)
@@ -409,10 +405,11 @@ GEM
409405
websocket-driver (0.7.0)
410406
websocket-extensions (>= 0.1.0)
411407
websocket-extensions (0.1.3)
412-
wicked_pdf (1.1.0)
408+
wicked_pdf (1.2.1)
409+
activesupport
413410
xpath (3.2.0)
414411
nokogiri (~> 1.8)
415-
zeitwerk (1.3.3)
412+
zeitwerk (1.4.0)
416413

417414
PLATFORMS
418415
ruby
@@ -478,7 +475,7 @@ DEPENDENCIES
478475
wicked_pdf
479476

480477
RUBY VERSION
481-
ruby 2.6.1p33
478+
ruby 2.6.2p47
482479

483480
BUNDLED WITH
484481
2.0.1

app.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "nokul",
3+
"slug": "nokul",
34
"description": "Nokul, nitelikli okul universiteler icin ogrenci ve personel otomasyonudur.",
45
"keywords": [
56
"dokku",
67
"rails"
78
],
9+
"repository": "https://github.com/omu/nokul",
10+
"version": "0.5.8",
811
"scripts": {
912
"dokku": {
1013
"predeploy": "bin/plugdo bundle install -j4 --path /app/vendor/bundle --without development:test && bundle exec rails assets:precompile",

app/controllers/admin/yoksis_dashboard_controller.rb

-7
This file was deleted.

app/controllers/calendar_management/calendar_event_types_controller.rb

+4-8
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,29 @@ def new
1616

1717
def create
1818
@calendar_event_type = CalendarEventType.new(calendar_event_type_params)
19-
@calendar_event_type.save ? redirect_to(index_path, notice: t('.success')) : render(:new)
19+
@calendar_event_type.save ? redirect_to(:calendar_event_types, notice: t('.success')) : render(:new)
2020
end
2121

2222
def edit; end
2323

2424
def update
2525
if @calendar_event_type.update(calendar_event_type_params)
26-
redirect_to(index_path, notice: t('.success'))
26+
redirect_to(:calendar_event_types, notice: t('.success'))
2727
else
2828
render(:edit)
2929
end
3030
end
3131

3232
def destroy
3333
if @calendar_event_type.destroy
34-
redirect_to(index_path, notice: t('.success'))
34+
redirect_to(:calendar_event_types, notice: t('.success'))
3535
else
36-
redirect_to(index_path, alert: t('.warning'))
36+
redirect_to(:calendar_event_types, alert: t('.warning'))
3737
end
3838
end
3939

4040
private
4141

42-
def index_path
43-
%i[calendar_management calendar_event_types]
44-
end
45-
4642
def set_calendar_event_type
4743
@calendar_event_type = CalendarEventType.find(params[:id])
4844
end

0 commit comments

Comments
 (0)