conf_loader 2.2.0 → 3.0.0
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/.github/CODEOWNERS +1 -0
- data/.github/workflows/gitleaks-scan.yml +46 -0
- data/.github/workflows/publish.yml +7 -2
- data/.gitignore +0 -1
- data/.ruby-version +1 -1
- data/CONTRIBUTING.md +9 -0
- data/Gemfile +1 -6
- data/Gemfile.lock +37 -0
- data/README.md +0 -1
- data/conf_loader.gemspec +1 -0
- data/lib/conf_loader/version.rb +1 -1
- data/lib/conf_loader.rb +2 -8
- metadata +8 -9
- data/.ruby-gemset +0 -1
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbda35ef3cfb056650f71998e1eaf2fca28fd1461b3582f0b6d1a6b3e60138f3
|
|
4
|
+
data.tar.gz: 0e4539c07e4ddc3ad1e327f50bb03beac3bdae1f0e5fa5e158400eb73b1c235b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83a2b25bc77a80e4f2e30e8eafa1d78e91b94d422a24a102aa2f0fc731dc10f080104fc9d41ea506caa490a2569fe77cde29abb795d16f79d407fc0c7d41d270
|
|
7
|
+
data.tar.gz: 1352781be8d9c235352685beed2cf15b270617144904f60ae04b06f8e254f90f1b732025f2a1546c914dd30b9597fd8f815d1f1f71ee27969df4e77cc55cfbb3
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @salemove/tm-quantum
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Gitleaks secret scanning for public repositories.
|
|
2
|
+
#
|
|
3
|
+
# Public repos cannot run the org-level "Gitleaks Secret Scanning ruleset"
|
|
4
|
+
# workflow (its file lives in a private repo, and GitHub refuses to require
|
|
5
|
+
# a workflow from a less visible repository), so they carry this copy.
|
|
6
|
+
#
|
|
7
|
+
# The `gitleaks-scan` job name is load-bearing: the branch ruleset managed
|
|
8
|
+
# by GHOM (ghom-manifests) requires a check named `gitleaks-scan` posted by
|
|
9
|
+
# GitHub Actions.
|
|
10
|
+
#
|
|
11
|
+
# Note: secrets are not available to workflows triggered by pull requests
|
|
12
|
+
# from forks, so this check fails on external contributors' PRs (accepted
|
|
13
|
+
# trade-off; a maintainer can re-push the branch to run it with the license).
|
|
14
|
+
name: Gitleaks Secret Scanning
|
|
15
|
+
on:
|
|
16
|
+
push:
|
|
17
|
+
branches: [ '**' ]
|
|
18
|
+
pull_request:
|
|
19
|
+
merge_group:
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
gitleaks-scan:
|
|
26
|
+
name: gitleaks-scan
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
timeout-minutes: 15
|
|
29
|
+
concurrency:
|
|
30
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
31
|
+
cancel-in-progress: true
|
|
32
|
+
permissions:
|
|
33
|
+
contents: read
|
|
34
|
+
pull-requests: write
|
|
35
|
+
steps:
|
|
36
|
+
- name: Checkout code
|
|
37
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
38
|
+
with:
|
|
39
|
+
fetch-depth: 0
|
|
40
|
+
persist-credentials: false
|
|
41
|
+
- name: Run Gitleaks
|
|
42
|
+
uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0
|
|
43
|
+
env:
|
|
44
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE_PUBLIC }}
|
|
46
|
+
GITLEAKS_NOTIFY_USER_LIST: '@salemove/tm-devsec'
|
|
@@ -7,15 +7,20 @@ on:
|
|
|
7
7
|
jobs:
|
|
8
8
|
build:
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
10
12
|
|
|
11
13
|
steps:
|
|
12
|
-
|
|
14
|
+
# The release needs these credentials: the action's entrypoint
|
|
15
|
+
# runs `git fetch origin refs/tags/vX`, then `rake release` pushes the
|
|
16
|
+
# tag. Nothing here uploads an artifact, so .git cannot leak that way.
|
|
17
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # zizmor: ignore[artipacked]
|
|
13
18
|
with:
|
|
14
19
|
fetch-depth: 2
|
|
15
20
|
|
|
16
21
|
|
|
17
22
|
- name: Release Gem
|
|
18
|
-
uses: discourse/publish-rubygems-action@
|
|
23
|
+
uses: discourse/publish-rubygems-action@4bd305c65315cb691bad1e8de97a87aaf29a0a85 # v3
|
|
19
24
|
env:
|
|
20
25
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
21
26
|
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.3.8
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Contributing to conf_loader
|
|
2
|
+
|
|
3
|
+
We currently do not accept any contributions from external sources.
|
|
4
|
+
|
|
5
|
+
The code is still open source and if you wish to add any changes, feel free to fork it and add changes to your fork.
|
|
6
|
+
|
|
7
|
+
Issues for any security-related bugs found are still welcome, but we offer no guarantees on whether or when they will be acted upon.
|
|
8
|
+
|
|
9
|
+
For any exceptional cases, please contact us at open-source@glia.com.
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
conf_loader (3.0.0)
|
|
5
|
+
symbolizer (~> 0.0.1)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
diff-lcs (1.6.2)
|
|
11
|
+
rake (13.4.2)
|
|
12
|
+
rspec (3.13.2)
|
|
13
|
+
rspec-core (~> 3.13.0)
|
|
14
|
+
rspec-expectations (~> 3.13.0)
|
|
15
|
+
rspec-mocks (~> 3.13.0)
|
|
16
|
+
rspec-core (3.13.6)
|
|
17
|
+
rspec-support (~> 3.13.0)
|
|
18
|
+
rspec-expectations (3.13.5)
|
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
20
|
+
rspec-support (~> 3.13.0)
|
|
21
|
+
rspec-mocks (3.13.8)
|
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
23
|
+
rspec-support (~> 3.13.0)
|
|
24
|
+
rspec-support (3.13.7)
|
|
25
|
+
symbolizer (0.0.1)
|
|
26
|
+
|
|
27
|
+
PLATFORMS
|
|
28
|
+
arm64-darwin-25
|
|
29
|
+
ruby
|
|
30
|
+
|
|
31
|
+
DEPENDENCIES
|
|
32
|
+
conf_loader!
|
|
33
|
+
rake
|
|
34
|
+
rspec
|
|
35
|
+
|
|
36
|
+
BUNDLED WITH
|
|
37
|
+
2.6.2
|
data/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# ConfLoader
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/salemove/conf_loader)
|
|
4
3
|
[](https://codeclimate.com/github/salemove/conf_loader)
|
|
5
4
|
|
|
6
5
|
## Installation
|
data/conf_loader.gemspec
CHANGED
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ['lib']
|
|
20
|
+
spec.required_ruby_version = '>= 3.3'
|
|
20
21
|
|
|
21
22
|
spec.add_dependency 'symbolizer', '~> 0.0.1'
|
|
22
23
|
end
|
data/lib/conf_loader/version.rb
CHANGED
data/lib/conf_loader.rb
CHANGED
|
@@ -40,14 +40,8 @@ class ConfLoader
|
|
|
40
40
|
|
|
41
41
|
private_class_method
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
YAML.load(source, aliases: true)
|
|
46
|
-
end
|
|
47
|
-
else
|
|
48
|
-
def self.load_environments(source)
|
|
49
|
-
YAML.load(source)
|
|
50
|
-
end
|
|
43
|
+
def self.load_environments(source)
|
|
44
|
+
YAML.load(source, aliases: true)
|
|
51
45
|
end
|
|
52
46
|
|
|
53
47
|
def self.guarantee_key_presence(hash)
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: conf_loader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Indrek Juhkam
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: symbolizer
|
|
@@ -31,12 +30,14 @@ executables: []
|
|
|
31
30
|
extensions: []
|
|
32
31
|
extra_rdoc_files: []
|
|
33
32
|
files:
|
|
33
|
+
- ".github/CODEOWNERS"
|
|
34
|
+
- ".github/workflows/gitleaks-scan.yml"
|
|
34
35
|
- ".github/workflows/publish.yml"
|
|
35
36
|
- ".gitignore"
|
|
36
|
-
- ".ruby-gemset"
|
|
37
37
|
- ".ruby-version"
|
|
38
|
-
-
|
|
38
|
+
- CONTRIBUTING.md
|
|
39
39
|
- Gemfile
|
|
40
|
+
- Gemfile.lock
|
|
40
41
|
- LICENSE.txt
|
|
41
42
|
- README.md
|
|
42
43
|
- Rakefile
|
|
@@ -51,7 +52,6 @@ homepage: ''
|
|
|
51
52
|
licenses:
|
|
52
53
|
- MIT
|
|
53
54
|
metadata: {}
|
|
54
|
-
post_install_message:
|
|
55
55
|
rdoc_options: []
|
|
56
56
|
require_paths:
|
|
57
57
|
- lib
|
|
@@ -59,15 +59,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
59
59
|
requirements:
|
|
60
60
|
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
62
|
+
version: '3.3'
|
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
68
|
requirements: []
|
|
69
|
-
rubygems_version: 3.
|
|
70
|
-
signing_key:
|
|
69
|
+
rubygems_version: 3.6.9
|
|
71
70
|
specification_version: 4
|
|
72
71
|
summary: Helps to load conf files in SaleMove ecosystem
|
|
73
72
|
test_files:
|
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
config_loader
|