padrino-helpers 0.14.3 → 0.14.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
- SHA1:
3
- metadata.gz: c53eef9e845d6036229d05fc41693c698af475fd
4
- data.tar.gz: aaea9dce0a410b4c800a4c06bc7ab2be28eed300
2
+ SHA256:
3
+ metadata.gz: 1f397581d2e9c0f11c87a72e8c34a4365fa8f30267c33baa4e99d5336f27f7dd
4
+ data.tar.gz: c6253b7aff748a51ce9d16180aa848629dc63181f0737514b1903a54349adb1a
5
5
  SHA512:
6
- metadata.gz: 5e0171b812bce863430eab81a104fa829d14974371ed13b2b0d9be9dbac84babb09484cda5e87374400fcdfa806d270b898366ddc90031a092006cdf72d5c2d5
7
- data.tar.gz: 818303cad65fab5a1378481371a58ec31602be3f3d1d9e8cac30f07257a716451d405d1ff4152e4a388f7934970ab95cab4aefffbc15a658daf174dbb4554363
6
+ metadata.gz: e25898c903d63139f2f9ce81391660e0ca59a2d7f5bfd681a0d07614662600d5d6d6d780b1589fc62c9ca326582d3a8b09870e68dbbf0164755a6f2e374573ac
7
+ data.tar.gz: 00da32ccbc1d49f4fa272c7324139eb30eb09faca1b0d10eff5d1bbfb99d52407b0838f6bdc1689f607add1cbf15825e1c7fd3cba8ac446dbd143c17c9b80de8
@@ -30,10 +30,20 @@ module Padrino
30
30
  super
31
31
  end
32
32
 
33
- def prepare
34
- @outvar = options[:outvar] || self.class.default_output_variable
35
- options[:trim] = '<>' if !(options[:trim] == false) && (options[:trim].nil? || options[:trim] == true)
36
- @engine = SafeERB.new(data, options[:safe], options[:trim], @outvar)
33
+ if ERB.instance_method(:initialize).parameters.assoc(:key) # Ruby 2.6+
34
+ def prepare
35
+ @outvar = options[:outvar] || self.class.default_output_variable
36
+ options[:trim] = '<>' if !(options[:trim] == false) && (options[:trim].nil? || options[:trim] == true)
37
+
38
+ @engine = SafeERB.new(data, trim_mode: options[:trim], eoutvar: @outvar)
39
+ end
40
+ else
41
+ def prepare
42
+ @outvar = options[:outvar] || self.class.default_output_variable
43
+ options[:trim] = '<>' if !(options[:trim] == false) && (options[:trim].nil? || options[:trim] == true)
44
+
45
+ @engine = SafeERB.new(data, options[:safe], options[:trim], @outvar)
46
+ end
37
47
  end
38
48
 
39
49
  def precompiled_preamble(locals)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.3
4
+ version: 0.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-02-23 00:00:00.000000000 Z
14
+ date: 2018-11-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-support
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.3
22
+ version: 0.14.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.3
29
+ version: 0.14.4
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: tilt
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: 1.3.6
253
253
  requirements: []
254
254
  rubyforge_project: padrino-helpers
255
- rubygems_version: 2.6.12
255
+ rubygems_version: 2.7.8
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Helpers for padrino