tablets 0.3.11 → 0.3.12

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: 03df6fd3b0b012309bed23a983b160bc3b01cd04
4
- data.tar.gz: b9d778ea41d8ea19d2f6a8e1920e3d4f1dcb260d
3
+ metadata.gz: c16295c7952e93818cdfe4e8eb3db65889879bf7
4
+ data.tar.gz: 1769e84891acd0f0ba1a75d2b4c7c3689626283e
5
5
  SHA512:
6
- metadata.gz: 544987cf57db1f511eee3e92044ca05d9138e6d3e78cc52e6b4956e93de1ad73c7359590709ece1fb85b53d2a5d212839ad2c41bfd262dcdd2bc59e7a8e3cff6
7
- data.tar.gz: cb3cb2a4873418460d412163b0af662fbeb431557a9e4abe8be7ab3c84d424a38cbe1206b0f773653a00590d80275d1a07a8376cd00f3c898369b40b26b11f6e
6
+ metadata.gz: a8e5821d44780f8576f17b373aaf67c7748c324a07ced3340e6a4cdea8634998d079fc340df9a74d66bd96f1c4cfd6e8d229676334b0ebe4a7df2d1cc4e3ed04
7
+ data.tar.gz: c110e90941a1d1550b5c14b64db1bb39faf8c289e1a7f945363540b166667afb1c4af00112c5976d4d3745722e7b63a72175c08f9ffc58df8f50e1a0c738b0d1
data/lib/tablets/data.rb CHANGED
@@ -54,7 +54,10 @@ module Tablets
54
54
  def data
55
55
  records.map do |record|
56
56
  data = tablet.columns.map.with_index do |column, index|
57
- [index, cell(record, column)]
57
+ cell_data = cell(record, column)
58
+ cell_data = CGI.escapeHTML(cell_data.to_s) unless column[:html_safe]
59
+
60
+ [index, cell_data]
58
61
  end.to_h
59
62
 
60
63
  details = tablet.details(record)
@@ -3,7 +3,7 @@ module Tablets
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 3
6
- TINY = 11
6
+ TINY = 12
7
7
  PRE = nil
8
8
 
9
9
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tablets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yevhen Shemet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.4.6
167
+ rubygems_version: 2.4.8
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Wrapper around jquery-datatables.