octopress 3.0.0.rc.32 → 3.0.0.rc.33
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/CHANGELOG.md +4 -0
- data/README.md +0 -3
- data/lib/octopress/commands/helpers.rb +0 -1
- data/lib/octopress/draft.rb +0 -1
- data/lib/octopress/page.rb +1 -2
- data/lib/octopress/post.rb +0 -6
- data/lib/octopress/version.rb +1 -1
- 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: b592fc093e97e386a697674ed6afc49123a36229
|
4
|
+
data.tar.gz: c4e319f97c9ec7c9ca1868268d5bc1f51b125d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f83d00d87e5b87ab1628b9216d6407a02a8e2419c28c8b20bc6abece9fd5421c94d48227b1250c05970cb9855cd8691bbaca7b1b234c750e1982736a2c8ad77
|
7
|
+
data.tar.gz: 03cc61c13df8e7b37debefd536598ff4434c5c346a5e4c737c2c75553b37b6c6d976736e9a2a483be38c0ed56d998b300fa06e88f34a1fdeb3dae85cd7b1076c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 3.0.0 RC33 (2015-02-14)
|
4
|
+
|
5
|
+
- Removed `--lang` option from CLI. This adds unnecessary complexity which can be addressed with templates.
|
6
|
+
|
3
7
|
### 3.0.0 RC32 (2015-02-02)
|
4
8
|
|
5
9
|
- Added octopress-multilingual to list of plugins which can extend the CLI.
|
data/README.md
CHANGED
@@ -74,7 +74,6 @@ date: YYYY-MM-DDTHH:MM:SS-00:00
|
|
74
74
|
|:---------------------|:----------------------------------------|
|
75
75
|
| `--template PATH` | Use a template from <path> |
|
76
76
|
| `--date DATE` | The date for the post. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) |
|
77
|
-
| `--lang LANGUAGE` | Set post language (e.g. en, it) for multi-language sites. |
|
78
77
|
| `--slug SLUG` | Slug for the new post. |
|
79
78
|
| `--dir DIR` | Create post at _posts/DIR/. |
|
80
79
|
| `--force` | Overwrite existing file. |
|
@@ -106,7 +105,6 @@ After the page is created, Octopress will tell you how to configure this new col
|
|
106
105
|
| `--template PATH` | Use a template from <path> |
|
107
106
|
| `--title TITLE` | The title of the new page |
|
108
107
|
| `--date DATE` | The date for the page. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) |
|
109
|
-
| `--lang LANGUAGE` | Set page language (e.g. en, it) for multi-language sites. |
|
110
108
|
| `--force` | Overwrite existing file. |
|
111
109
|
|
112
110
|
Note: The default page template doesn't expect a date. If you want to add dates
|
@@ -126,7 +124,6 @@ $ octopress new draft "My Title"
|
|
126
124
|
|:-------------------|:------------------------------------------|
|
127
125
|
| `--template PATH` | Use a template from <path> |
|
128
126
|
| `--date DATE` | The date for the draft. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) (defaults to Time.now) |
|
129
|
-
| `--lang LANGUAGE` | Set draft language (e.g. en, it) for multi-language sites. |
|
130
127
|
| `--slug SLUG` | The slug for the new post. |
|
131
128
|
| `--force` | Overwrite existing file. |
|
132
129
|
|
@@ -5,7 +5,6 @@ module Octopress
|
|
5
5
|
def add_page_options(c)
|
6
6
|
c.option 'date', '-d', '--date DATE', "Use 'now' or a String that is parseable by Time#parse."
|
7
7
|
c.option 'template', '-tm', '--template PATH', "New #{c.name.to_s} from a template."
|
8
|
-
c.option 'lang', '-l', '--lang LANGUAGE', "Set a #{c.name.to_s} language (e.g. en, it) for multi-language sites."
|
9
8
|
c.option 'force', '-f', '--force', 'Overwrite file if it already exists'
|
10
9
|
end
|
11
10
|
|
data/lib/octopress/draft.rb
CHANGED
data/lib/octopress/page.rb
CHANGED
@@ -15,10 +15,9 @@ module Octopress
|
|
15
15
|
@site = site
|
16
16
|
@config = DEFAULT_OPTIONS.merge(site.config)
|
17
17
|
@options = options
|
18
|
-
@options['lang'].downcase! if @options['lang']
|
19
18
|
set_default_options
|
20
19
|
|
21
|
-
@front_matter = %w{layout title date
|
20
|
+
@front_matter = %w{layout title date}
|
22
21
|
|
23
22
|
# Ensure title
|
24
23
|
#
|
data/lib/octopress/post.rb
CHANGED
@@ -13,12 +13,6 @@ module Octopress
|
|
13
13
|
@options['extension'] ||= @config['post_ext']
|
14
14
|
@options['template'] ||= @config['post_template']
|
15
15
|
@options['dir'] ||= ''
|
16
|
-
|
17
|
-
# Language dir should always be added if language is set
|
18
|
-
#
|
19
|
-
if @options['lang']
|
20
|
-
@options['dir'] = File.join(@options['lang'], @options['dir'])
|
21
|
-
end
|
22
16
|
end
|
23
17
|
|
24
18
|
def path
|
data/lib/octopress/version.rb
CHANGED
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.rc.
|
4
|
+
version: 3.0.0.rc.33
|
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: 2015-02-
|
12
|
+
date: 2015-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mercenary
|