ultra_settings 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/ultra_settings/configuration.rb +1 -0
- data/lib/ultra_settings/rack_app.rb +4 -0
- data/lib/ultra_settings.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: ca29611f95d52ce78e465c06876bfedfef76fa166b0f2d5d6279e08cfada0397
|
4
|
+
data.tar.gz: cee494a62d579c2518ae1ca5db8b2483ab5906a3323a1c01e86dd45430fb495d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99dedad75b7b425ea2b44a1b3002a5b53b54edd999e69f49cfed3ff331fab9ec907fbfb43465c30be0cb23559288c5904201764b95cfcb3b38833aa402a1c007
|
7
|
+
data.tar.gz: 010f49d61c14a24b46e4fb42ceb70ee6d714b83c8d9d9d653463b5933ad20d7f3ff7adaad53707fe53fc32d3c03af39430fc478040d39fbb481ac2e6f2863e9f
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ 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
|
+
## 1.0.1
|
8
|
+
|
9
|
+
### Added
|
10
|
+
- Optimize object shapes for the Ruby interpreter by declaring instance variables in constructors.
|
11
|
+
|
7
12
|
## 1.0.0
|
8
13
|
|
9
14
|
### Added
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# UltraSettings
|
2
2
|
|
3
3
|
[](https://github.com/bdurand/ultra_settings/actions/workflows/continuous_integration.yml)
|
4
|
+
[](https://github.com/bdurand/ultra_settings/actions/workflows/regression_test.yml)
|
4
5
|
[](https://github.com/testdouble/standard)
|
5
6
|
|
6
7
|
This gem provides a method for managing application settings and loading their values from a variety of sources. It can help you get a handle on you application's configuration by providing a consistent method for accessing settings. It also provides a method for documenting your application's settings.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -5,6 +5,10 @@ module UltraSettings
|
|
5
5
|
# No setting values are displayed, but you should still add some
|
6
6
|
# sort of authentication if you want to use this in production.
|
7
7
|
class RackApp
|
8
|
+
def initialize
|
9
|
+
@webview = nil
|
10
|
+
end
|
11
|
+
|
8
12
|
def call(env)
|
9
13
|
[200, {"content-type" => "text/html; charset=utf8"}, [webview.render_settings]]
|
10
14
|
end
|
data/lib/ultra_settings.rb
CHANGED
@@ -29,6 +29,7 @@ module UltraSettings
|
|
29
29
|
|
30
30
|
@configurations = {}
|
31
31
|
@mutex = Mutex.new
|
32
|
+
@runtime_settings = nil
|
32
33
|
|
33
34
|
class << self
|
34
35
|
# Adds a configuration to the root namespace. The configuration will be
|
@@ -160,7 +161,7 @@ module UltraSettings
|
|
160
161
|
# @return [Object, nil]
|
161
162
|
# @api private
|
162
163
|
def __runtime_settings__
|
163
|
-
@runtime_settings
|
164
|
+
@runtime_settings
|
164
165
|
end
|
165
166
|
|
166
167
|
# Explicitly set setting values within a block. This is useful for testing
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|