super_spreader 0.1.0 → 0.2.1

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: 316763599341514b964640ec4d6dbf2f7998fa94f62c8c14246ad865f65f1237
4
- data.tar.gz: 5a2ce90de8394cb4c215a4d58c701857fe38cde941b332fdfc52bc53d74232e3
3
+ metadata.gz: 218410a0d636165a53af2cbb3d7969e3012b9d53762fd083afa6631df8ba6050
4
+ data.tar.gz: c2677c30551a84636b42529b7e108857bd474c21a1f714be6017bdbd833b26ef
5
5
  SHA512:
6
- metadata.gz: f9cda364befafb73dda197682ecfe4fb0b7cc2af0ac5ac05ec29f2be00d7c33745d76ae1a75275f431f2313e33019b6e704d7dd043c445ee64965b2af31099cf
7
- data.tar.gz: ca933c82847caf3f099f4ccd54929ecd06ea5482085c650a03f4a7dd2d672c485c41283f5971ebf36ca2e099959e861c6ea2676f40e03b23ba8eb095085a0abb
6
+ metadata.gz: 18b07df371436f3d5df02a38d976106833170d794c453963fa04abc83104e4d5537891dbf14e287795e689bfdc0f51a2e23e1f8526b0d585bf51a20f3d7240d8
7
+ data.tar.gz: 638abecc6b7f5bed3bfb6797dd573e6e9a350146534494d3634b08a2769ec7d2cef40b3c6215d6a8fc0172fc5f411460e8e22643fcf84c0c4e720877b2edb146
@@ -0,0 +1,145 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ gem: doximity/gem-publisher@0
5
+
6
+ executors:
7
+ ruby_3_0:
8
+ resource_class: small
9
+ docker:
10
+ - image: cimg/ruby:3.0
11
+ environment:
12
+ BUNDLE_VERSION: '~> 2.4.3'
13
+ - image: redis:6.2
14
+
15
+ ruby_3_1:
16
+ resource_class: small
17
+ docker:
18
+ - image: cimg/ruby:3.1
19
+ environment:
20
+ BUNDLE_VERSION: '~> 2.4.3'
21
+ - image: redis:6.2
22
+
23
+ ruby_3_2:
24
+ resource_class: small
25
+ docker:
26
+ - image: cimg/ruby:3.2
27
+ environment:
28
+ BUNDLE_VERSION: '~> 2.4.3'
29
+ - image: redis:6.2
30
+
31
+ # yaml anchor filters
32
+ master_only: &master_only
33
+ filters:
34
+ branches:
35
+ only: master
36
+ tags:
37
+ ignore: /.*/
38
+ pr_only: &pr_only
39
+ filters:
40
+ branches:
41
+ ignore: master
42
+ tags:
43
+ ignore: /.*/
44
+ version_tags_only: &version_tags_only
45
+ filters:
46
+ branches:
47
+ ignore: /.*/
48
+ tags:
49
+ only: /^v.*/
50
+
51
+ jobs:
52
+ build:
53
+ parameters:
54
+ executor:
55
+ type: string
56
+ default: ruby_3_2
57
+ executor: "<< parameters.executor >>"
58
+ steps:
59
+ - checkout
60
+ - run:
61
+ name: Install Bundler specific version
62
+ command: |
63
+ gem install bundler --version "${BUNDLE_VERSION}" --force
64
+ - restore_cache:
65
+ keys:
66
+ - v1-bundle-<< parameters.executor >>-{{ checksum "Gemfile.lock" }}
67
+ - run:
68
+ name: Install Ruby Dependencies
69
+ command: bundle check --path=vendor/bundle || bundle install
70
+ - save_cache:
71
+ key: v1-bundle-<< parameters.executor >>-{{ checksum "Gemfile.lock" }}
72
+ paths:
73
+ - vendor/bundle
74
+ - run:
75
+ name: Run Tests
76
+ command: bundle exec rspec --format RspecJunitFormatter --out tmp/results.xml --format progress
77
+ - store_test_results:
78
+ path: tmp/results.xml
79
+
80
+ workflows:
81
+ trunk:
82
+ jobs:
83
+ - build:
84
+ <<: *master_only
85
+ matrix:
86
+ parameters:
87
+ executor: [ruby_3_0, ruby_3_1, ruby_3_2]
88
+ - gem/build:
89
+ <<: *master_only
90
+ executor: ruby_3_2
91
+ name: gem-build
92
+ requires:
93
+ - build
94
+
95
+ pull-requests:
96
+ jobs:
97
+ - build:
98
+ <<: *pr_only
99
+ matrix:
100
+ parameters:
101
+ executor: [ruby_3_0, ruby_3_1, ruby_3_2]
102
+ - gem/build:
103
+ <<: *pr_only
104
+ executor: ruby_3_2
105
+ name: gem-build
106
+ vendor-cache: false
107
+ requires:
108
+ - build
109
+ - pre-release-approval:
110
+ <<: *pr_only
111
+ type: approval
112
+ requires:
113
+ - gem-build
114
+ - gem/publish:
115
+ <<: *pr_only
116
+ name: gem-publish
117
+ to_rubygems: false
118
+ to_nexus: true
119
+ pre_release: true
120
+ requires:
121
+ - pre-release-approval
122
+ context: artifact_publishing
123
+
124
+ final-release:
125
+ jobs:
126
+ - build:
127
+ <<: *version_tags_only
128
+ matrix:
129
+ parameters:
130
+ executor: [ruby_3_0, ruby_3_1, ruby_3_2]
131
+ - gem/build:
132
+ <<: *version_tags_only
133
+ executor: ruby_3_2
134
+ name: gem-build
135
+ vendor-cache: false
136
+ requires:
137
+ - build
138
+ - gem/publish:
139
+ <<: *version_tags_only
140
+ name: gem-publish
141
+ to_rubygems: true
142
+ pre_release: false
143
+ requires:
144
+ - gem-build
145
+ context: artifact_publishing
@@ -0,0 +1,3 @@
1
+
2
+ # Infra Automation
3
+ /.circleci @doximity/infra_automation_reviewers
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /vendor/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+
14
+ # Redis
15
+ dump.rdb
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.2
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.8
7
+ before_install: gem install bundler -v 1.17.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ Changelog
2
+ =========
3
+
4
+ ## 0.2.1
5
+
6
+ * Specify license in gemspec
7
+
8
+ ## 0.2.0
9
+
10
+ * First release (see also #53)
11
+ * Resolve open Dependabot alerts (no changes for clients of this gem)
12
+
13
+ ## 0.1.0.beta2
14
+
15
+ * First external release
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,30 @@
1
+ # Contributing to Doximity
2
+
3
+ We welcome contributions to this repository. Feel free to submit issues for bugs you encounter and pull requests for code and documentation contributions.
4
+ In order to prevent licensing issues, Doximity Inc. (“Doximity”, “we”, “us”) requires all contributors to agree to an Individual Contributor License Agreement (“CLA”), which is reproduced below. By submitting your contributions to us, you agree that you have read and are bound by the CLA. If you do not agree with the CLA, you may not submit contributions.
5
+
6
+ ## Doximity Individual Contributor License Agreement
7
+
8
+ This license is for your protection as a Contributor as well as the protection of Doximity; it does not change your rights to use your own Contributions for any other purpose.
9
+
10
+ You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Doximity. Except for the license granted herein to Doximity and recipients of software distributed by Doximity, You reserve all right, titles, and interests in and to Your Contributions.
11
+
12
+ ### Definitions
13
+
14
+ "You" (or "Your" or the “Contributor”) shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Doximity. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
15
+
16
+ 1. "Contribution" shall mean the code, documentation, or any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Doximity for inclusion in, or documentation of, any of the products owned or managed by Doximity (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Doximity or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Doximity for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
17
+
18
+ 2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
19
+
20
+ 3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by a combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes a direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
21
+
22
+ 4. You represent that You are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to Doximity, or that your employer has executed a separate Corporate CLA with Doximity.
23
+
24
+ 5. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
25
+
26
+ 6. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
27
+
28
+ 7. Should You wish to submit work that is not Your original creation, You may submit it to Doximity separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]".
29
+
30
+ 8. You agree to notify Doximity of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in super_spreader.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,207 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ super_spreader (0.2.1)
5
+ activejob (>= 6.1, < 8.0)
6
+ activemodel (>= 6.1, < 8.0)
7
+ activerecord (>= 6.1, < 8.0)
8
+ activesupport (>= 6.1, < 8.0)
9
+ redis (>= 4.8, < 6.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionpack (6.1.7.6)
15
+ actionview (= 6.1.7.6)
16
+ activesupport (= 6.1.7.6)
17
+ rack (~> 2.0, >= 2.0.9)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.0)
20
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
+ actionview (6.1.7.6)
22
+ activesupport (= 6.1.7.6)
23
+ builder (~> 3.1)
24
+ erubi (~> 1.4)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
+ activejob (6.1.7.6)
28
+ activesupport (= 6.1.7.6)
29
+ globalid (>= 0.3.6)
30
+ activemodel (6.1.7.6)
31
+ activesupport (= 6.1.7.6)
32
+ activerecord (6.1.7.6)
33
+ activemodel (= 6.1.7.6)
34
+ activesupport (= 6.1.7.6)
35
+ activesupport (6.1.7.6)
36
+ concurrent-ruby (~> 1.0, >= 1.0.2)
37
+ i18n (>= 1.6, < 2)
38
+ minitest (>= 5.1)
39
+ tzinfo (~> 2.0)
40
+ zeitwerk (~> 2.3)
41
+ ast (2.4.2)
42
+ builder (3.2.4)
43
+ coderay (1.1.3)
44
+ concurrent-ruby (1.2.2)
45
+ connection_pool (2.4.1)
46
+ crass (1.0.6)
47
+ diff-lcs (1.5.0)
48
+ erubi (1.12.0)
49
+ factory_bot (6.3.0)
50
+ activesupport (>= 5.0.0)
51
+ ffi (1.16.3)
52
+ formatador (1.1.0)
53
+ globalid (1.2.1)
54
+ activesupport (>= 6.1)
55
+ guard (2.18.1)
56
+ formatador (>= 0.2.4)
57
+ listen (>= 2.7, < 4.0)
58
+ lumberjack (>= 1.0.12, < 2.0)
59
+ nenv (~> 0.1)
60
+ notiffany (~> 0.0)
61
+ pry (>= 0.13.0)
62
+ shellany (~> 0.0)
63
+ thor (>= 0.18.1)
64
+ guard-compat (1.2.1)
65
+ guard-rspec (4.7.3)
66
+ guard (~> 2.1)
67
+ guard-compat (~> 1.1)
68
+ rspec (>= 2.99.0, < 4.0)
69
+ i18n (1.14.1)
70
+ concurrent-ruby (~> 1.0)
71
+ json (2.6.3)
72
+ language_server-protocol (3.17.0.3)
73
+ lint_roller (1.1.0)
74
+ listen (3.8.0)
75
+ rb-fsevent (~> 0.10, >= 0.10.3)
76
+ rb-inotify (~> 0.9, >= 0.9.10)
77
+ loofah (2.21.4)
78
+ crass (~> 1.0.2)
79
+ nokogiri (>= 1.12.0)
80
+ lumberjack (1.2.9)
81
+ method_source (1.0.0)
82
+ mini_portile2 (2.8.5)
83
+ minitest (5.20.0)
84
+ nenv (0.3.0)
85
+ nokogiri (1.15.4)
86
+ mini_portile2 (~> 2.8.2)
87
+ racc (~> 1.4)
88
+ notiffany (0.1.3)
89
+ nenv (~> 0.1)
90
+ shellany (~> 0.0)
91
+ parallel (1.23.0)
92
+ parser (3.2.2.4)
93
+ ast (~> 2.4.1)
94
+ racc
95
+ pry (0.14.2)
96
+ coderay (~> 1.1)
97
+ method_source (~> 1.0)
98
+ racc (1.7.3)
99
+ rack (2.2.8)
100
+ rack-test (2.1.0)
101
+ rack (>= 1.3)
102
+ rails-dom-testing (2.2.0)
103
+ activesupport (>= 5.0.0)
104
+ minitest
105
+ nokogiri (>= 1.6)
106
+ rails-html-sanitizer (1.6.0)
107
+ loofah (~> 2.21)
108
+ nokogiri (~> 1.14)
109
+ railties (6.1.7.6)
110
+ actionpack (= 6.1.7.6)
111
+ activesupport (= 6.1.7.6)
112
+ method_source
113
+ rake (>= 12.2)
114
+ thor (~> 1.0)
115
+ rainbow (3.1.1)
116
+ rake (13.1.0)
117
+ rb-fsevent (0.11.2)
118
+ rb-inotify (0.10.1)
119
+ ffi (~> 1.0)
120
+ redis (5.0.8)
121
+ redis-client (>= 0.17.0)
122
+ redis-client (0.19.1)
123
+ connection_pool
124
+ regexp_parser (2.8.2)
125
+ rexml (3.2.6)
126
+ rspec (3.12.0)
127
+ rspec-core (~> 3.12.0)
128
+ rspec-expectations (~> 3.12.0)
129
+ rspec-mocks (~> 3.12.0)
130
+ rspec-core (3.12.2)
131
+ rspec-support (~> 3.12.0)
132
+ rspec-expectations (3.12.3)
133
+ diff-lcs (>= 1.2.0, < 2.0)
134
+ rspec-support (~> 3.12.0)
135
+ rspec-mocks (3.12.6)
136
+ diff-lcs (>= 1.2.0, < 2.0)
137
+ rspec-support (~> 3.12.0)
138
+ rspec-rails (6.0.3)
139
+ actionpack (>= 6.1)
140
+ activesupport (>= 6.1)
141
+ railties (>= 6.1)
142
+ rspec-core (~> 3.12)
143
+ rspec-expectations (~> 3.12)
144
+ rspec-mocks (~> 3.12)
145
+ rspec-support (~> 3.12)
146
+ rspec-support (3.12.1)
147
+ rspec_junit_formatter (0.6.0)
148
+ rspec-core (>= 2, < 4, != 2.12.0)
149
+ rubocop (1.57.2)
150
+ json (~> 2.3)
151
+ language_server-protocol (>= 3.17.0)
152
+ parallel (~> 1.10)
153
+ parser (>= 3.2.2.4)
154
+ rainbow (>= 2.2.2, < 4.0)
155
+ regexp_parser (>= 1.8, < 3.0)
156
+ rexml (>= 3.2.5, < 4.0)
157
+ rubocop-ast (>= 1.28.1, < 2.0)
158
+ ruby-progressbar (~> 1.7)
159
+ unicode-display_width (>= 2.4.0, < 3.0)
160
+ rubocop-ast (1.30.0)
161
+ parser (>= 3.2.1.0)
162
+ rubocop-performance (1.19.1)
163
+ rubocop (>= 1.7.0, < 2.0)
164
+ rubocop-ast (>= 0.4.0)
165
+ ruby-progressbar (1.13.0)
166
+ shellany (0.0.1)
167
+ sqlite3 (1.6.8)
168
+ mini_portile2 (~> 2.8.0)
169
+ standard (1.32.0)
170
+ language_server-protocol (~> 3.17.0.2)
171
+ lint_roller (~> 1.0)
172
+ rubocop (~> 1.57.2)
173
+ standard-custom (~> 1.0.0)
174
+ standard-performance (~> 1.2)
175
+ standard-custom (1.0.2)
176
+ lint_roller (~> 1.0)
177
+ rubocop (~> 1.50)
178
+ standard-performance (1.2.1)
179
+ lint_roller (~> 1.1)
180
+ rubocop-performance (~> 1.19.1)
181
+ thor (1.3.0)
182
+ tzinfo (2.0.6)
183
+ concurrent-ruby (~> 1.0)
184
+ unicode-display_width (2.5.0)
185
+ yard (0.9.34)
186
+ zeitwerk (2.6.12)
187
+
188
+ PLATFORMS
189
+ ruby
190
+
191
+ DEPENDENCIES
192
+ bundler
193
+ factory_bot
194
+ guard
195
+ guard-rspec
196
+ pry
197
+ rake
198
+ rspec
199
+ rspec-rails
200
+ rspec_junit_formatter
201
+ sqlite3
202
+ standard
203
+ super_spreader!
204
+ yard
205
+
206
+ BUNDLED WITH
207
+ 2.1.4
data/Guardfile ADDED
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ guard :rspec, cmd: "bundle exec rspec" do
4
+ require "guard/rspec/dsl"
5
+ dsl = Guard::RSpec::Dsl.new(self)
6
+
7
+ # RSpec files
8
+ rspec = dsl.rspec
9
+ watch(rspec.spec_helper) { rspec.spec_dir }
10
+ watch(rspec.spec_support) { rspec.spec_dir }
11
+ watch(rspec.spec_files)
12
+
13
+ # Ruby files
14
+ ruby = dsl.ruby
15
+ dsl.watch_spec_files_for(ruby.lib_files)
16
+
17
+ watch(%r{lib/super_spreader/(.+).(rb|rake)}) { |m| "spec/#{m[1]}_spec.rb" }
18
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Doximity, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.