eon_crypt 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/eon +4 -0
- data/lib/eon/eon.rb +1 -3
- data/lib/eon/version.rb +1 -1
- metadata +12 -19
- data/.rubocop.yml +0 -13
- data/CHANGELOG.md +0 -5
- data/Gemfile +0 -12
- data/LICENSE.txt +0 -21
- data/README.md +0 -32
- data/Rakefile +0 -16
- data/eon-0.1.0.gem +0 -0
- data/eon.gemspec +0 -42
- data/sig/eon.rbs +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5a35c0f16d3c9c54a7c5605f571bf9fd17d16907709b16695d9e81af217e3a2
|
4
|
+
data.tar.gz: ca4b5c4faece458c969fdfbe1cec1f20f7ae38898b1503cfcd33829103297abb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d928f3337d448ceb1b54c41ebd9d969ffcc102011739fd2487275f168cd726d464730124add818461ebe1101ce6a3e231758c3e491abfd9073554c5df7ec9d
|
7
|
+
data.tar.gz: 1d163c1e7b28b5beb8d0600f898f79ca3d2d752f15fe5f170dc5a93c59592046b5df64ce748c4077a88df494ff9da49c74fde1bbc478b6130e418181d3976a03
|
data/bin/eon
ADDED
data/lib/eon/eon.rb
CHANGED
data/lib/eon/version.rb
CHANGED
metadata
CHANGED
@@ -1,53 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eon_crypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Fantina
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.2.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.2.2
|
27
27
|
description: Pass around AES keys then check .env.encrypted into your repo
|
28
28
|
email:
|
29
29
|
- travis@objective.dev
|
30
|
-
executables:
|
30
|
+
executables:
|
31
|
+
- eon
|
31
32
|
extensions: []
|
32
33
|
extra_rdoc_files: []
|
33
34
|
files:
|
34
|
-
-
|
35
|
-
- CHANGELOG.md
|
36
|
-
- Gemfile
|
37
|
-
- LICENSE.txt
|
38
|
-
- README.md
|
39
|
-
- Rakefile
|
40
|
-
- eon-0.1.0.gem
|
41
|
-
- eon.gemspec
|
35
|
+
- bin/eon
|
42
36
|
- lib/eon.rb
|
43
37
|
- lib/eon/eon.rb
|
44
38
|
- lib/eon/version.rb
|
45
|
-
|
46
|
-
homepage: https://objective.dev
|
39
|
+
homepage: https://github.com/tfantina/eon
|
47
40
|
licenses:
|
48
41
|
- MIT
|
49
42
|
metadata:
|
50
|
-
homepage_uri: https://
|
43
|
+
homepage_uri: https://github.com/tfantina/eon
|
51
44
|
post_install_message:
|
52
45
|
rdoc_options: []
|
53
46
|
require_paths:
|
data/.rubocop.yml
DELETED
data/CHANGELOG.md
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2023 Travis Fantina
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# Eon 🗝
|
2
|
-
|
3
|
-
Eon is a tool for encrypting and decrypting short text files on the fly. It's primary goal is to provide a secure way to encrypt `.env` files so that they can be checked into version control.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Eventually I'd like to publish Eon as a Homebrew formula so that it can be quickly installed and used without hassle. However for the time being you need to add the `/bin/eon` to your
|
8
|
-
`$PATH`. This can be done by editing your `.zshrc` or `.bashrc` with this line: `export PATH="~/eon/lib/eon:$PATH"` (of course the path needs to be relative to wherever you have the Eon folder).
|
9
|
-
|
10
|
-
|
11
|
-
## Usage
|
12
|
-
|
13
|
-
At the moment Eon has three commands:
|
14
|
-
|
15
|
-
`eon.rb generate` which creates a new `eon_aes.key` this is a secret aes key used for encrypting and decrypting files. Keep this key with your project but **DO NOT** check it into version control.
|
16
|
-
`.gitignore` `eon_aes.key`! For any developers working on the project who need access to encrypted .env files give them a copy of this file using a secure service such as Keybase.
|
17
|
-
|
18
|
-
`eon.rb encrypt file destination` `encrypt` takes two argements the first is an unencrypted file `.env` for example, and the second is a destination where a new encrypted file will be created: `.env.encrypted`
|
19
|
-
|
20
|
-
`eon.rb decrypt file destination` `decrypt` takes two arguments, the first is an encrypted file `.env.encrypted` for examople, and the second is a destination where the decrypted file will live: `.env`
|
21
|
-
|
22
|
-
## Development
|
23
|
-
|
24
|
-
I'm still working on this, I haven't quite figured out how to create Homebrew formula, I'm open to PRs.
|
25
|
-
|
26
|
-
## Contributing
|
27
|
-
|
28
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/tfantina/eon.
|
29
|
-
|
30
|
-
## License
|
31
|
-
|
32
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
require "rake/testtask"
|
5
|
-
|
6
|
-
Rake::TestTask.new(:test) do |t|
|
7
|
-
t.libs << "test"
|
8
|
-
t.libs << "lib"
|
9
|
-
t.test_files = FileList["test/**/test_*.rb"]
|
10
|
-
end
|
11
|
-
|
12
|
-
require "rubocop/rake_task"
|
13
|
-
|
14
|
-
RuboCop::RakeTask.new
|
15
|
-
|
16
|
-
task default: %i[test rubocop]
|
data/eon-0.1.0.gem
DELETED
Binary file
|
data/eon.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/eon/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "eon_crypt"
|
7
|
-
spec.version = Eon::VERSION
|
8
|
-
spec.authors = ["Travis Fantina"]
|
9
|
-
spec.email = ["travis@objective.dev"]
|
10
|
-
|
11
|
-
spec.summary = "Tool for encrypting and decrpyting .env files"
|
12
|
-
spec.description = "Pass around AES keys then check .env.encrypted into your repo"
|
13
|
-
spec.homepage = "https://objective.dev"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.6.0"
|
16
|
-
|
17
|
-
#spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
18
|
-
|
19
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
-
#spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
21
|
-
#spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
22
|
-
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
-
spec.files = Dir.chdir(__dir__) do
|
26
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
-
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
|
28
|
-
end
|
29
|
-
end
|
30
|
-
spec.bindir = "exe"
|
31
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
-
spec.require_paths = ["lib"]
|
33
|
-
|
34
|
-
|
35
|
-
# Uncomment to register a new dependency of your gem
|
36
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
37
|
-
|
38
|
-
# For more information and examples about making a new gem, check out our
|
39
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
40
|
-
|
41
|
-
spec.add_runtime_dependency "thor"
|
42
|
-
end
|
data/sig/eon.rbs
DELETED