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: 8df3d82ce77fdcc4242708fa55141b36e5812baa3ab435609d8495f3bac0d745
4
- data.tar.gz: db92a024f37405e3235fc466e2c0e84068762429ba40d7d3cc5d29f2257e67f2
3
+ metadata.gz: 534b8bf854794eab64b53a7f550a18a8bc60b0f13b41ba8f75dba4e58506d319
4
+ data.tar.gz: b76c9e552bdc04d4bdcfabafa94eeeeda84fca483dec6df5c00cbd74c43e0816
5
5
  SHA512:
6
- metadata.gz: 4370cfa9d7677153b09ad5fe5f356fb43d86c56cbcf39ca94c7bed66cf3624470ab6f5eaaf1d7f814d801cef7eaa79ffacbabbdf2bfef574df17566df8c7f35f
7
- data.tar.gz: 63b3c54bfb906c6f89ed2c866b974a326676674a2d3decce9fc1c9147f6acf73f98cde7188f1927ec07d12e0d14b18b65eb6920d0d34eb382fe86a844d276efb
6
+ metadata.gz: 0420eda040f59d7d06913e3352faea670f19536d3435c9e3c2094986ec4bd8b81f2272cd1845e05791695ac610713e652a3985b2e62147b1b66d57e19bed220f
7
+ data.tar.gz: f0f2da6df0dbd54511b0eab8eacbcd98bd07a03a2e285bbd1cd1fb1d8692f71866252f8000a04af5937dfeee25aeacb6e4c834eac14a99115e6a9c64799ccd12
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '3.3.5'
3
+ gem 'rubypitaya', '3.3.6'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.14.1'
@@ -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.5)
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.5)
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 }
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RubyPitaya
2
- VERSION = '3.3.5'
2
+ VERSION = '3.3.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypitaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.5
4
+ version: 3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti