bookingit 0.2.0 → 0.3.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.rdoc +6 -0
- data/lib/bookingit/book.rb +2 -2
- data/lib/bookingit/version.rb +1 -1
- data/templates/header.html.mustache +32 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 250ba852dddac4b2506a32c3653c9c51d25516d7
|
|
4
|
+
data.tar.gz: c726d236f1ae380b4ba7b8546b99003c1696022f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27f8e4c745ca70d7b29283d586c41e39c419d71cfa8b5efac16d5be4525fc34e985b5015f0fcfa1299245a969ec85a46fb801fea08171f4d5138a95f27e48339
|
|
7
|
+
data.tar.gz: 1540a13fb8094532c2447f65099e48c5bce5a42e9b627f88ccaf068e308ca231d589c7575a503756432bfe7cccadfa595d195739090895bc7df10fe3dbe1c5bd
|
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
|
@@ -150,3 +150,9 @@ Then, in <code>/tmp/foo.html</code>
|
|
|
150
150
|
</body>
|
|
151
151
|
</html>
|
|
152
152
|
|
|
153
|
+
There are a few other options that control content:
|
|
154
|
+
|
|
155
|
+
+clicky+:: If present, the +id+ attribute will be used to set up Clicky tracking
|
|
156
|
+
+typekit+:: If present, the +id+ attribute will be used to insert the TypeKit boilerplate
|
|
157
|
+
+favicon+:: If set to +true+, will include <code>/favicon.ico</code> meta tag in your output
|
|
158
|
+
+applie-mobile-web+:: If set to +true+, will include a few meta tags that help the app work in "bookmarked to the homescreen" mode
|
data/lib/bookingit/book.rb
CHANGED
data/lib/bookingit/version.rb
CHANGED
|
@@ -10,6 +10,38 @@
|
|
|
10
10
|
<script type="text/javascript" src="//use.typekit.net/{{id}}.js"></script>
|
|
11
11
|
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
|
12
12
|
{{/typekit}}
|
|
13
|
+
{{#favicon}}
|
|
14
|
+
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
|
15
|
+
{{/favicon}}
|
|
16
|
+
{{#apple-mobile-web}}
|
|
17
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
18
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
19
|
+
<script>
|
|
20
|
+
// Mobile Safari in standalone mode - don't shell out to Mobile Safari
|
|
21
|
+
// Courtesy https://gist.github.com/kylebarrow/1042026
|
|
22
|
+
if(("standalone" in window.navigator) && window.navigator.standalone){
|
|
23
|
+
|
|
24
|
+
var noddy, remotes = false;
|
|
25
|
+
|
|
26
|
+
document.addEventListener('click', function(event) {
|
|
27
|
+
|
|
28
|
+
noddy = event.target;
|
|
29
|
+
|
|
30
|
+
// Bubble up until we hit link or top HTML element. Warning: BODY element is not compulsory so better to stop on HTML
|
|
31
|
+
while(noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
|
|
32
|
+
noddy = noddy.parentNode;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes)) {
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
document.location.href = noddy.href;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
},false);
|
|
41
|
+
}
|
|
42
|
+
</script>
|
|
43
|
+
{{/apple-mobile-web}}
|
|
44
|
+
|
|
13
45
|
{{/config}}
|
|
14
46
|
{{> syntax_highlighting.html }}
|
|
15
47
|
</head>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bookingit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dave Copeland
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|