ndr_stats 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07aa65a15f2fdb87c420ce417026f05f302454ae208e61e46b45918a3d5d1c85
4
- data.tar.gz: 87c64140b5c6a5cd5aafad38bfa855da85c92ece1593020c85f7e7c19b41a8ba
3
+ metadata.gz: 4fa0e2c903876814f96616dc9d0fd9662d11642748464f4a3fd8f92bd2022e10
4
+ data.tar.gz: c1f7a14cbf21c520157b9471a144dec8e9c45488e414925ec50e3440bfd9d965
5
5
  SHA512:
6
- metadata.gz: dec94d62f9e9486f628a12a541c613a46ecf39e407f76b6e28a5ac99c83adb299ac5f9b4f6baf2b7f423eb527792e1f08c6429735725efac5e1e3bc985c95f7d
7
- data.tar.gz: bbefe813dd0e53227391560b4851e13587590038c1ad06797d389fde45e3e4b2fb9f28bba6f974d4c696e99ad8b3452a6c8d8d9f9e538e9397b22b759811e7c5
6
+ metadata.gz: a4e48265d5252113b0fb42b6e65ada81e564892de57f2d86e723dad0f5a253390bbaf2f6e1e5fbbb943071bf84274e9f2b51f1d9789c460727f012b36db59482
7
+ data.tar.gz: f2d37224d2f4af90c6d37578d26c77702a266ca12bff6463aeb0edb6df1de8b6aa8483de08887722debde03e3525b123bc6866b8ad3f203f38adee7a3db9b126
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## [Unreleased]
2
- *no unreleased changes*
2
+ * no unreleased changes*
3
+
4
+ ## 0.2.3 / 2025-11-20
5
+ ### Fixed
6
+ * Support Ruby 3.4. Drop support for Rails 7.0, Ruby 3.1
7
+ * Support dogstatsd-ruby 5
8
+
9
+ ## 0.2.2 / 2024-11-19
10
+ ### Added
11
+ * When using Rails, add the ability to configure using environment variables (#5)
12
+ * Support Ruby 3.2. Drop support for Ruby 2.7, Rails 6.0
13
+ * Support Ruby 3.3, Rails 7.1, 7.2 and 8.0. Drop support for Ruby 3.0, Rails 6.1
3
14
 
4
15
  ## 0.2.1 / 2019-11-27
5
16
  ### Fixed
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019-2024 NHS England
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # NdrStats [![Build Status](https://travis-ci.org/PublicHealthEngland/ndr_stats.svg?branch=master)](https://travis-ci.org/PublicHealthEngland/ndr_stats)
1
+ # NdrStats [![Build Status](https://github.com/NHSDigital/ndr_stats/workflows/Test/badge.svg)](https://github.com/NHSDigital/ndr_stats/actions?query=workflow%3Atest) [![Gem Version](https://badge.fury.io/rb/ndr_stats.svg)](https://badge.fury.io/rb/ndr_stats)
2
2
 
3
3
  Provides pain-free setup of stats collecting to Ruby/Rails projects.
4
4
 
@@ -32,7 +32,11 @@ NdrStats.configure(host: 'localhost', port: 9125)
32
32
 
33
33
  ### Rails
34
34
 
35
- When used in a Rails application, you can store configuration in `config/stats.yml`.
35
+ When used in a Rails application, you have the option to auto-configure `NdrStats`.
36
+
37
+ #### File-based
38
+
39
+ Add configuration in `config/stats.yml`:
36
40
 
37
41
  ```yaml
38
42
  ---
@@ -40,9 +44,17 @@ host: localhost
40
44
  port: 9125
41
45
  ```
42
46
 
47
+ #### Environment config
48
+
49
+ Alternatively, you can use environment variables `NDR_STATS_{HOST,PORT,SYSTEM,STACK}` to provide config parameters.
50
+ Environment variables override any file-based configuration that's also found.
51
+
52
+ #### System / Stack
53
+
43
54
  It's additionally possible to specify `system` and `stack`, which will be automatically added as tags on all stats.
44
55
  If the host application's enclosing module responds to the `flavour` or `stack` methods, these will be used if not otherwise specified.
45
56
 
57
+
46
58
  ## Usage
47
59
 
48
60
  Basic usage is as follows:
@@ -1,14 +1,37 @@
1
1
  module NdrStats
2
2
  # Behaviour that runs when this gem is used in the context of a Rail app.
3
3
  class Railtie < Rails::Railtie
4
+ class << self
5
+ def config_values
6
+ config_from_file.merge(config_from_env)
7
+ end
8
+
9
+ private
10
+
11
+ def config_from_file
12
+ config_file = Rails.root.join('config/stats.yml')
13
+ return {} unless File.exist?(config_file)
14
+
15
+ YAML.load_file(config_file).symbolize_keys
16
+ end
17
+
18
+ def config_from_env
19
+ config = {}
20
+
21
+ ENV.each do |key, value|
22
+ next unless key =~ /\ANDR_STATS_(.*)/
23
+
24
+ config[Regexp.last_match(1).downcase.to_sym] = value
25
+ end
26
+
27
+ config
28
+ end
29
+ end
30
+
4
31
  # Auto-configures NdrStats with config in the host app, if found.
5
32
  config.after_initialize do
6
- config_file = Rails.root.join('config', 'stats.yml')
7
- next unless File.exist?(config_file)
8
-
9
- config = YAML.load_file(config_file).symbolize_keys.
10
- slice(:host, :port, :system, :stack).
11
- reject { |_, value| value.blank? }
33
+ config = Railtie.config_values.slice(:host, :port, :system, :stack)
34
+ next if config.empty?
12
35
 
13
36
  # Try and derive system/stack from applications that expose it:
14
37
  app_class = Rails.application.class
@@ -1,3 +1,3 @@
1
1
  module NdrStats
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
data/ndr_stats.gemspec CHANGED
@@ -11,21 +11,27 @@ Gem::Specification.new do |spec|
11
11
  spec.description = 'Makes it straightforward for a project to send data to statsd.'
12
12
 
13
13
  # Specify which files should be added to the gem when it is released.
14
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
15
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
16
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- end
14
+ gem_files = %w[CHANGELOG.md CODE_OF_CONDUCT.md LICENSE.txt README.md
15
+ lib ndr_stats.gemspec]
16
+ spec.files = `git ls-files -z`.split("\x0").
17
+ select { |f| gem_files.include?(f.split('/')[0]) }
18
18
 
19
19
  spec.bindir = 'exe'
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'dogstatsd-ruby', '~> 4.5'
23
+ spec.add_dependency 'dogstatsd-ruby', '>= 4.5', '< 6.0'
24
24
 
25
+ # We list development dependencies for all Rails versions here.
26
+ # Rails version-specific dependencies can go in the relevant Gemfile.
27
+ # rubocop:disable Gemspec/DevelopmentDependencies
25
28
  spec.add_development_dependency 'bundler', '~> 2.0'
26
29
  spec.add_development_dependency 'minitest', '~> 5.0'
27
30
  spec.add_development_dependency 'mocha'
28
- spec.add_development_dependency 'ndr_dev_support'
31
+ spec.add_development_dependency 'ndr_dev_support', '>= 5.10'
29
32
  spec.add_development_dependency 'rails'
30
- spec.add_development_dependency 'rake', '~> 10.0'
33
+ spec.add_development_dependency 'rake', '>= 12.3.3'
34
+ # rubocop:enable Gemspec/DevelopmentDependencies
35
+
36
+ spec.required_ruby_version = '>= 3.2.0'
31
37
  end
metadata CHANGED
@@ -1,29 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - NCRS Development team
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-07-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: dogstatsd-ruby
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '4.5'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '6.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - "~>"
26
+ - - ">="
25
27
  - !ruby/object:Gem::Version
26
28
  version: '4.5'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '6.0'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: bundler
29
34
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +77,14 @@ dependencies:
72
77
  requirements:
73
78
  - - ">="
74
79
  - !ruby/object:Gem::Version
75
- version: '0'
80
+ version: '5.10'
76
81
  type: :development
77
82
  prerelease: false
78
83
  version_requirements: !ruby/object:Gem::Requirement
79
84
  requirements:
80
85
  - - ">="
81
86
  - !ruby/object:Gem::Version
82
- version: '0'
87
+ version: '5.10'
83
88
  - !ruby/object:Gem::Dependency
84
89
  name: rails
85
90
  requirement: !ruby/object:Gem::Requirement
@@ -98,34 +103,26 @@ dependencies:
98
103
  name: rake
99
104
  requirement: !ruby/object:Gem::Requirement
100
105
  requirements:
101
- - - "~>"
106
+ - - ">="
102
107
  - !ruby/object:Gem::Version
103
- version: '10.0'
108
+ version: 12.3.3
104
109
  type: :development
105
110
  prerelease: false
106
111
  version_requirements: !ruby/object:Gem::Requirement
107
112
  requirements:
108
- - - "~>"
113
+ - - ">="
109
114
  - !ruby/object:Gem::Version
110
- version: '10.0'
115
+ version: 12.3.3
111
116
  description: Makes it straightforward for a project to send data to statsd.
112
117
  email: []
113
118
  executables: []
114
119
  extensions: []
115
120
  extra_rdoc_files: []
116
121
  files:
117
- - ".gitignore"
118
- - ".rubocop.yml"
119
- - ".travis.yml"
120
122
  - CHANGELOG.md
121
123
  - CODE_OF_CONDUCT.md
122
- - Gemfile
123
- - Gemfile.lock
124
+ - LICENSE.txt
124
125
  - README.md
125
- - Rakefile
126
- - bin/console
127
- - bin/setup
128
- - code_safety.yml
129
126
  - lib/ndr_stats.rb
130
127
  - lib/ndr_stats/config.rb
131
128
  - lib/ndr_stats/ping.rb
@@ -133,10 +130,8 @@ files:
133
130
  - lib/ndr_stats/stats.rb
134
131
  - lib/ndr_stats/version.rb
135
132
  - ndr_stats.gemspec
136
- homepage:
137
133
  licenses: []
138
134
  metadata: {}
139
- post_install_message:
140
135
  rdoc_options: []
141
136
  require_paths:
142
137
  - lib
@@ -144,15 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
139
  requirements:
145
140
  - - ">="
146
141
  - !ruby/object:Gem::Version
147
- version: '0'
142
+ version: 3.2.0
148
143
  required_rubygems_version: !ruby/object:Gem::Requirement
149
144
  requirements:
150
145
  - - ">="
151
146
  - !ruby/object:Gem::Version
152
147
  version: '0'
153
148
  requirements: []
154
- rubygems_version: 3.0.3
155
- signing_key:
149
+ rubygems_version: 3.6.9
156
150
  specification_version: 4
157
151
  summary: Easy stats reporting from Ruby
158
152
  test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.rubocop-https*
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /test/dummy/log/
10
- /test/dummy/tmp/
data/.rubocop.yml DELETED
@@ -1 +0,0 @@
1
- inherit_from: 'https://raw.githubusercontent.com/PublicHealthEngland/ndr_dev_support/master/.rubocop.yml'
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.5
6
- - 2.6
7
- before_install:
8
- - gem install bundler -v 2.0.1
9
- - rm Gemfile.lock
10
- script: bundle exec rake test
11
- notifications:
12
- slack:
13
- rooms:
14
- secure: gAmGsKm7wt0Qn/1eP9Kk/md/Dy9/eXjjPpxUhkOB9C17aJUbHWWtJ1HKDpkdOyp1lM3IjJuDHpE927XoOFgcQ0jFBZVrHfrbrW4Abt8kRMZTEqeY1OZWiuDo/ArrEon6PUXXEFeXpMzdnU9HN2jPQ2Nd2FhpW7lBkWTvOg1U2L6yrb5xNQ6XwT8wNzlVu2BqZ/b/s114SpdQ/efCOnT/vXb4dPUGaYjgopmNcuR1rtITGLMV51thLPy/1bNYl2+OtJUOXOWLEb4dSxuwYWwvzRoeIzh+Hu62Ml5Ih0l/KVfdwQDbRKjgGCp7fmOqZfxheMl7h4eq/0CVQSWA7z21qymhDwLcJ16fY39ijEKWnAwI5BuaMFM8SWl9xsO04i/XP7+GrGFhhopGuqLSQhFc/V/FIFgKz3C6VxY5IIOZ4NHazJP1uMrpQNBPvKbt4trPtlVKPt7KsfgJE/pJISpLhLes/KNalHUpKaNtxEg/JmLCTzjj6KCRLV0yT6Hi1isQtDn13GUtgriI2MLk1mxMBp9bICTIIJO49jcFT+j6XcAWPdawPBTvZlb4w4G0CyYDs/EDPSvbME2L0tDExPHMaUYWEL11vMki1vgsv8KrfOalQtzFgmyyqADIFH0ALkJAD6VY0YooZT2ymKj1uMCCx7UTtOCbpTrhWJhljunHTIs=
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in ndr_stats.gemspec
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,262 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ndr_stats (0.2.1)
5
- dogstatsd-ruby (~> 4.5)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.0.1)
11
- actionpack (= 6.0.1)
12
- nio4r (~> 2.0)
13
- websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.1)
15
- actionpack (= 6.0.1)
16
- activejob (= 6.0.1)
17
- activerecord (= 6.0.1)
18
- activestorage (= 6.0.1)
19
- activesupport (= 6.0.1)
20
- mail (>= 2.7.1)
21
- actionmailer (6.0.1)
22
- actionpack (= 6.0.1)
23
- actionview (= 6.0.1)
24
- activejob (= 6.0.1)
25
- mail (~> 2.5, >= 2.5.4)
26
- rails-dom-testing (~> 2.0)
27
- actionpack (6.0.1)
28
- actionview (= 6.0.1)
29
- activesupport (= 6.0.1)
30
- rack (~> 2.0)
31
- rack-test (>= 0.6.3)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.1)
35
- actionpack (= 6.0.1)
36
- activerecord (= 6.0.1)
37
- activestorage (= 6.0.1)
38
- activesupport (= 6.0.1)
39
- nokogiri (>= 1.8.5)
40
- actionview (6.0.1)
41
- activesupport (= 6.0.1)
42
- builder (~> 3.1)
43
- erubi (~> 1.4)
44
- rails-dom-testing (~> 2.0)
45
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.1)
47
- activesupport (= 6.0.1)
48
- globalid (>= 0.3.6)
49
- activemodel (6.0.1)
50
- activesupport (= 6.0.1)
51
- activerecord (6.0.1)
52
- activemodel (= 6.0.1)
53
- activesupport (= 6.0.1)
54
- activestorage (6.0.1)
55
- actionpack (= 6.0.1)
56
- activejob (= 6.0.1)
57
- activerecord (= 6.0.1)
58
- marcel (~> 0.3.1)
59
- activesupport (6.0.1)
60
- concurrent-ruby (~> 1.0, >= 1.0.2)
61
- i18n (>= 0.7, < 2)
62
- minitest (~> 5.1)
63
- tzinfo (~> 1.1)
64
- zeitwerk (~> 2.2)
65
- addressable (2.7.0)
66
- public_suffix (>= 2.0.2, < 5.0)
67
- ast (2.4.0)
68
- brakeman (4.7.1)
69
- builder (3.2.3)
70
- bundler-audit (0.6.1)
71
- bundler (>= 1.2.0, < 3)
72
- thor (~> 0.18)
73
- capistrano (2.15.9)
74
- highline
75
- net-scp (>= 1.0.0)
76
- net-sftp (>= 2.0.0)
77
- net-ssh (>= 2.0.14)
78
- net-ssh-gateway (>= 1.1.0)
79
- capybara (3.29.0)
80
- addressable
81
- mini_mime (>= 0.1.3)
82
- nokogiri (~> 1.8)
83
- rack (>= 1.6.0)
84
- rack-test (>= 0.6.3)
85
- regexp_parser (~> 1.5)
86
- xpath (~> 3.2)
87
- capybara-screenshot (1.0.24)
88
- capybara (>= 1.0, < 4)
89
- launchy
90
- charlock_holmes (0.7.7)
91
- childprocess (3.0.0)
92
- cliver (0.3.2)
93
- coderay (1.1.2)
94
- concurrent-ruby (1.1.5)
95
- crass (1.0.5)
96
- docile (1.3.2)
97
- dogstatsd-ruby (4.5.0)
98
- erubi (1.9.0)
99
- escape_utils (1.2.1)
100
- github-linguist (7.6.1)
101
- charlock_holmes (~> 0.7.6)
102
- escape_utils (~> 1.2.0)
103
- mini_mime (~> 1.0)
104
- rugged (>= 0.25.1)
105
- globalid (0.4.2)
106
- activesupport (>= 4.2.0)
107
- highline (2.0.3)
108
- i18n (1.7.0)
109
- concurrent-ruby (~> 1.0)
110
- jaro_winkler (1.5.4)
111
- json (2.2.0)
112
- launchy (2.4.3)
113
- addressable (~> 2.3)
114
- loofah (2.3.1)
115
- crass (~> 1.0.2)
116
- nokogiri (>= 1.5.9)
117
- mail (2.7.1)
118
- mini_mime (>= 0.1.1)
119
- marcel (0.3.3)
120
- mimemagic (~> 0.3.2)
121
- metaclass (0.0.4)
122
- method_source (0.9.2)
123
- mimemagic (0.3.3)
124
- mini_mime (1.0.2)
125
- mini_portile2 (2.4.0)
126
- minitest (5.13.0)
127
- mocha (1.9.0)
128
- metaclass (~> 0.0.1)
129
- ndr_dev_support (5.4.5)
130
- activesupport (< 6.1)
131
- brakeman (>= 4.2.0)
132
- bundler-audit
133
- capistrano (~> 2.15)
134
- capybara (>= 3.20)
135
- capybara-screenshot
136
- github-linguist
137
- highline (>= 1.6.0)
138
- parser
139
- poltergeist (>= 1.8.0)
140
- prometheus-client (>= 0.9.0)
141
- pry
142
- rainbow
143
- rubocop (= 0.71.0)
144
- rugged
145
- selenium-webdriver
146
- show_me_the_cookies
147
- simplecov
148
- unicode-display_width (>= 1.3.3)
149
- webdrivers (>= 3.9)
150
- with_clean_rbenv
151
- net-scp (2.0.0)
152
- net-ssh (>= 2.6.5, < 6.0.0)
153
- net-sftp (2.1.2)
154
- net-ssh (>= 2.6.5)
155
- net-ssh (5.2.0)
156
- net-ssh-gateway (2.0.0)
157
- net-ssh (>= 4.0.0)
158
- nio4r (2.5.2)
159
- nokogiri (1.10.5)
160
- mini_portile2 (~> 2.4.0)
161
- parallel (1.19.1)
162
- parser (2.6.5.0)
163
- ast (~> 2.4.0)
164
- poltergeist (1.18.1)
165
- capybara (>= 2.1, < 4)
166
- cliver (~> 0.3.1)
167
- websocket-driver (>= 0.2.0)
168
- prometheus-client (1.0.0)
169
- pry (0.12.2)
170
- coderay (~> 1.1.0)
171
- method_source (~> 0.9.0)
172
- public_suffix (4.0.1)
173
- rack (2.0.7)
174
- rack-test (1.1.0)
175
- rack (>= 1.0, < 3)
176
- rails (6.0.1)
177
- actioncable (= 6.0.1)
178
- actionmailbox (= 6.0.1)
179
- actionmailer (= 6.0.1)
180
- actionpack (= 6.0.1)
181
- actiontext (= 6.0.1)
182
- actionview (= 6.0.1)
183
- activejob (= 6.0.1)
184
- activemodel (= 6.0.1)
185
- activerecord (= 6.0.1)
186
- activestorage (= 6.0.1)
187
- activesupport (= 6.0.1)
188
- bundler (>= 1.3.0)
189
- railties (= 6.0.1)
190
- sprockets-rails (>= 2.0.0)
191
- rails-dom-testing (2.0.3)
192
- activesupport (>= 4.2.0)
193
- nokogiri (>= 1.6)
194
- rails-html-sanitizer (1.3.0)
195
- loofah (~> 2.3)
196
- railties (6.0.1)
197
- actionpack (= 6.0.1)
198
- activesupport (= 6.0.1)
199
- method_source
200
- rake (>= 0.8.7)
201
- thor (>= 0.20.3, < 2.0)
202
- rainbow (3.0.0)
203
- rake (10.5.0)
204
- regexp_parser (1.6.0)
205
- rubocop (0.71.0)
206
- jaro_winkler (~> 1.5.1)
207
- parallel (~> 1.10)
208
- parser (>= 2.6)
209
- rainbow (>= 2.2.2, < 4.0)
210
- ruby-progressbar (~> 1.7)
211
- unicode-display_width (>= 1.4.0, < 1.7)
212
- ruby-progressbar (1.10.1)
213
- rubyzip (2.0.0)
214
- rugged (0.28.3.1)
215
- selenium-webdriver (3.142.6)
216
- childprocess (>= 0.5, < 4.0)
217
- rubyzip (>= 1.2.2)
218
- show_me_the_cookies (5.0.0)
219
- capybara (>= 2, < 4)
220
- simplecov (0.17.1)
221
- docile (~> 1.1)
222
- json (>= 1.8, < 3)
223
- simplecov-html (~> 0.10.0)
224
- simplecov-html (0.10.2)
225
- sprockets (4.0.0)
226
- concurrent-ruby (~> 1.0)
227
- rack (> 1, < 3)
228
- sprockets-rails (3.2.1)
229
- actionpack (>= 4.0)
230
- activesupport (>= 4.0)
231
- sprockets (>= 3.0.0)
232
- thor (0.20.3)
233
- thread_safe (0.3.6)
234
- tzinfo (1.2.5)
235
- thread_safe (~> 0.1)
236
- unicode-display_width (1.6.0)
237
- webdrivers (4.1.3)
238
- nokogiri (~> 1.6)
239
- rubyzip (>= 1.3.0)
240
- selenium-webdriver (>= 3.0, < 4.0)
241
- websocket-driver (0.7.1)
242
- websocket-extensions (>= 0.1.0)
243
- websocket-extensions (0.1.4)
244
- with_clean_rbenv (0.1.0)
245
- xpath (3.2.0)
246
- nokogiri (~> 1.8)
247
- zeitwerk (2.2.1)
248
-
249
- PLATFORMS
250
- ruby
251
-
252
- DEPENDENCIES
253
- bundler (~> 2.0)
254
- minitest (~> 5.0)
255
- mocha
256
- ndr_dev_support
257
- ndr_stats!
258
- rails
259
- rake (~> 10.0)
260
-
261
- BUNDLED WITH
262
- 2.0.1
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
3
-
4
- require 'ndr_dev_support/tasks'
5
-
6
- Rake::TestTask.new(:test) do |t|
7
- t.libs << 'test'
8
- t.libs << 'lib'
9
- t.test_files = FileList['test/**/*_test.rb']
10
- end
11
-
12
- task default: :test
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "ndr_stats"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/code_safety.yml DELETED
@@ -1,242 +0,0 @@
1
- ---
2
- file safety:
3
- ".gitignore":
4
- comments:
5
- reviewed_by: josh.pencheon
6
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
7
- ".rubocop.yml":
8
- comments:
9
- reviewed_by: josh.pencheon
10
- safe_revision: fc8003c597890c4b6f7c4aea3a34bd06b3c1ec6e
11
- ".travis.yml":
12
- comments:
13
- reviewed_by: josh.pencheon
14
- safe_revision: 39743de484c34d33547ab9e47645542d87138189
15
- CHANGELOG.md:
16
- comments:
17
- reviewed_by: josh.pencheon
18
- safe_revision: 0be7f37d7b65df4f465133015399f37e316169c2
19
- CODE_OF_CONDUCT.md:
20
- comments:
21
- reviewed_by: josh.pencheon
22
- safe_revision: 43fe7d83291cd9f68a530f615c5b325ea1096366
23
- Gemfile:
24
- comments:
25
- reviewed_by: josh.pencheon
26
- safe_revision: e3307b8b5ace6d968887421768e45c1c9024eb04
27
- Gemfile.lock:
28
- comments:
29
- reviewed_by: josh.pencheon
30
- safe_revision: 0be7f37d7b65df4f465133015399f37e316169c2
31
- README.md:
32
- comments:
33
- reviewed_by: josh.pencheon
34
- safe_revision: e1342a484f0eb0c43c44e43578648b747785e75c
35
- Rakefile:
36
- comments:
37
- reviewed_by: josh.pencheon
38
- safe_revision: e3307b8b5ace6d968887421768e45c1c9024eb04
39
- bin/console:
40
- comments:
41
- reviewed_by: josh.pencheon
42
- safe_revision: 43fe7d83291cd9f68a530f615c5b325ea1096366
43
- bin/setup:
44
- comments:
45
- reviewed_by: josh.pencheon
46
- safe_revision: 43fe7d83291cd9f68a530f615c5b325ea1096366
47
- lib/ndr_stats.rb:
48
- comments:
49
- reviewed_by: josh.pencheon
50
- safe_revision: 5f8db00671db37f8a461d81238a7222d4cb4b04d
51
- lib/ndr_stats/config.rb:
52
- comments:
53
- reviewed_by: josh.pencheon
54
- safe_revision: f63534ea9c2a0616bc598db4b49805495f3d8581
55
- lib/ndr_stats/ping.rb:
56
- comments:
57
- reviewed_by: josh.pencheon
58
- safe_revision: c98ff89227a1855b731c127922b86abe9d489cb8
59
- lib/ndr_stats/railtie.rb:
60
- comments:
61
- reviewed_by: josh.pencheon
62
- safe_revision: 3d1d490572a331ad5acadb3189b708e5dc9e1f0e
63
- lib/ndr_stats/stats.rb:
64
- comments:
65
- reviewed_by: josh.pencheon
66
- safe_revision: f63534ea9c2a0616bc598db4b49805495f3d8581
67
- lib/ndr_stats/version.rb:
68
- comments:
69
- reviewed_by: josh.pencheon
70
- safe_revision: 0be7f37d7b65df4f465133015399f37e316169c2
71
- ndr_stats.gemspec:
72
- comments:
73
- reviewed_by: josh.pencheon
74
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
75
- test/dummy/.ruby-version:
76
- comments:
77
- reviewed_by: josh.pencheon
78
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
79
- test/dummy/README.md:
80
- comments:
81
- reviewed_by: josh.pencheon
82
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
83
- test/dummy/Rakefile:
84
- comments:
85
- reviewed_by: josh.pencheon
86
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
87
- test/dummy/app/assets/config/manifest.js:
88
- comments:
89
- reviewed_by: josh.pencheon
90
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
91
- test/dummy/app/assets/stylesheets/application.css:
92
- comments:
93
- reviewed_by: josh.pencheon
94
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
95
- test/dummy/app/controllers/application_controller.rb:
96
- comments:
97
- reviewed_by: josh.pencheon
98
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
99
- test/dummy/app/helpers/application_helper.rb:
100
- comments:
101
- reviewed_by: josh.pencheon
102
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
103
- test/dummy/app/jobs/application_job.rb:
104
- comments:
105
- reviewed_by: josh.pencheon
106
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
107
- test/dummy/app/views/layouts/application.html.erb:
108
- comments:
109
- reviewed_by: josh.pencheon
110
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
111
- test/dummy/bin/rails:
112
- comments:
113
- reviewed_by: josh.pencheon
114
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
115
- test/dummy/bin/rake:
116
- comments:
117
- reviewed_by: josh.pencheon
118
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
119
- test/dummy/bin/setup:
120
- comments:
121
- reviewed_by: josh.pencheon
122
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
123
- test/dummy/config.ru:
124
- comments:
125
- reviewed_by: josh.pencheon
126
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
127
- test/dummy/config/application.rb:
128
- comments:
129
- reviewed_by: josh.pencheon
130
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
131
- test/dummy/config/boot.rb:
132
- comments:
133
- reviewed_by: josh.pencheon
134
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
135
- test/dummy/config/credentials.yml.enc:
136
- comments: just contains a secret_key_base for testing
137
- reviewed_by: josh.pencheon
138
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
139
- test/dummy/config/environment.rb:
140
- comments:
141
- reviewed_by: josh.pencheon
142
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
143
- test/dummy/config/environments/development.rb:
144
- comments:
145
- reviewed_by: josh.pencheon
146
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
147
- test/dummy/config/environments/production.rb:
148
- comments:
149
- reviewed_by: josh.pencheon
150
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
151
- test/dummy/config/environments/test.rb:
152
- comments:
153
- reviewed_by: josh.pencheon
154
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
155
- test/dummy/config/initializers/application_controller_renderer.rb:
156
- comments:
157
- reviewed_by: josh.pencheon
158
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
159
- test/dummy/config/initializers/backtrace_silencers.rb:
160
- comments:
161
- reviewed_by: josh.pencheon
162
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
163
- test/dummy/config/initializers/content_security_policy.rb:
164
- comments:
165
- reviewed_by: josh.pencheon
166
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
167
- test/dummy/config/initializers/cookies_serializer.rb:
168
- comments:
169
- reviewed_by: josh.pencheon
170
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
171
- test/dummy/config/initializers/filter_parameter_logging.rb:
172
- comments:
173
- reviewed_by: josh.pencheon
174
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
175
- test/dummy/config/initializers/inflections.rb:
176
- comments:
177
- reviewed_by: josh.pencheon
178
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
179
- test/dummy/config/initializers/mime_types.rb:
180
- comments:
181
- reviewed_by: josh.pencheon
182
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
183
- test/dummy/config/initializers/wrap_parameters.rb:
184
- comments:
185
- reviewed_by: josh.pencheon
186
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
187
- test/dummy/config/locales/en.yml:
188
- comments:
189
- reviewed_by: josh.pencheon
190
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
191
- test/dummy/config/master.key:
192
- comments: Purely to allow tests to work. Protects no real secrets.
193
- reviewed_by: josh.pencheon
194
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
195
- test/dummy/config/routes.rb:
196
- comments:
197
- reviewed_by: josh.pencheon
198
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
199
- test/dummy/public/404.html:
200
- comments:
201
- reviewed_by: josh.pencheon
202
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
203
- test/dummy/public/422.html:
204
- comments:
205
- reviewed_by: josh.pencheon
206
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
207
- test/dummy/public/500.html:
208
- comments:
209
- reviewed_by: josh.pencheon
210
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
211
- test/dummy/public/apple-touch-icon-precomposed.png:
212
- comments:
213
- reviewed_by: josh.pencheon
214
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
215
- test/dummy/public/apple-touch-icon.png:
216
- comments:
217
- reviewed_by: josh.pencheon
218
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
219
- test/dummy/public/favicon.ico:
220
- comments:
221
- reviewed_by: josh.pencheon
222
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
223
- test/dummy/public/robots.txt:
224
- comments:
225
- reviewed_by: josh.pencheon
226
- safe_revision: 1da1afebc89e581f409615c084d47adfb0b8265f
227
- test/ndr_stats/ping_test.rb:
228
- comments:
229
- reviewed_by: josh.pencheon
230
- safe_revision: c98ff89227a1855b731c127922b86abe9d489cb8
231
- test/ndr_stats_test.rb:
232
- comments:
233
- reviewed_by: josh.pencheon
234
- safe_revision: f63534ea9c2a0616bc598db4b49805495f3d8581
235
- test/railtie_test.rb:
236
- comments:
237
- reviewed_by: josh.pencheon
238
- safe_revision: e52ce3caa8d48115f63a71c1ae1bf5757ecfa129
239
- test/test_helper.rb:
240
- comments:
241
- reviewed_by: josh.pencheon
242
- safe_revision: f63534ea9c2a0616bc598db4b49805495f3d8581