devup 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/devup/application.rb +3 -7
- data/lib/devup/dotenv_load_list.rb +4 -0
- data/lib/devup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f63ff0ee5ffd8b69739caec5f9feee5c9f881e34f866de04a3f1e379ae1cb792
|
4
|
+
data.tar.gz: 51d840a02ce6e6469dc056d1992c87c450020bad0eeeb3cfe7e465f61508cd20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 887ddd31283c4a6220c2a28ce119f0f22a6b22cfbd812c73baf9957af1d21fe3dc46c3799abbcdf647572c6ee41fce197093489e96d51c9f97891f5aa52dbfa2
|
7
|
+
data.tar.gz: db5711a5e2a3c5a47532693908f67514b3c69214ab0e30c29fa52b3836fec9980c4e372df15c89de7d26fb142e39b9ab4d633da7daf29b53a6962ad563ad431f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -110,7 +110,7 @@ Now you can run app
|
|
110
110
|
|
111
111
|
### Disable **DevUp!**
|
112
112
|
|
113
|
-
If you don't want devup to setup your dev services, you can disable it by using `DEVUP_ENABLED=false`. Just add it to .env.local file.
|
113
|
+
If you don't want devup to setup your dev services, you can disable it by using `DEVUP_ENABLED=false`. Just add it to .env.test.local file.
|
114
114
|
|
115
115
|
### Override some service
|
116
116
|
|
data/lib/devup/application.rb
CHANGED
@@ -6,9 +6,7 @@ require "dotenv"
|
|
6
6
|
module Devup
|
7
7
|
class Application
|
8
8
|
def run
|
9
|
-
|
10
|
-
|
11
|
-
boot
|
9
|
+
boot unless devup_disabled?
|
12
10
|
load_env
|
13
11
|
end
|
14
12
|
|
@@ -32,14 +30,12 @@ module Devup
|
|
32
30
|
end
|
33
31
|
|
34
32
|
def load_env
|
35
|
-
|
33
|
+
if defined? ActiveSupport::Notifications
|
36
34
|
Dotenv.instrumenter = ActiveSupport::Notifications
|
37
35
|
ActiveSupport::Notifications.subscribe(/^dotenv/) do |*args|
|
38
36
|
event = ActiveSupport::Notifications::Event.new(*args)
|
39
|
-
Spring.watch event.payload[:env].filename
|
37
|
+
Spring.watch event.payload[:env].filename if defined? Spring
|
40
38
|
end
|
41
|
-
rescue LoadError, ArgumentError, NameError
|
42
|
-
# Spring is not available
|
43
39
|
end
|
44
40
|
|
45
41
|
Dotenv.load(*dotenv_list.to_a)
|
@@ -8,7 +8,11 @@ module Devup
|
|
8
8
|
list = []
|
9
9
|
|
10
10
|
list << ".env.#{@env}.local" if env_defined?
|
11
|
+
|
12
|
+
# .env.local is ignored by dotenv-rails too. So behaviour is the same.
|
13
|
+
# https://github.com/bkeepers/dotenv/blob/08f22148fb14019dce1e9b1d8ac1a74788e49e1b/lib/dotenv/rails.rb#L69
|
11
14
|
list << ".env.local" unless test?
|
15
|
+
|
12
16
|
list << ".env.services"
|
13
17
|
list << ".env.#{@env}" if env_defined?
|
14
18
|
list << ".env"
|
data/lib/devup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei O. Udalov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|