rails-boilerplate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/.gitignore +9 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +11 -0
  4. data/Guardfile +14 -0
  5. data/LICENSE +19 -0
  6. data/README.md +37 -0
  7. data/Rakefile +73 -0
  8. data/html5-boilerplate/.gitattributes +1 -0
  9. data/html5-boilerplate/.gitignore +41 -0
  10. data/html5-boilerplate/.htaccess +506 -0
  11. data/html5-boilerplate/404.html +38 -0
  12. data/html5-boilerplate/README.md +387 -0
  13. data/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
  14. data/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
  15. data/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
  16. data/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
  17. data/html5-boilerplate/apple-touch-icon.png +0 -0
  18. data/html5-boilerplate/build/build.xml +1051 -0
  19. data/html5-boilerplate/build/config/default.properties +116 -0
  20. data/html5-boilerplate/build/config/manifest.appcache +20 -0
  21. data/html5-boilerplate/build/config/project.properties +96 -0
  22. data/html5-boilerplate/build/createproject.sh +50 -0
  23. data/html5-boilerplate/build/project.xml +7 -0
  24. data/html5-boilerplate/build/runbuildscript.bat +6 -0
  25. data/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
  26. data/html5-boilerplate/build/tools/closure-compiler-v1346.jar +0 -0
  27. data/html5-boilerplate/build/tools/csslint-rhino.js +11138 -0
  28. data/html5-boilerplate/build/tools/fulljshint.js +5904 -0
  29. data/html5-boilerplate/build/tools/fulljslint.js +6651 -0
  30. data/html5-boilerplate/build/tools/htmlcompressor-1.4.3.jar +0 -0
  31. data/html5-boilerplate/build/tools/jpegtran.exe +0 -0
  32. data/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
  33. data/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
  34. data/html5-boilerplate/build/tools/rhino.jar +0 -0
  35. data/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
  36. data/html5-boilerplate/crossdomain.xml +25 -0
  37. data/html5-boilerplate/css/style.css +293 -0
  38. data/html5-boilerplate/demo/elements.html +493 -0
  39. data/html5-boilerplate/demo/hack.css +84 -0
  40. data/html5-boilerplate/demo/hack2.css +41 -0
  41. data/html5-boilerplate/demo/internet_explorer.png +0 -0
  42. data/html5-boilerplate/demo/test_tubes.png +0 -0
  43. data/html5-boilerplate/demo/tests.html +300 -0
  44. data/html5-boilerplate/favicon.ico +0 -0
  45. data/html5-boilerplate/humans.txt +43 -0
  46. data/html5-boilerplate/img/.gitignore +2 -0
  47. data/html5-boilerplate/index.html +79 -0
  48. data/html5-boilerplate/js/libs/jquery-1.6.3.js +9044 -0
  49. data/html5-boilerplate/js/libs/jquery-1.6.3.min.js +4 -0
  50. data/html5-boilerplate/js/libs/modernizr-2.0.6.min.js +4 -0
  51. data/html5-boilerplate/js/mylibs/.gitignore +2 -0
  52. data/html5-boilerplate/js/plugins.js +20 -0
  53. data/html5-boilerplate/js/script.js +8 -0
  54. data/html5-boilerplate/robots.txt +5 -0
  55. data/html5-boilerplate/test/index.html +31 -0
  56. data/html5-boilerplate/test/qunit/qunit.css +148 -0
  57. data/html5-boilerplate/test/qunit/qunit.js +1265 -0
  58. data/html5-boilerplate/test/tests.js +24 -0
  59. data/index.html.patch +62 -0
  60. data/lib/generators/boilerplate/install/install_generator.rb +33 -0
  61. data/lib/generators/boilerplate/install/templates/apple-touch-icon-114x114-precomposed.png +0 -0
  62. data/lib/generators/boilerplate/install/templates/apple-touch-icon-57x57-precomposed.png +0 -0
  63. data/lib/generators/boilerplate/install/templates/apple-touch-icon-72x72-precomposed.png +0 -0
  64. data/lib/generators/boilerplate/install/templates/apple-touch-icon-precomposed.png +0 -0
  65. data/lib/generators/boilerplate/install/templates/apple-touch-icon.png +0 -0
  66. data/lib/generators/boilerplate/install/templates/crossdomain.xml +25 -0
  67. data/lib/generators/boilerplate/install/templates/favicon.ico +0 -0
  68. data/lib/generators/boilerplate/install/templates/humans.txt +43 -0
  69. data/lib/generators/boilerplate/install/templates/index.html +60 -0
  70. data/lib/generators/boilerplate/install/templates/robots.txt +5 -0
  71. data/lib/generators/boilerplate/resource_helpers.rb +13 -0
  72. data/lib/rails_boilerplate.rb +7 -0
  73. data/lib/rails_boilerplate/version.rb +3 -0
  74. data/rails-boilerplate.gemspec +24 -0
  75. data/test/dummy/Rakefile +7 -0
  76. data/test/dummy/app/controllers/application_controller.rb +3 -0
  77. data/test/dummy/app/controllers/home_controller.rb +5 -0
  78. data/test/dummy/app/helpers/application_helper.rb +2 -0
  79. data/test/dummy/app/views/home/index.html.erb +1 -0
  80. data/test/dummy/app/views/layouts/application.html.erb +68 -0
  81. data/test/dummy/config.ru +4 -0
  82. data/test/dummy/config/application.rb +43 -0
  83. data/test/dummy/config/boot.rb +10 -0
  84. data/test/dummy/config/database.yml +22 -0
  85. data/test/dummy/config/environment.rb +5 -0
  86. data/test/dummy/config/environments/development.rb +25 -0
  87. data/test/dummy/config/environments/production.rb +49 -0
  88. data/test/dummy/config/environments/test.rb +35 -0
  89. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  90. data/test/dummy/config/initializers/inflections.rb +10 -0
  91. data/test/dummy/config/initializers/mime_types.rb +5 -0
  92. data/test/dummy/config/initializers/secret_token.rb +7 -0
  93. data/test/dummy/config/initializers/session_store.rb +8 -0
  94. data/test/dummy/config/locales/en.yml +5 -0
  95. data/test/dummy/config/routes.rb +3 -0
  96. data/test/dummy/public/404.html +26 -0
  97. data/test/dummy/public/422.html +26 -0
  98. data/test/dummy/public/500.html +26 -0
  99. data/test/dummy/public/favicon.ico +0 -0
  100. data/test/dummy/public/javascripts/application.js +2 -0
  101. data/test/dummy/public/javascripts/controls.js +965 -0
  102. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  103. data/test/dummy/public/javascripts/effects.js +1123 -0
  104. data/test/dummy/public/javascripts/prototype.js +6001 -0
  105. data/test/dummy/public/javascripts/rails.js +191 -0
  106. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  107. data/test/dummy/script/rails +6 -0
  108. data/test/generators/fixtures/application.css +7 -0
  109. data/test/generators/fixtures/application.js +9 -0
  110. data/test/generators/generators_test_helper.rb +8 -0
  111. data/test/generators/install_generator_test.rb +51 -0
  112. data/test/rails_boilerplate_test.rb +16 -0
  113. data/test/test_helper.rb +12 -0
  114. data/vendor/assets/javascripts/modernizr.js +4 -0
  115. data/vendor/assets/javascripts/plugins.js +20 -0
  116. data/vendor/assets/stylesheets/reset.css +293 -0
  117. 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
@@ -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>
@@ -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,5 @@
1
+ # www.robotstxt.org/
2
+ # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
3
+
4
+ User-agent: *
5
+
@@ -0,0 +1,13 @@
1
+ module Boilerplate
2
+ module Generators
3
+ module ResourceHelpers
4
+ def application_name
5
+ if defined?(Rails) && Rails.application
6
+ Rails.application.class.name.split('::').first
7
+ else
8
+ "application"
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ require "rails_boilerplate/version"
2
+ require 'rails/engine'
3
+
4
+ module RailsBoilerplate
5
+ class Engine < Rails::Engine
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module RailsBoilerplate
2
+ VERSION = "0.1.0"
3
+ end
@@ -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
@@ -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,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,5 @@
1
+ class HomeController < ApplicationController
2
+ def index
3
+
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -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,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -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