rain_catcher 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +1 -1
- data/lib/rain_catcher/subscriber.rb +7 -2
- data/lib/rain_catcher/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -171
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52687a88378b7af6e68d40a9bc38ad0d532af054960086ff119f8a1b2037d378
|
4
|
+
data.tar.gz: e144ecfdec362ce3459296e42d1a6fb37662356055950ae39fe374aa554e1c8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae61ba1e351b4b3f2fe5a63a6bb80a1f353ccdf9feb66d2345e85bd3c5259f0c187fe3bf64eb610f0cd1b3a59c7dea6e21da4c00e4f6e95bd0a3f3e49a1dbb4
|
7
|
+
data.tar.gz: 01a42a19c618206104546fa32ae216030bb7b1ccfbcc6f65b9cac5a2a6a3204242084833613d7d31c586f2fc6d5ab098e95965b2e382a15945e89df2135d94fc
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -13,14 +13,19 @@ module RainCatcher
|
|
13
13
|
def log_if_interval_elapsed
|
14
14
|
return unless elapsed?
|
15
15
|
|
16
|
-
|
16
|
+
data = queue_data
|
17
|
+
return if data.nil?
|
18
|
+
|
19
|
+
Rails.logger.send(@log_level, data.to_json)
|
17
20
|
@last_logged = Time.now.utc
|
18
21
|
end
|
19
22
|
|
20
23
|
private
|
21
24
|
|
22
25
|
def queue_data
|
23
|
-
Raindrops::
|
26
|
+
return nil unless Raindrops::Linux.respond_to?(:tcp_listener_stats)
|
27
|
+
|
28
|
+
Raindrops::Linux.tcp_listener_stats.to_h.merge(
|
24
29
|
source: 'rain_catcher',
|
25
30
|
application: @application_name,
|
26
31
|
environment: @environment
|
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.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -147,7 +147,6 @@ files:
|
|
147
147
|
- ".rspec"
|
148
148
|
- ".rubocop.yml"
|
149
149
|
- Gemfile
|
150
|
-
- Gemfile.lock
|
151
150
|
- LICENSE
|
152
151
|
- Makefile
|
153
152
|
- README.md
|
data/Gemfile.lock
DELETED
@@ -1,171 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
rain_catcher (0.1.3)
|
5
|
-
rails (~> 5.0)
|
6
|
-
raindrops (~> 0.19.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actioncable (5.2.3)
|
12
|
-
actionpack (= 5.2.3)
|
13
|
-
nio4r (~> 2.0)
|
14
|
-
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailer (5.2.3)
|
16
|
-
actionpack (= 5.2.3)
|
17
|
-
actionview (= 5.2.3)
|
18
|
-
activejob (= 5.2.3)
|
19
|
-
mail (~> 2.5, >= 2.5.4)
|
20
|
-
rails-dom-testing (~> 2.0)
|
21
|
-
actionpack (5.2.3)
|
22
|
-
actionview (= 5.2.3)
|
23
|
-
activesupport (= 5.2.3)
|
24
|
-
rack (~> 2.0)
|
25
|
-
rack-test (>= 0.6.3)
|
26
|
-
rails-dom-testing (~> 2.0)
|
27
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
-
actionview (5.2.3)
|
29
|
-
activesupport (= 5.2.3)
|
30
|
-
builder (~> 3.1)
|
31
|
-
erubi (~> 1.4)
|
32
|
-
rails-dom-testing (~> 2.0)
|
33
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
-
activejob (5.2.3)
|
35
|
-
activesupport (= 5.2.3)
|
36
|
-
globalid (>= 0.3.6)
|
37
|
-
activemodel (5.2.3)
|
38
|
-
activesupport (= 5.2.3)
|
39
|
-
activerecord (5.2.3)
|
40
|
-
activemodel (= 5.2.3)
|
41
|
-
activesupport (= 5.2.3)
|
42
|
-
arel (>= 9.0)
|
43
|
-
activestorage (5.2.3)
|
44
|
-
actionpack (= 5.2.3)
|
45
|
-
activerecord (= 5.2.3)
|
46
|
-
marcel (~> 0.3.1)
|
47
|
-
activesupport (5.2.3)
|
48
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
49
|
-
i18n (>= 0.7, < 2)
|
50
|
-
minitest (~> 5.1)
|
51
|
-
tzinfo (~> 1.1)
|
52
|
-
arel (9.0.0)
|
53
|
-
ast (2.4.0)
|
54
|
-
builder (3.2.3)
|
55
|
-
byebug (11.0.1)
|
56
|
-
concurrent-ruby (1.1.5)
|
57
|
-
crass (1.0.4)
|
58
|
-
diff-lcs (1.3)
|
59
|
-
erubi (1.8.0)
|
60
|
-
globalid (0.4.2)
|
61
|
-
activesupport (>= 4.2.0)
|
62
|
-
i18n (1.6.0)
|
63
|
-
concurrent-ruby (~> 1.0)
|
64
|
-
jaro_winkler (1.5.2)
|
65
|
-
loofah (2.2.3)
|
66
|
-
crass (~> 1.0.2)
|
67
|
-
nokogiri (>= 1.5.9)
|
68
|
-
mail (2.7.1)
|
69
|
-
mini_mime (>= 0.1.1)
|
70
|
-
marcel (0.3.3)
|
71
|
-
mimemagic (~> 0.3.2)
|
72
|
-
method_source (0.9.2)
|
73
|
-
mimemagic (0.3.3)
|
74
|
-
mini_mime (1.0.1)
|
75
|
-
mini_portile2 (2.4.0)
|
76
|
-
minitest (5.11.3)
|
77
|
-
nio4r (2.3.1)
|
78
|
-
nokogiri (1.10.3)
|
79
|
-
mini_portile2 (~> 2.4.0)
|
80
|
-
paint (2.1.0)
|
81
|
-
parallel (1.17.0)
|
82
|
-
parser (2.6.3.0)
|
83
|
-
ast (~> 2.4.0)
|
84
|
-
rack (2.0.7)
|
85
|
-
rack-test (1.1.0)
|
86
|
-
rack (>= 1.0, < 3)
|
87
|
-
rails (5.2.3)
|
88
|
-
actioncable (= 5.2.3)
|
89
|
-
actionmailer (= 5.2.3)
|
90
|
-
actionpack (= 5.2.3)
|
91
|
-
actionview (= 5.2.3)
|
92
|
-
activejob (= 5.2.3)
|
93
|
-
activemodel (= 5.2.3)
|
94
|
-
activerecord (= 5.2.3)
|
95
|
-
activestorage (= 5.2.3)
|
96
|
-
activesupport (= 5.2.3)
|
97
|
-
bundler (>= 1.3.0)
|
98
|
-
railties (= 5.2.3)
|
99
|
-
sprockets-rails (>= 2.0.0)
|
100
|
-
rails-dom-testing (2.0.3)
|
101
|
-
activesupport (>= 4.2.0)
|
102
|
-
nokogiri (>= 1.6)
|
103
|
-
rails-html-sanitizer (1.0.4)
|
104
|
-
loofah (~> 2.2, >= 2.2.2)
|
105
|
-
railties (5.2.3)
|
106
|
-
actionpack (= 5.2.3)
|
107
|
-
activesupport (= 5.2.3)
|
108
|
-
method_source
|
109
|
-
rake (>= 0.8.7)
|
110
|
-
thor (>= 0.19.0, < 2.0)
|
111
|
-
rainbow (3.0.0)
|
112
|
-
raindrops (0.19.0)
|
113
|
-
rake (10.5.0)
|
114
|
-
rspec (3.8.0)
|
115
|
-
rspec-core (~> 3.8.0)
|
116
|
-
rspec-expectations (~> 3.8.0)
|
117
|
-
rspec-mocks (~> 3.8.0)
|
118
|
-
rspec-core (3.8.0)
|
119
|
-
rspec-support (~> 3.8.0)
|
120
|
-
rspec-expectations (3.8.3)
|
121
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
122
|
-
rspec-support (~> 3.8.0)
|
123
|
-
rspec-its (1.3.0)
|
124
|
-
rspec-core (>= 3.0.0)
|
125
|
-
rspec-expectations (>= 3.0.0)
|
126
|
-
rspec-mocks (3.8.0)
|
127
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
128
|
-
rspec-support (~> 3.8.0)
|
129
|
-
rspec-support (3.8.0)
|
130
|
-
rubocop (0.69.0)
|
131
|
-
jaro_winkler (~> 1.5.1)
|
132
|
-
parallel (~> 1.10)
|
133
|
-
parser (>= 2.6)
|
134
|
-
rainbow (>= 2.2.2, < 4.0)
|
135
|
-
ruby-progressbar (~> 1.7)
|
136
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
137
|
-
ruby-progressbar (1.10.0)
|
138
|
-
sprockets (3.7.2)
|
139
|
-
concurrent-ruby (~> 1.0)
|
140
|
-
rack (> 1, < 3)
|
141
|
-
sprockets-rails (3.2.1)
|
142
|
-
actionpack (>= 4.0)
|
143
|
-
activesupport (>= 4.0)
|
144
|
-
sprockets (>= 3.0.0)
|
145
|
-
strong_versions (0.3.2)
|
146
|
-
i18n (>= 0.5.0)
|
147
|
-
paint (~> 2.0)
|
148
|
-
thor (0.20.3)
|
149
|
-
thread_safe (0.3.6)
|
150
|
-
tzinfo (1.2.5)
|
151
|
-
thread_safe (~> 0.1)
|
152
|
-
unicode-display_width (1.6.0)
|
153
|
-
websocket-driver (0.7.0)
|
154
|
-
websocket-extensions (>= 0.1.0)
|
155
|
-
websocket-extensions (0.1.3)
|
156
|
-
|
157
|
-
PLATFORMS
|
158
|
-
ruby
|
159
|
-
|
160
|
-
DEPENDENCIES
|
161
|
-
bundler (~> 2.0)
|
162
|
-
byebug (~> 11.0)
|
163
|
-
rain_catcher!
|
164
|
-
rake (~> 10.0)
|
165
|
-
rspec (~> 3.0)
|
166
|
-
rspec-its (~> 1.3)
|
167
|
-
rubocop (~> 0.69.0)
|
168
|
-
strong_versions (~> 0.3.2)
|
169
|
-
|
170
|
-
BUNDLED WITH
|
171
|
-
2.0.1
|