lm_docstache 3.0.11 → 3.0.12

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
  SHA256:
3
- metadata.gz: af725bfb0adde63c0afd451f291370d312a70a21bad58b5cfa8dee6152cc4e27
4
- data.tar.gz: 2b2706737c1275ba6577eccdcfa53f903e6377b6818a9d88b8ac97ef98cf78e1
3
+ metadata.gz: f9890dac615aad2cee40615e5e7cf8865bd40b983c043ceea20ccb12ac67310f
4
+ data.tar.gz: e3862bb322540fe4d7450e1169fe3420fab920677fb319c5a4358a0b836d936f
5
5
  SHA512:
6
- metadata.gz: 7f8ef21a7799cc633ff2dfdec2cbc8f1265b177dce8f433025379d743caa1cb36bab74731a9572e237a6a34b0067536e22ef0e993fad86f390675a445bf174ce
7
- data.tar.gz: 73fd3eb0c966ba576e8e7edd36880154bfbbdf93add0aadc8cbe094bc40c16ffa16df852a0eade0461c6a10c2e78ef65e50c44e02e60d6e30e5852a2da1f5e9a
6
+ metadata.gz: 59f7899d3d645e902072c8e09bc0c99f414b88182f71455d0269aaf8f2aceceafb90e695353dda44e0251c8374e9f96e81734d8eb597d7430201b26a97e37b95
7
+ data.tar.gz: 5181c174af1dd5dc95586cb9dc9b5bfc81a1d4ae36d88bf5bbbc0f1af4d46e3f6bed95be48d7c6e375f69f96d9e73c44bef34833ac186ab20deac52d5ffbff8e
@@ -82,17 +82,17 @@ module LMDocstache
82
82
 
83
83
  def save(path = @path)
84
84
  buffer = zip_buffer(@documents)
85
- File.open(path, "w") { |f| f.write buffer.string }
85
+ File.open(path, 'wb') { |f| f.write(buffer.string) }
86
86
  end
87
87
 
88
88
  def render_file(output, data = {}, render_options = {})
89
89
  buffer = zip_buffer(render_documents(data, nil, render_options))
90
- File.open(output, "w") { |f| f.write buffer.string }
90
+ File.open(output, 'wb') { |f| f.write(buffer.string) }
91
91
  end
92
92
 
93
93
  def render_replace(output, text)
94
94
  buffer = zip_buffer(render_documents({}, text))
95
- File.open(output, "w") { |f| f.write buffer.string }
95
+ File.open(output, 'wb') { |f| f.write(buffer.string) }
96
96
  end
97
97
 
98
98
  def render_stream(data = {})
@@ -1,3 +1,3 @@
1
1
  module LMDocstache
2
- VERSION = "3.0.11"
2
+ VERSION = "3.0.12"
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: 3.0.11
4
+ version: 3.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roey Chasman
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2025-04-23 00:00:00.000000000 Z
15
+ date: 2025-06-05 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: nokogiri
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.2.32
137
+ rubygems_version: 3.5.22
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Merges Hash of Data into Word docx template files using mustache syntax