ultra_settings 2.4.1 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/VERSION +1 -1
- data/app/configuration.html.erb +1 -1
- data/lib/ultra_settings/railtie.rb +3 -3
- 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: 506d4066499e83e25f6507f1911f788d2684946bdebd3832e2483fd30496284a
|
4
|
+
data.tar.gz: 7c7b4a1b7728b24557ef1e4110a400b24fb0eef019a9cf16a8cdfdf62e8cf1de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d6236d8db95cf9e02c872c4ee6c65fc3a4da44981a8d7ae994ae4cb17def404271389ae467c0fcb7aa89a8b6221b4bce9bc5694496de051fe730104602bd76
|
7
|
+
data.tar.gz: 2a5c5c97fb1144f3fef1cb2857322da5b090ab3e5e4ae84440a6384c212f8171d55123308e6b83fda121d07fed387ff0988a0deb8d65374c26e0ec7d2a3fb7da
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 2.4.3
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Fixed error raised when showing web UI if a configuration has set the YAML file to `false`.
|
12
|
+
|
13
|
+
## 2.4.2
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
|
17
|
+
- Configuration setup set prior to loading the railtie will no longer be overridden by the railtie default setup.
|
18
|
+
|
7
19
|
## 2.4.1
|
8
20
|
|
9
21
|
### Changed
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.3
|
data/app/configuration.html.erb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<table class="<%= html_escape(table_class.to_s) %>">
|
2
2
|
<thead>
|
3
|
-
<%
|
3
|
+
<% if !configuration.class.yaml_config_disabled? && configuration.class.configuration_file.is_a?(Pathname) %>
|
4
4
|
<tr>
|
5
5
|
<th colspan="6">
|
6
6
|
Configuration File:
|
@@ -7,11 +7,11 @@ module UltraSettings
|
|
7
7
|
# `config.ultra_settings.auto_load_directories` option.
|
8
8
|
class Railtie < Rails::Railtie
|
9
9
|
config.ultra_settings = ActiveSupport::OrderedOptions.new
|
10
|
-
config.ultra_settings.auto_load_directories
|
10
|
+
config.ultra_settings.auto_load_directories ||= [File.join("app", "configurations")]
|
11
11
|
|
12
12
|
config.before_configuration do
|
13
|
-
UltraSettings.yaml_config_env
|
14
|
-
UltraSettings.yaml_config_path
|
13
|
+
UltraSettings::Configuration.yaml_config_env ||= Rails.env
|
14
|
+
UltraSettings::Configuration.yaml_config_path ||= Rails.root.join("config")
|
15
15
|
end
|
16
16
|
|
17
17
|
# Automatically register any configuration classes in the app/configurations
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultra_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|