octopress-escape-code 1.0.4 → 2.0.0

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: 4781e02240e67f367bed8d7ea219bd5087915b28
4
- data.tar.gz: 875502e016e25e1ff6228221b8fc9fa8144735cb
3
+ metadata.gz: d0fb69f01127fe42dcc0d06bdf519ecdc5aa8f4f
4
+ data.tar.gz: 4f1cc99f2f8eeba1ec6c468f04be895f5863610c
5
5
  SHA512:
6
- metadata.gz: 6d7a1b6d6bca0d9b5dc5332699682d12cd1186e49762198f2fe98216ec632676643869571cdcccf45fc2daa985f376bd064b4fb63acc8cd99eba1989645c679e
7
- data.tar.gz: 6ba3c05c61ae02c72acdc3c87af69ca63a9518f2307a55dbb1014e5a0e5f500c336dbf0dc6b90c1510300cd1862c0e9e3bb0db9104f6f66fc4a63148f9b4cac8
6
+ metadata.gz: db184f21c438932150fb2d77a47537d34be23f387b239996f81bc881108483cc77541ac2c4d26a5d58629165a04a50e995c2be84d7c086dd185f01d8349d8242
7
+ data.tar.gz: 687fdedd2892f070d692b243a6c8aad5ddd80fda599ec168959ab34ebc5c0e28a115f5b3be9be60b99953671ba99dca4cdfe26f2de2d283b56b5a01fa2b43f62
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.0.0 - 2014-12-18
4
+ - Site-wide code escaping now defaults to false.
5
+
3
6
  ### 1.0.4 - 2014-12-10
4
7
  - Added support for documentation in Octopress docs.
5
8
  - Now preserving hand written raw tags inside of code blocks.
data/README.md CHANGED
@@ -30,6 +30,19 @@ Next add it to your gems list in Jekyll's `_config.yml`
30
30
  gems:
31
31
  - octopress-escape-code
32
32
 
33
+ ### Configuration
34
+
35
+ To escape code blocks on a single page, add this configuration to the page's YAML front-matter.
36
+
37
+ escape_code: true
38
+
39
+ If you prefer, you can enable it on a site-wide basis.
40
+
41
+ // in Jekyll's _config.yml
42
+ escape_code: true
43
+
44
+ Adding `escape_code: false` any the page's YAML front-matter will disable code escaping for that page.
45
+
33
46
  ## Usage
34
47
 
35
48
  ### Code plugins
@@ -72,19 +85,6 @@ well.
72
85
 
73
86
  This works with double back tick code tags as well.
74
87
 
75
- ### Disable Automatic escaping
76
-
77
- To disable code escaping for a single page, add this to the page's YAML front-matter.
78
-
79
- escape_code: fasle
80
-
81
- If you prefer, you can enable it on a per page basis, by turning off automatic code escaping in your site's configuration.
82
-
83
- // in Jekyll's _config.yml
84
- escape_code: false
85
-
86
- Then, add `escape_code: true` to the page's YAML front-matter to enable code escaping for a single page.
87
-
88
88
  ## Contributing
89
89
 
90
90
  1. Fork it ( https://github.com/octopress/escape-code/fork )
@@ -33,10 +33,10 @@ module Octopress
33
33
  end
34
34
 
35
35
  def self.escape_enabled?(page)
36
- get_config(page, 'escape_code', true)
36
+ get_config(page, 'escape_code', false)
37
37
  end
38
38
 
39
- def self.get_config(page, config, default = true)
39
+ def self.get_config(page, config, default)
40
40
  site_config = page.site.config[config]
41
41
  site_config = default if site_config.nil?
42
42
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module EscapeCode
3
- VERSION = "1.0.4"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-escape-code
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-13 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.4.1
139
+ rubygems_version: 2.2.2
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Return tag renders a variable with some nice features