five-two-nw-olivander 0.2.0.27 → 0.2.0.28

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
  SHA256:
3
- metadata.gz: 2147ef542c69909ffbbf85f282d3484eea555780ac7ef2079ffd098580b3d184
4
- data.tar.gz: afb4c86bdd20c439b9332ad565a0bdfbff93e74a07d7ff9d4beb662b534455d1
3
+ metadata.gz: 2c45764c6c9e4bf1843e221a422aecea335c380b1abbe7fb643181dd6ffda557
4
+ data.tar.gz: 36bdba6f19f10ac877cb24c384a008fb2d3708ee6f5f8225832bbb3b22f51bc1
5
5
  SHA512:
6
- metadata.gz: 853a02d0787302b8bd44a511f83932799d3cedf9205b05f611b23716eee670d0c02c260c7d69c5b71e1474024886f7852e4eaf5bb9ce0992132d52834ccb85b9
7
- data.tar.gz: b1ad5f6090276f66acb3bb9a20682b745c0610e779889ad6ad9b75cd212c57103df26074414b034c0bde75fc16262afe3e28f7af06e04a48c46bec0c8872e93c
6
+ metadata.gz: 0aa80ab57d73757839710dad59b8da5acd9acdff1cf9acc4e636767cc815faf5035984e6e5495c0ed109eb2a7869982ac69269db972dc1dc8070e8b116d439ae
7
+ data.tar.gz: 5160226bbfdad965116af14016688e8a731be970c6b40503c036b9a5c11508ac838602a687c6878dfe9b836a41f5687dfd78d571523793609308ad0b7f2778c7
@@ -19,7 +19,12 @@
19
19
  - when :integer, :float
20
20
  = val
21
21
  - when :string, :text
22
- = simple_format(val)
22
+ - if f.sym.to_s.ends_with?('_url', '_link')
23
+ = link_to val, val, target: f.sym
24
+ - elsif @resource.respond_to?("#{sym}_as_html?") && @resource.send("#{sym}_as_html?")
25
+ = raw(val)
26
+ - else
27
+ = simple_format(val)
23
28
  - when :boolean
24
29
  - icon_class = val ? 'fa-check text-success' : 'fa-times text-danger'
25
30
  %i.fa{ class: icon_class }
@@ -1,3 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ # needed for gem
1
4
  module Olivander
2
- VERSION = '0.2.0.27'.freeze
5
+ VERSION = '0.2.0.28'
3
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.27
4
+ version: 0.2.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-12 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick