avo 2.33.0 → 2.33.1
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/lib/avo/engine.rb +5 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/install_generator.rb +0 -1
- data/lib/generators/avo/resource_generator.rb +3 -0
- 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: 7702d60d831cd5fbcb1f1b4f7eab70336d6e71e07c19fd6d25a2627d6569e122
|
4
|
+
data.tar.gz: 22d9fab7fd3ce81fb3c62165bd544822d001bbabd97ed380b53280eb0b2e1649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5612be2a2e685fb664841d6c9c69640a5c78ae61830f15571d5425c06b9b22cc902938a4f7fbd4d09d841fc47fde58545c127018fde4df774a0da5cc48811b0e
|
7
|
+
data.tar.gz: ad4df4eb5fd776e678a80432a42e25f04a67b6cbb3ed2e5d0b0f2ba557d50dc7f8ab253cd2456193227169b7b4f1c32b19fafc50549dcc13f054d9da3719fea1
|
data/Gemfile.lock
CHANGED
data/lib/avo/engine.rb
CHANGED
@@ -72,6 +72,11 @@ module Avo
|
|
72
72
|
require_relative "../generators/model_generator"
|
73
73
|
end
|
74
74
|
|
75
|
+
initializer "avo.locales" do |app|
|
76
|
+
I18n.load_path += Dir[Avo::Engine.root.join("lib", "generators", "avo", "templates", "locales", "*.{rb,yml}")]
|
77
|
+
I18n.load_path += Dir[Rails.root.join("config", "locales", "*.{rb,yml}")]
|
78
|
+
end
|
79
|
+
|
75
80
|
# After deploy we want to make sure the license response is being cleared.
|
76
81
|
# We need a fresh license response.
|
77
82
|
# This is disabled in development because the initialization process might be triggered more than once.
|
data/lib/avo/version.rb
CHANGED
@@ -135,6 +135,9 @@ module Generators
|
|
135
135
|
fields_string = "\n # Fields generated from the model"
|
136
136
|
|
137
137
|
fields.each do |field_name, field_options|
|
138
|
+
# if field_options are not available (likely a missing resource for an association), skip the field
|
139
|
+
fields_string += "\n # Could not generate a field for #{field_name}" and next unless field_options
|
140
|
+
|
138
141
|
options = ""
|
139
142
|
field_options[:options].each { |k, v| options += ", #{k}: #{v}" } if field_options[:options].present?
|
140
143
|
|
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.33.
|
4
|
+
version: 2.33.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-05-
|
12
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|