gonfic 0.7.1 → 0.7.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ecd1286abfa268a78ffb750a5f47fe2be0eb90249c566bea5a9362c3b4d54ad
4
- data.tar.gz: 5854cc9db210db4c3a45885ceecf6b43db5c486c96819fd4d30445bb0d23ccf9
3
+ metadata.gz: 8f9ed08a92eaed71218c33c3e5fa10256d9db9e984abd4244adddb7a5cbb9928
4
+ data.tar.gz: e8c9c7f7e11a2babfe8cc2da87043ca33013a064b5e364f331964d7d3dad037c
5
5
  SHA512:
6
- metadata.gz: 6ae7706db4df2837309c6b03ce3a14c3b6cf810b916f549fb780a0825e893f037e2c8768df8e3702244b4584c6762ac531ae07c128654ab8ad2461bf14274632
7
- data.tar.gz: 6110157ff9cc6bb5f403b1c89709c36f0e8919cd4c8afbef5fcdc88824c4ff0440761f497b0791fc212ac4e2cb8dde02412ccecc0e4996f39d6984c2e888c4be
6
+ metadata.gz: 910e44d9e5b19c6868bf0d34ad4d3395307987d316b70b2f20de27f97ed6e794cdd3860458af50f4397a131d1441cc1c03693393d72c218a56d9678ddbd191b9
7
+ data.tar.gz: ddd57eeb63957aca9017ae1ac578516095d5fbe4ede40686a8d2790495cbb613be3718176f6d26e3a216119ea90e2eabf0ed0faa0d66ced70ef6ed310ac7985b
data/README.md CHANGED
@@ -128,7 +128,12 @@ To install this gem onto your local machine from sources, run `bundle exec rake
128
128
 
129
129
  In `fish` syntax, even if you are on Windows:
130
130
  ```sh
131
- gem bump -v patch; dos2unix (fd version.rb); and bundle install; and bundle exec rake; and git commit -a --amend
131
+ gem bump -v patch # or `minor`, or `major`; requires https://github.com/svenfuchs/gem-release
132
+ dos2unix (fd version.rb) # if you are using MinGW on Windows and suffer from CRLF
133
+ bundle install # to bump the version in Gemfile.lock
134
+ git commit -a --amend # add Gemfile.lock to the version bump
135
+ bundle exec rake # last minute sanity check
136
+ bundle exec rake release # push to RubyGems
132
137
  ```
133
138
 
134
139
  ## Contributing
@@ -1,3 +1,3 @@
1
1
  module Gonfic
2
- VERSION = '0.7.1'.freeze
2
+ VERSION = '0.7.2'.freeze
3
3
  end
data/lib/gonfic.rb CHANGED
@@ -7,7 +7,7 @@ require_relative 'gonfic/directories'
7
7
 
8
8
  # external interface to creating a Config with data loaded from files
9
9
  module Gonfic
10
- YAML_FILE_LOADER = ->(filename){ YAML.safe_load(File.read(filename)) }
10
+ YAML_FILE_LOADER = ->(filename){ YAML.safe_load(File.read(filename)) || {} }
11
11
 
12
12
  def self.new( # rubocop:disable Metrics/ParameterLists
13
13
  defaults: {}, file_loader: YAML_FILE_LOADER,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonfic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Chludziński
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: hashie
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.6.2
64
+ rubygems_version: 3.6.7
65
65
  specification_version: 4
66
66
  summary: Gonfic - merge config from ~/, ./, ENV, and OptionParser - access as Hashie::Mash.
67
67
  test_files: []