lotus-view 0.4.3 → 0.4.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
  SHA1:
3
- metadata.gz: 649aad9b2c89338664e94077b6cf76852ca7a7d7
4
- data.tar.gz: dfd9c547cd5ff6448905ae97ca4bfe5a7df6388e
3
+ metadata.gz: dda1cba5c497595dbff0db4c47d5c0728579af21
4
+ data.tar.gz: c69552c1116c135f86715a31b084612528e86f49
5
5
  SHA512:
6
- metadata.gz: d7a6401cd9a910d97eb56b52d028b5941273b78bf4fa4950cea0534daf70af68233d7626c6cd00b5f6537a7d052e0fd400762c686c52c815097343cf125477d9
7
- data.tar.gz: 63435a70f8067de9eff27ee955b3916c073e155405b79be4e8ff2c6bcfbbd5c7a31def284477ce1bcdd6078ae293820448127eeb2447b652befc8013e6759ead
6
+ metadata.gz: 0f8e135e3739e623393fb7df975c1680c7299dd91300414277d16a3143b7089a8fe3c8c0d42eda3b02c355cb61652b9234cb16b77f4211d1f747968dfa930bf0
7
+ data.tar.gz: 45e78d2c9910b4f3e9bfff52162cb08478fd6f663b094c16aae59ec1148d33389db6a9d9237dc837fd48a0bb9956ecd0267abcbc35b4de7875d0b3ff3b3367be
@@ -1,6 +1,10 @@
1
1
  # Lotus::View
2
2
  View layer for Lotus
3
3
 
4
+ ## v0.4.4 - 2015-09-30
5
+ ### Added
6
+ - [Luca Guidi] Autoescape for layout helpers.
7
+
4
8
  ## v0.4.3 - 2015-07-10
5
9
  ### Fixed
6
10
  - [Farrel Lifson] Force partial finder to be explicit when to templates have the same name.
@@ -1,3 +1,5 @@
1
+ require 'lotus/utils/escape'
2
+
1
3
  module Lotus
2
4
  module View
3
5
  module Rendering
@@ -206,7 +208,7 @@ module Lotus
206
208
  elsif layout.respond_to?(m)
207
209
  layout.__send__(m, *args, &blk)
208
210
  else
209
- super
211
+ ::Lotus::View::Escape.html(super)
210
212
  end
211
213
  rescue ::NameError
212
214
  ::Kernel.raise ::NoMethodError.new("undefined method `#{ m }' for #{ self.inspect }", m)
@@ -3,6 +3,6 @@ module Lotus
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '0.4.3'.freeze
6
+ VERSION = '0.4.4'.freeze
7
7
  end
8
8
  end
@@ -6,7 +6,7 @@ require 'lotus/view/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'lotus-view'
8
8
  spec.version = Lotus::View::VERSION
9
- spec.authors = ['Luca Guidi', 'Trung Lê', 'Alfonso Uceda Pompa']
9
+ spec.authors = ['Luca Guidi', 'Trung Lê', 'Alfonso Uceda']
10
10
  spec.email = ['me@lucaguidi.com', 'trung.le@ruby-journal.com', 'uceda73@gmail.com']
11
11
  spec.description = %q{View layer for Lotus}
12
12
  spec.summary = %q{View layer for Lotus, with a separation between views and templates}
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  - Trung Lê
9
- - Alfonso Uceda Pompa
9
+ - Alfonso Uceda
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-10 00:00:00.000000000 Z
13
+ date: 2015-09-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tilt
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.4.8
149
+ rubygems_version: 2.4.5.1
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: View layer for Lotus, with a separation between views and templates