data_table 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/data_table/base.rb +1 -1
- data/lib/data_table/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjQzNzhiYTA0MjRhMWMzZGJlMDQzNmM5NGY1MTI4YjE4NGU3ZDY4Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDNjZjBkMmNjNTJjNmUxNjY3NjU4NzIwZTI2OTJjNjI1ZjdkMWQ0Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWEwNmJmNWM0ZmQ0YjgyNTEwMTY2NGYyZGNjNTEwMzJkYTczYWQ2MWZlNzYw
|
10
|
+
NDFlYmU4MGIxNWI4MWRhNDNhZDUyNWUwYTViY2FkMzFiMjM2MzIwYjQyZDg1
|
11
|
+
NmVmMjExMzY3ZDYwMTBiN2M2YWRkZjQ4ZTNiOTY2Y2I2MDNmYTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjM3OTAwZDQ2YTJlYTdmYjM1ZDE5NDlkMDAzYzk3NTg5ODVhODkyMjIyYTQ5
|
14
|
+
YjhmYjQ0ZjI0NzY4M2RiMDlmZGVmZjc4ZDIyMDM5NWExOTcxMzFkODNlY2M5
|
15
|
+
YTA0YzNjNmM3ZDdlNjQ1ODI4OWJhOTYxODY4NDIwYzcyMDkyNGE=
|
data/lib/data_table/base.rb
CHANGED
@@ -26,7 +26,7 @@ module DataTable
|
|
26
26
|
def _yield_and_render_array controller, objects, block
|
27
27
|
objects.map do |object|
|
28
28
|
block[object].map do |string|
|
29
|
-
safe_string = string.gsub("|", " ")
|
29
|
+
safe_string = string.to_s.gsub("|", " ")
|
30
30
|
controller.instance_eval %{
|
31
31
|
log_level, Rails.logger.level = Rails.logger.level, Logger::ERROR
|
32
32
|
render_to_string(:inline => %q|#{safe_string}|, :locals => {:#{self.name.underscore} => object}).tap do
|
data/lib/data_table/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Dew
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|