stealth 1.1.0.rc2 → 1.1.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/stealth/base.rb +12 -5
- data/lib/stealth/generators/builder/config/environment.rb +0 -2
- 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: 250f82dc387a6866ae8bc34e3fc28edca4fce6b04f51bb56511b91425a3f96cf
|
4
|
+
data.tar.gz: c2656a147103f6ff731a5d71f826addb2738077cbc76753d040e46b59be3487b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dd442c7a6e1ae50c94cb797122f2f6b9ff7392236f2aa9798ddbf7e29cb0c18189fac213acea353e3d48f3c6a71c670fbe9048b707b95e58636f9c06353c80e
|
7
|
+
data.tar.gz: 4f2d0024db5c0199587f468c86263e332aec1545568bd09a54f0105a5a0d93268cbacbdf100aa43282d0b8a2ec3c6c4cd95caa84a8ae591a9e6a2e83477c0024
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stealth (1.1.0.
|
4
|
+
stealth (1.1.0.rc2)
|
5
5
|
activesupport (~> 5.2)
|
6
6
|
multi_json (~> 1.12)
|
7
7
|
puma (~> 3.10)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
tilt (~> 2.0)
|
61
61
|
thor (0.20.3)
|
62
62
|
thread_safe (0.3.6)
|
63
|
-
tilt (2.0.
|
63
|
+
tilt (2.0.9)
|
64
64
|
tzinfo (1.2.5)
|
65
65
|
thread_safe (~> 0.1)
|
66
66
|
|
@@ -76,4 +76,4 @@ DEPENDENCIES
|
|
76
76
|
stealth!
|
77
77
|
|
78
78
|
BUNDLED WITH
|
79
|
-
1.16.
|
79
|
+
1.16.6
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ Currently, there are gems for:
|
|
33
33
|
|
34
34
|
## Docs
|
35
35
|
|
36
|
-
You can find our full docs [here](https://hellostealth.org/docs).
|
36
|
+
You can find our full docs [here](https://hellostealth.org/docs). If something is not clear in the docs, please file an issue! We consider all shortcomings in the docs as bugs.
|
37
37
|
|
38
38
|
## Thanks
|
39
39
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.0.
|
1
|
+
1.1.0.rc3
|
data/lib/stealth/base.rb
CHANGED
@@ -34,7 +34,11 @@ module Stealth
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.config
|
37
|
-
|
37
|
+
Thread.current[:configuration] ||= load_services_config
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.configuration=(config)
|
41
|
+
Thread.current[:configuration] = config
|
38
42
|
end
|
39
43
|
|
40
44
|
def self.set_config_defaults(config)
|
@@ -43,10 +47,13 @@ module Stealth
|
|
43
47
|
end
|
44
48
|
|
45
49
|
# Loads the services.yml configuration unless one has already been loaded
|
46
|
-
def self.load_services_config(services_yaml)
|
50
|
+
def self.load_services_config(services_yaml=nil)
|
47
51
|
@semaphore ||= Mutex.new
|
52
|
+
services_yaml ||= Stealth.load_services_config(
|
53
|
+
File.read(File.join(Stealth.root, 'config', 'services.yml'))
|
54
|
+
)
|
48
55
|
|
49
|
-
|
56
|
+
Thread.current[:configuration] ||= begin
|
50
57
|
@semaphore.synchronize do
|
51
58
|
services_config = YAML.load(ERB.new(services_yaml).result)
|
52
59
|
|
@@ -64,8 +71,8 @@ module Stealth
|
|
64
71
|
|
65
72
|
# Same as `load_services_config` but forces the loading even if one has
|
66
73
|
# already been loaded
|
67
|
-
def self.load_services_config!(services_yaml)
|
68
|
-
|
74
|
+
def self.load_services_config!(services_yaml=nil)
|
75
|
+
Thread.current[:configuration] = nil
|
69
76
|
load_services_config(services_yaml)
|
70
77
|
end
|
71
78
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauricio Gomes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-11-
|
12
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|