octopress 3.0.0.alpha5 → 3.0.0.alpha6

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: e88ffd8d12a4e66e4727e6f29c8db96106b0bd4d
4
- data.tar.gz: f3ad99f3d9d4022da49bb1ea815fe22d2068f1da
3
+ metadata.gz: 4c62527f5ef1b7b0e75d335abc472f1cf5dbb21d
4
+ data.tar.gz: 30988331da408ed9f8ae6d39160dcaf9dc5ee01c
5
5
  SHA512:
6
- metadata.gz: 943d23e0f3842d057131dfa717a1201f837e591f89a2e9cbdeff21793ca4e5dcbb3a5641ed366e0a4140932d365ae45f89f08e5b8b4f88945a96901ef0a144e1
7
- data.tar.gz: 3f0ae5fdb60088ddf300ecc841e988c51fe574bc9a2e4e195c4064df0aa7ff8c7666725be5390af3bb9679eb3827161392cc30516668c8f3a0d3ad6bc03d6a76
6
+ metadata.gz: 7a046d7353d0acf7f3baf45e4ebe5c29eb546f660a138a0610c81dbc033d6977151f7ab923d83e596db445cd4340ab09a7201ebcdd066c4136597b9a0257121f
7
+ data.tar.gz: 85237ccbced52a8ae86ad2d1c24df0527f76c90aa5dda09eaafcd11cf40814929e12c4a8ea6d3c062a54d2ed3d240818d8e8bc2e3d5f2bd2f1a3166fe90c4c9f
data/README.md CHANGED
@@ -19,6 +19,14 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
+ ### Generating a new site
23
+
24
+ To create a new scaffold of directories and files in a new directory named my_blog:
25
+
26
+ ```bash
27
+ $ octopress new my_blog
28
+ ```
29
+
22
30
  ### Generating a new Post
23
31
 
24
32
  ```bash
@@ -16,5 +16,11 @@ module Octopress
16
16
  end
17
17
  options
18
18
  end
19
+
20
+ def self.add_common_options(c)
21
+ c.option 'date', '--date DATE', 'String that is parseable by Time#parse. (default: Time.now.iso8601)'
22
+ c.option 'template', '--template PATH', 'Path to a post or page template.'
23
+ c.option 'force', '--force', 'Force creation even if PATH already exists'
24
+ end
19
25
  end
20
26
  end
@@ -18,7 +18,7 @@ module Octopress
18
18
  page_command.syntax 'octopress new page PATH [options]'
19
19
  page_command.description 'Add a new page to your Jekyll site.'
20
20
  page_command.option 'title', '--title TITLE', 'String to be added as the title in the YAML front-matter.'
21
- add_common_options page_command
21
+ CommandHelpers.add_common_options page_command
22
22
 
23
23
  page_command.action do |args, options|
24
24
  abort "You must specify a path." if args.empty?
@@ -30,7 +30,7 @@ module Octopress
30
30
  c.command(:post) do |post_command|
31
31
  post_command.syntax 'octopress new post TITLE [options]'
32
32
  post_command.description 'Add a new post to your Jekyll site.'
33
- add_common_options post_command
33
+ CommandHelpers.add_common_options post_command
34
34
 
35
35
  post_command.action do |args, options|
36
36
  options['title'] = args.first
@@ -41,7 +41,7 @@ module Octopress
41
41
  c.command(:draft) do |draft_command|
42
42
  draft_command.syntax 'octopress new draft TITLE [options]'
43
43
  draft_command.description 'Add a new draft post to your Jekyll site.'
44
- add_common_options draft_command
44
+ CommandHelpers.add_common_options draft_command
45
45
 
46
46
  draft_command.action do |args, options|
47
47
  options['title'] = args.first
@@ -50,10 +50,5 @@ module Octopress
50
50
  end
51
51
  end
52
52
  end
53
- def self.add_common_options(c)
54
- c.option 'date', '--date DATE', 'String that is parseable by Time#parse. (default: Time.now.iso8601)'
55
- c.option 'template', '--template PATH', 'Path to a post or page template.'
56
- c.option 'force', '--force', 'Force creation even if PATH already exists'
57
- end
58
53
  end
59
54
  end
@@ -1,3 +1,3 @@
1
1
  module Octopress
2
- VERSION = "3.0.0.alpha5"
2
+ VERSION = "3.0.0.alpha6"
3
3
  end
data/octopress.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "mercenary", "~> 0.2.1"
21
+ spec.add_runtime_dependency "mercenary", "~> 0.3.0"
22
22
  spec.add_runtime_dependency "jekyll", "~> 1.4.2"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha5
4
+ version: 3.0.0.alpha6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-20 00:00:00.000000000 Z
12
+ date: 2014-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mercenary
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 0.2.1
20
+ version: 0.3.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 0.2.1
27
+ version: 0.3.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: jekyll
30
30
  requirement: !ruby/object:Gem::Requirement