dotenv-beefy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d150aabf58a2f03387a7f9cafcfa2591f4f3bed6e0a28928d61242895719d11
4
- data.tar.gz: dafa6ccc01f84a996c64f0748cd78175bc4ef43045e371c16d8eb0e57a18cacf
3
+ metadata.gz: 5a4c8b463884a8ad3e870e16e30f258433e1c74d798b23b17af69a2c7af3287a
4
+ data.tar.gz: 1575ec043960938399ef443a2219af3ac40794fb6ed90125cb2f3c2a1c1b967d
5
5
  SHA512:
6
- metadata.gz: 54fe1c20a217a81ac77cfdef148d3483413caaf65108ebe39d274dac13c4e04305f5aa156440c594224444d08168ee0faf460ac4e5355bb9f9a5cc8c2679035f
7
- data.tar.gz: 4ff7e184b2f5b346a6d61400061ac9e003513914d2a83fd7eab2ddd21ded8743361f40a0d87a447a379987b217c216f4dd1b64d73f0505d2b70dc1f7f6ff3ff9
6
+ metadata.gz: b217caf86240a9e053a80483255ff11a74ec54661145a4b055cc6f6d0f6d0519b3e502dc7acdd0d030ee27d3d44c450d5057381b808175801c017087c827d3dc
7
+ data.tar.gz: 67a3b50aba25540c6bf850a6c9b3de0ca41861e2cc33ece153eb7f34f2ff23703b4a91842d576409738230cdd7cae1843beab835b3c3f20892ede357b3932d7d
@@ -1,6 +1,6 @@
1
1
  name: Run RSpec tests
2
2
  on: [push, pull_request]
3
- jobs:
3
+ jobs:
4
4
  test:
5
5
  runs-on: ubuntu-latest
6
6
  env:
@@ -8,10 +8,10 @@ jobs:
8
8
  steps:
9
9
  - uses: actions/checkout@v2
10
10
  - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1.81.0
11
+ uses: ruby/setup-ruby@v1.190.0
12
12
  with:
13
13
  # Not needed with a .ruby-version file
14
- ruby-version: 2.7
14
+ ruby-version: 3.3.0
15
15
  bundler-cache: true
16
16
  - name: Run tests
17
17
  run: |
@@ -3,7 +3,7 @@ require 'rbconfig'
3
3
 
4
4
  module Dotenv
5
5
  module Beefy
6
- class Railtie < Rails::Railtie
6
+ class Railtie < ::Rails::Railtie
7
7
  config.before_configuration { load_environments }
8
8
 
9
9
  # Load environment dotfiles in the following order (e.g. if in "test" environment on "darwin")
@@ -13,27 +13,27 @@ module Dotenv
13
13
  # 4. .env.test
14
14
  # 5. .env.darwin
15
15
  # 6. .env
16
- #
16
+ #
17
17
  # The order matters, because the files loaded first will "lock in" the value for that ENV var.
18
18
  # Dotenv.load memoizes each ENV value, and if the value is set, it cannot be updated later.
19
19
  # If you want to update ENV values as new values come in, you need to use Dotenv.overload(*files)
20
20
  def load_environments
21
21
  files = []
22
-
23
- environments.each do |env|
22
+
23
+ environments.each do |env|
24
24
  files << ".env.#{env}.local"
25
25
  end
26
26
 
27
27
  # This is a dotenv-rails convention to ignore `.env.local` in a test environment
28
28
  # @see https://github.com/bkeepers/dotenv/blob/c237d6d6291c898d8affb290b510c7aac49aed71/lib/dotenv/rails.rb#L66-L73
29
- files << '.env.local' unless Rails.env.test?
30
-
31
- environments.each do |env|
29
+ files << '.env.local' unless Rails.env.test?
30
+
31
+ environments.each do |env|
32
32
  files << ".env.#{env}"
33
33
  end
34
34
 
35
35
  files << '.env'
36
-
36
+
37
37
  Dotenv.load(*files)
38
38
  end
39
39
 
@@ -1,5 +1,5 @@
1
1
  module Dotenv
2
2
  module Beefy
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv-beefy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BetterUp Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-20 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.2.25
124
+ rubygems_version: 3.5.1
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Load all the application environments