rubypitaya 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubypitaya/app-template/Gemfile +1 -1
- data/lib/rubypitaya/app-template/Gemfile.lock +2 -2
- data/lib/rubypitaya/app-template/app/app_initializer.rb +8 -1
- data/lib/rubypitaya/core/initializer_content.rb +3 -2
- data/lib/rubypitaya/core/main.rb +3 -1
- data/lib/rubypitaya/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f281a68ed8014d040980a1e38c395a06e01a2f6e0baa299ae31e721b96e38110
|
4
|
+
data.tar.gz: 5f4d111862aeb5ca039600fc7e89c371e7bc974fcbe36ce925d67185b4f6a341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fbedb2b7e8671ebeb45abb4f59cb4555541293bb345d72a224b8f7e0b8dbb80f01ccc99d73be01859ea12c6be0a172ca998275f500fe33d81c1d351b481481e
|
7
|
+
data.tar.gz: 9abcf3ed56d184a29b673e03606a08b29c05344a07636797492aca84882bb66b690ba1e727f47eb21b703a1e2b1438c2d8f7f4867f456e29eea03167faeba86a
|
@@ -62,7 +62,7 @@ GEM
|
|
62
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
63
|
rspec-support (~> 3.8.0)
|
64
64
|
rspec-support (3.8.3)
|
65
|
-
rubypitaya (2.2.
|
65
|
+
rubypitaya (2.2.1)
|
66
66
|
activerecord (= 6.0.2)
|
67
67
|
etcdv3 (= 0.10.2)
|
68
68
|
eventmachine (= 1.2.7)
|
@@ -85,7 +85,7 @@ DEPENDENCIES
|
|
85
85
|
pry (= 0.12.2)
|
86
86
|
rake (= 10.0)
|
87
87
|
rspec (= 3.8.0)
|
88
|
-
rubypitaya (= 2.2.
|
88
|
+
rubypitaya (= 2.2.1)
|
89
89
|
|
90
90
|
BUNDLED WITH
|
91
91
|
1.17.2
|
@@ -4,7 +4,8 @@ class AppInitializer < RubyPitaya::InitializerBase
|
|
4
4
|
# parameter: initializer_content
|
5
5
|
# attributes:
|
6
6
|
# - bll
|
7
|
-
# - class: InstanceHolder
|
7
|
+
# - class: RubyPitaya::InstanceHolder
|
8
|
+
# - link: https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/instance_holder.rb
|
8
9
|
# - methods:
|
9
10
|
# - add_instance(key, instance)
|
10
11
|
# - add any instance to any key
|
@@ -12,6 +13,12 @@ class AppInitializer < RubyPitaya::InitializerBase
|
|
12
13
|
# - get instance by key
|
13
14
|
# - redis
|
14
15
|
# - link: https://github.com/redis/redis-rb/
|
16
|
+
# - config
|
17
|
+
# - class: RubyPitaya::Config
|
18
|
+
# - link: https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/config.rb
|
19
|
+
# - methods:
|
20
|
+
# - [](key)
|
21
|
+
# - get config file by config path
|
15
22
|
|
16
23
|
def run(initializer_content)
|
17
24
|
bll = initializer_content.bll
|
data/lib/rubypitaya/core/main.rb
CHANGED
@@ -67,7 +67,9 @@ module RubyPitaya
|
|
67
67
|
|
68
68
|
@bll = InstanceHolder.new
|
69
69
|
|
70
|
-
@initializer_content = InitializerContent.new(@bll,
|
70
|
+
@initializer_content = InitializerContent.new(@bll,
|
71
|
+
@redis_connector.redis,
|
72
|
+
@config)
|
71
73
|
@initializer_broadcast = InitializerBroadcast.new
|
72
74
|
@initializer_broadcast.run(@initializer_content)
|
73
75
|
|
data/lib/rubypitaya/version.rb
CHANGED