bookingit 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e51a747b5a99d2461e6864e23d34a99515061a6f
4
- data.tar.gz: f70a2eae2760cab5ad9d374de574eaad4856b5c3
3
+ metadata.gz: 3af8e59f2d98821d3338993975668485d4119c37
4
+ data.tar.gz: 046906f4e89bc7af5a5ac64f40163bd529afaeba
5
5
  SHA512:
6
- metadata.gz: c4a10173389476b2804e9c395b0f65f94deef6e308bf630057e89e282fb89e11a01e5f96cc99aa87b94aede1a22214a9ae07c2355d2e4e685d70b50d7c37714b
7
- data.tar.gz: eebe9e1d025aa7bc2008c2056be4c01b013ec7f6e445a2db5f40d20d9db57dafd4a522cb770044f02efb829a0b7a355973a11bf276c766aab256855ee060ac2a
6
+ metadata.gz: cf03ee1fb1940df0ccc824f65195f63eadc800c00232e6fa377a3b131fee5f858932e898b898033e19d2970d6df66433b9495f29d943857588d9b0ff3752e930
7
+ data.tar.gz: e91a2f8c5eaf67ca0af7529c3f16fa9941c6fc850743d434f07631ef8a3e2f37ea619defe942a98d4f2631fee21d5c5fb2d6863ac2bbee1141d4729dde52dbe4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bookingit (0.1.0)
4
+ bookingit (0.2.0)
5
5
  gli
6
6
  mustache
7
7
  redcarpet
@@ -38,6 +38,7 @@ command :init do |c|
38
38
  end
39
39
 
40
40
  desc 'build your book from markdown files'
41
+ arg_name '[output_dir]'
41
42
  command :build do |c|
42
43
  c.desc "Use cache for code samples and console sessions"
43
44
  c.default_value true
@@ -45,7 +46,7 @@ command :build do |c|
45
46
  c.action do |global_options,options,args|
46
47
  config = Bookingit::Config.new(File.read('config.json'),File.expand_path('.'))
47
48
  config.cache = options[:cache]
48
- book = Bookingit::Book.new(config)
49
+ book = Bookingit::Book.new(config,args.shift)
49
50
  book.render_html!
50
51
  end
51
52
  end
@@ -1,8 +1,8 @@
1
1
  module Bookingit
2
2
  class Book
3
- def initialize(config)
3
+ def initialize(config,output_dir='book')
4
4
  @config = config
5
- @output_dir = 'book'
5
+ @output_dir = output_dir
6
6
  end
7
7
 
8
8
  def render_html!
@@ -1,3 +1,3 @@
1
1
  module Bookingit
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -31,6 +31,11 @@
31
31
  </a>.
32
32
  </p>
33
33
  {{/license}}
34
+ {{#clicky}}
35
+ <script src="//static.getclicky.com/js" type="text/javascript"></script>
36
+ <script type="text/javascript">try{ clicky.init({{id}}); }catch(e){}</script>
37
+ <noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/{{id}}ns.gif" /></p></noscript>
38
+ {{/clicky}}
34
39
  {{/config}}
35
40
  </footer>
36
41
  </body>
@@ -5,6 +5,12 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
6
6
  <meta charset="utf-8">
7
7
  <title>{{config.title}}: {{config.subtitle}}</title>
8
+ {{#config}}
9
+ {{#typekit}}
10
+ <script type="text/javascript" src="//use.typekit.net/{{id}}.js"></script>
11
+ <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
12
+ {{/typekit}}
13
+ {{/config}}
8
14
  {{> syntax_highlighting.html }}
9
15
  </head>
10
16
  <body>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Copeland