fat_config 0.4.1 → 0.4.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: e6a9ee861c75317e6c334ccb6639eda669b794a3f7a6e33543e91cf9193d5fd1
4
- data.tar.gz: 760c48576a7d7d2376a3524fc9301f0593261a9e6a9ebd75f431683e9e56b9bf
3
+ metadata.gz: c5ef666d4760076d376efd8af772b85dd67dc15712ef31ff4b75785084ee54d4
4
+ data.tar.gz: bf2cf2d2dd2b1dfed14e11e36765036f2098297190755ca20036f49c0057b435
5
5
  SHA512:
6
- metadata.gz: a111ad1acbdda7c5070910a1b78c3c9ab389b4ce45012a97642071d6fa7db21550b7806388b31827db0fbdda62ee16373550f0282daf20d68bfe5180ca9405a9
7
- data.tar.gz: 64ee672822816a6ff7776537817ad2bdaa73c7b446ab86c50954ba38ee408f676006957734996a5ec454ade4c5ebdedd00fd274befb30bf2457751f5397226d9
6
+ metadata.gz: 6a7926e8928f21508332d232e1dc76c7759f32aa12e8fb1b58f291026d67a9d3d2f9eb4e10d1e4ebf11d27c1b52e4fbe85b7b0ac04381496fd1f4cbdfeb43ed2
7
+ data.tar.gz: 19ac9abbed663c134ba2206923870feed023b98af5f166d97914e1cc3ba0df124018929429075de34b812e6c6177b581b8261c1a95e92268f61708c08b319b07
data/.rubocop.yml CHANGED
@@ -1,10 +1,5 @@
1
1
  inherit_from: ./rubocop-global.yml
2
2
 
3
- require:
4
- - rubocop-rspec
5
- - rubocop-rake
6
- - rubocop-obsession
7
-
8
3
  AllCops:
9
4
  TargetRubyVersion: 3.3
10
5
  Include:
@@ -13,7 +13,7 @@ class Hash
13
13
  else
14
14
  v
15
15
  end
16
- new_hash[k.to_s.tr('-', '_').to_sym] = new_val
16
+ new_hash[k.as_sym] = new_val
17
17
  end
18
18
  new_hash
19
19
  end
@@ -3,7 +3,7 @@ module FatConfig
3
3
  def load_string(str)
4
4
  # Since INIFile does not have a method for parsing strings, we have to
5
5
  # create a file with the string as content.
6
- tmp_path = File.join("/tmp", "fat_config/ini#{$PID}")
6
+ tmp_path = Tempfile.create
7
7
  File.write(tmp_path, str)
8
8
  load_file(tmp_path)
9
9
  rescue IniFile::Error => ex
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FatConfig
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
data/lib/fat_config.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/core_ext/hash'
4
+ require 'fat_core/all'
4
5
  require 'fileutils'
5
6
  require 'psych'
6
7
  require 'tomlib'
data/rubocop-global.yml CHANGED
@@ -1,8 +1,10 @@
1
1
  require:
2
- - rubocop-rspec
3
- - rubocop-performance
4
2
  - rubocop-rake
5
3
 
4
+ plugins:
5
+ - rubocop-performance
6
+ - rubocop-rspec
7
+
6
8
  inherit_gem:
7
9
  rubocop-shopify: rubocop.yml
8
10
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-12-31 00:00:00.000000000 Z
10
+ date: 2025-03-19 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 5.6.1
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 5.6.1
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: inifile
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.6.2
123
+ rubygems_version: 3.6.3
124
124
  specification_version: 4
125
125
  summary: Library to read config from standard XDG or classic locations.
126
126
  test_files: []