cybele 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/README.md +16 -2
  4. data/dump.rdb +1 -0
  5. data/lib/cybele/app_builder.rb +213 -220
  6. data/lib/cybele/generators/app_generator.rb +31 -20
  7. data/lib/cybele/version.rb +2 -2
  8. data/templates/.env.local.erb +11 -0
  9. data/templates/.env.production.erb +11 -0
  10. data/templates/.env.staging.erb +11 -0
  11. data/templates/README.md.erb +22 -0
  12. data/templates/app/assets/javascripts/application.js.coffee +63 -1
  13. data/templates/app/assets/javascripts/hq/application.js.coffee +93 -0
  14. data/templates/app/assets/stylesheets/application.css.sass +15 -4
  15. data/templates/app/assets/stylesheets/hq/application.css.sass +92 -0
  16. data/templates/app/controllers/application_controller.rb.erb +48 -0
  17. data/templates/app/controllers/concerns/basic_authentication.rb +18 -0
  18. data/templates/app/controllers/hq/admins_controller.rb +64 -0
  19. data/templates/app/controllers/hq/application_controller.rb +11 -0
  20. data/templates/app/controllers/hq/audits_controller.rb +16 -0
  21. data/templates/app/controllers/hq/cities_controller.rb +54 -0
  22. data/templates/app/controllers/hq/countries_controller.rb +54 -0
  23. data/templates/app/controllers/hq/dashboard_controller.rb +4 -1
  24. data/templates/app/controllers/hq/passwords_controller.rb +10 -0
  25. data/templates/app/controllers/hq/registrations_controller.rb +21 -0
  26. data/templates/app/controllers/hq/sessions_controller.rb +1 -1
  27. data/templates/app/controllers/hq/users_controller.rb +64 -0
  28. data/templates/app/controllers/user/dashboard_controller.rb +8 -0
  29. data/templates/app/controllers/user/passwords_controller.rb +10 -0
  30. data/templates/app/controllers/user/profiles_controller.rb +34 -0
  31. data/templates/app/controllers/user/registrations_controller.rb +20 -0
  32. data/templates/app/controllers/user/sessions_controller.rb +16 -0
  33. data/templates/app/controllers/user/user_application_controller.rb +20 -0
  34. data/templates/app/helpers/application_helper.rb.erb +27 -0
  35. data/templates/app/mailers/admin_mailer.rb +10 -0
  36. data/templates/app/mailers/base_mailer.rb +4 -0
  37. data/templates/app/mailers/user_mailer.rb +10 -0
  38. data/templates/app/models/admin.rb +51 -0
  39. data/templates/app/models/audit.rb +3 -0
  40. data/templates/app/models/city.rb +12 -0
  41. data/templates/app/models/country.rb +12 -0
  42. data/templates/app/models/user.rb +54 -0
  43. data/templates/app/views/admin_mailer/login_info.html.haml +13 -0
  44. data/templates/app/views/devise/confirmations/new.html.haml +6 -5
  45. data/templates/app/views/devise/mailer/confirmation_instructions.html.haml +5 -3
  46. data/templates/app/views/devise/mailer/reset_password_instructions.html.haml +2 -2
  47. data/templates/app/views/devise/passwords/edit.html.haml +3 -3
  48. data/templates/app/views/devise/passwords/new.html.haml +3 -3
  49. data/templates/app/views/devise/registrations/edit.html.haml +5 -11
  50. data/templates/app/views/devise/registrations/new.html.haml +18 -6
  51. data/templates/app/views/devise/sessions/new.html.haml +1 -1
  52. data/templates/app/views/devise/shared/_links.haml +3 -1
  53. data/templates/app/views/devise/unlocks/new.html.haml +4 -4
  54. data/templates/app/views/hq/admins/_admin.html.haml +21 -0
  55. data/templates/app/views/hq/admins/_blank.html.haml +9 -0
  56. data/templates/app/views/hq/admins/_filters.html.haml +20 -0
  57. data/templates/app/views/hq/admins/_form.html.haml +17 -0
  58. data/templates/app/views/hq/admins/_list.html.haml +15 -0
  59. data/templates/app/views/hq/admins/edit.html.haml +3 -0
  60. data/templates/app/views/hq/admins/index.html.haml +18 -0
  61. data/templates/app/views/hq/admins/new.html.haml +5 -0
  62. data/templates/app/views/hq/admins/show.html.haml +19 -0
  63. data/templates/app/views/hq/audits/_filters.html.haml +32 -0
  64. data/templates/app/views/hq/audits/_list.html.haml +37 -0
  65. data/templates/app/views/hq/audits/index.html.haml +5 -0
  66. data/templates/app/views/hq/audits/show.html.haml +5 -0
  67. data/templates/app/views/hq/cities/_blank.html.haml +9 -0
  68. data/templates/app/views/hq/cities/_city.html.haml +12 -0
  69. data/templates/app/views/hq/cities/_filters.html.haml +15 -0
  70. data/templates/app/views/hq/cities/_form.html.haml +15 -0
  71. data/templates/app/views/hq/cities/_list.html.haml +13 -0
  72. data/templates/app/views/hq/cities/edit.html.haml +3 -0
  73. data/templates/app/views/hq/cities/index.html.haml +18 -0
  74. data/templates/app/views/hq/cities/new.html.haml +3 -0
  75. data/templates/app/views/hq/cities/show.html.haml +13 -0
  76. data/templates/app/views/hq/countries/_blank.html.haml +9 -0
  77. data/templates/app/views/hq/countries/_country.html.haml +11 -0
  78. data/templates/app/views/hq/countries/_filters.html.haml +14 -0
  79. data/templates/app/views/hq/countries/_form.html.haml +14 -0
  80. data/templates/app/views/hq/countries/_list.html.haml +12 -0
  81. data/templates/app/views/hq/countries/edit.html.haml +3 -0
  82. data/templates/app/views/hq/countries/index.html.haml +18 -0
  83. data/templates/app/views/hq/countries/new.html.haml +3 -0
  84. data/templates/app/views/hq/countries/show.html.haml +14 -0
  85. data/templates/app/views/hq/dashboard/index.html.haml +8 -0
  86. data/templates/app/views/hq/passwords/edit.html.haml +12 -0
  87. data/templates/app/views/hq/passwords/new.html.haml +9 -0
  88. data/templates/app/views/hq/registrations/edit.html.haml +19 -0
  89. data/templates/app/views/hq/sessions/new.html.haml +7 -5
  90. data/templates/app/views/hq/users/_blank.html.haml +9 -0
  91. data/templates/app/views/hq/users/_filters.html.haml +20 -0
  92. data/templates/app/views/hq/users/_form.html.haml +18 -0
  93. data/templates/app/views/hq/users/_list.html.haml +15 -0
  94. data/templates/app/views/hq/users/_user.html.haml +20 -0
  95. data/templates/app/views/hq/users/edit.html.haml +3 -0
  96. data/templates/app/views/hq/users/index.html.haml +18 -0
  97. data/templates/app/views/hq/users/new.html.haml +5 -0
  98. data/templates/app/views/hq/users/show.html.haml +20 -0
  99. data/templates/app/views/layouts/application.html.haml.erb +16 -8
  100. data/templates/app/views/layouts/hq/application.html.haml.erb +55 -0
  101. data/templates/app/views/layouts/hq/login.html.haml.erb +35 -0
  102. data/templates/app/views/layouts/hq/partials/_dock.html.haml.erb +36 -0
  103. data/templates/app/views/layouts/hq/partials/_footer.html.haml.erb +0 -0
  104. data/templates/app/views/layouts/hq/partials/_navbar.html.haml.erb +22 -0
  105. data/templates/app/views/layouts/hq/partials/_trackers.html.haml.erb +0 -0
  106. data/templates/app/views/layouts/mailer.html.haml.erb +321 -0
  107. data/templates/app/views/layouts/mailer.text.haml +1 -0
  108. data/templates/app/views/layouts/partials/_footer.html.haml.erb +0 -0
  109. data/templates/app/views/layouts/partials/_trackers.html.haml.erb +0 -0
  110. data/templates/app/views/layouts/partials/_warnings.html.haml.erb +3 -0
  111. data/templates/app/views/user/dashboard/index.html.haml +8 -0
  112. data/templates/app/views/user/passwords/edit.html.haml +12 -0
  113. data/templates/app/views/user/passwords/new.html.haml +10 -0
  114. data/templates/app/views/{user_profiles → user/profiles}/_form.html.haml +4 -5
  115. data/templates/app/views/user/profiles/edit.html.haml +3 -0
  116. data/templates/app/views/user/profiles/show.html.haml +15 -0
  117. data/templates/app/views/user/registrations/edit.html.haml +19 -0
  118. data/templates/app/views/user/sessions/new.html.haml +11 -0
  119. data/templates/app/views/user_mailer/login_info.html.haml +13 -0
  120. data/templates/app/views/welcome/index.html.haml.erb +4 -4
  121. data/templates/config/initializers/devise_async.rb +6 -0
  122. data/templates/config/initializers/sidekiq.rb +13 -0
  123. data/templates/config/locales/email.tr.yml +28 -0
  124. data/templates/config/locales/models.tr.yml +72 -41
  125. data/templates/config/locales/responders.tr.yml +4 -1
  126. data/templates/config/locales/show_for.tr.yml +1 -3
  127. data/templates/config/locales/simple_form.tr.yml +8 -22
  128. data/templates/config/locales/tr.yml +33 -2
  129. data/templates/config/locales/view.tr.yml +64 -18
  130. data/templates/config/routes.erb +51 -0
  131. data/templates/config/schedule.yml +16 -0
  132. data/templates/config/settings/production.yml +0 -17
  133. data/templates/config/settings/staging.yml +0 -17
  134. data/templates/config/sidekiq.yml +13 -0
  135. data/templates/cybele_Gemfile +42 -5
  136. data/templates/cybele_gitignore +3 -1
  137. data/templates/cybele_version.txt +1 -0
  138. data/templates/env.sample.erb +11 -0
  139. data/templates/lib/data/cities.yml +163 -0
  140. data/templates/lib/tasks/dev.rake +29 -5
  141. data/templates/lib/tasks/sidekiq.rake +26 -0
  142. data/templates/lib/templates/rails/responders_controller/controller.rb +27 -22
  143. data/templates/public/images/favicon.png +0 -0
  144. data/templates/public/images/mail-logo.png +0 -0
  145. data/templates/public/images/missing_cover.png +0 -0
  146. data/templates/public/images/missing_cover@2x.png +0 -0
  147. data/templates/public/images/missing_logo.png +0 -0
  148. data/templates/public/images/missing_logo@2x.png +0 -0
  149. data/templates/public/images/sprite.png +0 -0
  150. data/templates/ruby-version +1 -1
  151. data/templates/vendor/assets/javascripts/jquery.datetimepicker.js +1871 -0
  152. data/templates/vendor/assets/javascripts/jquery.maskedinput.min.js +7 -0
  153. data/templates/vendor/assets/javascripts/nprogress.js +491 -0
  154. data/templates/vendor/assets/javascripts/trix.js +25 -0
  155. data/templates/vendor/assets/stylesheets/jquery.datetimepicker.css +418 -0
  156. data/templates/vendor/assets/stylesheets/nprogress.css +74 -0
  157. data/templates/vendor/assets/stylesheets/trix.css +209 -0
  158. metadata +125 -24
  159. data/templates/app/controllers/application_controller.rb +0 -19
  160. data/templates/app/controllers/hq/admin_profiles_controller.rb +0 -56
  161. data/templates/app/controllers/user_profiles_controller.rb +0 -56
  162. data/templates/app/views/hq/admin_profiles/_form.html.haml +0 -15
  163. data/templates/app/views/hq/admin_profiles/edit.html.haml +0 -3
  164. data/templates/app/views/hq/admin_profiles/new.html.haml +0 -3
  165. data/templates/app/views/hq/admin_profiles/show.html.haml +0 -13
  166. data/templates/app/views/hq/dashboard/index.html.haml.erb +0 -3
  167. data/templates/app/views/user_profiles/edit.html.haml +0 -3
  168. data/templates/app/views/user_profiles/new.html.haml +0 -3
  169. data/templates/app/views/user_profiles/show.html.haml +0 -13
  170. data/templates/config/locales/en.yml +0 -2
  171. data/templates/config/locales/models.en.yml +0 -54
  172. data/templates/config/locales/responders.en.yml +0 -10
  173. data/templates/config/locales/show_for.en.yml +0 -7
  174. data/templates/config/locales/simple_form.en.yml +0 -30
  175. data/templates/config/locales/view.en.yml +0 -51
@@ -1,21 +1,58 @@
1
- # encoding: utf-8
2
- tr:
1
+ ---
2
+ tr:
3
+ actions:
4
+ update: Güncelleme
5
+ create: Oluşturma
6
+ destroy: Silme
7
+ delete: Silme
3
8
  btn:
4
9
  back: Geri
5
10
  update: Güncelle
6
11
  view:
7
- select: Lütfen seçiniz!
12
+ excel_export: Excel Olarak Çıkart
13
+ make_passive: Pasif et
14
+ make_active: Aktif et
15
+ actions: İşlemler
16
+ select: Seçiniz
17
+ active: Aktif
18
+ passive: Pasif
19
+ start: Başlangıç
20
+ end: Bitiş
21
+ used: Kullanılan
22
+ not_used: Kullanılmayan
23
+ cancel: İptal et
24
+ all: Hepsi
25
+ reset: Temizle
26
+ quick_search: Arama yap..
27
+ reload: Yeniden yükle
28
+ hello: Merhaba %{user}
29
+ there_is_no_data: Hiç %{resource} eklenmemiş.
30
+ create_resource_mail_info: "Yeni bir %{resource} eklediğinizde e-posta adresine giriş bilgileri gönderilecektir."
8
31
  navbar:
9
32
  settings: Ayarlar
10
- signout: Çıkış
33
+ signup: Kayıt ol
11
34
  signin: Giriş Yap
35
+ sign_out: Çıkış yap
36
+ edit_login_info: Giriş bilgilerini güncelle
37
+ home_page: Anasayfa
38
+ admin_portal: Yönetici Portalı
39
+ tooltips:
40
+ delete: Sil
41
+ are_you_sure: Devam etmek istedğinize emin misiniz?
42
+ choose: Seç
43
+ btn:
44
+ add: Ekle
45
+ update: Güncelle
46
+ back: Geri
47
+ detail: Detaylar
48
+ delete: Sil
12
49
  dock:
13
- dashboard: Kontrol Paneli
14
- number:
15
- currency:
16
- format:
17
- format: "%u %n"
18
- unit: ""
50
+ dashboard: Kontrol Paneli
51
+ dashboard: Kontrol paneli
52
+ profile: Profil
53
+ system_users: Sistem kullanıcıları
54
+ system_datas: Sistem verileri
55
+ staging_warning: "<strong> Dikkat! </strong> Lütfen yapacağınız işlemlerde dikkatli olunuz. Şuan da <strong> test </strong> sunucusu üzerinde işlem yapıyorsunuz."
19
56
  internal_server_error: "Üzgünüz. Şu anda bir hata var. Mühendislerimiz bu hata üzerinde çalışma yapıyorlar. En kısa sürede çözeceğiz."
20
57
  not_found: "Üzgünüz. Bu sayfa bulunamadı. Taşınmış olabilir. Buraya gitmek istediğinizden emin olun."
21
58
  devise:
@@ -23,30 +60,39 @@ tr:
23
60
  title: '%{model} Girişi'
24
61
  button: Giriş Yap
25
62
  remember_me: Beni Hatırla
63
+ deactivated: Üzgünüz, bu hesap pasif hale getirilmiştir.
26
64
  registration:
27
65
  title: '%{model} Giriş Bilgilerini Güncelle'
28
66
  waiting_confirmation: 'E-posta addresi onayı için bekleniyor: %{email}'
29
67
  hint_password: Değiştirmek istemiyorsanız boş bırakınız
30
- hint_current_password: Değişiklikleri onaylamak için şuan ki şifrenizi girmelisiniz
68
+ hint_current_password: Değişiklikleri onaylamak için şuan ki parolanız girmelisiniz
31
69
  new:
32
70
  title: '%{model} Kayıt İşlemi'
33
71
  character_hint: 'Minimum %{length} karakter'
34
72
  button: Kayıt Ol
73
+ edit:
74
+ title: '%{model} Giriş Bilgilerini Güncelle'
35
75
  shared:
36
76
  links:
37
77
  signup: Kayıt Ol
38
78
  signin: Giriş Yap
39
- forgot_password: Şifrenizi mi unuttunuz?
79
+ forgot_password: Parolanızı unuttunuz?
40
80
  confirmation_instructions: Onaylama yönergesini mi almadınız?
41
81
  unlock_instructions: Kapatma yönergesini mi almadınız?
42
82
  signin_with: '%{name} ile Giriş Yap'
43
83
  signup_with: '%{name} ile Kayıt Ol'
84
+ confirmation:
85
+ new:
86
+ title: Onaylama Talimatlarını Yeniden Gönder
87
+ btn:
88
+ resend: Gönder
44
89
  password:
90
+ new:
91
+ title: Parolanızı mı unuttunuz?
45
92
  reset:
46
- title: Şifrenizi mi unuttunuz?
47
- instructions: Şifre sıfırlama talimatlarını gönder
93
+ instructions: Parola sıfırlama talimatlarını gönder
48
94
  edit:
49
- title: Şifrenizi Değiştriniz
50
- new_password: Yeni şifre
51
- confirmation: Yeni şifre doğrulması
52
- button: Şifremi Değiştir
95
+ title: Parolanızı Değiştiriniz
96
+ new_password: Yeni parolanız
97
+ confirmation: Yeni parola doğrulması
98
+ button: Parolamı Değiştir
@@ -0,0 +1,51 @@
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: [:index, :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
@@ -0,0 +1,16 @@
1
+ # 00 * * * * -> Daily at midnight
2
+ # */5 * * * * -> Every 5 minutes
3
+ # */20 * * * * -> Every 20 minutes
4
+ # 0 0 * * * -> Every day at midnight
5
+ # 1 0 * * * -> Every day at 00:01
6
+ # 20 0 * * * -> Every day at 00:20
7
+ # 30 0 * * * -> Every day at 00:30
8
+ # 40 0 * * * -> Every day at 00:40
9
+
10
+ # Look config/initializers/sidekiq.rb
11
+
12
+ # Every day at 00:01
13
+ #check_course_hosting_date_job:
14
+ # cron: 1 0 * * * Europe/Istanbul
15
+ # class: JobName
16
+ # queue: high_priority
@@ -1,17 +0,0 @@
1
- smtp:
2
- mandrill:
3
- address: 'smtp.mandrillapp.com'
4
- port: 587
5
- enable_starttls_auto: true
6
- user_name: 'email@email.com'
7
- password: 'password'
8
- authentication: 'plain'
9
-
10
- AWS:
11
- S3:
12
- bucket: projectname-production
13
- access_key_id: XXXXXXXXXXXXXXXX
14
- secret_access_key: YYYYYYYYYYYYYYYYYY
15
- aws_url: http://projectname-production.s3.amazonaws.com/
16
- aws_raw_url: projectname-production.s3.amazonaws.com
17
- end_point: s3-eu-west-1.amazonaws.com
@@ -1,17 +0,0 @@
1
- smtp:
2
- mandrill:
3
- address: 'smtp.mandrillapp.com'
4
- port: 587
5
- enable_starttls_auto: true
6
- user_name: 'email@email.com'
7
- password: 'password'
8
- authentication: 'plain'
9
-
10
- AWS:
11
- S3:
12
- bucket: projectname-production
13
- access_key_id: XXXXXXXXXXXXXXXX
14
- secret_access_key: YYYYYYYYYYYYYYYYYY
15
- aws_url: http://projectname-production.s3.amazonaws.com/
16
- aws_raw_url: projectname-production.s3.amazonaws.com
17
- end_point: s3-eu-west-1.amazonaws.com
@@ -0,0 +1,13 @@
1
+ production:
2
+ :concurrency: 25
3
+ staging:
4
+ :concurrency: 3
5
+ development:
6
+ :concurrency: 25
7
+ :logfile: ./log/sidekiq.log
8
+ :pidfile: ./tmp/pids/sidekiq.pid
9
+ :daemon: true
10
+ :queues:
11
+ - default
12
+ - mailers
13
+ - [high_priority, 2]
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'dotenv-rails', require: 'dotenv/rails-now'
4
- gem 'rails', '~> 4.2.5'
5
- gem 'pg', '~> 0.18.2'
4
+ gem 'rails', '~> 4.2.6'
5
+ gem 'pg', '~> 0.18.4'
6
6
  gem 'rails_config', '~> 0.4.2'
7
7
  gem 'devise', '~> 3.4.1'
8
8
  gem 'devise-i18n', '~> 0.9.0'
@@ -16,7 +16,6 @@ gem 'polyamorous', '~> 1.2.0'
16
16
 
17
17
  # Deployment gems
18
18
  gem 'capistrano', '~> 3.4.0'
19
- gem 'unicorn', '~> 4.9.0'
20
19
  group :development do
21
20
  gem 'capistrano-rails', '~> 1.1', require: false
22
21
  gem 'capistrano-bundler', '~> 1.1', require: false
@@ -47,11 +46,12 @@ gem 'hierapolis-rails', '~> 1.1.3'
47
46
  gem 'sass-rails', '~> 5.0.3'
48
47
  gem 'compass-rails', '~> 2.0.5'
49
48
  gem 'bootstrap-sass', '~> 3.3.4'
50
- gem 'audited-activerecord', '~> 4.0'
51
49
  gem 'enum_help', '~> 0.0.14'
52
-
53
50
  gem 'chosen-rails', '1.4.1'
54
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
55
 
56
56
  group :doc do
57
57
  gem 'sdoc', require: false
@@ -65,5 +65,42 @@ group :development, :test do
65
65
  gem 'katip'
66
66
  gem 'capybara'
67
67
  gem 'bullet'
68
+ gem 'sinatra', require: nil
68
69
  gem 'quiet_assets'
69
70
  end
71
+
72
+ # For heroku
73
+ group :production, :staging do
74
+ gem 'rails_12factor'
75
+ end
76
+
77
+ # Notifications
78
+ gem 'rollbar', '~> 2.7.1'
79
+
80
+ # App server
81
+ # gem 'unicorn', '~> 4.9.0'
82
+ gem 'puma', '~> 3.4.0'
83
+
84
+ # Backgorund jobs
85
+ # Sidekiq
86
+ gem 'sidekiq', '~> 4.1'
87
+ gem 'devise-async', '~> 0.10.1'
88
+ gem 'sidekiq-cron', '~> 0.4.2'
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'
@@ -19,14 +19,16 @@
19
19
  *.swp
20
20
  .env
21
21
  bin/stubs
22
+ /.env.*
23
+ /.env.local
22
24
  public/system
23
- tags
24
25
  vendor/bundler_gems
25
26
 
26
27
  # Ignore ide and text editor
27
28
  .idea
28
29
  .idea/
29
30
  .idea/**/*
31
+ /dump.rdb
30
32
 
31
33
  # Ignore pow files
32
34
  .powrc
@@ -0,0 +1 @@
1
+ v1.0.0
@@ -0,0 +1,11 @@
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=
@@ -0,0 +1,163 @@
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"