psenv-rails 0.3.0 → 0.8.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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +21 -3
  3. metadata +11 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e7ee4e46ea4b9748662434d805177e90a69de133
4
- data.tar.gz: e63e9d6b22cb00554b744763e47054f774c7ad89
2
+ SHA256:
3
+ metadata.gz: 4db7e4e17d70225b4bb76972eed38f2ba53ec906daa317966594e54be3f60a75
4
+ data.tar.gz: 15ad5fc4181b9aeddfd0711174841590995cfd3156613e41f216e2a4327003a7
5
5
  SHA512:
6
- metadata.gz: a772066ec84164eb3f3a49e74d5349f1a3b9bd8d3ca64614c9d5f5427995ca31d51d4429f156088a727fe21c7891b7d4ede834115af806dc7abdbb75c3c4f580
7
- data.tar.gz: fbaa07dc7ac0a903f9f94ba00d05cae9a9f101f6b46c9b7ce9794e8c52dbe7ae91418a33a3675dea2b22728a286fb4a580f7949cdcd86c5b358e4457dbf71d03
6
+ metadata.gz: d4ea74e6afbc990df3881064191e2a4e8a5cb26974388f1940d3eea788bc16069c8ab59860480202518c90cb9adfecc3450ee1b0bba9c2e9b7cab7dc282f29ad
7
+ data.tar.gz: 8fc047fbde7e40799944bb4e3225492ebb003b6d413740abf0b4839dc137895c7f1a266c1d9af8ecb48df297d4c2a8e6cf7f98186de683fa3f28ee2814e2abb0
data/README.md CHANGED
@@ -1,10 +1,8 @@
1
1
  # Psenv
2
2
 
3
- **Work in progress**
4
-
5
3
  Shim to load environment variables from [AWS Systems Manager Parameter Store](https://aws.amazon.com/systems-manager/features/#Parameter_Store) into ENV.
6
4
 
7
- Psenv currently heavily borrows from [Dotenv](https://github.com/bkeepers/dotenv), mainly because I use it in roughly every project so it made since for the APIs to match.
5
+ Psenv currently heavily borrows from [Dotenv](https://github.com/bkeepers/dotenv), mainly because I use it in roughly every project so it made sense for the APIs to match.
8
6
 
9
7
  ## Installation
10
8
 
@@ -23,6 +21,26 @@ And then execute:
23
21
  Set the `PARAMETER_STORE_PATH` environment variable with the AWS Parameter
24
22
  Store path that you wish to load.
25
23
 
24
+ #### Spring preloader
25
+
26
+ The Spring preloader does not detect environment variable changes as
27
+ application changes. This means that when using Spring, new or changed
28
+ environment variables from AWS SSM Parameter Store will not become available
29
+ immediately. This also applies to any change to `PARAMETER_STORE_PATH`.
30
+
31
+ There are two work-arounds. You can force Spring to restart by killing it with
32
+ `bundle exec spring stop`.
33
+
34
+ Alternatively, you can update your Spring configuration to reload variables
35
+ using Psenv after the process forks. To do this, add the following configuration
36
+ to `config/spring.rb`:
37
+
38
+ ```
39
+ Spring.after_fork do
40
+ Psenv.load
41
+ end
42
+ ```
43
+
26
44
  ### Plain Ruby
27
45
 
28
46
  Add this line to your application's Gemfile:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psenv-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Tomaka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2021-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: psenv
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0
19
+ version: 0.8.0
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.3.0
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '3.2'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '5.3'
36
+ version: '6.2'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,8 +43,8 @@ dependencies:
43
43
  version: '3.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '5.3'
47
- description:
46
+ version: '6.2'
47
+ description:
48
48
  email:
49
49
  - atomaka@gmail.com
50
50
  executables: []
@@ -58,7 +58,7 @@ homepage: https://github.com/atomaka/psenv
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}
61
- post_install_message:
61
+ post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths:
64
64
  - lib
@@ -73,9 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubyforge_project:
77
- rubygems_version: 2.6.13
78
- signing_key:
76
+ rubygems_version: 3.2.22
77
+ signing_key:
79
78
  specification_version: 4
80
79
  summary: Load AWS SSM Parameter Store values into your Rails environment.
81
80
  test_files: []