inprovise 0.2.21 → 0.2.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDA1N2RhMTVlNDBkZjEwY2Q4MWNmMzUzMDQ0NDgyN2E5OGQ2NjUyZg==
4
+ MDVhYzQ0OWYwZWZlNTIwYzlmYzc5NGNiZTAwZjA1Zjk5MmM0Njg5ZA==
5
5
  data.tar.gz: !binary |-
6
- NzVkMGFiMGI1YWEwMTdhNmI5YzkyMTQ2ODJiOTcyZmNiNzE2ZWU4MA==
6
+ NTdiYWIxODU0YjE0MTViYjY5MGI0MjZkNmIxZjFiNmYwODJjOWZiOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzZmZDkxOTg3NGQwNzczZmQ2YzZhYmZhYzg1NjI3NTdlNzhlMzUzN2U5NTc5
10
- ZDM1MDA4MzJmMWQ5YjMwOWRjYjc4MDgwNjg4YjZjZjY3MDcyOWU2YTQyZTIy
11
- YWFiNjkwNjA5NWM3ZGUwMzdhNzU2Nzk1YzNkNTFkZmEyYzhjNzM=
9
+ MDMzMzYxZTU4ZjhkOWI4YzFhYmQzMzNmY2ExMDBlMjY1ZTYwMjQ4NDY3Mjcw
10
+ MjdmYWM2MzYxYjk4ZGU4ZGE3YjI0ZmZjNzllNDNiMWQwZTQ3NGExYjRmNGU3
11
+ ZWNhZmZmNzdhNzc4Njc2NDE5MmVjNGQxZDM5NDg4NDIyYzkzYTg=
12
12
  data.tar.gz: !binary |-
13
- MjMzYmNjMzYxM2VmOGQ1ZTk3MTM0MmMwNTAwNTlmNTRmODZhZDMxNGZmYjM1
14
- MTcwOTU2YWUzZTAyYzY5ZjVkMzgwMTdmZDdiNzhlY2Q3YzM2MzM1OTE2N2Rh
15
- NjlhZGYwZWQ0OTg5MTYyZmNjMzc5N2EzNTgwODEwYTA4Yzc0Y2U=
13
+ MTAxYWU0YmEwZGFiYWNjNTMzZTlmZDQyZjM2OGI1M2EwMDA0Mjg4MjAyMzBk
14
+ NzMxYTgxZGUwNDE0NjQ4Y2ExYzgxY2FlZTI3MzExMTViNjk4NjFiMGE0ZGY5
15
+ MTQyODVhMjk3ZGY1YmY5OGU2MGNiZjMyZTdiNjdjYTRmNDI0ZjY=
@@ -19,8 +19,8 @@ class Inprovise::Template
19
19
  end
20
20
 
21
21
  def render_to(fname, *opts, &block)
22
- mktmp = opts.size > 1 ? opts.shift : true
23
- locals = opts.shift || {}
22
+ locals = Hash === opts.last ? opts.pop : {}
23
+ mktmp = (opts.size) > 0 ? opts.shift : true
24
24
  tmpfile = @context.local(render_to_tempfile(locals))
25
25
  fremote = nil
26
26
  begin
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Inprovise
7
7
 
8
- VERSION = '0.2.21'
8
+ VERSION = '0.2.22'
9
9
 
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inprovise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.21
4
+ version: 0.2.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino