bootstrap_leather 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +21 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +175 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/app/helpers/bootstrap_leather_helper.rb +158 -0
- data/app/views/bootstrap_leather/_alert.html.haml +5 -0
- data/app/views/bootstrap_leather/_alert_flash_messages.html.haml +4 -0
- data/app/views/bootstrap_leather/_badge.html.haml +3 -0
- data/app/views/bootstrap_leather/_dropdown_nav_item.html.haml +10 -0
- data/app/views/bootstrap_leather/_footer_javascript.html.haml +1 -0
- data/app/views/bootstrap_leather/_head_css.html.haml +1 -0
- data/app/views/bootstrap_leather/_hero_unit.html.haml +2 -0
- data/app/views/bootstrap_leather/_icon.html.haml +1 -0
- data/app/views/bootstrap_leather/_modal.html.haml +8 -0
- data/app/views/bootstrap_leather/_nav_item.html.haml +2 -0
- data/app/views/bootstrap_leather/_nav_list.html.haml +2 -0
- data/app/views/bootstrap_leather/_navbar.html.haml +10 -0
- data/app/views/bootstrap_leather/_navbar_in_container.haml +4 -0
- data/app/views/bootstrap_leather/_navbar_with_container.haml +4 -0
- data/app/views/bootstrap_leather/_tabs.html.haml +10 -0
- data/app/views/bootstrap_leather/_thumbnail.html.haml +3 -0
- data/app/views/bootstrap_leather/_widget.html.haml +3 -0
- data/app/views/bootstrap_leather/_widgets.html.haml +2 -0
- data/bin/rails +4 -0
- data/bootstrap_leather.gemspec +156 -0
- data/lib/bootstrap_leather.rb +11 -0
- data/lib/bootstrap_leather/configuration.rb +23 -0
- data/lib/bootstrap_leather/engine.rb +5 -0
- data/lib/bootstrap_leather/localization.rb +31 -0
- data/lib/bootstrap_leather/railtie.rb +9 -0
- data/lib/bootstrap_leather/version.rb +7 -0
- data/lib/generators/bootstrap_leather/install/install_generator.rb +28 -0
- data/lib/generators/bootstrap_leather/install/templates/initializer.rb +6 -0
- data/lib/generators/bootstrap_leather/utils.rb +16 -0
- data/spec/bootstrap_leather_spec.rb +7 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/customizable_bootstrap/index.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css.scss +15 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/colors.css.scss +100 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/font.css.scss +9 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/grid.css.scss +7 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/index.css.scss +13 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/layers.css.scss +7 -0
- data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/overrides.css.scss +23 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/welcome_controller.rb +9 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.haml +68 -0
- data/spec/dummy/app/views/welcome/index.html.haml +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +23 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/bootstrap_leather.rb +6 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +12 -0
- metadata +287 -0
data/spec/dummy/Rakefile
ADDED
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require customizable_bootstrap
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into customizable_bootstrap.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require bootstrap
|
14
|
+
//= require_tree .
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
14
|
+
|
15
|
+
@import './customizable_bootstrap/index';
|
@@ -0,0 +1,100 @@
|
|
1
|
+
|
2
|
+
/* Colors to be used in the rest of the file */
|
3
|
+
$black: #000;
|
4
|
+
$gray: #555;
|
5
|
+
$grayDark: #333;
|
6
|
+
$grayDarker: #222;
|
7
|
+
$grayLight: #999;
|
8
|
+
$grayLighter: #ccc;
|
9
|
+
$grayLightness: #ddd;
|
10
|
+
$grayLightest: #eee;
|
11
|
+
$grayLightVery: #f5f5f5;
|
12
|
+
$grayLightExtremely: #f9f9f9;
|
13
|
+
$white: #fff;
|
14
|
+
$blue: #049cdb;
|
15
|
+
$blueDark: #0064cd;
|
16
|
+
$green: #46a546;
|
17
|
+
$red: #9d261d;
|
18
|
+
$yellow: #ffc40d;
|
19
|
+
$orange: #f89406;
|
20
|
+
$pink: #c3325f;
|
21
|
+
$purple: #7a43b6;
|
22
|
+
|
23
|
+
|
24
|
+
/* Assignments of colors to useful variable names */
|
25
|
+
$bodyBackground: $white;
|
26
|
+
$textColor: $grayDark;
|
27
|
+
$linkColor: $blue;
|
28
|
+
$linkColorHover: darken($linkColor, 15%);
|
29
|
+
|
30
|
+
$tableBackground: transparent;
|
31
|
+
$tableBackgroundAccent: $grayLightExtremely;
|
32
|
+
$tableBackgroundHover: $grayLightVery;
|
33
|
+
$tableBorder: $grayLightness;
|
34
|
+
$hrBorder: $grayLightest;
|
35
|
+
|
36
|
+
$btnBackground: $white;
|
37
|
+
$btnBackgroundHighlight: darken($btnBackground, 10%);
|
38
|
+
$btnBorder: $grayLighter;
|
39
|
+
$btnDangerBackground: $red;
|
40
|
+
$btnDangerBackgroundHighlight: darken($btnDangerBackground, 10%);
|
41
|
+
$btnInfoBackground: $blue;
|
42
|
+
$btnInfoBackgroundHighlight: darken($btnInfoBackground, 10%);
|
43
|
+
$btnInverseBackground: $gray;
|
44
|
+
$btnInverseBackgroundHighlight: darken($gray, 10%);
|
45
|
+
$btnPrimaryBackground: $blueDark;
|
46
|
+
$btnPrimaryBackgroundHighlight: darken($btnPrimaryBackground, 10%);
|
47
|
+
$btnSuccessBackground: $green;
|
48
|
+
$btnSuccessBackgroundHighlight: darken($btnSuccessBackground, 10%);
|
49
|
+
$btnWarningBackground: $orange;
|
50
|
+
$btnWarningBackgroundHighlight: darken($btnWarningBackground, 10%);
|
51
|
+
|
52
|
+
$inputBackground: $white;
|
53
|
+
$inputBorder: $grayLighter;
|
54
|
+
$inputBorderRadius: 3px;
|
55
|
+
$inputDisabledBackground: $grayLightest;
|
56
|
+
$formActionsBackground: $grayLightVery;
|
57
|
+
$placeholderText: $grayLight;
|
58
|
+
|
59
|
+
$dropdownBackground: $white;
|
60
|
+
$dropdownBorder: fadeout($black, .2);
|
61
|
+
$dropdownDividerBottom: $white;
|
62
|
+
$dropdownDividerTop: $grayLightest;
|
63
|
+
$dropdownLinkBackgroundHover: $linkColor;
|
64
|
+
$dropdownLinkColor: $grayDark;
|
65
|
+
$dropdownLinkColorHover: $white;
|
66
|
+
|
67
|
+
$iconSpritePath: '../../img/glyphicons-halflings.png';
|
68
|
+
$iconWhiteSpritePath: '../../img/glyphicons-halflings-white.png';
|
69
|
+
|
70
|
+
$navbarBackground: $grayDarker;
|
71
|
+
$navbarBackgroundHighlight: $grayDark;
|
72
|
+
$navbarLinkColor: $grayLight;
|
73
|
+
$navbarLinkColorHover: $white;
|
74
|
+
$navbarBrandColor: $navbarLinkColor;
|
75
|
+
$navbarHeight: 40px;
|
76
|
+
$navbarLinkBackgroundActive: $navbarBackground;
|
77
|
+
$navbarLinkBackgroundHover: transparent;
|
78
|
+
$navbarLinkColorActive: $navbarLinkColorHover;
|
79
|
+
$navbarSearchBackground: lighten($navbarBackground, 25%);
|
80
|
+
$navbarSearchBackgroundFocus: $white;
|
81
|
+
$navbarSearchBorder: darken($navbarSearchBackground, 30%);
|
82
|
+
$navbarSearchPlaceholderColor: $grayLighter;
|
83
|
+
$navbarText: $grayLight;
|
84
|
+
|
85
|
+
$heroUnitBackground: $grayLightest;
|
86
|
+
$heroUnitHeadingColor: inherit;
|
87
|
+
$heroUnitLeadColor: inherit;
|
88
|
+
|
89
|
+
$warningBackground: lighten($orange, 50%);
|
90
|
+
$warningBorder: darken($warningBackground, 3%);
|
91
|
+
$warningText: $orange;
|
92
|
+
$errorBackground: lighten($red, 50%);
|
93
|
+
$errorBorder: darken($errorBackground, 3%);
|
94
|
+
$errorText: $red;
|
95
|
+
$successBackground: lighten($green, 50%);
|
96
|
+
$successBorder: darken($successBackground, 3%);
|
97
|
+
$successText: $green;
|
98
|
+
$infoBackground: lighten($blue, 50%);
|
99
|
+
$infoBorder: darken($infoBackground, 3%);
|
100
|
+
$infoText: $blue;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
$sansFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
2
|
+
$serifFontFamily: Georgia, 'Times New Roman', Times, serif;
|
3
|
+
$monoFontFamily: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
4
|
+
$baseFontSize: 13px;
|
5
|
+
$baseFontFamily: $sansFontFamily;
|
6
|
+
$baseLineHeight: 18px;
|
7
|
+
$altFontFamily: $serifFontFamily;
|
8
|
+
$headingsFontFamily: $sansFontFamily;
|
9
|
+
$headingsFontWeight: bold;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// DON'T TOUCH IT
|
2
|
+
// You'll break it.
|
3
|
+
//
|
4
|
+
// Actually, you can customize it at will.
|
5
|
+
|
6
|
+
@import './font';
|
7
|
+
@import './colors';
|
8
|
+
@import './grid';
|
9
|
+
@import './layers';
|
10
|
+
@import 'bootstrap';
|
11
|
+
@import 'bootstrap-responsive';
|
12
|
+
// @import 'font-awesome';
|
13
|
+
@import './overrides';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// These rules override those given within bootstrap. They can use
|
2
|
+
// mixins and variables.
|
3
|
+
|
4
|
+
.clear-right {
|
5
|
+
clear: right;
|
6
|
+
}
|
7
|
+
|
8
|
+
.clear-left {
|
9
|
+
clear: left;
|
10
|
+
}
|
11
|
+
|
12
|
+
.clear-all, .clear-both {
|
13
|
+
clear: both;
|
14
|
+
}
|
15
|
+
|
16
|
+
.relative {
|
17
|
+
position: relative;
|
18
|
+
}
|
19
|
+
|
20
|
+
object, embed, video {
|
21
|
+
max-width: 100%;
|
22
|
+
height: auto;
|
23
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,68 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%link{:rel=>"shortcut icon", :href=>"/favicon.ico"}
|
5
|
+
%meta{"http-equiv"=>"Content-Type", :content=>"text/html;charset=utf-8"}
|
6
|
+
%meta{"name"=>"description", :content=>@description || BootstrapLeather.configuration.application_description || ''}
|
7
|
+
|
8
|
+
= csrf_meta_tag
|
9
|
+
|
10
|
+
= render_title
|
11
|
+
= render_keywords
|
12
|
+
= render_description
|
13
|
+
= responsive_meta_tag
|
14
|
+
|
15
|
+
-if @meta
|
16
|
+
-@meta.each do |key|
|
17
|
+
%meta{:name=>key[0], :content=>key[1]}
|
18
|
+
|
19
|
+
- if @rss_title && @rss_url
|
20
|
+
= auto_discovery_link_tag(:rss, @rss_url, {:title => @rss_title})
|
21
|
+
|
22
|
+
= stylesheet_link_tag 'application'
|
23
|
+
= render_css
|
24
|
+
|
25
|
+
%body{:class => controller.controller_name}
|
26
|
+
= nav_bar_with_container :class => 'navbar-static-top navbar-inverse' do
|
27
|
+
= nav_list do
|
28
|
+
= dropdown_nav_item 'Lorem', '#' do
|
29
|
+
= nav_item 'Ipsum', '#'
|
30
|
+
= nav_item 'Dolor', '#'
|
31
|
+
= nav_item 'Sit', '#'
|
32
|
+
= nav_item 'Ipsum', '#'
|
33
|
+
= nav_item 'Dolor', '#'
|
34
|
+
= nav_item 'Sit', '#'
|
35
|
+
= nav_list :class => 'pull-right' do
|
36
|
+
= nav_item 'Amet', '#', :data => {:toggle => 'modal', :target => '#modal'}
|
37
|
+
|
38
|
+
= nav_bar_in_container :class => 'navbar-static-top navbar-inverse' do
|
39
|
+
= nav_list do
|
40
|
+
= dropdown_nav_item 'Lorem', '#' do
|
41
|
+
= nav_item 'Ipsum', '#'
|
42
|
+
= nav_item 'Dolor', '#'
|
43
|
+
= nav_item 'Sit', '#'
|
44
|
+
= nav_item 'Ipsum', '#'
|
45
|
+
= nav_item 'Dolor', '#'
|
46
|
+
= nav_item 'Sit', '#'
|
47
|
+
= nav_list :class => 'pull-right' do
|
48
|
+
= nav_item 'Amet', '#'
|
49
|
+
|
50
|
+
.container
|
51
|
+
.row
|
52
|
+
= render_hero_unit
|
53
|
+
.row
|
54
|
+
.span8
|
55
|
+
= breadcrumb do
|
56
|
+
= nav_item 'Ipsum', '#'
|
57
|
+
= nav_item 'Dolor', '#'
|
58
|
+
= nav_item 'Sit', '#'
|
59
|
+
= render_h1
|
60
|
+
= alert_flash_messages
|
61
|
+
= yield
|
62
|
+
.span3.pull-right
|
63
|
+
= render_widgets
|
64
|
+
= modal 'test' do
|
65
|
+
%p Lorem ipsum, baby.
|
66
|
+
|
67
|
+
= javascript_include_tag 'application'
|
68
|
+
= render_javascript
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- @title = 'Fugiat ennui four loko'
|
2
|
+
= add_widget do
|
3
|
+
= nav_list do
|
4
|
+
= nav_item 'Paleo', '#'
|
5
|
+
= nav_item 'Organic', '#'
|
6
|
+
= nav_item 'Scenester', '#'
|
7
|
+
|
8
|
+
Paleo organic ad scenester messenger bag. Fugiat ennui four loko kitsch Pitchfork paleo. Fap Cosby sweater cardigan eiusmod meggings, tofu ugh hashtag drinking vinegar tousled et YOLO voluptate banh mi dolore. Meh viral deep v lo-fi PBR cupidatat sapiente. Pour-over skateboard mlkshk High Life fashion axe, brunch selvage locavore. Letterpress Truffaut sed, mustache four loko voluptate polaroid Bushwick Carles Blue Bottle Terry Richardson nostrud ennui twee. Bushwick organic Brooklyn, Pitchfork ethnic et single-origin coffee cardigan keytar delectus Cosby sweater deep v.
|
9
|
+
|
10
|
+
Polaroid DIY assumenda typewriter sunt. Pug seitan messenger bag, ex you probably haven't heard of them fashion axe shabby chic selfies literally aesthetic Intelligentsia Blue Bottle fap. Nostrud Blue Bottle locavore, odio pariatur McSweeney's flannel brunch delectus four loko photo booth. Blue Bottle drinking vinegar paleo hella, cray anim Neutra deserunt esse culpa duis mumblecore excepteur. Kitsch aliqua fanny pack vinyl stumptown. Banksy gentrify eu, 3 wolf moon stumptown dolor irure four loko umami pug letterpress Intelligentsia placeat tofu Wes Anderson. Carles tempor next level bespoke tattooed McSweeney's tousled, American Apparel fanny pack.
|
11
|
+
|
12
|
+
Yr seitan mumblecore slow-carb squid, Carles minim magna laboris beard brunch sint salvia American Apparel. McSweeney's consectetur fap, put a bird on it ad consequat +1 cardigan aute dreamcatcher. Distillery non American Apparel, biodiesel YOLO kogi Echo Park beard cardigan. Squid gastropub mixtape, proident tempor jean shorts bitters consequat yr gluten-free voluptate enim aesthetic. Sriracha fanny pack tousled, skateboard blog ad small batch Terry Richardson Banksy cillum adipisicing flannel scenester irony synth. Art party commodo pickled readymade biodiesel. Yr id ethnic 90's.
|
13
|
+
|
14
|
+
Semiotics McSweeney's aesthetic ullamco cliche PBR. Readymade Tonx esse pop-up, ex banjo Truffaut Carles biodiesel accusamus selfies small batch velit flannel. Gastropub ennui Banksy Odd Future, tempor cliche pickled scenester Carles assumenda farm-to-table you probably haven't heard of them plaid freegan. Selfies pour-over you probably haven't heard of them, laborum nesciunt Marfa Portland banh mi pickled pork belly Godard four loko. 8-bit VHS kale chips stumptown Tonx. Deserunt VHS craft beer, umami retro drinking vinegar before they sold out accusamus 90's fugiat raw denim blog. Vegan craft beer officia selvage, before they sold out nulla hella velit synth.
|
data/spec/dummy/bin/rake
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
#require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
#require "action_mailer/railtie"
|
7
|
+
#require "sprockets/railtie"
|
8
|
+
# require "rails/test_unit/railtie"
|
9
|
+
|
10
|
+
Bundler.require(*Rails.groups)
|
11
|
+
require "bootstrap_leather"
|
12
|
+
|
13
|
+
module Dummy
|
14
|
+
class Application < Rails::Application
|
15
|
+
# Settings in config/environments/* take precedence over those specified here.
|
16
|
+
# Application configuration should go into files in config/initializers
|
17
|
+
# -- all .rb files in that directory are automatically loaded.
|
18
|
+
|
19
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
20
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
21
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
22
|
+
|
23
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
24
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
25
|
+
# config.i18n.default_locale = :de
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Print deprecation notices to the Rails logger.
|
17
|
+
config.active_support.deprecation = :log
|
18
|
+
|
19
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
20
|
+
# This option may cause significant delays in view rendering with a large
|
21
|
+
# number of complex assets.
|
22
|
+
config.assets.debug = true
|
23
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
end
|