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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cac2c49e58ab10b2851c040543e3d0559ba2827ddb65c0194e902ddaedc7b77
4
- data.tar.gz: 75645b22886ac2e5ed3935797b53ef16a0221bee4b312f0a9cb5617619b7535e
3
+ metadata.gz: f63ff0ee5ffd8b69739caec5f9feee5c9f881e34f866de04a3f1e379ae1cb792
4
+ data.tar.gz: 51d840a02ce6e6469dc056d1992c87c450020bad0eeeb3cfe7e465f61508cd20
5
5
  SHA512:
6
- metadata.gz: 80c00c1ba35664e0239b66aef478ee585b96b6000d8931ff27bce090448e002e2daa358d1e28f2ecaf896d55235ec21a6dcf69d28a0507f6dbd24009e58b243b
7
- data.tar.gz: 1a94f305329fc701429203c17412b41406e4f14de59596d52895f68f4d7b1b4f92dca7f9212cbaa947b74949e6697acb7f146a2dfd6c353d487e90feba85c88c
6
+ metadata.gz: 887ddd31283c4a6220c2a28ce119f0f22a6b22cfbd812c73baf9957af1d21fe3dc46c3799abbcdf647572c6ee41fce197093489e96d51c9f97891f5aa52dbfa2
7
+ data.tar.gz: db5711a5e2a3c5a47532693908f67514b3c69214ab0e30c29fa52b3836fec9980c4e372df15c89de7d26fb142e39b9ab4d633da7daf29b53a6962ad563ad431f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devup (0.5.2)
4
+ devup (0.5.3)
5
5
  dotenv
6
6
  dry-cli
7
7
 
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
 
@@ -6,9 +6,7 @@ require "dotenv"
6
6
  module Devup
7
7
  class Application
8
8
  def run
9
- return if devup_disabled?
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
- begin
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 # if Rails.application
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
@@ -1,3 +1,3 @@
1
1
  module Devup
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
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.2
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: 2020-10-15 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv