rubypitaya 3.3.5 → 3.3.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 534b8bf854794eab64b53a7f550a18a8bc60b0f13b41ba8f75dba4e58506d319
|
4
|
+
data.tar.gz: b76c9e552bdc04d4bdcfabafa94eeeeda84fca483dec6df5c00cbd74c43e0816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0420eda040f59d7d06913e3352faea670f19536d3435c9e3c2094986ec4bd8b81f2272cd1845e05791695ac610713e652a3985b2e62147b1b66d57e19bed220f
|
7
|
+
data.tar.gz: f0f2da6df0dbd54511b0eab8eacbcd98bd07a03a2e285bbd1cd1fb1d8692f71866252f8000a04af5937dfeee25aeacb6e4c834eac14a99115e6a9c64799ccd12
|
@@ -103,7 +103,7 @@ GEM
|
|
103
103
|
rspec-support (~> 3.10.0)
|
104
104
|
rspec-support (3.10.3)
|
105
105
|
ruby2_keywords (0.0.5)
|
106
|
-
rubypitaya (3.3.
|
106
|
+
rubypitaya (3.3.6)
|
107
107
|
activerecord (= 6.1.4.1)
|
108
108
|
etcdv3 (= 0.11.4)
|
109
109
|
google-protobuf (= 3.18.1)
|
@@ -143,7 +143,7 @@ DEPENDENCIES
|
|
143
143
|
listen (= 3.7.0)
|
144
144
|
pry (= 0.14.1)
|
145
145
|
rspec (= 3.10.0)
|
146
|
-
rubypitaya (= 3.3.
|
146
|
+
rubypitaya (= 3.3.6)
|
147
147
|
sinatra-contrib (= 2.1.0)
|
148
148
|
|
149
149
|
BUNDLED WITH
|
@@ -48,7 +48,7 @@ module RubyPitaya
|
|
48
48
|
class_name = klass.to_s.downcase
|
49
49
|
is_cheat_class = class_name.end_with?('cheat') || class_name.end_with?('cheats')
|
50
50
|
|
51
|
-
klass != HandlerBase && (is_cheats_enabled || !is_cheat_class)
|
51
|
+
klass != HandlerBase && (@is_cheats_enabled || !is_cheat_class)
|
52
52
|
end
|
53
53
|
|
54
54
|
@handlers = handler_classes.map { |handler_class| handler_class.new }
|
data/lib/rubypitaya/core/main.rb
CHANGED
@@ -32,6 +32,7 @@ module RubyPitaya
|
|
32
32
|
def initialize
|
33
33
|
@setup = Setup.new
|
34
34
|
@environment_name = @setup.fetch('rubypitaya.server.environment', 'development')
|
35
|
+
@is_cheats_enabled = @setup.fetch('rubypitaya.server.cheats', false)
|
35
36
|
@is_development_environment = @environment_name == 'development'
|
36
37
|
@setup.auto_reload if @is_development_environment
|
37
38
|
|
@@ -42,7 +43,7 @@ module RubyPitaya
|
|
42
43
|
end
|
43
44
|
|
44
45
|
@application_files_importer = ApplicationFilesImporter.new
|
45
|
-
@application_files_importer.import
|
46
|
+
@application_files_importer.import(@is_cheats_enabled)
|
46
47
|
@application_files_importer.auto_reload if @is_development_environment
|
47
48
|
|
48
49
|
@server_name = @setup['rubypitaya.server.name']
|
@@ -94,7 +95,6 @@ module RubyPitaya
|
|
94
95
|
@initializer_broadcast = InitializerBroadcast.new
|
95
96
|
@initializer_broadcast.run(@initializer_content)
|
96
97
|
|
97
|
-
@is_cheats_enabled = @setup.fetch('rubypitaya.server.cheats', false)
|
98
98
|
@handler_router = HandlerRouter.new(@is_cheats_enabled)
|
99
99
|
|
100
100
|
run_http
|
data/lib/rubypitaya/version.rb
CHANGED