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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d34394e93a3febeaf9ebc872f0282434b064d5a864e44f508674ff8e02ef3039
4
- data.tar.gz: a0aaf952887563612ae4918081ca77a547cd7d47f683db0280154a3850675445
3
+ metadata.gz: 7e872452c4bd0412af9b42203d98aaa4f4d98c3ac1e64bac3f83829cc74512a1
4
+ data.tar.gz: b6599c9c3e7115f555757525eec57b4ea8295f72acc5b5c5b5762d49b5b40ac4
5
5
  SHA512:
6
- metadata.gz: b8a8f86f81575cc8fe3a0a6066608b886dc3d809525e41fc785ea2ef95a7a8ce3f38be558779c5f45824c4791fcedd77ea7959b5513c8bfd71e95206f8bb422e
7
- data.tar.gz: 29a4cf34342c519d9b1d84f5c373b9f4a59e962ac558f2d0f1d98f0e716c0376b55fda6766c2a24ed9f03e5913ef32991fd3dd5cd62b3af7bc5e85210120967c
6
+ metadata.gz: 0645c82e51a7771452b702108d9fa022e74a8445d70d44d45bdb9bed5f95112efe86ecfb376e5c7c015c4bcafe87db89ab61bade18abf96ffb070c8c05cdad0c
7
+ data.tar.gz: 283be87c9d1c2c5977f61b04436ca947353c49845b372d25fd07cefa7adb4ec2d199e3f1f3a180ed438c241eb802f7d77c430df86b289c99b03b77c98da4d3cc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.13.3.pre.2)
4
+ avo (2.13.3.pre.3)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.13.3.pre.2" unless const_defined?(:VERSION)
2
+ VERSION = "2.13.3.pre.3" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.3.pre.2
4
+ version: 2.13.3.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin