html5-boilerplate 0.2.0 → 0.2.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -23,11 +23,11 @@ module Html5BoilerplateHelper
23
23
  end
24
24
 
25
25
  def google_account_id
26
- ENV['GOOGLE_ACCOUNT_ID'] || google_config(:google_account_id) || ''
26
+ ENV['GOOGLE_ACCOUNT_ID'] || google_config(:google_account_id)
27
27
  end
28
28
 
29
29
  def google_api_key
30
- ENV['GOOGLE_API_KEY'] || google_config(:google_api_key) || ''
30
+ ENV['GOOGLE_API_KEY'] || google_config(:google_api_key)
31
31
  end
32
32
 
33
33
  private
@@ -1,5 +1,4 @@
1
1
  #flash
2
2
  - flash.each do |key, value|
3
3
  %div{ :title => key.to_s.humanize, :class => key }
4
- %p
5
- = h value
4
+ %p= value
@@ -25,12 +25,13 @@
25
25
 
26
26
  -# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
27
27
  -# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/google.yml
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 = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
35
- s.parentNode.insertBefore(g, s);
36
- })(document, 'script');
28
+ - if !google_account_id.blank?
29
+ :javascript
30
+ var _gaq = [['_setAccount', '#{google_account_id}'], ['_trackPageview']];
31
+ (function(d, t) {
32
+ var g = d.createElement(t),
33
+ s = d.getElementsByTagName(t)[0];
34
+ g.async = true;
35
+ g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
36
+ s.parentNode.insertBefore(g, s);
37
+ })(document, 'script');
@@ -1,9 +1,13 @@
1
- # Html5BoilerplateHelper will first check your ENV
2
- # for each key before using the these yml values
3
- # e.g. ENV['GOOGLE_ACCOUNT_ID'] || :google_account_id
1
+ # Html5BoilerplateHelper will first check your ENV and
2
+ # then this yml file for these values. If they are both
3
+ # empty, the google code block will not be used.
4
+ #
5
+ # e.g. ENV['GOOGLE_ACCOUNT_ID'] || yml[:google_account_id]
6
+ # e.g. ENV['GOOGLE_API_KEY'] || yml[:google_api_key]
7
+ #
4
8
  defaults: &defaults
5
- :google_account_id: 'UA-XXXXX-X' # ENV['GOOGLE_ACCOUNT_ID']
6
- :google_api_key: '' # ENV['GOOGLE_API_KEY']
9
+ :google_account_id: ''
10
+ :google_api_key: ''
7
11
 
8
12
  :development:
9
13
  <<: *defaults
@@ -18,8 +18,9 @@
18
18
 
19
19
  # Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
20
20
  # We need to inform proxies that content changes based on UA
21
- Header append Vary User-Agent
22
-
21
+ <IfModule mod_headers.c>
22
+ Header append Vary User-Agent
23
+ </IfModule>
23
24
 
24
25
  # hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
25
26
  # Disabled. Uncomment to serve cross-domain ajax requests
@@ -141,7 +142,8 @@ AddType text/x-component htc
141
142
  ExpiresByType video/webm "access plus 1 month"
142
143
 
143
144
  # webfonts
144
- ExpiresByType font/ttf "access plus 1 month"
145
+ ExpiresByType font/truetype "access plus 1 month"
146
+ ExpiresByType font/opentype "access plus 1 month"
145
147
  ExpiresByType font/woff "access plus 1 month"
146
148
  ExpiresByType image/svg+xml "access plus 1 month"
147
149
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
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-29 00:00:00 -07:00
17
+ date: 2010-09-03 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency