entreprise7pro-bootstrap-sass 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.travis.yml +19 -0
- data/CHANGELOG.md +233 -0
- data/CONTRIBUTING.md +86 -0
- data/Gemfile +7 -0
- data/LICENSE +22 -0
- data/README.md +376 -0
- data/Rakefile +98 -0
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/images/.keep +0 -0
- data/assets/javascripts/bootstrap/affix.js +166 -0
- data/assets/javascripts/bootstrap/alert.js +97 -0
- data/assets/javascripts/bootstrap/button.js +136 -0
- data/assets/javascripts/bootstrap/carousel.js +248 -0
- data/assets/javascripts/bootstrap/collapse.js +214 -0
- data/assets/javascripts/bootstrap/dropdown.js +167 -0
- data/assets/javascripts/bootstrap/modal.js +356 -0
- data/assets/javascripts/bootstrap/popover.js +123 -0
- data/assets/javascripts/bootstrap/scrollspy.js +174 -0
- data/assets/javascripts/bootstrap/tab.js +157 -0
- data/assets/javascripts/bootstrap/tooltip.js +679 -0
- data/assets/javascripts/bootstrap/transition.js +61 -0
- data/assets/javascripts/bootstrap-sprockets.js +12 -0
- data/assets/javascripts/bootstrap.js +2611 -0
- data/assets/javascripts/bootstrap.min.js +7 -0
- data/assets/javascripts/jquery.min.js +2 -0
- data/assets/stylesheets/_bootstrap-compass.scss +9 -0
- data/assets/stylesheets/_bootstrap-mincer.scss +19 -0
- data/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
- data/assets/stylesheets/_bootstrap.scss +56 -0
- data/assets/stylesheets/bootstrap/_alerts.scss +73 -0
- data/assets/stylesheets/bootstrap/_badges.scss +68 -0
- data/assets/stylesheets/bootstrap/_breadcrumbs.scss +28 -0
- data/assets/stylesheets/bootstrap/_button-groups.scss +244 -0
- data/assets/stylesheets/bootstrap/_buttons.scss +168 -0
- data/assets/stylesheets/bootstrap/_carousel.scss +263 -0
- data/assets/stylesheets/bootstrap/_close.scss +37 -0
- data/assets/stylesheets/bootstrap/_code.scss +70 -0
- data/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
- data/assets/stylesheets/bootstrap/_dropdowns.scss +212 -0
- data/assets/stylesheets/bootstrap/_forms.scss +602 -0
- data/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
- data/assets/stylesheets/bootstrap/_grid.scss +94 -0
- data/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +55 -0
- data/assets/stylesheets/bootstrap/_labels.scss +66 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +128 -0
- data/assets/stylesheets/bootstrap/_media.scss +66 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +39 -0
- data/assets/stylesheets/bootstrap/_modals.scss +150 -0
- data/assets/stylesheets/bootstrap/_navbar.scss +657 -0
- data/assets/stylesheets/bootstrap/_navs.scss +242 -0
- data/assets/stylesheets/bootstrap/_normalize.scss +422 -0
- data/assets/stylesheets/bootstrap/_pager.scss +54 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +86 -0
- data/assets/stylesheets/bootstrap/_panels.scss +271 -0
- data/assets/stylesheets/bootstrap/_popovers.scss +126 -0
- data/assets/stylesheets/bootstrap/_print.scss +99 -0
- data/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
- data/assets/stylesheets/bootstrap/_responsive-utilities.scss +157 -0
- data/assets/stylesheets/bootstrap/_scaffolding.scss +161 -0
- data/assets/stylesheets/bootstrap/_tables.scss +233 -0
- data/assets/stylesheets/bootstrap/_theme.scss +293 -0
- data/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/assets/stylesheets/bootstrap/_tooltip.scss +112 -0
- data/assets/stylesheets/bootstrap/_type.scss +299 -0
- data/assets/stylesheets/bootstrap/_utilities.scss +55 -0
- data/assets/stylesheets/bootstrap/_variables.scss +875 -0
- data/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/assets/stylesheets/bootstrap/mixins/_alerts.scss +15 -0
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +61 -0
- data/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +50 -0
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +82 -0
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +123 -0
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_image.scss +28 -0
- data/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +32 -0
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +11 -0
- data/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_opacity.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
- data/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +17 -0
- data/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +210 -0
- data/bower.json +38 -0
- data/composer.json +21 -0
- data/entreprise7pro-bootstrap-sass.gemspec +37 -0
- data/eyeglass-exports.js +7 -0
- data/lib/entreprise7pro-bootstrap-sass/engine.rb +17 -0
- data/lib/entreprise7pro-bootstrap-sass/version.rb +4 -0
- data/lib/entreprise7pro-bootstrap-sass.rb +91 -0
- data/package-lock.json +1011 -0
- data/package.json +48 -0
- data/sache.json +5 -0
- data/tasks/bower.rake +31 -0
- data/tasks/converter/char_string_scanner.rb +38 -0
- data/tasks/converter/fonts_conversion.rb +16 -0
- data/tasks/converter/js_conversion.rb +47 -0
- data/tasks/converter/less_conversion.rb +752 -0
- data/tasks/converter/logger.rb +57 -0
- data/tasks/converter/network.rb +97 -0
- data/tasks/converter.rb +80 -0
- data/templates/project/_bootstrap-variables.sass +876 -0
- data/templates/project/manifest.rb +20 -0
- data/templates/project/styles.sass +6 -0
- data/test/compilation_test.rb +30 -0
- data/test/dummy_node_mincer/apple-touch-icon-144-precomposed.png +0 -0
- data/test/dummy_node_mincer/application.css.ejs.scss +6 -0
- data/test/dummy_node_mincer/manifest.js +87 -0
- data/test/dummy_rails/README.rdoc +3 -0
- data/test/dummy_rails/Rakefile +6 -0
- data/test/dummy_rails/app/assets/images/.keep +0 -0
- data/test/dummy_rails/app/assets/javascripts/application.js +2 -0
- data/test/dummy_rails/app/assets/stylesheets/application.sass +2 -0
- data/test/dummy_rails/app/controllers/application_controller.rb +5 -0
- data/test/dummy_rails/app/controllers/pages_controller.rb +4 -0
- data/test/dummy_rails/app/helpers/application_helper.rb +2 -0
- data/test/dummy_rails/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_rails/app/views/pages/root.html.slim +84 -0
- data/test/dummy_rails/config/application.rb +31 -0
- data/test/dummy_rails/config/boot.rb +5 -0
- data/test/dummy_rails/config/environment.rb +5 -0
- data/test/dummy_rails/config/environments/development.rb +23 -0
- data/test/dummy_rails/config/environments/production.rb +82 -0
- data/test/dummy_rails/config/environments/test.rb +38 -0
- data/test/dummy_rails/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy_rails/config/initializers/inflections.rb +16 -0
- data/test/dummy_rails/config/initializers/mime_types.rb +5 -0
- data/test/dummy_rails/config/initializers/secret_token.rb +18 -0
- data/test/dummy_rails/config/initializers/session_store.rb +3 -0
- data/test/dummy_rails/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_rails/config/locales/en.yml +3 -0
- data/test/dummy_rails/config/locales/es.yml +3 -0
- data/test/dummy_rails/config/routes.rb +3 -0
- data/test/dummy_rails/config.ru +4 -0
- data/test/dummy_rails/log/.keep +0 -0
- data/test/dummy_sass_only/Gemfile +4 -0
- data/test/dummy_sass_only/compile.rb +20 -0
- data/test/dummy_sass_only/import_all.scss +2 -0
- data/test/gemfiles/default.gemfile +3 -0
- data/test/node_mincer_test.rb +35 -0
- data/test/node_sass_compile_test.sh +9 -0
- data/test/pages_test.rb +14 -0
- data/test/sass_test.rb +29 -0
- data/test/sprockets_rails_test.rb +31 -0
- data/test/support/dummy_rails_integration.rb +22 -0
- data/test/support/reporting.rb +27 -0
- data/test/test_helper.rb +36 -0
- data/test/test_helper_rails.rb +6 -0
- metadata +467 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
description 'Bootstrap for Sass'
|
2
|
+
|
3
|
+
# Stylesheet importing bootstrap
|
4
|
+
stylesheet 'styles.sass'
|
5
|
+
|
6
|
+
# Bootstrap variable overrides file
|
7
|
+
stylesheet '_bootstrap-variables.sass', :to => '_bootstrap-variables.sass'
|
8
|
+
|
9
|
+
# Copy JS and fonts
|
10
|
+
manifest = Pathname.new(File.dirname(__FILE__))
|
11
|
+
assets = File.expand_path('../../assets', manifest)
|
12
|
+
{:javascript => 'javascripts',
|
13
|
+
:font => 'fonts'
|
14
|
+
}.each do |method, dir|
|
15
|
+
root = Pathname.new(assets).join(dir)
|
16
|
+
Dir.glob root.join('**', '*.*') do |path|
|
17
|
+
path = Pathname.new(path)
|
18
|
+
send method, path.relative_path_from(manifest).to_s, :to => path.relative_path_from(root).to_s
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'sassc'
|
4
|
+
|
5
|
+
class CompilationTest < Minitest::Test
|
6
|
+
def test_compilation_bootstrap
|
7
|
+
compile 'bootstrap'
|
8
|
+
assert true # nothing was raised
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_compilation_bootstrap_theme
|
12
|
+
compile 'bootstrap/theme'
|
13
|
+
assert true # nothing was raised
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def compile(file)
|
19
|
+
path = File.expand_path('../assets/stylesheets', __dir__)
|
20
|
+
FileUtils.rm_rf('.sass-cache', secure: true)
|
21
|
+
engine = SassC::Engine.new(
|
22
|
+
%Q{@import "#{path}/#{file}"},
|
23
|
+
syntax: :scss, load_paths: ['.']
|
24
|
+
)
|
25
|
+
FileUtils.mkdir_p("tmp/#{File.dirname(file)}")
|
26
|
+
File.open("tmp/#{file}.css", 'w') { |f|
|
27
|
+
f.write engine.render
|
28
|
+
}
|
29
|
+
end
|
30
|
+
end
|
Binary file
|
@@ -0,0 +1,87 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
|
4
|
+
// Build script from https://github.com/nodeca/mincer/tree/master/examples
|
5
|
+
|
6
|
+
//
|
7
|
+
// Require module
|
8
|
+
//
|
9
|
+
|
10
|
+
|
11
|
+
var Mincer = require('mincer');
|
12
|
+
|
13
|
+
|
14
|
+
//
|
15
|
+
// Get Mincer environment
|
16
|
+
//
|
17
|
+
|
18
|
+
|
19
|
+
//
|
20
|
+
// Configure Mincers logger, by default, all
|
21
|
+
// messages are going to the middle of nowhere
|
22
|
+
//
|
23
|
+
|
24
|
+
|
25
|
+
Mincer.logger.use(console);
|
26
|
+
|
27
|
+
|
28
|
+
//
|
29
|
+
// Create and export environment
|
30
|
+
//
|
31
|
+
|
32
|
+
|
33
|
+
var environment = new Mincer.Environment(process.cwd());
|
34
|
+
|
35
|
+
|
36
|
+
//
|
37
|
+
// Configure environment load paths (where to find ssets)
|
38
|
+
//
|
39
|
+
|
40
|
+
// Include bootstrap scss load path
|
41
|
+
var bootstrapPath = '../../';
|
42
|
+
environment.appendPath(bootstrapPath + 'assets/stylesheets');
|
43
|
+
|
44
|
+
// Include fonts load path
|
45
|
+
environment.appendPath(bootstrapPath + 'assets/fonts');
|
46
|
+
|
47
|
+
// Include dir with assets, root just for test
|
48
|
+
environment.appendPath('./');
|
49
|
+
|
50
|
+
|
51
|
+
//
|
52
|
+
// Define environment essential *_path helper that will be available in the
|
53
|
+
// processed assets. See `assets/stylesheets/app.css.ejs` for example.
|
54
|
+
//
|
55
|
+
|
56
|
+
|
57
|
+
environment.ContextClass.defineAssetPath(function (pathname, options) {
|
58
|
+
var asset = this.environment.findAsset(pathname, options);
|
59
|
+
|
60
|
+
if (!asset) {
|
61
|
+
throw new Error("File " + pathname + " not found");
|
62
|
+
}
|
63
|
+
|
64
|
+
return '/assets/' + asset.digestPath;
|
65
|
+
});
|
66
|
+
|
67
|
+
|
68
|
+
//
|
69
|
+
// Create and compile Manifest
|
70
|
+
//
|
71
|
+
|
72
|
+
var manifest_path = process.argv[2] || __dirname + '/assets';
|
73
|
+
|
74
|
+
var manifest = new Mincer.Manifest(environment, manifest_path);
|
75
|
+
|
76
|
+
|
77
|
+
manifest.compile(['application.css'], function (err, assetsData) {
|
78
|
+
if (err) {
|
79
|
+
console.error("Failed compile assets: " + (err.message || err.toString()));
|
80
|
+
process.exit(128);
|
81
|
+
}
|
82
|
+
|
83
|
+
console.info('\n\nAssets were successfully compiled.\n' +
|
84
|
+
'Manifest data (a proper JSON) was written to:\n' +
|
85
|
+
manifest.path + '\n\n');
|
86
|
+
console.dir(assetsData);
|
87
|
+
});
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>bootstrap-sass Dummy App</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: "all", 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
|
10
|
+
<body>
|
11
|
+
<%= yield %>
|
12
|
+
</body>
|
13
|
+
|
14
|
+
</html>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
.navbar.navbar-inverse: .container-fluid
|
2
|
+
.navbar-header
|
3
|
+
button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target="#c1"
|
4
|
+
span.sr-only Toggle navigation
|
5
|
+
span.icon-bar
|
6
|
+
span.icon-bar
|
7
|
+
span.icon-bar
|
8
|
+
a.navbar-brand href="#" Bootstrap for Sass Test Rails App
|
9
|
+
.collapse.navbar-collapse#c1
|
10
|
+
ul.nav.navbar-nav
|
11
|
+
li.active: a href="#"
|
12
|
+
' Home
|
13
|
+
span.sr-only (current)
|
14
|
+
li: a href="#" Link
|
15
|
+
li.dropdown
|
16
|
+
a.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
|
17
|
+
' Dropdown
|
18
|
+
span.caret
|
19
|
+
ul.dropdown-menu role="menu"
|
20
|
+
li: a href="#" Action
|
21
|
+
li: a href="#" Another action
|
22
|
+
li: a href="#" Something else here
|
23
|
+
li.divider
|
24
|
+
li: a href="#" Separated link
|
25
|
+
li.divider
|
26
|
+
li: a href="#" One more separated link
|
27
|
+
form.navbar-form.navbar-left role="search"
|
28
|
+
.input-group
|
29
|
+
input.form-control type="search" placeholder="Search..."
|
30
|
+
.input-group-btn: button.btn.btn-primary type="submit" Go
|
31
|
+
ul.nav.navbar-nav.navbar-right
|
32
|
+
li: a href="#" Link
|
33
|
+
li.dropdown
|
34
|
+
a.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
|
35
|
+
' Dropdown
|
36
|
+
span.caret
|
37
|
+
ul.dropdown-menu role="menu"
|
38
|
+
li: a href="#" Action
|
39
|
+
li: a href="#" Another action
|
40
|
+
li: a href="#" Something else here
|
41
|
+
li.divider
|
42
|
+
li: a href="#" Separated link
|
43
|
+
|
44
|
+
.container
|
45
|
+
.panel.panel-primary
|
46
|
+
.panel-heading: h1 Dummy App
|
47
|
+
.panel-body: .row
|
48
|
+
.col-sm-3
|
49
|
+
h2 3 columns
|
50
|
+
ul.list-group
|
51
|
+
li.list-group-item: a href='#one' One
|
52
|
+
li.list-group-item: a href='#two' Two
|
53
|
+
li.list-group-item: a href='#three' Three
|
54
|
+
.col-sm-3
|
55
|
+
h2 3 columns
|
56
|
+
.btn-group
|
57
|
+
button.btn.btn-primary type='button' Button
|
58
|
+
button.btn.btn-primary type='button' Button
|
59
|
+
h2 Icons
|
60
|
+
ul.list-inline
|
61
|
+
li: i.glyphicon.glyphicon-user
|
62
|
+
li: i.glyphicon.glyphicon-bullhorn
|
63
|
+
li: i.glyphicon.glyphicon-tint
|
64
|
+
table.table
|
65
|
+
caption Table
|
66
|
+
tr
|
67
|
+
td.danger Danger!
|
68
|
+
td.success Success!
|
69
|
+
.col-sm-6
|
70
|
+
h2 6 columns
|
71
|
+
.panel.panel-primary: .panel-body
|
72
|
+
.row
|
73
|
+
.col-xs-4.col-xs-push-4
|
74
|
+
.panel.panel-default: h3 This is col-xs-4 col-xs-push-4
|
75
|
+
|
76
|
+
form.form-inline
|
77
|
+
.form-group
|
78
|
+
label.sr-only for="exampleInputEmail2" Email address
|
79
|
+
input.form-control#exampleInputEmail2 type="email" placeholder="Enter email"
|
80
|
+
.checkbox
|
81
|
+
label
|
82
|
+
input type="checkbox"
|
83
|
+
| Remember me
|
84
|
+
button.btn.btn-default type="submit" Sign in
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails'
|
4
|
+
|
5
|
+
%w(
|
6
|
+
action_controller
|
7
|
+
action_view
|
8
|
+
sprockets
|
9
|
+
).each do |framework|
|
10
|
+
require "#{framework}/railtie"
|
11
|
+
end
|
12
|
+
|
13
|
+
require 'slim-rails'
|
14
|
+
require 'jquery-rails'
|
15
|
+
require 'sassc-rails'
|
16
|
+
require 'bootstrap-sass'
|
17
|
+
require 'uglifier'
|
18
|
+
|
19
|
+
module Dummy
|
20
|
+
class Application < Rails::Application
|
21
|
+
config.assets.enabled = true if config.assets.respond_to?(:enabled)
|
22
|
+
config.assets.precompile += %w( application.css application.js )
|
23
|
+
config.to_prepare do
|
24
|
+
if ENV['VERBOSE']
|
25
|
+
STDERR.puts "Loaded Rails #{Rails::VERSION::STRING}, Sprockets #{Sprockets::VERSION}",
|
26
|
+
"Asset paths: #{Rails.application.config.assets.paths}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
@@ -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,82 @@
|
|
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
|
+
if config.respond_to?(:serve_static_files)
|
24
|
+
# rails >= 4.2
|
25
|
+
config.serve_static_files = true
|
26
|
+
elsif config.respond_to?(:serve_static_assets)
|
27
|
+
# rails < 4.2
|
28
|
+
config.serve_static_assets = true
|
29
|
+
end
|
30
|
+
|
31
|
+
# Compress JavaScripts and CSS.
|
32
|
+
config.assets.js_compressor = :uglifier
|
33
|
+
# config.assets.css_compressor = :sass
|
34
|
+
|
35
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
36
|
+
config.assets.compile = false
|
37
|
+
|
38
|
+
# Generate digests for assets URLs.
|
39
|
+
config.assets.digest = true
|
40
|
+
|
41
|
+
# Version of your assets, change this if you want to expire all your assets.
|
42
|
+
config.assets.version = '1.0'
|
43
|
+
|
44
|
+
# Specifies the header that your server uses for sending files.
|
45
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
46
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
47
|
+
|
48
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
49
|
+
# config.force_ssl = true
|
50
|
+
|
51
|
+
# Set to :debug to see everything in the log.
|
52
|
+
config.log_level = :info
|
53
|
+
|
54
|
+
# Prepend all log lines with the following tags.
|
55
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
56
|
+
|
57
|
+
# Use a different logger for distributed setups.
|
58
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
59
|
+
|
60
|
+
# Use a different cache store in production.
|
61
|
+
# config.cache_store = :mem_cache_store
|
62
|
+
|
63
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
64
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
65
|
+
|
66
|
+
# Precompile additional assets.
|
67
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
68
|
+
# config.assets.precompile += %w( search.js )
|
69
|
+
|
70
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
71
|
+
# the I18n.default_locale when a translation can not be found).
|
72
|
+
config.i18n.fallbacks = true
|
73
|
+
|
74
|
+
# Send deprecation notices to registered listeners.
|
75
|
+
config.active_support.deprecation = :notify
|
76
|
+
|
77
|
+
# Disable automatic flushing of the log to improve performance.
|
78
|
+
# config.autoflush_log = false
|
79
|
+
|
80
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
81
|
+
config.log_formatter = ::Logger::Formatter.new
|
82
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
if config.respond_to?(:serve_static_files)
|
17
|
+
# rails >= 4.2
|
18
|
+
config.serve_static_files = true
|
19
|
+
elsif config.respond_to?(:serve_static_assets)
|
20
|
+
# rails < 4.2
|
21
|
+
config.serve_static_assets = true
|
22
|
+
end
|
23
|
+
config.static_cache_control = "public, max-age=3600"
|
24
|
+
|
25
|
+
# Show full error reports and disable caching.
|
26
|
+
config.consider_all_requests_local = true
|
27
|
+
config.action_controller.perform_caching = false
|
28
|
+
|
29
|
+
# Raise exceptions instead of rendering exception templates.
|
30
|
+
config.action_dispatch.show_exceptions = false
|
31
|
+
|
32
|
+
# Disable request forgery protection in test environment.
|
33
|
+
config.action_controller.allow_forgery_protection = false
|
34
|
+
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
config.active_support.deprecation = :stderr
|
38
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
token = '4380f36fda304251bf48f12ad4474b6d11447f1f959bd5b77a5d56c92b97f4c403ee0ae13d31a85ed88058ff8795bf31ec17e70e5c229b3707a77a2ee7e81cc'
|
13
|
+
|
14
|
+
if Dummy::Application.config.respond_to?(:secret_key_base=)
|
15
|
+
Dummy::Application.config.secret_key_base = token
|
16
|
+
else
|
17
|
+
Dummy::Application.config.secret_token = token
|
18
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'sassc'
|
4
|
+
require 'bootstrap-sass'
|
5
|
+
require 'fileutils'
|
6
|
+
|
7
|
+
load_path = ARGV[0]
|
8
|
+
out_path = ARGV[1]
|
9
|
+
|
10
|
+
output = SassC::Engine.new(
|
11
|
+
File.read(File.expand_path('./import_all.scss', __dir__)),
|
12
|
+
syntax: :scss, load_paths: ['.', load_path]
|
13
|
+
).render
|
14
|
+
|
15
|
+
if out_path
|
16
|
+
FileUtils.mkdir_p(File.dirname(out_path))
|
17
|
+
File.write(out_path, output)
|
18
|
+
else
|
19
|
+
puts output
|
20
|
+
end
|