data_tables 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/data_tables.gemspec +1 -1
- data/lib/data_tables.rb +2 -1
- metadata +7 -11
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
YjUzODE1NWUyYjgxNzNlMjNhYTgwOTdjOWQwMmNmNTY5MDQyYjU2Yg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
YWM3NThhYmM1NGU5ODFlYTQ1ODQxNTcwY2QzZGQ4ZjkyZmZjYjBmMQ==
|
|
7
|
+
SHA512:
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
YmM5OTQyYzMxYmYzNjlmZTIxZWVmYzVjOGYyMGRjYmIyNWMwOTYzMzk5ODk1
|
|
10
|
+
NTc0NDhmZTdkYTA2Mjc4NmIxNjMwYTRkMjAxOTQ2ZjU1NmM0NmE2ZmU5OGEx
|
|
11
|
+
YWRlMjM4YjQ1MWQ3ZTZiMDQxOTMyYTgzMDY1MWIxZjY2NzRmZDA=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
Nzk1YzM5OWQwMWY1NjEyODI5NmRjNDU2NDVmZWYwMTk5N2M2NjQ5MGEzYTI5
|
|
14
|
+
NGVjZGI0M2RkYjBlNjg5NDE3NTI2ZGE3ZGZhNDA4YWJmNzZlZWFkYTMyMTA2
|
|
15
|
+
ODI3MjY2MTY5MTQxNDcyYzg3MTRiMTY1YWVmZjE2ZGNkY2I5ZjQ=
|
data/data_tables.gemspec
CHANGED
data/lib/data_tables.rb
CHANGED
|
@@ -389,7 +389,8 @@ module DataTablesController
|
|
|
389
389
|
elsif column[:attribute]
|
|
390
390
|
val = instance.send(column[:attribute].to_sym)
|
|
391
391
|
if !val.blank? || val == false
|
|
392
|
-
|
|
392
|
+
trans = I18n.t(val.to_s.to_sym, :default => val.to_s)
|
|
393
|
+
return trans.class == String ? trans : val.to_s
|
|
393
394
|
else
|
|
394
395
|
return ''
|
|
395
396
|
end
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: data_tables
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
version: 0.1.19
|
|
4
|
+
version: 0.1.21
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Duane Compton
|
|
@@ -13,24 +12,22 @@ authors:
|
|
|
13
12
|
autorequire:
|
|
14
13
|
bindir: bin
|
|
15
14
|
cert_chain: []
|
|
16
|
-
date:
|
|
15
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
|
17
16
|
dependencies:
|
|
18
17
|
- !ruby/object:Gem::Dependency
|
|
19
|
-
type: :development
|
|
20
18
|
name: rspec
|
|
21
|
-
prerelease: false
|
|
22
19
|
requirement: !ruby/object:Gem::Requirement
|
|
23
20
|
requirements:
|
|
24
21
|
- - ~>
|
|
25
22
|
- !ruby/object:Gem::Version
|
|
26
23
|
version: '2.10'
|
|
27
|
-
|
|
24
|
+
type: :development
|
|
25
|
+
prerelease: false
|
|
28
26
|
version_requirements: !ruby/object:Gem::Requirement
|
|
29
27
|
requirements:
|
|
30
28
|
- - ~>
|
|
31
29
|
- !ruby/object:Gem::Version
|
|
32
30
|
version: '2.10'
|
|
33
|
-
none: false
|
|
34
31
|
description: DataTables for Rails
|
|
35
32
|
email: Duane.Compton@gmail.com
|
|
36
33
|
executables: []
|
|
@@ -56,6 +53,7 @@ files:
|
|
|
56
53
|
- test/test_helper.rb
|
|
57
54
|
homepage: http://rubygems.org/gems/data_tables
|
|
58
55
|
licenses: []
|
|
56
|
+
metadata: {}
|
|
59
57
|
post_install_message:
|
|
60
58
|
rdoc_options: []
|
|
61
59
|
require_paths:
|
|
@@ -65,18 +63,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
65
63
|
- - ! '>='
|
|
66
64
|
- !ruby/object:Gem::Version
|
|
67
65
|
version: '0'
|
|
68
|
-
none: false
|
|
69
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
67
|
requirements:
|
|
71
68
|
- - ! '>='
|
|
72
69
|
- !ruby/object:Gem::Version
|
|
73
70
|
version: '0'
|
|
74
|
-
none: false
|
|
75
71
|
requirements: []
|
|
76
72
|
rubyforge_project:
|
|
77
|
-
rubygems_version:
|
|
73
|
+
rubygems_version: 2.2.2
|
|
78
74
|
signing_key:
|
|
79
|
-
specification_version:
|
|
75
|
+
specification_version: 4
|
|
80
76
|
summary: Rails friendly interface into DataTables
|
|
81
77
|
test_files:
|
|
82
78
|
- spec/data_tables_spec.rb
|