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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3af8e59f2d98821d3338993975668485d4119c37
4
- data.tar.gz: 046906f4e89bc7af5a5ac64f40163bd529afaeba
3
+ metadata.gz: 250ba852dddac4b2506a32c3653c9c51d25516d7
4
+ data.tar.gz: c726d236f1ae380b4ba7b8546b99003c1696022f
5
5
  SHA512:
6
- metadata.gz: cf03ee1fb1940df0ccc824f65195f63eadc800c00232e6fa377a3b131fee5f858932e898b898033e19d2970d6df66433b9495f29d943857588d9b0ff3752e930
7
- data.tar.gz: e91a2f8c5eaf67ca0af7529c3f16fa9941c6fc850743d434f07631ef8a3e2f37ea619defe942a98d4f2631fee21d5c5fb2d6863ac2bbee1141d4729dde52dbe4
6
+ metadata.gz: 27f8e4c745ca70d7b29283d586c41e39c419d71cfa8b5efac16d5be4525fc34e985b5015f0fcfa1299245a969ec85a46fb801fea08171f4d5138a95f27e48339
7
+ data.tar.gz: 1540a13fb8094532c2447f65099e48c5bce5a42e9b627f88ccaf068e308ca231d589c7575a503756432bfe7cccadfa595d195739090895bc7df10fe3dbe1c5bd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bookingit (0.2.0)
4
+ bookingit (0.3.0)
5
5
  gli
6
6
  mustache
7
7
  redcarpet
@@ -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
@@ -1,8 +1,8 @@
1
1
  module Bookingit
2
2
  class Book
3
- def initialize(config,output_dir='book')
3
+ def initialize(config,output_dir=nil)
4
4
  @config = config
5
- @output_dir = output_dir
5
+ @output_dir = output_dir || 'book'
6
6
  end
7
7
 
8
8
  def render_html!
@@ -1,3 +1,3 @@
1
1
  module Bookingit
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -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.2.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-03-30 00:00:00.000000000 Z
11
+ date: 2014-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake