envsafe 0.1.0 → 0.1.1
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/README.md +1 -1
- data/bin/console +11 -0
- data/bin/envsafe +8 -0
- data/bin/setup +8 -0
- data/envsafe.gemspec +63 -0
- data/exe/envsafe +5 -1
- data/lib/envsafe/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c24d2d32a78158e2cb3913fb420433c92a40e518f8954c7092cae4e029841911
|
|
4
|
+
data.tar.gz: e585dfa81bdea3e332e2eaf98bae734be8d5aeb5a4b04d54a88a1d909cf304ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9bd239c64558c89292e0f693150245aac028cb2f65791b5e07a4d23a8c4fdc66e3d003b6fa15c7ad37fbe0e23d8d215bc6200b63c8a507cc5ce6d4290d4d9b7
|
|
7
|
+
data.tar.gz: '08e9e4a7ca8d48da760b98d73e6fed6423568a5489e34c7e205274678186005e333115760fd163139ef3b260c0b5074f51e977a47cc14fa0ea4904d82fdbb6f8'
|
data/README.md
CHANGED
|
@@ -194,7 +194,7 @@ your-project/
|
|
|
194
194
|
|
|
195
195
|
## Contributing
|
|
196
196
|
|
|
197
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
197
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kaisersakhi/envsafe.
|
|
198
198
|
|
|
199
199
|
## License
|
|
200
200
|
|
data/bin/console
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
require "envsafe"
|
|
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
|
+
require "irb"
|
|
11
|
+
IRB.start(__FILE__)
|
data/bin/envsafe
ADDED
data/bin/setup
ADDED
data/envsafe.gemspec
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/envsafe/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "envsafe"
|
|
7
|
+
spec.version = Envsafe::VERSION
|
|
8
|
+
spec.authors = ["Kaiser Sakhi"]
|
|
9
|
+
spec.email = ["mail@kaisersakhi.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "A simple CLI tool to back up, restore, and validate your .env files."
|
|
12
|
+
|
|
13
|
+
spec.description = <<~DESC
|
|
14
|
+
Envsafe is a standalone CLI utility for managing your .env files without project integration.
|
|
15
|
+
|
|
16
|
+
Quickly back up your current environment, restore from any saved version, and compare your .env file
|
|
17
|
+
against .env.example to catch missing or extra variables. Think of it as git stash for your .env.
|
|
18
|
+
|
|
19
|
+
Core features:
|
|
20
|
+
- Backup and restore .env files with optional tags
|
|
21
|
+
- Pop the latest backup off the stack
|
|
22
|
+
- Checkout any saved .env version or return to main
|
|
23
|
+
- Validate .env vs .env.example
|
|
24
|
+
- CLI-native — no Gemfile or code integration required
|
|
25
|
+
|
|
26
|
+
Envsafe gives you safe, versioned control of your app’s environment variables — without the overhead.
|
|
27
|
+
DESC
|
|
28
|
+
|
|
29
|
+
spec.homepage = "https://github.com/kaisersakhi/envsafe"
|
|
30
|
+
spec.license = "MIT"
|
|
31
|
+
spec.required_ruby_version = ">= 3.0.0"
|
|
32
|
+
|
|
33
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
34
|
+
spec.metadata["source_code_uri"] = "https://github.com/kaisersakhi/envsafe"
|
|
35
|
+
|
|
36
|
+
# Specify which files should be added to the gem when it is released.
|
|
37
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
38
|
+
gemspec = File.basename(__FILE__)
|
|
39
|
+
# spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
|
|
40
|
+
# ls.readlines("\x0", chomp: true).reject do |f|
|
|
41
|
+
# (f == gemspec) ||
|
|
42
|
+
# f.start_with?(*%w[bin/ Gemfile .gitignore test/])
|
|
43
|
+
# end
|
|
44
|
+
# end
|
|
45
|
+
#
|
|
46
|
+
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
|
|
47
|
+
ls.readlines("\x0", chomp: true).reject do |f|
|
|
48
|
+
f.end_with?(".gem") ||
|
|
49
|
+
f.start_with?(*%w[Gemfile .gitignore test/])
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
spec.bindir = "exe"
|
|
55
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
56
|
+
spec.require_paths = ["lib"]
|
|
57
|
+
|
|
58
|
+
# Uncomment to register a new dependency of your gem
|
|
59
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
|
60
|
+
|
|
61
|
+
# For more information and examples about making a new gem, check out our
|
|
62
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
|
63
|
+
end
|
data/exe/envsafe
CHANGED
data/lib/envsafe/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: envsafe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaiser Sakhi
|
|
@@ -34,6 +34,10 @@ files:
|
|
|
34
34
|
- LICENSE.txt
|
|
35
35
|
- README.md
|
|
36
36
|
- Rakefile
|
|
37
|
+
- bin/console
|
|
38
|
+
- bin/envsafe
|
|
39
|
+
- bin/setup
|
|
40
|
+
- envsafe.gemspec
|
|
37
41
|
- exe/envsafe
|
|
38
42
|
- lib/envsafe.rb
|
|
39
43
|
- lib/envsafe/back_stack.rb
|