roo_on_rails 1.16.1 → 1.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/roo_on_rails/logger.rb +8 -1
- data/lib/roo_on_rails/railties/database.rb +3 -1
- data/lib/roo_on_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af8837a7d4c19932c3d43da96808038d249423f
|
4
|
+
data.tar.gz: f900aacc150cb2476311ae68b76ad5fc85403304
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e86aff9a3a775ff85ad9f772fd97fbd22120e2849913e28038611f8396131cc90ac9edb81deb58d0df67c6671f4784194a737f8333acb75880db54b01b4eed45
|
7
|
+
data.tar.gz: b0318f71146d438f300be2a3483f2cb620f23977622b573d9ab052d0df260e2b06c426a915657d989199ac452590b4109d9644da0369fee0c2a8c373553d4dce
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# HEAD
|
2
2
|
|
3
|
-
|
3
|
+
_Your awesome improvements here!_
|
4
|
+
|
5
|
+
# v1.16.2 (2017-12-15)
|
6
|
+
|
7
|
+
Bug fix:
|
8
|
+
|
9
|
+
- It's possible to set an invalid log level and crash on boot (#84)
|
10
|
+
- Do not disable ActiveRecord connection reaping by default; set default behaviour to Rails' default behaviour. (#85)
|
4
11
|
|
5
12
|
# v1.16.1 (2017-11-20)
|
6
13
|
|
data/lib/roo_on_rails/logger.rb
CHANGED
@@ -61,11 +61,18 @@ module RooOnRails
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def set_log_level
|
64
|
-
|
64
|
+
selected_level = ::Logger::Severity.constants.detect do |log_level|
|
65
|
+
log_level == log_level_setting.upcase.to_sym
|
66
|
+
end
|
67
|
+
self.level = ::Logger::Severity.const_get(selected_level || :DEBUG)
|
65
68
|
end
|
66
69
|
|
67
70
|
private
|
68
71
|
|
72
|
+
def log_level_setting
|
73
|
+
ENV.fetch('LOG_LEVEL', 'DEBUG')
|
74
|
+
end
|
75
|
+
|
69
76
|
class Proxy < SimpleDelegator
|
70
77
|
def initialize(logger, context)
|
71
78
|
@context = context
|
@@ -9,7 +9,9 @@ module RooOnRails
|
|
9
9
|
config = ActiveRecord::Base.configurations[Rails.env]
|
10
10
|
config['variables'] ||= {}
|
11
11
|
config['variables']['statement_timeout'] = ENV.fetch('DATABASE_STATEMENT_TIMEOUT', 200)
|
12
|
-
|
12
|
+
if ENV.key?('DATABASE_REAPING_FREQUENCY')
|
13
|
+
config['reaping_frequency'] = ENV['DATABASE_REAPING_FREQUENCY']
|
14
|
+
end
|
13
15
|
|
14
16
|
ActiveRecord::Base.establish_connection
|
15
17
|
end
|
data/lib/roo_on_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roo_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv-rails
|