File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ Do not edit this file. Edit 'docs/templates/README.md.j2' instead and run 'make
26
26
27
27
| OS | Arch | Version | |
28
28
| ------------ | ------- | --------------------- | ---- |
29
- | OSX (Darwin) | x86_64 | 1.0.1 (latest) | [ Download] ( https://github.com/busyloop/envcat/releases/tag/v1.0.1 ) |
30
- | Linux | x86_64 | 1.0.1 (latest) | [ Download] ( https://github.com/busyloop/envcat/releases/tag/v1.0.1 ) |
31
- | Linux | aarch64 | 1.0.1 (latest) | [ Download] ( https://github.com/busyloop/envcat/releases/tag/v1.0.1 ) |
29
+ | OSX (Darwin) | x86_64 | 1.0.2 (latest) | [ Download] ( https://github.com/busyloop/envcat/releases/tag/v1.0.2 ) |
30
+ | Linux | x86_64 | 1.0.2 (latest) | [ Download] ( https://github.com/busyloop/envcat/releases/tag/v1.0.2 ) |
31
+ | Linux | aarch64 | 1.0.2 (latest) | [ Download] ( https://github.com/busyloop/envcat/releases/tag/v1.0.2 ) |
32
32
33
33
#### Dockerfile
34
34
35
- See the [ download page] ( https://github.com/busyloop/envcat/releases/tag/v1.0.1 ) for an example Dockerfile. :whale :
35
+ See the [ download page] ( https://github.com/busyloop/envcat/releases/tag/v1.0.2 ) for an example Dockerfile. :whale :
36
36
37
37
38
38
## Usage
@@ -261,3 +261,4 @@ export B=world
261
261
3 . Commit your changes (` git commit -am 'Add some feature' ` )
262
262
4 . Push to the branch (` git push origin my-new-feature ` )
263
263
5 . Create a new Pull Request
264
+
Original file line number Diff line number Diff line change 1
1
name : envcat
2
- version : 1.0.1
2
+ version : 1.0.2
3
3
4
4
authors :
5
5
Original file line number Diff line number Diff line change @@ -37,14 +37,16 @@ module Envcat
37
37
def write (env )
38
38
Crinja ::Undefined .strict = @@strict
39
39
40
- crinja = Crinja .new
40
+ crinja = Crinja .new( Crinja :: Config .new( keep_trailing_newline: true ))
41
41
42
42
crinja.filters[" split" ] = Crinja .filter({on: nil }) { target.to_s.split(arguments[" on" ].to_s) }
43
43
crinja.filters[" b64encode" ] = Crinja .filter { Base64 .strict_encode(target.to_s) }
44
44
crinja.filters[" b64encode_urlsafe" ] = Crinja .filter { Base64 .urlsafe_encode(target.to_s) }
45
45
crinja.filters[" b64decode" ] = Crinja .filter { Base64 .decode_string(target.to_s) }
46
46
47
- crinja.from_string(@io_in .gets_to_end).render(@io , env.as(Envcat ::Env ))
47
+ buf = IO ::Memory .new(16384 )
48
+ IO .copy(@io_in , buf)
49
+ crinja.from_string(buf.to_s).render(@io , env.as(Envcat ::Env ))
48
50
end
49
51
end
50
52
end
You can’t perform that action at this time.
0 commit comments