eon_crypt 0.1.0 → 0.2.0

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: 6e8dfaf77a77617fc9e782300ed26e654ef93e185eacbdafd867f010f1206f5c
4
- data.tar.gz: 037d29ec0fc7d6fd20b36c43616a58bb06763dcf45e0360b8e733c2aa8eccdcb
3
+ metadata.gz: d5a35c0f16d3c9c54a7c5605f571bf9fd17d16907709b16695d9e81af217e3a2
4
+ data.tar.gz: ca4b5c4faece458c969fdfbe1cec1f20f7ae38898b1503cfcd33829103297abb
5
5
  SHA512:
6
- metadata.gz: 58b786f51b8c5b15ab1610bd45b2273c19c625f7df409c5d3eade5ec1796d9164e90a89adbeba77a24cfee7158bd2f1157b81418f23485bbf8d6868fb4364bda
7
- data.tar.gz: 906ee35ab384bcba0de77033da256afed462b76feb1f4ee2951dfc222c67a6cf77bcf67d4ca3739e5d782a0832cc5ec6ddcd7c2e61029eefa41b99f46a9f0ac6
6
+ metadata.gz: 52d928f3337d448ceb1b54c41ebd9d969ffcc102011739fd2487275f168cd726d464730124add818461ebe1101ce6a3e231758c3e491abfd9073554c5df7ec9d
7
+ data.tar.gz: 1d163c1e7b28b5beb8d0600f898f79ca3d2d752f15fe5f170dc5a93c59592046b5df64ce748c4077a88df494ff9da49c74fde1bbc478b6130e418181d3976a03
data/bin/eon ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../lib/eon/eon"
3
+
4
+ Eon::CLI.start(ARGV)
data/lib/eon/eon.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "thor"
4
3
  require "eon"
4
+ require "thor"
5
5
 
6
6
  module Eon
7
7
  class CLI < Thor
@@ -25,5 +25,3 @@ module Eon
25
25
  end
26
26
  end
27
27
  end
28
-
29
- Eon::CLI.start
data/lib/eon/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eon
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Fantina
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-26 00:00:00.000000000 Z
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: '0'
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: '0'
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
- - ".rubocop.yml"
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
- - sig/eon.rbs
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://objective.dev
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
@@ -1,13 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2023-05-18
4
-
5
- - Initial release
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in eon.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "minitest", "~> 5.0"
11
-
12
- gem "rubocop", "~> 1.21"
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
@@ -1,4 +0,0 @@
1
- module Eon
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end