ultra_settings 1.0.0 → 1.0.1

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: f277e747e90903a62b41f8e79074dcd6d8790f160eda187cb03a89f8fdf5df40
4
- data.tar.gz: d6054c97b25ed971ec4601e522e5b7c6b1921a5d60d94e761b360b1f09bbc00c
3
+ metadata.gz: ca29611f95d52ce78e465c06876bfedfef76fa166b0f2d5d6279e08cfada0397
4
+ data.tar.gz: cee494a62d579c2518ae1ca5db8b2483ab5906a3323a1c01e86dd45430fb495d
5
5
  SHA512:
6
- metadata.gz: cbf68fab75a43227bcddb7b0db63c42090910a89f55a264c9fd3e731a0dfc1b05cdb834acd549e8215c76cc0b049f57b500e2d1b85081ae75e70efd1eb8a3e53
7
- data.tar.gz: 13302c44130fa23473fddf517c768ef963ee505d9ddb2f71ad3bcd8d24261e2dfce562705490d553ef8b0883519485c615dca0c0c0dad1e47efbcf24ce2be49b
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
  [![Continuous Integration](https://github.com/bdurand/ultra_settings/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/bdurand/ultra_settings/actions/workflows/continuous_integration.yml)
4
+ [![Regression Test](https://github.com/bdurand/ultra_settings/actions/workflows/regression_test.yml/badge.svg)](https://github.com/bdurand/ultra_settings/actions/workflows/regression_test.yml)
4
5
  [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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.0
1
+ 1.0.1
@@ -419,6 +419,7 @@ module UltraSettings
419
419
  @mutex = Mutex.new
420
420
  @memoized_values = {}
421
421
  @override_values = {}
422
+ @yaml_config = nil
422
423
  end
423
424
 
424
425
  def [](name)
@@ -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
@@ -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 ||= nil
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.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-09-30 00:00:00.000000000 Z
11
+ date: 2023-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler