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.
|
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
|
@@ -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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
#
|
3
|
-
#
|
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: '
|
6
|
-
: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
|
-
|
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/
|
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
|
-
-
|
9
|
-
version: 0.2.
|
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-
|
17
|
+
date: 2010-09-03 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|