envv 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/envv.gemspec +43 -0
- data/lib/envv/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39d9bec08e12fbe078eafec545a6ff71a646808abd537c8a8550a9add89d7464
|
4
|
+
data.tar.gz: c6e9d7c02b5460379ae1a19858d715ba77052d7f6f4772efac2d8733ff36782a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1dfd29c1e66010630ac4cc6ce9d8024271075a1af5c7f37991e07c678dd1360da0fa6f5606eaed3ceed0045a226257d2726b98423d4c323348018c4e3bd9c3d
|
7
|
+
data.tar.gz: fe14b778db78cd69ebdc353a1fd691c70d92419d772f0aea00450a1b66466f7b9960dd68590b4d394aa43602a16b4b9522b54adac99ec402d490d47e9afba0fd
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -39,7 +39,7 @@ end
|
|
39
39
|
```
|
40
40
|
|
41
41
|
If requirements are not satisfied, it will **raise an exception**. So be sure this validation occurs as soon as possible in the boot process of your application.
|
42
|
-
In a Ruby On Rails application, you can place it in an initializer and ensure it will be executed first by naming it `
|
42
|
+
In a Ruby On Rails application, you can place it in an initializer and ensure it will be executed first by naming it `config/initializers/01-envv.rb` for example, since initializers are run in alphabetical order.
|
43
43
|
|
44
44
|
If environment variables are validated, you can now access their coerced value with `ENVV#fetch` method:
|
45
45
|
|
data/envv.gemspec
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/envv/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "envv"
|
7
|
+
spec.version = ENVV::VERSION
|
8
|
+
spec.authors = ["Fabrice Luraine"]
|
9
|
+
spec.email = ["16@asciiland.net"]
|
10
|
+
|
11
|
+
spec.summary = "Validates environment variables requirements with a schema and gives access to their coerced values."
|
12
|
+
spec.description = ""
|
13
|
+
spec.homepage = "https://github.com/16/envv"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 3.0.0"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/16/envv"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/16/envv/blob/main/CHANGELOG.md"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(__dir__) do
|
24
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
(File.expand_path(f) == __FILE__) ||
|
26
|
+
f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
|
27
|
+
end
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_dependency "dry-schema", "~> 1.13"
|
34
|
+
spec.add_dependency "dry-initializer", "~> 3.1"
|
35
|
+
|
36
|
+
spec.add_development_dependency "bundler", "~> 2.4"
|
37
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
38
|
+
spec.add_development_dependency "minitest", "~> 5.19"
|
39
|
+
spec.add_development_dependency "standard", "~> 1.31"
|
40
|
+
|
41
|
+
# For more information and examples about making a new gem, check out our
|
42
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
43
|
+
end
|
data/lib/envv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabrice Luraine
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-schema
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- Rakefile
|
110
110
|
- doc/banner.inkscape.svg
|
111
111
|
- doc/banner.svg
|
112
|
+
- envv.gemspec
|
112
113
|
- lib/envv.rb
|
113
114
|
- lib/envv/base.rb
|
114
115
|
- lib/envv/builder.rb
|