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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4d6c86b8bbf3af68e92cc311d50ba5a10c72479b466047b6789b0bdd5aae566
4
- data.tar.gz: af86a79d963a42b66b870706a7e47a025b03b59365b63354faec5003f2839087
3
+ metadata.gz: 506d4066499e83e25f6507f1911f788d2684946bdebd3832e2483fd30496284a
4
+ data.tar.gz: 7c7b4a1b7728b24557ef1e4110a400b24fb0eef019a9cf16a8cdfdf62e8cf1de
5
5
  SHA512:
6
- metadata.gz: 106b3a42b408d389b59b759e9639f38ae10a538aec7046d37d496373483a33174a2505bc44c8c012e14f39a7215358b7863487fbc209f68bce8b132258aa9624
7
- data.tar.gz: 5044a165b1129aba0c2678f0e9f9fe53e75516a37f50cc76d2c134850f37e38e81d56d53864ba980c3cbd36c704141f0a7434e371eb7210bef0d4f601640611c
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
1
+ 2.4.3
@@ -1,6 +1,6 @@
1
1
  <table class="<%= html_escape(table_class.to_s) %>">
2
2
  <thead>
3
- <% unless configuration.class.yaml_config_disabled? || configuration.class.configuration_file.nil? %>
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 = [File.join("app", "configurations")]
10
+ config.ultra_settings.auto_load_directories ||= [File.join("app", "configurations")]
11
11
 
12
12
  config.before_configuration do
13
- UltraSettings.yaml_config_env = Rails.env
14
- UltraSettings.yaml_config_path = Rails.root.join("config")
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2024-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler