hawkins 2.0.1 → 2.0.2

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: 8cb9ec475847aad8ae731b83235af9519c34a174
4
- data.tar.gz: a0a1a5724482b3a0e74eab7bb23dd415ef96cac2
3
+ metadata.gz: 885636094f687e054388e0a6d71da378df326612
4
+ data.tar.gz: dcc088a40490a073879771f5b8970f3967f0094c
5
5
  SHA512:
6
- metadata.gz: 9bdb91bf803f772aa90cf6f849362cff994972a8e36419704c9340573aa7192e7e2a47fba2ceec448a90e877c506c0e204224f0539cd52530596b1362fac6e94
7
- data.tar.gz: 7661310fbde71551cfcfb66d8c532e80f2b182601b7ba3661964c689ba38553736f0de99b066a7000af586c7e09d66d4cd23956c0704fe73c4b66ddc43cdef6a
6
+ metadata.gz: 7d0d52c3eed985b496ea2f0f47ac0329377321a5656475c636de6db2342a46fb7c4ba32a2194e55c17a9e22aa3f9a5b20a79dd1925509a915aa266b2ab8cf23d
7
+ data.tar.gz: 46c03d67882570a6a3a398277ef05093823c8475d4f4681876bfdb22aef2a027d7951a6f000953ece955f04a9da1094e3b4c554b6306b31b76933ee62c06fc29
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Hawkins
2
- Hawkins is a [Jekyll](http://jekyllrb.com) 3 plugin that incorporates
2
+ Hawkins is a [Jekyll](http://jekyllrb.com) 3.1+ plugin that incorporates
3
3
  [LiveReload](http://www.livereload.com) into the Jekyll "serve" process.
4
4
 
5
5
  ## How to Use
data/TODO.md CHANGED
@@ -1,3 +1,5 @@
1
1
  TO DO:
2
2
 
3
3
  * Work with Jekyll 3.0.X
4
+ * Test command-line parsing (e.g. a test for issue #3)
5
+ * Implement skipped tests
@@ -12,10 +12,14 @@ module Hawkins
12
12
  }.freeze
13
13
 
14
14
  def init_with_program(prog)
15
- prog.command(:post) do |c|
16
- c.syntax("new [options]")
17
- c.description("create a new post")
18
- c.action do |args, options|
15
+ prog.command(:post) do |cmd|
16
+ cmd.syntax("post [options]")
17
+ cmd.description("create a new post")
18
+ COMMAND_OPTIONS.each do |key, val|
19
+ cmd.option(key, *val)
20
+ end
21
+
22
+ cmd.action do |args, options|
19
23
  Hawkins::Commands::Post.create(args, options)
20
24
  end
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module Hawkins
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hawkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Wood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll