avo 2.13.3.pre.2 → 2.13.3.pre.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/helpers/avo/application_helper.rb +34 -0
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e872452c4bd0412af9b42203d98aaa4f4d98c3ac1e64bac3f83829cc74512a1
|
4
|
+
data.tar.gz: b6599c9c3e7115f555757525eec57b4ea8295f72acc5b5c5b5762d49b5b40ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0645c82e51a7771452b702108d9fa022e74a8445d70d44d45bdb9bed5f95112efe86ecfb376e5c7c015c4bcafe87db89ab61bade18abf96ffb070c8c05cdad0c
|
7
|
+
data.tar.gz: 283be87c9d1c2c5977f61b04436ca947353c49845b372d25fd07cefa7adb4ec2d199e3f1f3a180ed438c241eb802f7d77c430df86b289c99b03b77c98da4d3cc
|
data/Gemfile.lock
CHANGED
@@ -66,7 +66,41 @@ module Avo
|
|
66
66
|
|
67
67
|
# Just use inline_svg gem.
|
68
68
|
def svg(file_name, **args)
|
69
|
+
file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"
|
70
|
+
|
69
71
|
inline_svg_tag file_name, **args
|
72
|
+
# return if file_name.nil?
|
73
|
+
|
74
|
+
# file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"
|
75
|
+
|
76
|
+
# final_path = nil
|
77
|
+
# [Rails.root, Avo::Engine.root].each do |root|
|
78
|
+
# [["app", "assets", "svgs", file_name], [file_name]].each do |file_path|
|
79
|
+
# path = root.join(*file_path).to_s
|
80
|
+
# puts ["path->", path].inspect
|
81
|
+
# if File.exist? path
|
82
|
+
# # final_path = file_path.join('/')
|
83
|
+
# final_path = path
|
84
|
+
# break
|
85
|
+
# end
|
86
|
+
# end
|
87
|
+
# end
|
88
|
+
# puts ["final_path->", final_path].inspect
|
89
|
+
|
90
|
+
# # paths = [
|
91
|
+
# # Rails.root.join("app", "assets", "svgs", file_name).to_s,
|
92
|
+
# # Rails.root.join(file_name).to_s,
|
93
|
+
# # Avo::Engine.root.join("app", "assets", "svgs", file_name).to_s,
|
94
|
+
# # Avo::Engine.root.join(file_name).to_s,
|
95
|
+
# # ]
|
96
|
+
|
97
|
+
# # path = paths.find do |path|
|
98
|
+
# # File.exist? path
|
99
|
+
# # end
|
100
|
+
|
101
|
+
# return if final_path.nil?
|
102
|
+
|
103
|
+
# inline_svg_tag final_path, **args
|
70
104
|
end
|
71
105
|
|
72
106
|
def input_classes(extra_classes = "", has_error: false)
|
data/lib/avo/version.rb
CHANGED