rain_catcher 0.2.0 → 0.2.3

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: 52687a88378b7af6e68d40a9bc38ad0d532af054960086ff119f8a1b2037d378
4
- data.tar.gz: e144ecfdec362ce3459296e42d1a6fb37662356055950ae39fe374aa554e1c8e
3
+ metadata.gz: 1a0e09b151bd21128f716156e7c055bc9c7b7d7266f161d40d8890b60e918d1f
4
+ data.tar.gz: 1871c1126f3d5a15d3dcc486f5ddb0260a5e069a7f8ef2f8d43de642137f3acb
5
5
  SHA512:
6
- metadata.gz: aae61ba1e351b4b3f2fe5a63a6bb80a1f353ccdf9feb66d2345e85bd3c5259f0c187fe3bf64eb610f0cd1b3a59c7dea6e21da4c00e4f6e95bd0a3f3e49a1dbb4
7
- data.tar.gz: 01a42a19c618206104546fa32ae216030bb7b1ccfbcc6f65b9cac5a2a6a3204242084833613d7d31c586f2fc6d5ab098e95965b2e382a15945e89df2135d94fc
6
+ metadata.gz: d359150fdd39cf43f2ea2aac418976568c30b3cbcd17359ac26e87bbf7d294d8ccb5ddc6d518d636a3723646164507061d71951dbdf822bbcc6f608133737f27
7
+ data.tar.gz: 0cfe74f3568d35dcf7bcb12bfa901a1b1dd556830f7e10edfbe5b016a16260eb7396a07c668358085de2e924b044f40a69d84190f16bd6aa3fbe457460a608a7
data/.gitignore CHANGED
@@ -16,5 +16,3 @@
16
16
 
17
17
  *.gem
18
18
  .byebug_history
19
-
20
- Gemfile.lock
data/.rubocop.yml CHANGED
@@ -8,3 +8,4 @@ Metrics/BlockLength:
8
8
  AllCops:
9
9
  Exclude:
10
10
  - 'bin/**/*'
11
+ NewCops: enable
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.9
@@ -0,0 +1,2 @@
1
+ ignore:
2
+ - rails
data/Gemfile.lock ADDED
@@ -0,0 +1,203 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rain_catcher (0.2.3)
5
+ rails (>= 4.0)
6
+ raindrops (~> 0.19.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (6.1.4.7)
12
+ actionpack (= 6.1.4.7)
13
+ activesupport (= 6.1.4.7)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailbox (6.1.4.7)
17
+ actionpack (= 6.1.4.7)
18
+ activejob (= 6.1.4.7)
19
+ activerecord (= 6.1.4.7)
20
+ activestorage (= 6.1.4.7)
21
+ activesupport (= 6.1.4.7)
22
+ mail (>= 2.7.1)
23
+ actionmailer (6.1.4.7)
24
+ actionpack (= 6.1.4.7)
25
+ actionview (= 6.1.4.7)
26
+ activejob (= 6.1.4.7)
27
+ activesupport (= 6.1.4.7)
28
+ mail (~> 2.5, >= 2.5.4)
29
+ rails-dom-testing (~> 2.0)
30
+ actionpack (6.1.4.7)
31
+ actionview (= 6.1.4.7)
32
+ activesupport (= 6.1.4.7)
33
+ rack (~> 2.0, >= 2.0.9)
34
+ rack-test (>= 0.6.3)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
+ actiontext (6.1.4.7)
38
+ actionpack (= 6.1.4.7)
39
+ activerecord (= 6.1.4.7)
40
+ activestorage (= 6.1.4.7)
41
+ activesupport (= 6.1.4.7)
42
+ nokogiri (>= 1.8.5)
43
+ actionview (6.1.4.7)
44
+ activesupport (= 6.1.4.7)
45
+ builder (~> 3.1)
46
+ erubi (~> 1.4)
47
+ rails-dom-testing (~> 2.0)
48
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
+ activejob (6.1.4.7)
50
+ activesupport (= 6.1.4.7)
51
+ globalid (>= 0.3.6)
52
+ activemodel (6.1.4.7)
53
+ activesupport (= 6.1.4.7)
54
+ activerecord (6.1.4.7)
55
+ activemodel (= 6.1.4.7)
56
+ activesupport (= 6.1.4.7)
57
+ activestorage (6.1.4.7)
58
+ actionpack (= 6.1.4.7)
59
+ activejob (= 6.1.4.7)
60
+ activerecord (= 6.1.4.7)
61
+ activesupport (= 6.1.4.7)
62
+ marcel (~> 1.0.0)
63
+ mini_mime (>= 1.1.0)
64
+ activesupport (6.1.4.7)
65
+ concurrent-ruby (~> 1.0, >= 1.0.2)
66
+ i18n (>= 1.6, < 2)
67
+ minitest (>= 5.1)
68
+ tzinfo (~> 2.0)
69
+ zeitwerk (~> 2.3)
70
+ ast (2.4.2)
71
+ builder (3.2.4)
72
+ concurrent-ruby (1.1.10)
73
+ crass (1.0.6)
74
+ devpack (0.4.0)
75
+ diff-lcs (1.5.0)
76
+ erubi (1.10.0)
77
+ globalid (1.0.0)
78
+ activesupport (>= 5.0)
79
+ i18n (1.10.0)
80
+ concurrent-ruby (~> 1.0)
81
+ loofah (2.16.0)
82
+ crass (~> 1.0.2)
83
+ nokogiri (>= 1.5.9)
84
+ mail (2.7.1)
85
+ mini_mime (>= 0.1.1)
86
+ marcel (1.0.2)
87
+ method_source (1.0.0)
88
+ mini_mime (1.1.2)
89
+ minitest (5.15.0)
90
+ nio4r (2.5.8)
91
+ nokogiri (1.12.5-x86_64-linux)
92
+ racc (~> 1.4)
93
+ paint (2.2.1)
94
+ parallel (1.22.1)
95
+ parser (3.1.2.0)
96
+ ast (~> 2.4.1)
97
+ racc (1.6.0)
98
+ rack (2.2.3)
99
+ rack-test (1.1.0)
100
+ rack (>= 1.0, < 3)
101
+ rails (6.1.4.7)
102
+ actioncable (= 6.1.4.7)
103
+ actionmailbox (= 6.1.4.7)
104
+ actionmailer (= 6.1.4.7)
105
+ actionpack (= 6.1.4.7)
106
+ actiontext (= 6.1.4.7)
107
+ actionview (= 6.1.4.7)
108
+ activejob (= 6.1.4.7)
109
+ activemodel (= 6.1.4.7)
110
+ activerecord (= 6.1.4.7)
111
+ activestorage (= 6.1.4.7)
112
+ activesupport (= 6.1.4.7)
113
+ bundler (>= 1.15.0)
114
+ railties (= 6.1.4.7)
115
+ sprockets-rails (>= 2.0.0)
116
+ rails-dom-testing (2.0.3)
117
+ activesupport (>= 4.2.0)
118
+ nokogiri (>= 1.6)
119
+ rails-html-sanitizer (1.4.2)
120
+ loofah (~> 2.3)
121
+ railties (6.1.4.7)
122
+ actionpack (= 6.1.4.7)
123
+ activesupport (= 6.1.4.7)
124
+ method_source
125
+ rake (>= 0.13)
126
+ thor (~> 1.0)
127
+ rainbow (3.1.1)
128
+ raindrops (0.19.2)
129
+ rake (10.5.0)
130
+ regexp_parser (2.3.0)
131
+ rexml (3.2.5)
132
+ rspec (3.11.0)
133
+ rspec-core (~> 3.11.0)
134
+ rspec-expectations (~> 3.11.0)
135
+ rspec-mocks (~> 3.11.0)
136
+ rspec-core (3.11.0)
137
+ rspec-support (~> 3.11.0)
138
+ rspec-expectations (3.11.0)
139
+ diff-lcs (>= 1.2.0, < 2.0)
140
+ rspec-support (~> 3.11.0)
141
+ rspec-its (1.3.0)
142
+ rspec-core (>= 3.0.0)
143
+ rspec-expectations (>= 3.0.0)
144
+ rspec-mocks (3.11.1)
145
+ diff-lcs (>= 1.2.0, < 2.0)
146
+ rspec-support (~> 3.11.0)
147
+ rspec-support (3.11.0)
148
+ rubocop (1.27.0)
149
+ parallel (~> 1.10)
150
+ parser (>= 3.1.0.0)
151
+ rainbow (>= 2.2.2, < 4.0)
152
+ regexp_parser (>= 1.8, < 3.0)
153
+ rexml
154
+ rubocop-ast (>= 1.16.0, < 2.0)
155
+ ruby-progressbar (~> 1.7)
156
+ unicode-display_width (>= 1.4.0, < 3.0)
157
+ rubocop-ast (1.17.0)
158
+ parser (>= 3.1.1.0)
159
+ rubocop-performance (1.13.3)
160
+ rubocop (>= 1.7.0, < 2.0)
161
+ rubocop-ast (>= 0.4.0)
162
+ rubocop-rake (0.6.0)
163
+ rubocop (~> 1.0)
164
+ rubocop-rspec (2.9.0)
165
+ rubocop (~> 1.19)
166
+ ruby-progressbar (1.11.0)
167
+ sprockets (4.0.3)
168
+ concurrent-ruby (~> 1.0)
169
+ rack (> 1, < 3)
170
+ sprockets-rails (3.4.2)
171
+ actionpack (>= 5.2)
172
+ activesupport (>= 5.2)
173
+ sprockets (>= 3.0.0)
174
+ strong_versions (0.4.5)
175
+ i18n (>= 0.5)
176
+ paint (~> 2.0)
177
+ thor (1.2.1)
178
+ tzinfo (2.0.4)
179
+ concurrent-ruby (~> 1.0)
180
+ unicode-display_width (2.1.0)
181
+ websocket-driver (0.7.5)
182
+ websocket-extensions (>= 0.1.0)
183
+ websocket-extensions (0.1.5)
184
+ zeitwerk (2.5.4)
185
+
186
+ PLATFORMS
187
+ x86_64-linux
188
+
189
+ DEPENDENCIES
190
+ bundler (~> 2.0)
191
+ devpack (~> 0.4.0)
192
+ rain_catcher!
193
+ rake (~> 10.0)
194
+ rspec (~> 3.0)
195
+ rspec-its (~> 1.3)
196
+ rubocop (~> 1.27)
197
+ rubocop-performance (~> 1.13)
198
+ rubocop-rake (~> 0.6.0)
199
+ rubocop-rspec (~> 2.9)
200
+ strong_versions (~> 0.4.5)
201
+
202
+ BUNDLED WITH
203
+ 2.3.10
data/README.md CHANGED
@@ -7,7 +7,7 @@ _RainCatcher_ utilises the [raindrops](https://bogomips.org/raindrops/) statisti
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'rain_catcher', '~> 0.2.0'
10
+ gem 'rain_catcher', '~> 0.2.3'
11
11
  ```
12
12
 
13
13
  And rebuild your bundle:
@@ -23,9 +23,13 @@ module RainCatcher
23
23
  private
24
24
 
25
25
  def queue_data
26
+ return nil unless defined?(Unicorn)
26
27
  return nil unless Raindrops::Linux.respond_to?(:tcp_listener_stats)
27
28
 
28
- Raindrops::Linux.tcp_listener_stats.to_h.merge(
29
+ listener = Unicorn.listener_names.first
30
+ return nil if listener.nil?
31
+
32
+ Raindrops::Linux.tcp_listener_stats[listener]&.to_h&.merge(
29
33
  source: 'rain_catcher',
30
34
  application: @application_name,
31
35
  environment: @environment
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RainCatcher
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.3'
5
5
  end
data/rain_catcher.gemspec CHANGED
@@ -4,6 +4,7 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'rain_catcher/version'
6
6
 
7
+ # rubocop:disable Metrics/BlockLength
7
8
  Gem::Specification.new do |spec|
8
9
  spec.name = 'rain_catcher'
9
10
  spec.version = RainCatcher::VERSION
@@ -23,15 +24,21 @@ Gem::Specification.new do |spec|
23
24
  spec.bindir = 'exe'
24
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
26
  spec.require_paths = ['lib']
27
+ spec.required_ruby_version = '>= 2.5.9'
26
28
 
27
- spec.add_runtime_dependency 'rails', '~> 5.0'
29
+ spec.add_runtime_dependency 'rails', '>= 4.0'
28
30
  spec.add_runtime_dependency 'raindrops', '~> 0.19.0'
29
31
 
30
32
  spec.add_development_dependency 'bundler', '~> 2.0'
31
- spec.add_development_dependency 'byebug', '~> 11.0'
33
+ spec.add_development_dependency 'devpack', '~> 0.4.0'
32
34
  spec.add_development_dependency 'rake', '~> 10.0'
33
35
  spec.add_development_dependency 'rspec', '~> 3.0'
34
36
  spec.add_development_dependency 'rspec-its', '~> 1.3'
35
- spec.add_development_dependency 'rubocop', '~> 0.69.0'
36
- spec.add_development_dependency 'strong_versions', '~> 0.3.2'
37
+ spec.add_development_dependency 'rubocop', '~> 1.27'
38
+ spec.add_development_dependency 'rubocop-performance', '~> 1.13'
39
+ spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
40
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.9'
41
+ spec.add_development_dependency 'strong_versions', '~> 0.4.5'
42
+ spec.metadata['rubygems_mfa_required'] = 'true'
37
43
  end
44
+ # rubocop:enable Metrics/BlockLength
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rain_catcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-12 00:00:00.000000000 Z
11
+ date: 2022-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: raindrops
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: byebug
56
+ name: devpack
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '11.0'
61
+ version: 0.4.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '11.0'
68
+ version: 0.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,70 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.69.0
117
+ version: '1.27'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.27'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-performance
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.13'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.13'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.6.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.6.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.9'
118
160
  type: :development
119
161
  prerelease: false
120
162
  version_requirements: !ruby/object:Gem::Requirement
121
163
  requirements:
122
164
  - - "~>"
123
165
  - !ruby/object:Gem::Version
124
- version: 0.69.0
166
+ version: '2.9'
125
167
  - !ruby/object:Gem::Dependency
126
168
  name: strong_versions
127
169
  requirement: !ruby/object:Gem::Requirement
128
170
  requirements:
129
171
  - - "~>"
130
172
  - !ruby/object:Gem::Version
131
- version: 0.3.2
173
+ version: 0.4.5
132
174
  type: :development
133
175
  prerelease: false
134
176
  version_requirements: !ruby/object:Gem::Requirement
135
177
  requirements:
136
178
  - - "~>"
137
179
  - !ruby/object:Gem::Version
138
- version: 0.3.2
180
+ version: 0.4.5
139
181
  description: Rails application statistic logging with Raindrops
140
182
  email:
141
183
  - robertanthonyfarrell@gmail.com
@@ -146,7 +188,10 @@ files:
146
188
  - ".gitignore"
147
189
  - ".rspec"
148
190
  - ".rubocop.yml"
191
+ - ".ruby-version"
192
+ - ".strong_versions.yml"
149
193
  - Gemfile
194
+ - Gemfile.lock
150
195
  - LICENSE
151
196
  - Makefile
152
197
  - README.md
@@ -161,8 +206,9 @@ files:
161
206
  homepage: https://github.com/bobf/rain_catcher
162
207
  licenses:
163
208
  - MIT
164
- metadata: {}
165
- post_install_message:
209
+ metadata:
210
+ rubygems_mfa_required: 'true'
211
+ post_install_message:
166
212
  rdoc_options: []
167
213
  require_paths:
168
214
  - lib
@@ -170,16 +216,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
216
  requirements:
171
217
  - - ">="
172
218
  - !ruby/object:Gem::Version
173
- version: '0'
219
+ version: 2.5.9
174
220
  required_rubygems_version: !ruby/object:Gem::Requirement
175
221
  requirements:
176
222
  - - ">="
177
223
  - !ruby/object:Gem::Version
178
224
  version: '0'
179
225
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.7.6
182
- signing_key:
226
+ rubygems_version: 3.2.3
227
+ signing_key:
183
228
  specification_version: 4
184
229
  summary: Automatically log Raindrops statistics
185
230
  test_files: []