rails-boilerplate 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.gitmodules +3 -0
- data/Gemfile +11 -0
- data/Guardfile +14 -0
- data/LICENSE +19 -0
- data/README.md +37 -0
- data/Rakefile +73 -0
- data/html5-boilerplate/.gitattributes +1 -0
- data/html5-boilerplate/.gitignore +41 -0
- data/html5-boilerplate/.htaccess +506 -0
- data/html5-boilerplate/404.html +38 -0
- data/html5-boilerplate/README.md +387 -0
- data/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon.png +0 -0
- data/html5-boilerplate/build/build.xml +1051 -0
- data/html5-boilerplate/build/config/default.properties +116 -0
- data/html5-boilerplate/build/config/manifest.appcache +20 -0
- data/html5-boilerplate/build/config/project.properties +96 -0
- data/html5-boilerplate/build/createproject.sh +50 -0
- data/html5-boilerplate/build/project.xml +7 -0
- data/html5-boilerplate/build/runbuildscript.bat +6 -0
- data/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
- data/html5-boilerplate/build/tools/closure-compiler-v1346.jar +0 -0
- data/html5-boilerplate/build/tools/csslint-rhino.js +11138 -0
- data/html5-boilerplate/build/tools/fulljshint.js +5904 -0
- data/html5-boilerplate/build/tools/fulljslint.js +6651 -0
- data/html5-boilerplate/build/tools/htmlcompressor-1.4.3.jar +0 -0
- data/html5-boilerplate/build/tools/jpegtran.exe +0 -0
- data/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
- data/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
- data/html5-boilerplate/build/tools/rhino.jar +0 -0
- data/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
- data/html5-boilerplate/crossdomain.xml +25 -0
- data/html5-boilerplate/css/style.css +293 -0
- data/html5-boilerplate/demo/elements.html +493 -0
- data/html5-boilerplate/demo/hack.css +84 -0
- data/html5-boilerplate/demo/hack2.css +41 -0
- data/html5-boilerplate/demo/internet_explorer.png +0 -0
- data/html5-boilerplate/demo/test_tubes.png +0 -0
- data/html5-boilerplate/demo/tests.html +300 -0
- data/html5-boilerplate/favicon.ico +0 -0
- data/html5-boilerplate/humans.txt +43 -0
- data/html5-boilerplate/img/.gitignore +2 -0
- data/html5-boilerplate/index.html +79 -0
- data/html5-boilerplate/js/libs/jquery-1.6.3.js +9044 -0
- data/html5-boilerplate/js/libs/jquery-1.6.3.min.js +4 -0
- data/html5-boilerplate/js/libs/modernizr-2.0.6.min.js +4 -0
- data/html5-boilerplate/js/mylibs/.gitignore +2 -0
- data/html5-boilerplate/js/plugins.js +20 -0
- data/html5-boilerplate/js/script.js +8 -0
- data/html5-boilerplate/robots.txt +5 -0
- data/html5-boilerplate/test/index.html +31 -0
- data/html5-boilerplate/test/qunit/qunit.css +148 -0
- data/html5-boilerplate/test/qunit/qunit.js +1265 -0
- data/html5-boilerplate/test/tests.js +24 -0
- data/index.html.patch +62 -0
- data/lib/generators/boilerplate/install/install_generator.rb +33 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-114x114-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-57x57-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-72x72-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon.png +0 -0
- data/lib/generators/boilerplate/install/templates/crossdomain.xml +25 -0
- data/lib/generators/boilerplate/install/templates/favicon.ico +0 -0
- data/lib/generators/boilerplate/install/templates/humans.txt +43 -0
- data/lib/generators/boilerplate/install/templates/index.html +60 -0
- data/lib/generators/boilerplate/install/templates/robots.txt +5 -0
- data/lib/generators/boilerplate/resource_helpers.rb +13 -0
- data/lib/rails_boilerplate.rb +7 -0
- data/lib/rails_boilerplate/version.rb +3 -0
- data/rails-boilerplate.gemspec +24 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/home_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/home/index.html.erb +1 -0
- data/test/dummy/app/views/layouts/application.html.erb +68 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +43 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +22 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +25 -0
- data/test/dummy/config/environments/production.rb +49 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/javascripts/application.js +2 -0
- data/test/dummy/public/javascripts/controls.js +965 -0
- data/test/dummy/public/javascripts/dragdrop.js +974 -0
- data/test/dummy/public/javascripts/effects.js +1123 -0
- data/test/dummy/public/javascripts/prototype.js +6001 -0
- data/test/dummy/public/javascripts/rails.js +191 -0
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/generators/fixtures/application.css +7 -0
- data/test/generators/fixtures/application.js +9 -0
- data/test/generators/generators_test_helper.rb +8 -0
- data/test/generators/install_generator_test.rb +51 -0
- data/test/rails_boilerplate_test.rb +16 -0
- data/test/test_helper.rb +12 -0
- data/vendor/assets/javascripts/modernizr.js +4 -0
- data/vendor/assets/javascripts/plugins.js +20 -0
- data/vendor/assets/stylesheets/reset.css +293 -0
- metadata +167 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
// documentation on writing tests here: http://docs.jquery.com/QUnit
|
3
|
+
// example tests: https://github.com/jquery/qunit/blob/master/test/same.js
|
4
|
+
|
5
|
+
// below are some general tests but feel free to delete them.
|
6
|
+
|
7
|
+
module("example tests");
|
8
|
+
test("HTML5 Boilerplate is sweet",function(){
|
9
|
+
expect(1);
|
10
|
+
equals("boilerplate".replace("boilerplate","sweet"),"sweet","Yes. HTML5 Boilerplate is, in fact, sweet");
|
11
|
+
|
12
|
+
})
|
13
|
+
|
14
|
+
// these test things from plugins.js
|
15
|
+
test("Environment is good",function(){
|
16
|
+
expect(3);
|
17
|
+
ok( !!window.log, "log function present");
|
18
|
+
|
19
|
+
var history = log.history && log.history.length || 0;
|
20
|
+
log("logging from the test suite.")
|
21
|
+
equals( log.history.length - history, 1, "log history keeps track" )
|
22
|
+
|
23
|
+
ok( !!window.Modernizr, "Modernizr global is present")
|
24
|
+
})
|
data/index.html.patch
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- html5-boilerplate/index.html 2011-09-07 08:09:48.553576001 +0200
|
2
|
+
+++ lib/generators/boilerplate/install/templates/index.html 2011-09-07 14:27:27.485576001 +0200
|
3
|
+
@@ -12,7 +12,7 @@
|
4
|
+
More info: h5bp.com/b/378 -->
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
|
7
|
+
- <title></title>
|
8
|
+
+ <title><%= application_name %></title>
|
9
|
+
<meta name="description" content="">
|
10
|
+
<meta name="author" content="">
|
11
|
+
|
12
|
+
@@ -21,43 +21,24 @@
|
13
|
+
|
14
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
|
15
|
+
|
16
|
+
- <link rel="stylesheet" href="css/style.css">
|
17
|
+
-
|
18
|
+
+ <%%= stylesheet_link_tag "application" %>
|
19
|
+
+
|
20
|
+
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
|
21
|
+
|
22
|
+
<!-- All JavaScript at the bottom, except this Modernizr build incl. Respond.js
|
23
|
+
- Respond is a polyfill for min/max-width media queries. Modernizr enables HTML5 elements & feature detects;
|
24
|
+
+ Respond is a polyfill for min/max-width media queries. Modernizr enables HTML5 elements & feature detects;
|
25
|
+
for optimal performance, create your own custom Modernizr build: www.modernizr.com/download/ -->
|
26
|
+
- <script src="js/libs/modernizr-2.0.6.min.js"></script>
|
27
|
+
+ <%%= javascript_include_tag "modernizr" %>
|
28
|
+
</head>
|
29
|
+
|
30
|
+
<body>
|
31
|
+
|
32
|
+
- <div id="container">
|
33
|
+
- <header>
|
34
|
+
-
|
35
|
+
- </header>
|
36
|
+
- <div id="main" role="main">
|
37
|
+
-
|
38
|
+
- </div>
|
39
|
+
- <footer>
|
40
|
+
-
|
41
|
+
- </footer>
|
42
|
+
- </div> <!--! end of #container -->
|
43
|
+
-
|
44
|
+
+ <%%= yield %>
|
45
|
+
|
46
|
+
<!-- JavaScript at the bottom for fast page loading -->
|
47
|
+
|
48
|
+
- <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
|
49
|
+
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
|
50
|
+
- <script>window.jQuery || document.write('<script src="js/libs/jquery-1.6.3.min.js"><\/script>')</script>
|
51
|
+
-
|
52
|
+
-
|
53
|
+
- <!-- scripts concatenated and minified via build script -->
|
54
|
+
- <script defer src="js/plugins.js"></script>
|
55
|
+
- <script defer src="js/script.js"></script>
|
56
|
+
- <!-- end scripts -->
|
57
|
+
-
|
58
|
+
+ <!-- Removed jQuery logic as jquery-rails is already included by application.js -->
|
59
|
+
+ <%%= javascript_include_tag "application" %>
|
60
|
+
|
61
|
+
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
|
62
|
+
mathiasbynens.be/notes/async-analytics-snippet -->
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'generators/boilerplate/resource_helpers'
|
2
|
+
|
3
|
+
module Boilerplate
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
6
|
+
include ResourceHelpers
|
7
|
+
|
8
|
+
source_root File.expand_path("../templates", __FILE__)
|
9
|
+
|
10
|
+
desc 'This generator installs an application.html.erb file conforming to the html5 boilerplate'
|
11
|
+
|
12
|
+
def copy_application
|
13
|
+
template 'index.html', "app/views/layouts/application.html.erb"
|
14
|
+
end
|
15
|
+
|
16
|
+
def inject_reset_css
|
17
|
+
inject_into_file "app/assets/stylesheets/application.css", :before => " *= require_self" do
|
18
|
+
" *= require reset\n"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
def inject_plugins_css
|
22
|
+
inject_into_file "app/assets/javascripts/application.js", :before => "//= require jquery\n" do
|
23
|
+
"//= require plugins\n"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
def copies_files
|
27
|
+
%w{robots.txt crossdomain.xml humans.txt favicon.ico apple-touch-icon-114x114-precomposed.png apple-touch-icon-57x57-precomposed.png apple-touch-icon-72x72-precomposed.png apple-touch-icon-precomposed.png apple-touch-icon.png}.each do |f|
|
28
|
+
copy_file f, "public/#{f}"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
3
|
+
<cross-domain-policy>
|
4
|
+
|
5
|
+
|
6
|
+
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
7
|
+
|
8
|
+
<!-- Most restrictive policy: -->
|
9
|
+
<site-control permitted-cross-domain-policies="none"/>
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<!-- Least restrictive policy: -->
|
14
|
+
<!--
|
15
|
+
<site-control permitted-cross-domain-policies="all"/>
|
16
|
+
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
17
|
+
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
18
|
+
-->
|
19
|
+
<!--
|
20
|
+
If you host a crossdomain.xml file with allow-access-from domain="*"
|
21
|
+
and don’t understand all of the points described here, you probably
|
22
|
+
have a nasty security vulnerability. ~ simon willison
|
23
|
+
-->
|
24
|
+
|
25
|
+
</cross-domain-policy>
|
Binary file
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/* the humans responsible & colophon */
|
2
|
+
/* humanstxt.org */
|
3
|
+
|
4
|
+
|
5
|
+
/* TEAM */
|
6
|
+
<your title>: <your name>
|
7
|
+
Site:
|
8
|
+
Twitter:
|
9
|
+
Location:
|
10
|
+
|
11
|
+
/* THANKS */
|
12
|
+
Names (& URL):
|
13
|
+
|
14
|
+
/* SITE */
|
15
|
+
Standards: HTML5, CSS3
|
16
|
+
Components: Modernizr, jQuery
|
17
|
+
Software:
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
-o/-
|
22
|
+
+oo//-
|
23
|
+
:ooo+//:
|
24
|
+
-ooooo///-
|
25
|
+
/oooooo//:
|
26
|
+
:ooooooo+//-
|
27
|
+
-+oooooooo///-
|
28
|
+
-://////////////+oooooooooo++////////////::
|
29
|
+
:+ooooooooooooooooooooooooooooooooooooo+:::-
|
30
|
+
-/+ooooooooooooooooooooooooooooooo+/::////:-
|
31
|
+
-:+oooooooooooooooooooooooooooo/::///////:-
|
32
|
+
--/+ooooooooooooooooooooo+::://////:-
|
33
|
+
-:+ooooooooooooooooo+:://////:--
|
34
|
+
/ooooooooooooooooo+//////:-
|
35
|
+
-ooooooooooooooooooo////-
|
36
|
+
/ooooooooo+oooooooooo//:
|
37
|
+
:ooooooo+/::/+oooooooo+//-
|
38
|
+
-oooooo/::///////+oooooo///-
|
39
|
+
/ooo+::://////:---:/+oooo//:
|
40
|
+
-o+/::///////:- -:/+o+//-
|
41
|
+
:-:///////:- -:/://
|
42
|
+
-////:- --//:
|
43
|
+
-- -:
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
3
|
+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
5
|
+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
6
|
+
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
|
7
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
8
|
+
<head>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
|
11
|
+
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
|
12
|
+
More info: h5bp.com/b/378 -->
|
13
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
14
|
+
|
15
|
+
<title><%= application_name %></title>
|
16
|
+
<meta name="description" content="">
|
17
|
+
<meta name="author" content="">
|
18
|
+
|
19
|
+
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
|
20
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
21
|
+
|
22
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
|
23
|
+
|
24
|
+
<%%= stylesheet_link_tag "application" %>
|
25
|
+
|
26
|
+
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
|
27
|
+
|
28
|
+
<!-- All JavaScript at the bottom, except this Modernizr build incl. Respond.js
|
29
|
+
Respond is a polyfill for min/max-width media queries. Modernizr enables HTML5 elements & feature detects;
|
30
|
+
for optimal performance, create your own custom Modernizr build: www.modernizr.com/download/ -->
|
31
|
+
<%%= javascript_include_tag "modernizr" %>
|
32
|
+
</head>
|
33
|
+
|
34
|
+
<body>
|
35
|
+
|
36
|
+
<%%= yield %>
|
37
|
+
|
38
|
+
<!-- JavaScript at the bottom for fast page loading -->
|
39
|
+
|
40
|
+
<!-- Removed jQuery logic as jquery-rails is already included by application.js -->
|
41
|
+
<%%= javascript_include_tag "application" %>
|
42
|
+
|
43
|
+
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
|
44
|
+
mathiasbynens.be/notes/async-analytics-snippet -->
|
45
|
+
<script>
|
46
|
+
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
|
47
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
48
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
49
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
50
|
+
</script>
|
51
|
+
|
52
|
+
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
|
53
|
+
chromium.org/developers/how-tos/chrome-frame-getting-started -->
|
54
|
+
<!--[if lt IE 7 ]>
|
55
|
+
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
|
56
|
+
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
57
|
+
<![endif]-->
|
58
|
+
|
59
|
+
</body>
|
60
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "rails_boilerplate/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "rails-boilerplate"
|
7
|
+
s.version = RailsBoilerplate::VERSION
|
8
|
+
s.authors = ["Christiaan Van den Poel"]
|
9
|
+
s.email = ["christiaan.vandenpoel@gmail.com"]
|
10
|
+
s.homepage = "http://github.com/khelben/rails-boilerplate"
|
11
|
+
s.summary = %q{HTML5 boilerplate for Rails (>= 3.1)}
|
12
|
+
s.description = %q{HTML5 boilerplate for Rails (>= 3.1)}
|
13
|
+
|
14
|
+
s.rubyforge_project = "rails-boilerplate"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
# s.add_runtime_dependency "rest-client"
|
24
|
+
end
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
+
|
4
|
+
require File.expand_path('../config/application', __FILE__)
|
5
|
+
require 'rake'
|
6
|
+
|
7
|
+
Dummy::Application.load_tasks
|
@@ -0,0 +1 @@
|
|
1
|
+
Home#Index
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
3
|
+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
5
|
+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
6
|
+
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
|
7
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
8
|
+
<head>
|
9
|
+
<meta charset="utf-8">
|
10
|
+
|
11
|
+
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
|
12
|
+
More info: h5bp.com/b/378 -->
|
13
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
14
|
+
|
15
|
+
<title>Dummy</title>
|
16
|
+
<meta name="description" content="">
|
17
|
+
<meta name="author" content="">
|
18
|
+
|
19
|
+
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
|
20
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
21
|
+
|
22
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
|
23
|
+
|
24
|
+
<link rel="stylesheet" href="css/style.css">
|
25
|
+
|
26
|
+
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
|
27
|
+
|
28
|
+
<!-- All JavaScript at the bottom, except this Modernizr build incl. Respond.js
|
29
|
+
Respond is a polyfill for min/max-width media queries. Modernizr enables HTML5 elements & feature detects;
|
30
|
+
for optimal performance, create your own custom Modernizr build: www.modernizr.com/download/ -->
|
31
|
+
<%= javascript_include_tag "modernizr" %>
|
32
|
+
</head>
|
33
|
+
|
34
|
+
<body>
|
35
|
+
|
36
|
+
<%= yield %>
|
37
|
+
|
38
|
+
<!-- JavaScript at the bottom for fast page loading -->
|
39
|
+
|
40
|
+
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
|
41
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
|
42
|
+
<script>window.jQuery || document.write('<script src="<%%= asset_path('jquery') %>"><\/script>')</script>
|
43
|
+
|
44
|
+
|
45
|
+
<!-- scripts concatenated and minified via build script -->
|
46
|
+
<script defer src="js/plugins.js"></script>
|
47
|
+
<script defer src="js/script.js"></script>
|
48
|
+
<!-- end scripts -->
|
49
|
+
|
50
|
+
|
51
|
+
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
|
52
|
+
mathiasbynens.be/notes/async-analytics-snippet -->
|
53
|
+
<script>
|
54
|
+
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
|
55
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
56
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
57
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
58
|
+
</script>
|
59
|
+
|
60
|
+
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
|
61
|
+
chromium.org/developers/how-tos/chrome-frame-getting-started -->
|
62
|
+
<!--[if lt IE 7 ]>
|
63
|
+
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
|
64
|
+
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
65
|
+
<![endif]-->
|
66
|
+
|
67
|
+
</body>
|
68
|
+
</html>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "rails/all"
|
4
|
+
|
5
|
+
Bundler.require
|
6
|
+
require 'rails_boilerplate'
|
7
|
+
|
8
|
+
module Dummy
|
9
|
+
class Application < Rails::Application
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
11
|
+
# Application configuration should go into files in config/initializers
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
13
|
+
|
14
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
15
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
16
|
+
|
17
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
18
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
19
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
20
|
+
|
21
|
+
# Activate observers that should always be running.
|
22
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
23
|
+
|
24
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
25
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
26
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
27
|
+
|
28
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
29
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
30
|
+
# config.i18n.default_locale = :de
|
31
|
+
|
32
|
+
# JavaScript files you want as :defaults (application.js is always included).
|
33
|
+
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
|
34
|
+
|
35
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
36
|
+
config.encoding = "utf-8"
|
37
|
+
|
38
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
39
|
+
config.filter_parameters += [:password]
|
40
|
+
|
41
|
+
config.assets.enabled = true
|
42
|
+
end
|
43
|
+
end
|