octopress-ink 1.0.0.rc.10 → 1.0.0.rc.11

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: cd5ff3cea02821dfdf14ba4552155308304011d1
4
- data.tar.gz: 14887e370fc336c5d971e79a2217951d0534633d
3
+ metadata.gz: 576099a0e49e1ab0edc2d5cbb5a9e16200a4394f
4
+ data.tar.gz: e5eb8df4eda75bfc27abfe48f0b20e293fe84525
5
5
  SHA512:
6
- metadata.gz: 84b4fb65b558d9978312efaca21e63a851c700ec6dd691331757bcae920c933f65ca6b0b5e04727d359dcc2b7b446bee0c165090d6f63f8f1c2de1899e54a18d
7
- data.tar.gz: 10f00d8c49c7e0eef081f7928a74481a72a9b4904944c191e7421b94d67f2199a7d7f9e95ff1cd00a0cd187eee99c0f34935fd2a05dc25e4f4d9a2c4cb8971f9
6
+ metadata.gz: c3bee656fcd73fd9c9fa3e24eb69d26fc7cd978838c25a5a38af9daa8b6e5c18cba20393146d3cfd026ead3f5a415a24cfbbdfea13d220762209c99633c077c5
7
+ data.tar.gz: 1336166f60125b7cab46bacbcde7f4a3d50f26672f63a17a1c641a6323c3ae0f08d921a93dd468b24ac4c756db9badf607884f5e70830869a6f96369fb20702c
data/CHANGELOG.md CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  ## Current released version
4
4
 
5
- ### 1.0.0 RC10 - 2014-06-26
5
+ ### 1.0.0 RC11 - 2014-06-27
6
6
 
7
- - Render tag does a better job of preserving {% raw %} escaped content.
7
+ - Fixed: Render tag properly processes local variables.
8
8
 
9
9
  ## Past versions
10
10
 
11
+ ### 1.0.0 RC10 - 2014-06-26
12
+
13
+ - Render tag does a better job of preserving {% raw %} escaped content.
14
+
11
15
  ### 1.0.0 RC9 - 2014-06-21
12
16
 
13
17
  - Added jekyll-page-hooks as a dependency.
@@ -24,22 +24,20 @@ module Octopress
24
24
 
25
25
  content = read(markup, context)
26
26
 
27
+ if content =~ /\A-{3}(.+[^\A])-{3}\n(.+)/m
28
+ local_vars = SafeYAML.load($1.strip)
29
+ content = $2.strip
30
+ end
31
+
27
32
  raw_content = {}
28
33
 
29
34
  content = content.gsub /{%\s*raw\s*%}(.+?){% endraw %}/m do
30
35
  data = $1
31
36
  key = Digest::MD5.hexdigest(data)
32
- raw_content[key] = data
37
+ raw_content[key] = "{% raw %}#{data}{% endraw %}"
33
38
  key
34
39
  end
35
40
 
36
- content = parse_convertible(content, context).strip
37
-
38
- if content =~ /\A-{3}(.+[^\A])-{3}\n(.+)/m
39
- local_vars = SafeYAML.load($1.strip)
40
- content = $2.strip
41
- end
42
-
43
41
  return content if @raw
44
42
 
45
43
  include_tag = Jekyll::Tags::IncludeTag.new('include', markup, [])
@@ -55,6 +53,8 @@ module Octopress
55
53
 
56
54
  raw_content.each { |k, v| content.sub!(k, v) }
57
55
 
56
+ content = parse_convertible(content, context).strip
57
+
58
58
  unless content.nil? || filters.nil?
59
59
  content = Helpers::Var.render_filters(content, filters, context)
60
60
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.10"
3
+ VERSION = "1.0.0.rc.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.10
4
+ version: 1.0.0.rc.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis