octopress 3.0.0.rc.32 → 3.0.0.rc.33

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: 7760d3288e671ee967ac36c64a831e38a920c51b
4
- data.tar.gz: 42fe1284e82aa0d83696bbfae60abf1f12d55435
3
+ metadata.gz: b592fc093e97e386a697674ed6afc49123a36229
4
+ data.tar.gz: c4e319f97c9ec7c9ca1868268d5bc1f51b125d08
5
5
  SHA512:
6
- metadata.gz: 3fb02a4b3a4ea8292569b864d2854dd22596ff2c3acbb723bd4ffdeb344821f33c6b36fc262a1f0f43134861574def9f3de56f5b956e513c3747a9363872a0b3
7
- data.tar.gz: dbe8213613324e2b72a0aca2af65944f89cca5f12bc09163d9d0aa032140419da3f033cf2e94a08dbb4e7e355b62063427b3553c2fccf082d7d307c360bc50cf
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
 
@@ -35,7 +35,6 @@ module Octopress
35
35
  post_options = {
36
36
  'title' => @options['title'],
37
37
  'date' => @options['date'],
38
- 'lang' => read_post_yaml('lang'),
39
38
  'slug' => title_slug,
40
39
  'content' => read_post_content,
41
40
  'dir' => @options['dir'],
@@ -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 lang}
20
+ @front_matter = %w{layout title date}
22
21
 
23
22
  # Ensure title
24
23
  #
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Octopress
2
- VERSION = "3.0.0.rc.32"
2
+ VERSION = "3.0.0.rc.33"
3
3
  end
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.32
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-02 00:00:00.000000000 Z
12
+ date: 2015-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mercenary