lm_docstache 1.2.3 → 1.2.4

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
  SHA256:
3
- metadata.gz: c16a6e73e07d070f2c486647c784c04627d746849481c145d66f6735780c65bb
4
- data.tar.gz: 2fa52f69ea406bfe221bccff2a599af568ea9e0d6c21ab20500d06ad0dbfaeb4
3
+ metadata.gz: c127a60845dc1c0d7d532fb71bbd4707fb9e7c57dd7471308fa01715d409f56f
4
+ data.tar.gz: 35a7e1c75e45bf01615912a7aaf8ac5552a79a4dd7a1f03249f08eae8878a96a
5
5
  SHA512:
6
- metadata.gz: '0096916f50745ca968b0a2d365a0d279aae3007c4d7e5e6376c87b1d512f082d0646e064d5a84bef9be1b33e53eb3d81d33122a6e868c2e389f67aecfbe00662'
7
- data.tar.gz: 0723cefa1931bbc2d8b7ab513d1af844f43d05ff4d61fa04d73ad772cbd8a81dea29319a72403b6657ae49688026edc6ace60dc5a0b32a85ed8223c003820901
6
+ metadata.gz: f703252194067f0478974ed8823cbdb68a3cfd4fcf853c038e9f183b5e2865ce6775f521ec8977ecc53db4ae79ecfdbf753f5248725bdd7dc353473bd6914ae6
7
+ data.tar.gz: 3386aacc5a80637145a24dfc13fa2fcefe9c0114701f911554e0e2bf53f5f3aaedee8669c54792f63d069e658d9c74786f89c1dfa063c7f668a74dfcf8c1ad0e
@@ -1,4 +1,9 @@
1
1
  # Changelog
2
+ ## 1.2.4
3
+ * Add support for pipe character in merge tags so we can use as a modifier for the context of merge tag.
4
+
5
+ ## 1.2.3
6
+ * Fix issue where some paragraphs do not contain text as their first block. If this is the case, we just use the first block that does contain text.
2
7
 
3
8
  ## 1.2.2
4
9
  * Remove uneccessary runtime dependency on active support.
@@ -106,7 +106,7 @@ module LMDocstache
106
106
 
107
107
  def replace_tags(elements, data)
108
108
  elements.css('w|t').each do |text_el|
109
- if !(results = text_el.text.scan(/\{\{([\w\.]+)\}\}/).flatten).empty?
109
+ if !(results = text_el.text.scan(/\{\{([\w\.\|]+)\}\}/).flatten).empty?
110
110
  rendered_string = text_el.text
111
111
  results.each do |r|
112
112
  rendered_string.gsub!("{{#{r}}}", data.get(r).to_s)
@@ -1,3 +1,3 @@
1
1
  module LMDocstache
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lm_docstache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roey Chasman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-28 00:00:00.000000000 Z
13
+ date: 2020-08-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri