html5-boilerplate 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,3 @@
1
+ Copyright (c) 2010 Peter Gumeson
2
+
3
+ http://creativecommons.org/licenses/by/3.0/
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  Compass Html5 Boilerplate
2
2
  =========================
3
3
 
4
- A compass extension based on HTML5 Boilerplate by Paul Irish.
4
+ HTML5 Boilerplate is a Compass extension based on HTML5 Boilerplate by Paul Irish.
5
+ You can use it to kick-start fully compliant HTML5 applications. Generate either
6
+ stand-alone Compass projects, or Rails applications with fully integrated
7
+ Haml and Sass (scss) templates.
5
8
 
6
9
  Browse [html5boilerplate.com](http://html5boilerplate.com) for the full workup.
7
10
 
@@ -48,7 +51,12 @@ Rails Installation
48
51
  config/compass.rb
49
52
  config/initializers/compass.rb
50
53
 
51
- Note: If you already have a config/compass.rb file in your project, you may need to
54
+ The Scss files above will get compiled to your Sass compilation dir:
55
+
56
+ public/stylesheets/**/style.css
57
+ public/stylesheets/**/handheld.css
58
+
59
+ **Note:** If you already have a config/compass.rb file in your project, you may need to
52
60
  manually add the following line to the top:
53
61
 
54
62
  require 'html5-boilerplate'
@@ -59,8 +67,8 @@ If you still have an application.html.erb in your layouts, you will need to loos
59
67
  it now so that Rails will use your shiny new application.html.haml layout instead.
60
68
 
61
69
  The haml will compile to the equivalent of html5-boilerplate's index.html,
62
- but with all comments stripped out, and some additional rails requirements
63
- like csrf_meta_tag and flashes.
70
+ but with all comments stripped out, and some additional rails stuff
71
+ like csrf_meta_tags, flashes and the Rails jQuery driver.
64
72
 
65
73
  This has only been tested on Rails3, but should work fine on Rails2.
66
74
 
@@ -102,10 +110,10 @@ If you omit them, be sure to edit your javascript and style tags accordingly in
102
110
  nginx.conf
103
111
  web.config
104
112
 
105
- The SCSS files above will get compiled to the css directory whenever compass is run:
113
+ The SCSS files above will get compiled to your Sass compilation dir:
106
114
 
107
- css/handheld.css
108
115
  css/style.css
116
+ css/handheld.css
109
117
 
110
118
  License
111
119
  =======
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.2
@@ -23,13 +23,14 @@
23
23
  = javascript_include_tag 'profiling/yahoo-profiling.min', 'profiling/config'
24
24
 
25
25
  -# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
26
- -# change the UA-XXXXX-X to be your site's ID
27
- :javascript
28
- var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
29
- (function(d, t) {
30
- var g = d.createElement(t),
31
- s = d.getElementsByTagName(t)[0];
32
- g.async = true;
33
- g.src = '//www.google-analytics.com/ga.js';
34
- s.parentNode.insertBefore(g, s);
35
- })(document, 'script');
26
+ -# define a google_account_id helper that returns your site's ID
27
+ - if defined?(google_account_id) && !google_account_id.blank?
28
+ :javascript
29
+ var _gaq = [['_setAccount', '#{google_account_id}'], ['_trackPageview']];
30
+ (function(d, t) {
31
+ var g = d.createElement(t),
32
+ s = d.getElementsByTagName(t)[0];
33
+ g.async = true;
34
+ g.src = '//www.google-analytics.com/ga.js';
35
+ s.parentNode.insertBefore(g, s);
36
+ })(document, 'script');
@@ -52,6 +52,8 @@ AddType font/otf otf
52
52
  AddType font/x-woff woff
53
53
 
54
54
  AddType text/cache-manifest manifest
55
+ AddType text/x-component htc
56
+
55
57
 
56
58
  # allow concatenation from within specific js and css files
57
59
 
@@ -109,7 +111,13 @@ AddType text/cache-manifest manifest
109
111
  ExpiresByType text/cache-manifest "access plus 0 seconds"
110
112
 
111
113
  # your document html
112
- ExpiresByType text/html "access"
114
+ ExpiresByType text/html "access plus 0 seconds"
115
+
116
+ # data
117
+ ExpiresByType text/xml "access plus 0 seconds"
118
+ ExpiresByType application/xml "access plus 0 seconds"
119
+ ExpiresByType application/json "access plus 0 seconds"
120
+
113
121
 
114
122
  # rss feed
115
123
  ExpiresByType application/rss+xml "access plus 1 hour"
@@ -37,7 +37,7 @@ else
37
37
  javascript 'javascripts/profiling/yahoo-profiling.min.js', :to => 'profiling/yahoo-profiling.min.js'
38
38
  end
39
39
  html 'files/404.html', :to => '404.html'
40
- html 'files/htaccess.conf', :to => '.htaccess'
40
+ html 'files/htaccess', :to => '.htaccess'
41
41
  html 'files/crossdomain.xml', :to => 'crossdomain.xml'
42
42
  html 'files/robots.txt', :to => 'robots.txt'
43
43
  html 'files/apple-touch-icon.png', :to => 'apple-touch-icon.png'
@@ -60,7 +60,7 @@ sup { vertical-align: super; font-size: smaller; }
60
60
 
61
61
  .visuallyhidden { @include visually-hidden; }
62
62
 
63
- @include magnificent-clearfix;
63
+ @include magnificent-clearfix('clearfix'); // Override with custom class-name
64
64
 
65
65
 
66
66
  //--------------------------------
@@ -5,7 +5,7 @@
5
5
  // Then, we'll import the compass extension
6
6
  @import "html5-boilerplate";
7
7
 
8
- // Now you can now choose to include the
8
+ // Now you can choose to include the
9
9
  // whole enchilada with just one line
10
10
  //@include html5-boilerplate;
11
11
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Peter Gumeson
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-18 00:00:00 -07:00
17
+ date: 2010-08-19 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,9 @@ extra_rdoc_files: []
42
42
 
43
43
  files:
44
44
  - README.md
45
+ - LICENSE
46
+ - VERSION
47
+ - templates/project/files/htaccess
45
48
  - lib/html5-boilerplate.rb
46
49
  - stylesheets/_html5-boilerplate.scss
47
50
  - stylesheets/html5-boilerplate/_fonts.scss
@@ -61,7 +64,6 @@ files:
61
64
  - templates/project/files/apple-touch-icon.png
62
65
  - templates/project/files/crossdomain.xml
63
66
  - templates/project/files/favicon.ico
64
- - templates/project/files/htaccess.conf
65
67
  - templates/project/files/nginx.conf
66
68
  - templates/project/files/robots.txt
67
69
  - templates/project/files/web.config