easy-settings 2.0.0 → 2.0.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: 9186867548fd27da53f287246d749505b239cd8f3d55e86450725448aafb9f8c
4
- data.tar.gz: abf1596640e87eabccd9227146d50ab02867e4e44142a367991ec89d38b11942
3
+ metadata.gz: 2df53deecd99cafd6759efd7debc511a42b1ee9a72364df0a313d20ca75c2e94
4
+ data.tar.gz: d27d5ce89255d7416fc5a5613fdb919f07f7c5806eaac1c9c98c0b62fad2e68b
5
5
  SHA512:
6
- metadata.gz: dfb7190c8a8bc10544952206b1452c87c3feaae5dcc15e585663d613f4460b18f44e793be55b55b5cda8a2ee6ba5e1a95742b1eb8703fbaed7b7bdc88cc99934
7
- data.tar.gz: 7e2223474a0cbddc639cccd5459d35b89b7887aa9af8430f382f18545f070f1ed5a129040a385c19d4591beebf5be4d8f1338a138fd308ef1148f46d6b7d5f40
6
+ metadata.gz: e95947852b55405dfe168b32489ab2147976676da44fb2c535ccbc86dff9dc59ad88f76aba8a477b089f893ec16ed0b4754546c824c575cb5a3e1b9943acc29a
7
+ data.tar.gz: 7bd864bf4da995ee028f0e0a34214f3f37775369fc8bb3ca2506f2546106680280a1248b57833a1e7b4ae7498429b69250302a3b81f018918738d67e390a2d28
@@ -0,0 +1,13 @@
1
+ FROM ruby:3.4-alpine AS base
2
+
3
+ RUN apk upgrade && apk -U add \
4
+ bash \
5
+ build-base \
6
+ git \
7
+ openssh-client
8
+
9
+ RUN addgroup --gid 1000 vscode
10
+ RUN adduser --uid 1000 vscode --ingroup vscode --disabled-password
11
+ RUN chown -R vscode:vscode /usr/local/bundle
12
+
13
+ USER vscode
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "Ruby Gem Dev Container",
3
+ "dockerFile": "Dockerfile",
4
+ "containerEnv": {
5
+ "RUBY_DEBUG_OPEN": "true"
6
+ },
7
+ "customizations": {
8
+ "vscode": {
9
+ "extensions": [
10
+ "Shopify.ruby-lsp"
11
+ ]
12
+ }
13
+ }
14
+ }
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
4
3
  pkg/*
5
4
 
6
5
  .idea
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ easy-settings (2.0.1)
5
+ activesupport (>= 3.0.0)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ activesupport (3.1.12)
11
+ multi_json (~> 1.0)
12
+ date (3.4.1)
13
+ debug (1.10.0)
14
+ irb (~> 1.10)
15
+ reline (>= 0.3.8)
16
+ diff-lcs (1.2.5)
17
+ io-console (0.8.0)
18
+ irb (1.15.1)
19
+ pp (>= 0.6.0)
20
+ rdoc (>= 4.0.0)
21
+ reline (>= 0.4.2)
22
+ multi_json (1.15.0)
23
+ pp (0.6.2)
24
+ prettyprint
25
+ prettyprint (0.2.0)
26
+ psych (5.2.3)
27
+ date
28
+ stringio
29
+ rdoc (6.11.0)
30
+ psych (>= 4.0.0)
31
+ reline (0.6.0)
32
+ io-console (~> 0.5)
33
+ rspec (3.4.0)
34
+ rspec-core (~> 3.4.0)
35
+ rspec-expectations (~> 3.4.0)
36
+ rspec-mocks (~> 3.4.0)
37
+ rspec-core (3.4.2)
38
+ rspec-support (~> 3.4.0)
39
+ rspec-expectations (3.4.0)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.4.0)
42
+ rspec-mocks (3.4.1)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.4.0)
45
+ rspec-support (3.4.1)
46
+ stringio (3.1.2)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ debug (~> 1.10.0)
53
+ easy-settings!
54
+ rspec (~> 3.4.0)
55
+
56
+ BUNDLED WITH
57
+ 2.6.2
@@ -9,8 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Corin Langosch"]
10
10
  s.email = ["info@corinlangosch.com"]
11
11
  s.homepage = "https://github.com/gucki/easy-settings"
12
- s.summary = %q{flexible yet easy handling of application settings}
13
- s.description = %q{flexible yet easy handling of application settings}
12
+ s.summary = %q{Flexible yet easy handling of application settings.}
14
13
 
15
14
  s.files = `git ls-files`.split("\n")
16
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -18,7 +17,8 @@ Gem::Specification.new do |s|
18
17
  s.require_paths = ["lib"]
19
18
 
20
19
  # specify any dependencies here; for example:
21
- s.add_development_dependency "rspec"
22
- s.add_development_dependency "byebug"
23
- s.add_runtime_dependency "activesupport", ">=3.0.0"
20
+ s.required_ruby_version = ">= 2.6"
21
+ s.add_runtime_dependency "activesupport", ">= 3.0.0"
22
+ s.add_development_dependency "rspec", "~> 3.4.0"
23
+ s.add_development_dependency "debug", "~> 1.10.0"
24
24
  end
@@ -1,3 +1,3 @@
1
1
  class EasySettings
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -9,7 +9,7 @@ class EasySettings::YamlSource
9
9
  end
10
10
 
11
11
  def load
12
- result = File.exist?(path) ? YAML.load(ERB.new(IO.read(path)).result) : {}
12
+ File.exist?(path) ? (YAML.load(ERB.new(IO.read(path)).result) || {}) : {}
13
13
  rescue StandardError => e
14
14
  raise "Error occurred while parsing #{path}: #{e.message}"
15
15
  end
metadata CHANGED
@@ -1,67 +1,67 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corin Langosch
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-06-29 00:00:00.000000000 Z
10
+ date: 2025-01-22 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: rspec
13
+ name: activesupport
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
18
+ version: 3.0.0
19
+ type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '0'
25
+ version: 3.0.0
27
26
  - !ruby/object:Gem::Dependency
28
- name: byebug
27
+ name: rspec
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '0'
32
+ version: 3.4.0
34
33
  type: :development
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - ">="
37
+ - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '0'
39
+ version: 3.4.0
41
40
  - !ruby/object:Gem::Dependency
42
- name: activesupport
41
+ name: debug
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - ">="
44
+ - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: 3.0.0
48
- type: :runtime
46
+ version: 1.10.0
47
+ type: :development
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - ">="
51
+ - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: 3.0.0
55
- description: flexible yet easy handling of application settings
53
+ version: 1.10.0
56
54
  email:
57
55
  - info@corinlangosch.com
58
56
  executables: []
59
57
  extensions: []
60
58
  extra_rdoc_files: []
61
59
  files:
60
+ - ".devcontainer/Dockerfile"
61
+ - ".devcontainer/devcontainer.json"
62
62
  - ".gitignore"
63
- - Dockerfile
64
63
  - Gemfile
64
+ - Gemfile.lock
65
65
  - LICENSE.txt
66
66
  - README.rdoc
67
67
  - Rakefile
@@ -81,7 +81,6 @@ homepage: https://github.com/gucki/easy-settings
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}
84
- post_install_message:
85
84
  rdoc_options: []
86
85
  require_paths:
87
86
  - lib
@@ -89,15 +88,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
88
  requirements:
90
89
  - - ">="
91
90
  - !ruby/object:Gem::Version
92
- version: '0'
91
+ version: '2.6'
93
92
  required_rubygems_version: !ruby/object:Gem::Requirement
94
93
  requirements:
95
94
  - - ">="
96
95
  - !ruby/object:Gem::Version
97
96
  version: '0'
98
97
  requirements: []
99
- rubygems_version: 3.0.3
100
- signing_key:
98
+ rubygems_version: 3.6.2
101
99
  specification_version: 4
102
- summary: flexible yet easy handling of application settings
100
+ summary: Flexible yet easy handling of application settings.
103
101
  test_files: []
data/Dockerfile DELETED
@@ -1,7 +0,0 @@
1
- FROM ruby:2.6-stretch
2
-
3
- RUN groupadd --gid 1000 web && useradd --create-home --uid 1000 --gid 1000 --shell /bin/bash web
4
-
5
- WORKDIR /home/web/app
6
-
7
- USER web