agilibox 1.5.12 → 1.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/app/helpers/agilibox/text_helper.rb +7 -7
- data/lib/agilibox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f2f44dd973a477f962ee2e76805ca19f698a011d9000cedcd83aae30673dbaa
|
4
|
+
data.tar.gz: 90ba13ccc6e08721384bb9abd608fe716166f695b7f09841abc5afa60eb1c2ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f81afa67332d05cf6ff56d78ac408d3fbeb8bbd01bcdbee99b8d2cc7547b8318192b4ea00ecb954f39e58e8ff90f484add167d7e1f09b4120862d0008192d25
|
7
|
+
data.tar.gz: e6db62b2dfcd78066dec9982171b2c0a66fb02898a77e08edafd2d86b4d26e66d3bedd929457f4a7c048a0dcf416b3e282c70c0d4897ec5132abf537401aee1d
|
data/CHANGELOG.md
CHANGED
@@ -107,13 +107,13 @@ module Agilibox::TextHelper
|
|
107
107
|
klass = object.is_a?(Module) ? object : object.class
|
108
108
|
object_type = klass.to_s.split("::").last.underscore
|
109
109
|
|
110
|
-
value = t("yes")
|
111
|
-
value = t("no")
|
112
|
-
value = object.
|
113
|
-
value = send(helper, value)
|
114
|
-
value = number(value)
|
115
|
-
value = l(value)
|
116
|
-
value = l(value)
|
110
|
+
value = t("yes") if value == true
|
111
|
+
value = t("no") if value == false
|
112
|
+
value = object.tv(attribute) if nested
|
113
|
+
value = send(helper, value) if helper
|
114
|
+
value = number(value) if value.is_a?(Numeric)
|
115
|
+
value = l(value) if value.is_a?(Time)
|
116
|
+
value = l(value) if value.is_a?(Date)
|
117
117
|
value = value.to_s
|
118
118
|
|
119
119
|
html_label = content_tag(:strong, class: "info-label") { label }
|
data/lib/agilibox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilibox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-i18n
|