virtuatable 0.3.0 → 0.3.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: 664caa63ef674481d52d3e64d130b8d77d84b17d056bf67a83bdebaf8080b242
4
- data.tar.gz: 561d5e41f63903e40b6aa6475f4ca02adcc21f72e83e5d05bced1455032798d2
3
+ metadata.gz: 2be2ea052bf3c8d1ffaf704173d88d0ac222f7b119a7c18cfe15a1fc32a41a1d
4
+ data.tar.gz: a718f0c54cfe39930e107ed522f47ded83503bf92013918909ec896217c10226
5
5
  SHA512:
6
- metadata.gz: f3922bbe8ef2e8028bf038325230de839cfc72ed5ad55cb8a939ae8998cfbe76914efc15e824c7ae6088d07363502632562afc976b70417e0231e4620ecebc53
7
- data.tar.gz: 17f71d7877daf35d1451dfa2057231686751a40f4843aa48b227175a75689a7c7c7342e521c034ed364814d5427fd6080d3f96aebfec21e069eb2bebbe6914d6
6
+ metadata.gz: 8b531a94345af25b219b56ff75770bce40272a4921ed8dfb1eed073622723d331236a492c36fec383588c13602b680156a3da5fc63de5d245ff3f6591e0f71dc
7
+ data.tar.gz: dca399903d3d305560965a54fac342ac769e1c039e7eb0144c5b1ade7ab52ed5c6fcccbd515697f51d89acf0880651679f8a8121378e584e36d03dd7bd2641ee
@@ -13,7 +13,7 @@ module Virtuatable
13
13
  end
14
14
 
15
15
  def load_environment!
16
- Dotenv.load
16
+ Dotenv.load("#{mode}.env")
17
17
  end
18
18
  end
19
19
  end
@@ -10,7 +10,7 @@ module Virtuatable
10
10
  extend ActiveSupport::Concern
11
11
 
12
12
  included do
13
- declare_loader(:folders, priority: 2)
13
+ declare_loader(:folders, priority: 3)
14
14
  end
15
15
 
16
16
  def load_folders!
@@ -17,7 +17,7 @@ module Virtuatable
17
17
  attr_reader :instance
18
18
 
19
19
  included do
20
- declare_loader(:registration, priority: 3)
20
+ declare_loader(:registration, priority: 2)
21
21
  end
22
22
 
23
23
  # Registers the service in the micro-services registry (consisting in
@@ -61,8 +61,7 @@ module Virtuatable
61
61
  end
62
62
 
63
63
  def complete_path(path)
64
- service_path = builder.service.path == '/' ? '' : builder.service.path
65
- "#{service_path}#{path}"
64
+ "#{builder.service.path}#{path == '/' ? '' : path}"
66
65
  end
67
66
 
68
67
  # Returns the current builder loading the application.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Virtuatable
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtuatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec