dotenv 3.0.1 → 3.0.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: e57f916c7fa013b9da143c732ce59d5e37a1707f4cbe9e3ddbb8282eb4a2e977
4
- data.tar.gz: a53a753dffcd865f14d92ab7a3d531c2e0e5c9f5157fe29dd6489c767021db0b
3
+ metadata.gz: bab83f38498b4f584932febd979ddd617e4e76616b1b47ebcc59de286397583d
4
+ data.tar.gz: c7aeaec1a28c5e6241d16678ea2e02110f90afbab3a756859af6785287499181
5
5
  SHA512:
6
- metadata.gz: 9ca0b269215814e535d5d8ac4480defa76f10a13438906b8211c16feef4b603d2f9085b0376d2612b3fa5c74d636a69f6987b121f2b1099b261c7ed7cf6519aa
7
- data.tar.gz: f1c5569eedf88df8c1c62a611eedbc57f4bb6ab464ef3aed432efc902aca041ee74c956799271ae8dda78793085c32c3c8626bf303c9bbf13146e12d19f87cad
6
+ metadata.gz: 1b5237c6135b36730bd5527e4afde96eae8fd3088b3375c8e0e467bc25130bbeb1916ec8b8e0134821c2eca517649b1105e44cdb298753e4b6762edc794e5fbb
7
+ data.tar.gz: 60e75a879959e13210d02096ddcc477ce5f133069be8584ea8995694dc4192ba9d0fd7e97bf5f73ba6d227d4ee016a80b465a08b6080baca9225d5f33a8a1730
data/lib/dotenv/rails.rb CHANGED
@@ -24,7 +24,7 @@ end
24
24
  module Dotenv
25
25
  # Rails integration for using Dotenv to load ENV variables from a file
26
26
  class Rails < ::Rails::Railtie
27
- delegate :files=, :overwrite, :overwrite=, :autorestore, :autorestore=, :logger, :logger=, to: "config.dotenv"
27
+ delegate :files, :files=, :overwrite, :overwrite=, :autorestore, :autorestore=, :logger, :logger=, to: "config.dotenv"
28
28
 
29
29
  def initialize
30
30
  super()
@@ -42,22 +42,17 @@ module Dotenv
42
42
  )
43
43
  end
44
44
 
45
- # The list of files to load, joined with Rails.root
46
- def files
47
- config.dotenv.files.map { |file| root.join(file) }
48
- end
49
-
50
45
  # Public: Load dotenv
51
46
  #
52
47
  # This will get called during the `before_configuration` callback, but you
53
48
  # can manually call `Dotenv::Rails.load` if you needed it sooner.
54
49
  def load
55
- Dotenv.load(*files, overwrite: overwrite)
50
+ Dotenv.load(*files.map { |file| root.join(file).to_s }, overwrite: overwrite)
56
51
  end
57
52
 
58
53
  def overload
59
54
  deprecator.warn("Dotenv::Rails.overload is deprecated. Set `Dotenv::Rails.overwrite = true` and call Dotenv::Rails.load instead.")
60
- Dotenv.load(*files, overwrite: true)
55
+ Dotenv.load(*files.map { |file| root.join(file).to_s }, overwrite: true)
61
56
  end
62
57
 
63
58
  # Internal: `Rails.root` is nil in Rails 4.1 before the application is
@@ -1,3 +1,3 @@
1
1
  module Dotenv
2
- VERSION = "3.0.1".freeze
2
+ VERSION = "3.0.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.0.1
4
+ version: 3.0.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-02-14 00:00:00.000000000 Z
11
+ date: 2024-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake