dotenv-mh 0.1.0 → 0.1.3
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/.env +0 -0
- data/.gitignore +7 -0
- data/Gemfile +1 -0
- data/bin/console +15 -0
- data/bin/dotenvInstaller +19 -0
- data/bin/setup +8 -0
- data/dotenv-mh.gemspec +11 -9
- data/lib/dotenv/mh/version.rb +1 -1
- data/lib/dotenv/railtie.rb +10 -0
- metadata +14 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eeee2160f24cc1bae27ee11c8b5231f97f1760206a8a2d743c1aeadf2087828
|
4
|
+
data.tar.gz: 311006f24935bc21ec7094d5e04dbc858ebbdc2b193b05884864a87b564605f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c463e86ad601da0d557be939f9e79f356c70b9fef51e7a26dae09a6a039c891fba05a4a5183c9f919be1d3126055ae83634ae04a1296e12809e7dfa69ebc0bb8
|
7
|
+
data.tar.gz: c2ae5f6f85d506a80fbe2e66ae8b7d772c1b1f140030dff611f3d00db310b89ee6d2e778aec064667be370538cf72bab21a783c13a54d5162967ad366a6f0997
|
data/.env
ADDED
File without changes
|
data/.gitignore
ADDED
data/Gemfile
CHANGED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "dotenv/mh"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/dotenvInstaller
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
puts ("installing...")
|
3
|
+
|
4
|
+
if(!File.file?('.env')) then
|
5
|
+
puts "creating .env file"
|
6
|
+
File.new(".env", "w")
|
7
|
+
|
8
|
+
if(File.file?('.gitignore')) then
|
9
|
+
puts "adding .env into your .gitignore"
|
10
|
+
|
11
|
+
fileContent = File.read(".gitignore")
|
12
|
+
File.write(".gitignore", fileContent + "\n.env")
|
13
|
+
else
|
14
|
+
puts(".gitignore does not exists, skipping...")
|
15
|
+
end
|
16
|
+
else
|
17
|
+
puts ".env file already exists, skipping..."
|
18
|
+
end
|
19
|
+
|
data/bin/setup
ADDED
data/dotenv-mh.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["herreramaxi@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = "dotenv gem for loading environment variables"
|
12
|
-
spec.description = "dotenv gem for loading environment variables from .env file"
|
12
|
+
spec.description = "dotenv gem for loading environment variables from .env file. This is a WIP, I would like to add a Rails initializer so that env variables can be loaded from .env file."
|
13
13
|
# spec.homepage = "Put your gem's website or public repo URL here."
|
14
14
|
spec.required_ruby_version = ">= 2.6.0"
|
15
15
|
|
@@ -21,13 +21,15 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
# Specify which files should be added to the gem when it is released.
|
23
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(__dir__) do
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
29
|
-
spec.
|
30
|
-
spec.
|
24
|
+
# spec.files = Dir.chdir(__dir__) do
|
25
|
+
# `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
# (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
spec.files = `git ls-files`.split($\)
|
30
|
+
# spec.bindir = "exe"
|
31
|
+
# spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
+
spec.executables << "dotenvInstaller"
|
31
33
|
spec.require_paths = ["lib"]
|
32
34
|
|
33
35
|
# Uncomment to register a new dependency of your gem
|
@@ -35,4 +37,4 @@ Gem::Specification.new do |spec|
|
|
35
37
|
|
36
38
|
# For more information and examples about making a new gem, check out our
|
37
39
|
# guide at: https://bundler.io/guides/creating_gem.html
|
38
|
-
end
|
40
|
+
end
|
data/lib/dotenv/mh/version.rb
CHANGED
metadata
CHANGED
@@ -1,28 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dotenv-mh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Herrera Maxi
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: dotenv gem for loading environment variables from .env file
|
13
|
+
description: dotenv gem for loading environment variables from .env file. This is
|
14
|
+
a WIP, I would like to add a Rails initializer so that env variables can be loaded
|
15
|
+
from .env file.
|
14
16
|
email:
|
15
17
|
- herreramaxi@gmail.com
|
16
|
-
executables:
|
18
|
+
executables:
|
19
|
+
- dotenvInstaller
|
17
20
|
extensions: []
|
18
21
|
extra_rdoc_files: []
|
19
22
|
files:
|
23
|
+
- ".env"
|
24
|
+
- ".gitignore"
|
20
25
|
- Gemfile
|
21
26
|
- README.md
|
22
27
|
- Rakefile
|
28
|
+
- bin/console
|
29
|
+
- bin/dotenvInstaller
|
30
|
+
- bin/setup
|
23
31
|
- dotenv-mh.gemspec
|
24
32
|
- lib/dotenv/mh.rb
|
25
33
|
- lib/dotenv/mh/version.rb
|
34
|
+
- lib/dotenv/railtie.rb
|
26
35
|
- sig/dotenv/mh.rbs
|
27
36
|
homepage:
|
28
37
|
licenses: []
|