encrypted-environment 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: 487148e2ff834cf95e636cab49e5b28a6d7ffb2e2f7b646445edd785d44e8a94
4
- data.tar.gz: 7927fade6cefd9af5e77281f463ea8d88d9a9cdd9618a4f55920f9b97376cee1
3
+ metadata.gz: 6d279837dddb05fcee943e5cbeabe08cc6fc308c42868d7c38c3dfd0d4ead618
4
+ data.tar.gz: c7a1aad1f7b6897444b3de5c75f1ac114f643898ffa0a1e367be0377b19db70e
5
5
  SHA512:
6
- metadata.gz: 5157ed09233aa078a2150e9b24f5cbb15b2aa855dd0ef5490af5c74c4303c9a341cdc135ccdf5843651a565c3f8f3a4151433c0d42ef675fe351f664b3c441cf
7
- data.tar.gz: '05235139b06ca41ceaf35ff37ae3092c012a6814617f154ea09207c43b902a8113eea5bb82c62381e6442a8aa454ce964dd05e7aa914a94e3e0b89a2653ed60e'
6
+ metadata.gz: f2c825ec0fa48e87522540ef97c19c88ddc8286482c1e14cd47823f9eca3a99d1c90ac9318724f4aaa7fb8cfc6c43ef637d92f4025b5df8be6e2b27d9e03ebb4
7
+ data.tar.gz: 1686945830cdfd2a07ec58531bfd848aca8eb901ab0e18beda84902c0fc94edcb7e9a5299fc23e9823c5c47d7b65f9a5a830974fd836b784ea6a3be8485ac395
data/.gitignore CHANGED
@@ -7,4 +7,5 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml
10
- .byebug_history
10
+ .byebug_history
11
+ *.gem
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.6.0
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
4
4
 
5
5
  ## Next version
6
6
 
7
+ ## 0.2.0
8
+
9
+ ### Added
10
+
11
+ - Support for system keys https://github.com/pepibumur/encrypted-environment/pull/1 by @pepibumur.
12
+
7
13
  ## 1.0.0
8
14
 
9
15
  ### Added
data/Gemfile.lock CHANGED
@@ -16,20 +16,20 @@ GEM
16
16
  simplecov
17
17
  url
18
18
  docile (1.3.1)
19
- ejson (1.2.0)
20
- jaro_winkler (1.5.1)
21
- json (2.1.0)
19
+ ejson (1.2.1)
20
+ jaro_winkler (1.5.2)
21
+ json (2.2.0)
22
22
  metaclass (0.0.4)
23
23
  minitest (5.11.3)
24
- minitest-reporters (1.3.5)
24
+ minitest-reporters (1.3.6)
25
25
  ansi
26
26
  builder
27
27
  minitest (>= 5.0)
28
28
  ruby-progressbar
29
- mocha (1.7.0)
29
+ mocha (1.8.0)
30
30
  metaclass (~> 0.0.1)
31
- parallel (1.12.1)
32
- parser (2.5.3.0)
31
+ parallel (1.13.0)
32
+ parser (2.6.0.0)
33
33
  ast (~> 2.4.0)
34
34
  powerpack (0.1.2)
35
35
  rainbow (3.0.0)
@@ -48,7 +48,7 @@ GEM
48
48
  json (>= 1.8, < 3)
49
49
  simplecov-html (~> 0.10.0)
50
50
  simplecov-html (0.10.2)
51
- unicode-display_width (1.4.0)
51
+ unicode-display_width (1.4.1)
52
52
  url (0.3.2)
53
53
 
54
54
  PLATFORMS
@@ -66,4 +66,4 @@ DEPENDENCIES
66
66
  rubocop (~> 0.60.0)
67
67
 
68
68
  BUNDLED WITH
69
- 1.17.1
69
+ 1.17.3
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![CircleCI](https://circleci.com/gh/pepibumur/encrypted-environment.svg?style=svg)](https://circleci.com/gh/pepibumur/encrypted-environment)
4
4
  [![codecov](https://codecov.io/gh/pepibumur/encrypted-environment/branch/master/graph/badge.svg)](https://codecov.io/gh/pepibumur/encrypted-environment)
5
+ [![Gem Version](https://badge.fury.io/rb/encrypted-environment.svg)](https://badge.fury.io/rb/encrypted-environment)
5
6
 
6
7
  Ruby utility to load encrypted variables into the environment
7
8
 
@@ -12,8 +13,8 @@ Ruby utility to load encrypted variables into the environment
12
13
  ```
13
14
  gem "encrypted-environment", git: "git@github.com:pepibumur/encrypted-environment.git"
14
15
  ```
15
- 2. Run `bundle install`
16
16
 
17
+ 2. Run `bundle install`
17
18
 
18
19
  ## Usage
19
20
 
@@ -21,7 +22,7 @@ gem "encrypted-environment", git: "git@github.com:pepibumur/encrypted-environmen
21
22
  require "encrypted/environment"
22
23
 
23
24
  Encrypted::Environment.load_from_ejson(
24
- "path/to/env.ejson",
25
+ "path/to/env.ejson",
25
26
  secrets_path: "secrets",
26
27
  private_key: "key"
27
28
  )
@@ -31,4 +32,4 @@ Encrypted::Environment.encrypt_ejson(
31
32
  secrets_path: "secrets",
32
33
  private_key: "key"
33
34
  )
34
- ```
35
+ ```
@@ -9,7 +9,6 @@ module Encrypted
9
9
  module Environment
10
10
  EnvironmentError = Class.new(StandardError)
11
11
  MissingEjson = Class.new(EnvironmentError)
12
- MissingSecret = Class.new(EnvironmentError)
13
12
 
14
13
  def self.load_from_ejson(ejson_path, secrets_path: nil, private_key: nil)
15
14
  decrypt_environment(
@@ -51,8 +50,6 @@ module Encrypted
51
50
  secrets_path = Dir.mktmpdir
52
51
  should_delete = true
53
52
  File.write(File.join(secrets_path, public_key), private_key)
54
- else
55
- raise MissingSecret
56
53
  end
57
54
 
58
55
  yield(secrets_path)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Encrypted
4
4
  module Environment
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encrypted-environment
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
  - Pedro Piñera
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-10 00:00:00.000000000 Z
11
+ date: 2019-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ejson
@@ -166,8 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubyforge_project:
170
- rubygems_version: 2.7.6
169
+ rubygems_version: 3.0.1
171
170
  signing_key:
172
171
  specification_version: 4
173
172
  summary: Load encrypted variables into the environment