dotenv 3.1.1 → 3.1.2

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: d3fca48323763736621b7583f5966beedfbb8554f9b63d8f4f7373cc7b7dd0d6
4
- data.tar.gz: 5941e3b3db44e1e0ab920032ab3a42f372fbd92d3ab71513927993b9e5a931fd
3
+ metadata.gz: 93520ca26942608e2d61ddae13f7b6d1cdd16e83e36d6cd9c770282149b2f441
4
+ data.tar.gz: bd58a9b3c59d7b6bad8327c1af4a69532ce5a4febb5a408f8a3a3874d3de6925
5
5
  SHA512:
6
- metadata.gz: 7e8adbe4289687b34576e9f4907e8a87b68696cb2f6a9126e897716acd1bb0ccc483844bba3619b3a0097569e6da92922d2a3d0062dc228088839e52977ecb3a
7
- data.tar.gz: 1398646f0512ea95134323e44058c3997c7b5943408ff81d4d218c8b0f399e1414284e0d9edcc47b785eb470533daba065cf210aa5f150f2359996d5b15618c1
6
+ metadata.gz: 178f4451234c97f3ad1d1601b62164d9f59fb52a35ad1393d3a924f541c2bc90e8732af795de3ea60acf0ade02ed81472127cebd0eac12d16648315806c58b95
7
+ data.tar.gz: 6ac43f44496d94b52ca8f2d852fa4c7bb095996604ead12a81db9118fac756a9fc89a61191f46cafcd846e8617421f7bfac62304c058def1c9d8915b1af47943
data/lib/dotenv/diff.rb CHANGED
@@ -50,7 +50,10 @@ module Dotenv
50
50
  private
51
51
 
52
52
  def snapshot
53
- ENV.to_h.freeze
53
+ # `dup` should not be required here, but some people use `stub_const` to replace ENV with
54
+ # a `Hash`. This ensures that we get a frozen copy of that instead of freezing the original.
55
+ # https://github.com/bkeepers/dotenv/issues/482
56
+ ENV.to_h.dup.freeze
54
57
  end
55
58
  end
56
59
  end
@@ -1,3 +1,3 @@
1
1
  module Dotenv
2
- VERSION = "3.1.1".freeze
2
+ VERSION = "3.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-30 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake