active_list 6.9.2 → 6.9.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d974ce0487a1daa388beac4ddbb5ff08a6c6c2c
|
4
|
+
data.tar.gz: f9b308f405d8a88365bd1ecb457f189c1f79e12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ef81730abf3d78093f164e899c2f0b7fc632058e634da3b4736c34ff4fe47d9e3e0688841d0a120b2aa80498e192d43018675fcc3cfc258573172743be71ae
|
7
|
+
data.tar.gz: 973afbb44c55421b312fd2f8e6c78be04e7db128a581cb10173a4de0ae57c3b70c8020e70f0f5541765aaf36fdb5aa29f6f6b89c53d31af4dd40ebb3c573fb37
|
@@ -22,11 +22,11 @@ module ActiveList
|
|
22
22
|
currency = currency_for(record)
|
23
23
|
datum = "(#{datum}.nil? ? '' : #{datum}.l(#{'currency: ' + currency.inspect if currency}))"
|
24
24
|
elsif @name.to_s.match(/(^|\_)currency$/) && datatype == :string
|
25
|
-
datum = "(Nomen::
|
25
|
+
datum = "(Nomen::Currency[#{datum}] ? Nomen::Currency[#{datum}].human_name : '')"
|
26
26
|
elsif @name.to_s.match(/(^|\_)country$/) && datatype == :string
|
27
|
-
datum = "(Nomen::
|
27
|
+
datum = "(Nomen::Country[#{datum}] ? Nomen::Country[#{datum}].human_name : '')"
|
28
28
|
elsif @name.to_s.match(/(^|\_)language$/) && datatype == :string
|
29
|
-
datum = "(Nomen::
|
29
|
+
datum = "(Nomen::Language[#{datum}] ? Nomen::Language[#{datum}].human_name : '')"
|
30
30
|
elsif enumerize?
|
31
31
|
datum = "(#{datum}.nil? ? '' : #{datum}.text)"
|
32
32
|
end
|
@@ -200,11 +200,11 @@ module ActiveList
|
|
200
200
|
elsif column.label_method == :color
|
201
201
|
value_code = "content_tag(:div, #{column.datum_code(record)}, style: 'background: #'+" + column.datum_code(record) + ')'
|
202
202
|
elsif column.label_method.to_s.match(/(^|\_)currency$/) && column.datatype == :string
|
203
|
-
value_code = "(Nomen::
|
203
|
+
value_code = "(Nomen::Currency[#{value_code}] ? Nomen::Currency[#{value_code}].human_name : #{value_code})"
|
204
204
|
elsif column.label_method.to_s.match(/(^|\_)language$/) && column.datatype == :string
|
205
|
-
value_code = "(Nomen::
|
205
|
+
value_code = "(Nomen::Language[#{value_code}] ? Nomen::Language[#{value_code}].human_name : #{value_code})"
|
206
206
|
elsif column.label_method.to_s.match(/(^|\_)country$/) && column.datatype == :string
|
207
|
-
value_code = "(Nomen::
|
207
|
+
value_code = "(Nomen::Country[#{value_code}] ? (image_tag('countries/' + #{value_code}.to_s + '.png') + ' ' + Nomen::Country[#{value_code}].human_name).html_safe : #{value_code})"
|
208
208
|
else # if column.datatype == :string
|
209
209
|
value_code = "h(#{value_code}.to_s)"
|
210
210
|
end
|
data/lib/active_list/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.9.
|
4
|
+
version: 6.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Texier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
230
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.5.2
|
231
|
+
rubygems_version: 2.4.5.2
|
232
232
|
signing_key:
|
233
233
|
specification_version: 4
|
234
234
|
summary: Simple interactive tables for Rails app
|