cybele 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybele/app_builder.rb +9 -7
- data/lib/cybele/version.rb +1 -1
- data/templates/README.md.erb +1 -1
- data/templates/app/views/layouts/application.html.haml.erb +5 -5
- data/templates/app/views/layouts/hq/application.html.haml.erb +3 -3
- data/templates/app/views/layouts/hq/login.html.haml.erb +3 -3
- data/templates/app/views/layouts/hq/partials/_navbar.html.haml.erb +1 -1
- data/templates/app/views/layouts/mailer.html.haml.erb +1 -1
- data/templates/app/views/welcome/index.html.haml.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdcd06663bdb0df45eb3e29884129fd320c3efaf
|
4
|
+
data.tar.gz: b029a782bdf9ba6083d91d264de8c377ea99df8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e26bf635d99f1a6639301b31d45068bba474ac08e5a1d312abaf41b55f5b5e7f846b5a9295b02cb2a5bb8c456a5a4ba6301cfd303acfdae4162ec0afed28b217
|
7
|
+
data.tar.gz: 1d18bb27704b38a0409fecf4d417fde08f842d2fded66616ea88e0d306ce4c5389a9219d7b1f80cee384b210583c82840cdee08d88922f5dcb6e5426419a68ef
|
data/lib/cybele/app_builder.rb
CHANGED
@@ -106,12 +106,12 @@ module Cybele
|
|
106
106
|
copy_file 'config/settings/staging.yml', 'config/settings/staging.yml'
|
107
107
|
|
108
108
|
config = <<-RUBY
|
109
|
-
Mail.register_interceptor RecipientInterceptor.new(Settings.email.sandbox, subject_prefix: '[STAGING]')
|
109
|
+
Mail.register_interceptor RecipientInterceptor.new(Settings.email.sandbox, subject_prefix: '[STAGING]')
|
110
110
|
RUBY
|
111
111
|
configure_environment 'staging', config
|
112
112
|
|
113
113
|
config = <<-RUBY
|
114
|
-
config.action_mailer.delivery_method = :smtp
|
114
|
+
config.action_mailer.delivery_method = :smtp
|
115
115
|
config.action_mailer.raise_delivery_errors = false
|
116
116
|
config.action_mailer.smtp_settings = {
|
117
117
|
address: Settings.smtp.address,
|
@@ -128,7 +128,7 @@ config.action_mailer.delivery_method = :smtp
|
|
128
128
|
|
129
129
|
def configure_bullet
|
130
130
|
config = <<-RUBY
|
131
|
-
config.after_initialize do
|
131
|
+
config.after_initialize do
|
132
132
|
Bullet.enable = true
|
133
133
|
Bullet.alert = true
|
134
134
|
Bullet.bullet_logger = true
|
@@ -186,7 +186,9 @@ AWS:
|
|
186
186
|
end
|
187
187
|
|
188
188
|
def setup_letter_opener
|
189
|
-
config =
|
189
|
+
config = <<-RUBY
|
190
|
+
config.action_mailer.delivery_method = :letter_opener
|
191
|
+
RUBY
|
190
192
|
configure_environment 'development', config
|
191
193
|
end
|
192
194
|
|
@@ -227,7 +229,7 @@ require 'capybara/rspec'
|
|
227
229
|
|
228
230
|
def add_exception_notification_to_environments
|
229
231
|
config = <<-CODE
|
230
|
-
config.middleware.use ExceptionNotification::Rack,
|
232
|
+
config.middleware.use ExceptionNotification::Rack,
|
231
233
|
email: {
|
232
234
|
email_prefix: "[#{app_name}]",
|
233
235
|
sender_address: %{"Notifier" <notifier@#{app_name}.com>},
|
@@ -488,14 +490,14 @@ end
|
|
488
490
|
|
489
491
|
def action_mailer_host(rails_env)
|
490
492
|
config = <<-RUBY
|
491
|
-
# Mail Setting
|
493
|
+
# Mail Setting
|
492
494
|
config.action_mailer.default_url_options = { host: ENV['ROOT_PATH'] }
|
493
495
|
RUBY
|
494
496
|
configure_environment(rails_env, config)
|
495
497
|
end
|
496
498
|
|
497
499
|
def configure_environment(rails_env, config)
|
498
|
-
inject_into_file("config/environments/#{rails_env}.rb", "\n
|
500
|
+
inject_into_file("config/environments/#{rails_env}.rb", "\n#{config}", before: "\nend")
|
499
501
|
end
|
500
502
|
|
501
503
|
def generate_devise_strong_parameters(model_name)
|
data/lib/cybele/version.rb
CHANGED
data/templates/README.md.erb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
!!!
|
2
2
|
%html{lang: I18n.locale}
|
3
3
|
%head
|
4
|
-
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name %>" : '<%= app_name %>'
|
4
|
+
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>'
|
5
5
|
%meta(http-equiv="content-type" content="text/html" charset="utf-8")
|
6
6
|
%meta(http-equiv="x-ua-compatible" content="ie=edge,chrome=1")
|
7
|
-
%meta(name="description" content="<%= app_name %>")
|
8
|
-
%meta(name="author" content="<%= app_name %>")
|
7
|
+
%meta(name="description" content="<%= app_name.capitalize %>")
|
8
|
+
%meta(name="author" content="<%= app_name.capitalize %>")
|
9
9
|
%link(rel="shortcut icon" href="/images/favicon.png")
|
10
10
|
|
11
11
|
= stylesheet_link_tag 'application', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css',
|
@@ -21,10 +21,10 @@
|
|
21
21
|
%li.active
|
22
22
|
%a{href: "/"}
|
23
23
|
= t('navbar.home_page')
|
24
|
-
%h3.muted= link_to "<%= app_name %>", root_path
|
24
|
+
%h3.muted= link_to "<%= app_name.capitalize %>", root_path
|
25
25
|
%hr/
|
26
26
|
= render partial: 'layouts/partials/messages'
|
27
27
|
= yield
|
28
28
|
%hr/
|
29
29
|
.footer
|
30
|
-
%p <%= app_name %> Copyright © #{Time.zone.now.year} Tüm Hakları Saklıdır.
|
30
|
+
%p <%= app_name.capitalize %> Copyright © #{Time.zone.now.year} Tüm Hakları Saklıdır.
|
@@ -4,11 +4,11 @@
|
|
4
4
|
/[if lt IE 10] <html class="no-js lt-ie10" lang="en-us">
|
5
5
|
%html{lang: I18n.locale, class: 'no-js'}
|
6
6
|
%head
|
7
|
-
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name %>" : '<%= app_name %>'
|
7
|
+
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>'
|
8
8
|
%meta(http-equiv="content-type" content="text/html" charset="utf-8")
|
9
9
|
%meta(http-equiv="x-ua-compatible" content="ie=edge,chrome=1")
|
10
|
-
%meta(name="description" content="<%= app_name %>")
|
11
|
-
%meta(name="author" content="<%= app_name %>")
|
10
|
+
%meta(name="description" content="<%= app_name.capitalize %>")
|
11
|
+
%meta(name="author" content="<%= app_name.capitalize %>")
|
12
12
|
%meta{content: 'initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width', name: 'viewport'}
|
13
13
|
%meta(name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)")
|
14
14
|
%meta(name='apple-mobile-web-app-capable' content='yes')
|
@@ -4,11 +4,11 @@
|
|
4
4
|
/[if lt IE 10] <html class="no-js lt-ie10" lang="en-us">
|
5
5
|
%html{lang: I18n.locale, class: 'no-js'}
|
6
6
|
%head
|
7
|
-
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name %>" : '<%= app_name %>'
|
7
|
+
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>'
|
8
8
|
%meta(http-equiv="content-type" content="text/html" charset="utf-8")
|
9
9
|
%meta(http-equiv="x-ua-compatible" content="ie=edge,chrome=1")
|
10
|
-
%meta(name="description" content="<%= app_name %>")
|
11
|
-
%meta(name="author" content="<%= app_name %>")
|
10
|
+
%meta(name="description" content="<%= app_name.capitalize %>")
|
11
|
+
%meta(name="author" content="<%= app_name.capitalize %>")
|
12
12
|
%meta{content: 'initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width', name: 'viewport'}
|
13
13
|
%meta(name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)")
|
14
14
|
%meta(name='apple-mobile-web-app-capable' content='yes')
|