rain_catcher 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rain_catcher/railtie.rb +23 -25
- data/lib/rain_catcher/version.rb +1 -1
- 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: 6ac559fac890664dafeb48e2dbe752c44cd7fc05b55701961e2beeb31c1d38a0
|
4
|
+
data.tar.gz: 6528009f17e139af054b0cee6adf742199f4a050438e3ca45988b4e6635a2129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e0720b143e81f7a9d8c1887853342a2149fb0a7756405189f5cb2e219148953c9e0241283c2197988999b00bc17b2d38e79890ef881aa71e8f39e8100bac41
|
7
|
+
data.tar.gz: 4baa13f206149bdbcf8a768ac46781d71c29ed4be669631e0b08c57981ee9b7726dd1909e0cadfa5ba3a073292d5939c05e2fc215c9264df51b71bd24bed233f
|
data/lib/rain_catcher/railtie.rb
CHANGED
@@ -8,36 +8,34 @@ module RainCatcher
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
private
|
11
|
+
private
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
def subscriber
|
14
|
+
@subscriber ||= RainCatcher::Subscriber.new(
|
15
|
+
interval: interval,
|
16
|
+
log_level: log_level,
|
17
|
+
application_name: application_name,
|
18
|
+
environment: Rails.env.to_s
|
19
|
+
)
|
20
|
+
end
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
def notifications
|
23
|
+
ActiveSupport::Notifications
|
24
|
+
end
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
def interval
|
27
|
+
ENV.fetch('RAIN_CATCHER_LOG_INTERVAL', '30').to_i
|
28
|
+
end
|
30
29
|
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
def log_level
|
31
|
+
ENV.fetch('RAIN_CATCHER_LOG_LEVEL', 'INFO')
|
32
|
+
end
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
34
|
+
def application_name
|
35
|
+
ENV.fetch(
|
36
|
+
'RAIN_CATCHER_APPLICATION_NAME',
|
37
|
+
Rails.application.class.name.split('::').first.downcase
|
38
|
+
)
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
data/lib/rain_catcher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rain_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|