secret_keys 1.0.0.pre → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT_LICENSE.txt +1 -1
- data/README.md +131 -27
- data/VERSION +1 -1
- data/bin/secret_keys +43 -109
- data/lib/secret_keys.rb +109 -185
- data/lib/secret_keys/cli.rb +339 -0
- data/lib/secret_keys/encryptor.rb +152 -0
- data/lib/secret_keys/version.rb +6 -0
- data/secret_keys.gemspec +7 -5
- metadata +12 -12
- data/.editorconfig +0 -8
- data/.github/workflows/style.yml +0 -11
- data/.github/workflows/test.yml +0 -42
- data/.standard.yml +0 -7
- data/.yardopts +0 -3
data/secret_keys.gemspec
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "secret_keys"
|
3
|
-
spec.version = File.read(File.
|
3
|
+
spec.version = File.read(File.join(__dir__, "VERSION")).strip
|
4
4
|
spec.authors = ["Brian Durand", "Winston Durand"]
|
5
5
|
spec.email = ["bbdurand@gmail.com", "me@winstondurand.com"]
|
6
6
|
|
7
7
|
spec.summary = "Simple mechanism for loading JSON file with encrypted values."
|
8
8
|
spec.homepage = "https://github.com/bdurand/secret_keys"
|
9
9
|
spec.license = "MIT"
|
10
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
11
|
+
spec.metadata["source_code_uri"] = "https://github.com/bdurand/secret_keys/tree/v#{spec.version}"
|
10
12
|
|
11
13
|
# Specify which files should be added to the gem when it is released.
|
12
14
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
13
15
|
ignore_files = %w[
|
14
|
-
.
|
15
|
-
.travis.yml
|
16
|
+
.
|
16
17
|
Appraisals
|
17
18
|
Gemfile
|
18
|
-
Gemfile.lock
|
19
19
|
Rakefile
|
20
20
|
gemfiles/
|
21
21
|
spec/
|
22
22
|
]
|
23
|
-
spec.files = Dir.chdir(
|
23
|
+
spec.files = Dir.chdir(__dir__) do
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| ignore_files.any? { |path| f.start_with?(path) } }
|
25
25
|
end
|
26
26
|
|
@@ -28,5 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.bindir = "bin"
|
29
29
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
30
30
|
|
31
|
+
spec.required_ruby_version = ">= 2.4"
|
32
|
+
|
31
33
|
spec.add_development_dependency "bundler", "~>2.0"
|
32
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secret_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -34,22 +34,22 @@ executables:
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
-
- ".editorconfig"
|
38
|
-
- ".github/workflows/style.yml"
|
39
|
-
- ".github/workflows/test.yml"
|
40
|
-
- ".standard.yml"
|
41
|
-
- ".yardopts"
|
42
37
|
- CHANGE_LOG.md
|
43
38
|
- MIT_LICENSE.txt
|
44
39
|
- README.md
|
45
40
|
- VERSION
|
46
41
|
- bin/secret_keys
|
47
42
|
- lib/secret_keys.rb
|
43
|
+
- lib/secret_keys/cli.rb
|
44
|
+
- lib/secret_keys/encryptor.rb
|
45
|
+
- lib/secret_keys/version.rb
|
48
46
|
- secret_keys.gemspec
|
49
47
|
homepage: https://github.com/bdurand/secret_keys
|
50
48
|
licenses:
|
51
49
|
- MIT
|
52
|
-
metadata:
|
50
|
+
metadata:
|
51
|
+
homepage_uri: https://github.com/bdurand/secret_keys
|
52
|
+
source_code_uri: https://github.com/bdurand/secret_keys/tree/v1.0.0
|
53
53
|
post_install_message:
|
54
54
|
rdoc_options: []
|
55
55
|
require_paths:
|
@@ -58,14 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.4'
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- - "
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
66
|
+
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.1.2
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: Simple mechanism for loading JSON file with encrypted values.
|
data/.editorconfig
DELETED
data/.github/workflows/style.yml
DELETED
data/.github/workflows/test.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# Test runner copied from R167/backblaze
|
2
|
-
name: Run tests
|
3
|
-
on: [push, pull_request]
|
4
|
-
jobs:
|
5
|
-
rspec:
|
6
|
-
name: rspec ruby-${{ matrix.ruby }} (${{ matrix.os }})
|
7
|
-
runs-on: ${{ matrix.os }}
|
8
|
-
strategy:
|
9
|
-
fail-fast: false
|
10
|
-
matrix:
|
11
|
-
os: [ ubuntu-latest ]
|
12
|
-
ruby: [ 2.4, 2.5, 2.6, 2.7 ]
|
13
|
-
include: # define single matrix case that performs upload
|
14
|
-
- os: ubuntu-latest
|
15
|
-
ruby: 2.7
|
16
|
-
upload: "true"
|
17
|
-
steps:
|
18
|
-
- name: checkout
|
19
|
-
uses: actions/checkout@v2
|
20
|
-
- name: set up Ruby
|
21
|
-
uses: ruby/setup-ruby@v1
|
22
|
-
with:
|
23
|
-
ruby-version: ${{ matrix.ruby }}
|
24
|
-
# Caching makes life better
|
25
|
-
- name: build lockfile
|
26
|
-
run: |
|
27
|
-
bundle config path vendor/bundle
|
28
|
-
bundle lock
|
29
|
-
- uses: actions/cache@v1
|
30
|
-
with:
|
31
|
-
path: vendor/bundle
|
32
|
-
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
|
33
|
-
restore-keys: |
|
34
|
-
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
|
35
|
-
bundle-use-ruby-${{ matrix.os }}-
|
36
|
-
- name: install dependencies
|
37
|
-
run: |
|
38
|
-
bundle install --jobs 3 --retry 3
|
39
|
-
bundle clean
|
40
|
-
# Okay, back to what we really care about...
|
41
|
-
- name: spec
|
42
|
-
run: bundle exec rake spec
|
data/.standard.yml
DELETED
data/.yardopts
DELETED