octopress-include-tag 1.1.2 → 1.1.3

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: 03549c58c4562c87f8cd15ac4e77470ddf764295
4
- data.tar.gz: d790afdfb814d2e87174eb5891c22f5964c88d70
3
+ metadata.gz: c8f3dbc10b79eb0ad3bbf180840ab99c0252a17d
4
+ data.tar.gz: fceb136801a8723a4ed806a240db5bc9c1064d1e
5
5
  SHA512:
6
- metadata.gz: f1a1056e268c4df190f8db75dd6e3cf115da9816539b94730d962c87e8f445230d3b49f187d6c37f65e496a3f2c5672fae7e145382644b359ae5f5d91b202b27
7
- data.tar.gz: 52eddae1fe00e1492cbeb09f4261eef7b7a5503eb6c22e92808395f398be3307e0b5812742f0e6e6839f63f06340687d12daefb5d45f20bd64d2d306d029b731
6
+ metadata.gz: f5669bf4116bbaa83c2de03254037df3906055ebe7fc8f2be23ae68ebd0c2a4e1a2daf230ca4821a2ad93eb4c460e646af375a72d777d558ef60e999360dd509
7
+ data.tar.gz: 64a34a2a3dbe86244cd1161dce19e2ed5993f411b4aad98ac26474b8e7fdd2a341cdb29cad6d75944e14ee0e9a8087a2cbbae0ef1a732a64c688ff82e041cd78
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.3 - 2015-05-15
4
+ - Fix: Better handling of multiple include parameters
5
+
3
6
  ### 1.1.2 - 2015-05-12
4
7
  - Fix: Liquid 3 support improved
5
8
  - Minor: Now supports Jekyll 2 and 3.
@@ -30,17 +30,17 @@ module Octopress
30
30
  #
31
31
  def safe_markup(markup)
32
32
  file = markup.strip.match(/\S+/)[0]
33
- params = ''
33
+ params = []
34
34
 
35
- if matched = markup.match(VALID_SYNTAX)
36
- params = matched[0]
35
+ markup.scan(Regexp.compile('('+VALID_SYNTAX.to_s+')+')).each do |param|
36
+ params << param.first
37
37
  end
38
38
 
39
39
  if matched = tag_markup.match(VARIABLE_SYNTAX)
40
40
  file = matched['variable']
41
41
  end
42
42
 
43
- [file, params]
43
+ [file, params.join(' ')]
44
44
  end
45
45
 
46
46
  def render(context)
@@ -1,7 +1,7 @@
1
1
  module Octopress
2
2
  module Tags
3
3
  module Include
4
- VERSION = "1.1.2"
4
+ VERSION = "1.1.3"
5
5
  end
6
6
  end
7
7
  end
@@ -9,6 +9,7 @@ Testing Include → Testing Include
9
9
 
10
10
  ## Local var passing
11
11
  Testing Include var_test → Testing Include var_test
12
+ Testing Include var_test - another var! → Testing Include var_test - another var!
12
13
 
13
14
  ## Filter testing
14
15
  TESTING INCLUDE → TESTING INCLUDE
@@ -1 +1 @@
1
- Testing Include {{ include.some_var }}
1
+ Testing Include {{ include.some_var }}{% if include.another_var == 'awesome' %} - another var!{% endif %}
@@ -12,6 +12,7 @@ Testing Include → {% include {{ page.partial }} %}
12
12
 
13
13
  ## Local var passing
14
14
  Testing Include var_test → {% include foo.html some_var="var_test" %}
15
+ Testing Include var_test - another var! → {% include foo.html some_var="var_test" another_var="awesome" %}
15
16
 
16
17
  ## Filter testing
17
18
  TESTING INCLUDE → {% include foo.html | upcase %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-include-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-tag-helpers