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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65634c2098bf1fa34dd0b3ef2c127cd4c4f3a1390a05f3ab2f6a58828692efbb
4
- data.tar.gz: 8cf9215b84fcf108b6eba6bdc9af69c7f7b35422e068c3c4174e36b37f79cd02
3
+ metadata.gz: c24d2d32a78158e2cb3913fb420433c92a40e518f8954c7092cae4e029841911
4
+ data.tar.gz: e585dfa81bdea3e332e2eaf98bae734be8d5aeb5a4b04d54a88a1d909cf304ec
5
5
  SHA512:
6
- metadata.gz: e2a80fa8cfa100525f2a11c767089a80dcfa51de22c93ded2291f9a401872fef347940378f18a1dd614d09402ff5504c582be0201ab150f536c79d4585445b33
7
- data.tar.gz: 35f51b8ab9ab3de95ca9807b1301c250eb7f465101d5987a96755ed42a315e831ad53f9453a881e07d090538443e63b26c79f2ddcbb7be410787db181acced68
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/yourusername/envsafe.
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
@@ -0,0 +1,8 @@
1
+ # !/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
5
+
6
+ require("envsafe")
7
+
8
+ Envsafe::CLI.start(ARGV)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
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
@@ -1,3 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "envsafe"
3
+ # $LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
4
+
5
+ require("envsafe")
6
+
7
+ Envsafe::CLI.start(ARGV)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Envsafe
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
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