ultra_settings 2.4.2 → 2.4.4
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/configuration.rb +2 -1
- 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: 05c73bd3709ee539db4def5c1d6f5e86def7fb9704b68ae52faacb4e66eec0a6
|
4
|
+
data.tar.gz: 7dab6438fdd2faac932a1b308be3ea8462369c8f71c0dc9bb796787a51e6c0f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e303425dd2663cf4237d07263b27085c34e4ddbf8e56cbe6f6acc85edef187f3a74192662aa9264d46f1c2fc9a99154de86e4d01247fd9bc92d8d6757be4c22
|
7
|
+
data.tar.gz: 85fd0209d4ed5d7271fdd5d46c24957130f7f03b42132eaad74270d7c95faa7b8d66090deddd674aa176a2afe0629c48a8a2574ada8df1afae464503598055be
|
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.4
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
- Return true for `yaml_config_disabled?` if the configuration file has been set to nil.
|
12
|
+
|
13
|
+
## 2.4.3
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
- Fixed error raised when showing web UI if a configuration has set the YAML file to `false`.
|
18
|
+
|
7
19
|
## 2.4.2
|
8
20
|
|
9
21
|
### Changed
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.4
|
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:
|
@@ -148,6 +148,7 @@ module UltraSettings
|
|
148
148
|
# @param value [String, Pathname]
|
149
149
|
# @return [void]
|
150
150
|
def configuration_file=(value)
|
151
|
+
value = nil if value == false
|
151
152
|
value = Pathname.new(value) if value.is_a?(String)
|
152
153
|
@configuration_file = value
|
153
154
|
end
|
@@ -210,7 +211,7 @@ module UltraSettings
|
|
210
211
|
#
|
211
212
|
# @return [Boolean]
|
212
213
|
def yaml_config_disabled?
|
213
|
-
get_inheritable_class_attribute(:@yaml_config_disabled, false)
|
214
|
+
get_inheritable_class_attribute(:@yaml_config_disabled, false) || configuration_file.nil?
|
214
215
|
end
|
215
216
|
|
216
217
|
# Set the environment variable delimiter used to construct the environment
|
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.4
|
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-12-
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|