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.
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ class SecretKeys
4
+ VERSION = File.read(File.join(__dir__, "..", "..", "VERSION")).chomp.freeze
5
+ CRYPTO_VERSION = 1
6
+ end
@@ -1,26 +1,26 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "secret_keys"
3
- spec.version = File.read(File.expand_path("../VERSION", __FILE__)).strip
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
- .gitignore
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(File.expand_path("..", __FILE__)) do
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.pre
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-05-25 00:00:00.000000000 Z
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: '0'
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: 1.3.1
66
+ version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.0.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.
@@ -1,8 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- charset = utf-8
7
- trim_trailing_whitespace = true
8
- insert_final_newline = true
@@ -1,11 +0,0 @@
1
- name: Style checks
2
- on: [push, pull_request]
3
- jobs:
4
- style:
5
- name: Standard RB style check
6
- runs-on: ubuntu-latest
7
- steps:
8
- - name: standardrb
9
- env:
10
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11
- uses: amoeba/standardrb-action@v3
@@ -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
@@ -1,7 +0,0 @@
1
- # I really just have issues with the automatic "semantic blocks"
2
-
3
- format: progress
4
-
5
- ignore:
6
- - '**/*':
7
- - Standard/SemanticBlocks
data/.yardopts DELETED
@@ -1,3 +0,0 @@
1
- --markup markdown
2
- --protected
3
- --no-private