gman 7.0.5 → 8.0.0
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 +4 -4
- data/bin/gman +10 -15
- data/bin/gman_filter +1 -1
- data/config/domains.txt +497 -387
- data/config/vendor/academic.txt +0 -1
- data/config/vendor/dotgovs.csv +8688 -5786
- data/docs/README.md +3 -1
- data/lib/gman/domain_list.rb +1 -1
- data/lib/gman/identifier.rb +17 -14
- data/lib/gman/importer.rb +1 -1
- data/lib/gman/locality.rb +1 -1
- data/lib/gman/version.rb +1 -1
- data/lib/gman.rb +9 -8
- metadata +12 -216
- data/.github/CODEOWNERS +0 -3
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
- data/.github/config.yml +0 -23
- data/.github/funding.yml +0 -1
- data/.github/no-response.yml +0 -15
- data/.github/release-drafter.yml +0 -4
- data/.github/settings.yml +0 -33
- data/.github/stale.yml +0 -29
- data/.gitignore +0 -6
- data/.rspec +0 -2
- data/.rubocop.yml +0 -33
- data/.rubocop_todo.yml +0 -84
- data/.ruby-version +0 -1
- data/.travis.yml +0 -4
- data/Gemfile +0 -5
- data/docs/CODE_OF_CONDUCT.md +0 -46
- data/docs/CONTRIBUTING.md +0 -92
- data/docs/SECURITY.md +0 -3
- data/docs/_config.yml +0 -2
- data/gman.gemspec +0 -44
- data/script/add +0 -19
- data/script/alphabetize +0 -14
- data/script/bootstrap +0 -5
- data/script/cibuild +0 -8
- data/script/console +0 -3
- data/script/dedupe +0 -22
- data/script/profile +0 -21
- data/script/prune +0 -22
- data/script/reconcile-us +0 -72
- data/script/release +0 -38
- data/script/vendor +0 -13
- data/script/vendor-federal-de +0 -14
- data/script/vendor-gov-list +0 -17
- data/script/vendor-municipal-de +0 -23
- data/script/vendor-nl +0 -21
- data/script/vendor-public-suffix +0 -28
- data/script/vendor-se +0 -21
- data/script/vendor-swot +0 -43
- data/script/vendor-us +0 -38
- data/spec/fixtures/domains.txt +0 -4
- data/spec/fixtures/obama.txt +0 -5
- data/spec/gman/bin_spec.rb +0 -101
- data/spec/gman/country_code_spec.rb +0 -39
- data/spec/gman/domain_list_spec.rb +0 -110
- data/spec/gman/domains_spec.rb +0 -25
- data/spec/gman/identifier_spec.rb +0 -218
- data/spec/gman/importer_spec.rb +0 -236
- data/spec/gman/locality_spec.rb +0 -24
- data/spec/gman_spec.rb +0 -74
- data/spec/spec_helper.rb +0 -31
data/docs/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
A ruby gem to check if the owner of a given email address or website is working for THE MAN (a.k.a verifies government domains). It will also provide you with metadata about the domain, such as the country, state, city, or agency, where applicable. It does this by leveraging the power of [Naughty or Nice](https://github.com/benbalter/naughty_or_nice), the [Public Suffix List](http://publicsuffix.org/), and the associated [Ruby Gem](https://github.com/weppos/publicsuffix-ruby).
|
|
6
6
|
|
|
7
|
-
You could theoretically [use regex](https://gist.github.com/benbalter/6147066), but either you'll get a bunch of false positives, or your regex will be insanely complicated. `gov.uk`, may be valid, for example, but `gov.fr` is not (it's `gouv.fr`, for what it's worth). The solution? Use Public Suffix to verify that it's a valid public domain, then maintain [a crowd-sourced sub-list of known global government and military domains](https://github.com/benbalter/gman/blob/
|
|
7
|
+
You could theoretically [use regex](https://gist.github.com/benbalter/6147066), but either you'll get a bunch of false positives, or your regex will be insanely complicated. `gov.uk`, may be valid, for example, but `gov.fr` is not (it's `gouv.fr`, for what it's worth). The solution? Use Public Suffix to verify that it's a valid public domain, then maintain [a crowd-sourced sub-list of known global government and military domains](https://github.com/benbalter/gman/blob/main/config/domains.txt). It should cover all US and international, government and military domains for both email and website verification.
|
|
8
8
|
|
|
9
9
|
See a domains that's missing or one that shouldn't be there? [We'd love you to contribute](CONTRIBUTING.md).
|
|
10
10
|
|
|
@@ -18,6 +18,8 @@ Or add this to your `Gemfile` before doing a `bundle install`:
|
|
|
18
18
|
|
|
19
19
|
`gem 'gman'`
|
|
20
20
|
|
|
21
|
+
Gman requires Ruby 3.2 or newer.
|
|
22
|
+
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
23
25
|
### In general
|
data/lib/gman/domain_list.rb
CHANGED
data/lib/gman/identifier.rb
CHANGED
|
@@ -26,7 +26,7 @@ class Gman
|
|
|
26
26
|
def_hash_delegator :dotgov_listing, :Agency
|
|
27
27
|
def_hash_delegator :dotgov_listing, :Organization
|
|
28
28
|
def_hash_delegator :dotgov_listing, :City
|
|
29
|
-
def_hash_delegator :dotgov_listing, :
|
|
29
|
+
def_hash_delegator :dotgov_listing, :'Domain Type'
|
|
30
30
|
private :domain_type
|
|
31
31
|
|
|
32
32
|
def type
|
|
@@ -45,7 +45,7 @@ class Gman
|
|
|
45
45
|
def state
|
|
46
46
|
if matches
|
|
47
47
|
matches[4].upcase
|
|
48
|
-
elsif dotgov_listing['State']
|
|
48
|
+
elsif dotgov_listing && dotgov_listing['State']
|
|
49
49
|
dotgov_listing['State']
|
|
50
50
|
elsif list_category
|
|
51
51
|
matches = list_category.match(/usagov([A-Z]{2})/)
|
|
@@ -60,7 +60,7 @@ class Gman
|
|
|
60
60
|
def federal?
|
|
61
61
|
return false unless dotgov_listing
|
|
62
62
|
|
|
63
|
-
domain_type
|
|
63
|
+
domain_type.to_s.match?(/^Federal/i)
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def city?
|
|
@@ -87,7 +87,7 @@ class Gman
|
|
|
87
87
|
if matches
|
|
88
88
|
matches[1] == 'state'
|
|
89
89
|
elsif dotgov_listing
|
|
90
|
-
|
|
90
|
+
['State/Local Govt', 'State'].include?(domain_type)
|
|
91
91
|
else
|
|
92
92
|
false
|
|
93
93
|
end
|
|
@@ -108,14 +108,14 @@ class Gman
|
|
|
108
108
|
private
|
|
109
109
|
|
|
110
110
|
def list_category
|
|
111
|
-
@list_category
|
|
112
|
-
match = Gman.list.public_suffix_list.find(domain.to_s)
|
|
113
|
-
return unless match
|
|
111
|
+
return @list_category if defined?(@list_category)
|
|
114
112
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
match = Gman.list.public_suffix_list.find(domain.to_s)
|
|
114
|
+
return @list_category = nil unless match
|
|
115
|
+
|
|
116
|
+
regex = %r{// ([^\n]+)\n?[^/]*\n#{Regexp.escape(match.value)}\n}im
|
|
117
|
+
matches = Gman.list.contents.match(regex)
|
|
118
|
+
@list_category = matches ? matches[1] : nil
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
def matches
|
|
@@ -128,9 +128,7 @@ class Gman
|
|
|
128
128
|
return @dotgov_listing if defined? @dotgov_listing
|
|
129
129
|
return unless dotgov?
|
|
130
130
|
|
|
131
|
-
@dotgov_listing = Gman.
|
|
132
|
-
listing['Domain Name'].casecmp("#{domain.sld}.gov").zero?
|
|
133
|
-
end
|
|
131
|
+
@dotgov_listing = Gman.dotgov_index["#{domain.sld}.gov".downcase]
|
|
134
132
|
end
|
|
135
133
|
|
|
136
134
|
class << self
|
|
@@ -138,6 +136,11 @@ class Gman
|
|
|
138
136
|
@dotgov_list ||= CSV.read(dotgov_list_path, headers: true)
|
|
139
137
|
end
|
|
140
138
|
|
|
139
|
+
# Hash of lowercase domain name => dotgov listing, for constant-time lookup
|
|
140
|
+
def dotgov_index
|
|
141
|
+
@dotgov_index ||= dotgov_list.to_h { |listing| [listing['Domain Name'].downcase, listing] }
|
|
142
|
+
end
|
|
143
|
+
|
|
141
144
|
private
|
|
142
145
|
|
|
143
146
|
def dotgov_list_path
|
data/lib/gman/importer.rb
CHANGED
data/lib/gman/locality.rb
CHANGED
data/lib/gman/version.rb
CHANGED
data/lib/gman.rb
CHANGED
|
@@ -43,12 +43,9 @@ class Gman
|
|
|
43
43
|
#
|
|
44
44
|
# Returns boolean true if a government domain
|
|
45
45
|
def valid?
|
|
46
|
-
@valid
|
|
47
|
-
return false unless valid_domain?
|
|
48
|
-
return false if academic?
|
|
46
|
+
return @valid if defined?(@valid)
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
end
|
|
48
|
+
@valid = valid_domain? && (locality? || public_suffix_valid?)
|
|
52
49
|
end
|
|
53
50
|
|
|
54
51
|
def locality?
|
|
@@ -58,14 +55,18 @@ class Gman
|
|
|
58
55
|
private
|
|
59
56
|
|
|
60
57
|
def valid_domain?
|
|
61
|
-
|
|
58
|
+
!domain.nil? && !academic?
|
|
62
59
|
end
|
|
63
60
|
|
|
64
61
|
def academic?
|
|
65
|
-
@academic
|
|
62
|
+
return @academic if defined?(@academic)
|
|
63
|
+
|
|
64
|
+
@academic = !domain.nil? && Gman.academic_list.valid?(to_s)
|
|
66
65
|
end
|
|
67
66
|
|
|
68
67
|
def public_suffix_valid?
|
|
69
|
-
@public_suffix_valid
|
|
68
|
+
return @public_suffix_valid if defined?(@public_suffix_valid)
|
|
69
|
+
|
|
70
|
+
@public_suffix_valid = Gman.list.valid?(to_s)
|
|
70
71
|
end
|
|
71
72
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Balter
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: csv
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '3.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
25
|
+
version: '3.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: iso_country_codes
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,146 +65,6 @@ dependencies:
|
|
|
66
65
|
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '3.0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: addressable
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '2.3'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '2.3'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: mechanize
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '2.7'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '2.7'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: parallel
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - "~>"
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '1.6'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - "~>"
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '1.6'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: pry
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - "~>"
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0.10'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - "~>"
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0.10'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: rspec
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - "~>"
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '3.5'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '3.5'
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: rubocop
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - "~>"
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '1.0'
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - "~>"
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '1.0'
|
|
153
|
-
- !ruby/object:Gem::Dependency
|
|
154
|
-
name: rubocop-performance
|
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
|
156
|
-
requirements:
|
|
157
|
-
- - "~>"
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: '1.5'
|
|
160
|
-
type: :development
|
|
161
|
-
prerelease: false
|
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
-
requirements:
|
|
164
|
-
- - "~>"
|
|
165
|
-
- !ruby/object:Gem::Version
|
|
166
|
-
version: '1.5'
|
|
167
|
-
- !ruby/object:Gem::Dependency
|
|
168
|
-
name: rubocop-rspec
|
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
|
170
|
-
requirements:
|
|
171
|
-
- - "~>"
|
|
172
|
-
- !ruby/object:Gem::Version
|
|
173
|
-
version: '2.0'
|
|
174
|
-
type: :development
|
|
175
|
-
prerelease: false
|
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
-
requirements:
|
|
178
|
-
- - "~>"
|
|
179
|
-
- !ruby/object:Gem::Version
|
|
180
|
-
version: '2.0'
|
|
181
|
-
- !ruby/object:Gem::Dependency
|
|
182
|
-
name: ruby-prof
|
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
|
184
|
-
requirements:
|
|
185
|
-
- - "~>"
|
|
186
|
-
- !ruby/object:Gem::Version
|
|
187
|
-
version: '0.15'
|
|
188
|
-
type: :development
|
|
189
|
-
prerelease: false
|
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
-
requirements:
|
|
192
|
-
- - "~>"
|
|
193
|
-
- !ruby/object:Gem::Version
|
|
194
|
-
version: '0.15'
|
|
195
|
-
- !ruby/object:Gem::Dependency
|
|
196
|
-
name: swot
|
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
|
198
|
-
requirements:
|
|
199
|
-
- - "~>"
|
|
200
|
-
- !ruby/object:Gem::Version
|
|
201
|
-
version: '1.0'
|
|
202
|
-
type: :development
|
|
203
|
-
prerelease: false
|
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
-
requirements:
|
|
206
|
-
- - "~>"
|
|
207
|
-
- !ruby/object:Gem::Version
|
|
208
|
-
version: '1.0'
|
|
209
68
|
description: |2
|
|
210
69
|
A ruby gem to check if the owner of a given email address is working for
|
|
211
70
|
THE MAN.
|
|
@@ -216,34 +75,13 @@ executables:
|
|
|
216
75
|
extensions: []
|
|
217
76
|
extra_rdoc_files: []
|
|
218
77
|
files:
|
|
219
|
-
- ".github/CODEOWNERS"
|
|
220
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
221
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
222
|
-
- ".github/config.yml"
|
|
223
|
-
- ".github/funding.yml"
|
|
224
|
-
- ".github/no-response.yml"
|
|
225
|
-
- ".github/release-drafter.yml"
|
|
226
|
-
- ".github/settings.yml"
|
|
227
|
-
- ".github/stale.yml"
|
|
228
|
-
- ".gitignore"
|
|
229
|
-
- ".rspec"
|
|
230
|
-
- ".rubocop.yml"
|
|
231
|
-
- ".rubocop_todo.yml"
|
|
232
|
-
- ".ruby-version"
|
|
233
|
-
- ".travis.yml"
|
|
234
|
-
- Gemfile
|
|
235
78
|
- LICENSE
|
|
236
79
|
- bin/gman
|
|
237
80
|
- bin/gman_filter
|
|
238
81
|
- config/domains.txt
|
|
239
82
|
- config/vendor/academic.txt
|
|
240
83
|
- config/vendor/dotgovs.csv
|
|
241
|
-
- docs/CODE_OF_CONDUCT.md
|
|
242
|
-
- docs/CONTRIBUTING.md
|
|
243
84
|
- docs/README.md
|
|
244
|
-
- docs/SECURITY.md
|
|
245
|
-
- docs/_config.yml
|
|
246
|
-
- gman.gemspec
|
|
247
85
|
- lib/gman.rb
|
|
248
86
|
- lib/gman/country_codes.rb
|
|
249
87
|
- lib/gman/domain_list.rb
|
|
@@ -251,68 +89,26 @@ files:
|
|
|
251
89
|
- lib/gman/importer.rb
|
|
252
90
|
- lib/gman/locality.rb
|
|
253
91
|
- lib/gman/version.rb
|
|
254
|
-
- script/add
|
|
255
|
-
- script/alphabetize
|
|
256
|
-
- script/bootstrap
|
|
257
|
-
- script/cibuild
|
|
258
|
-
- script/console
|
|
259
|
-
- script/dedupe
|
|
260
|
-
- script/profile
|
|
261
|
-
- script/prune
|
|
262
|
-
- script/reconcile-us
|
|
263
|
-
- script/release
|
|
264
|
-
- script/vendor
|
|
265
|
-
- script/vendor-federal-de
|
|
266
|
-
- script/vendor-gov-list
|
|
267
|
-
- script/vendor-municipal-de
|
|
268
|
-
- script/vendor-nl
|
|
269
|
-
- script/vendor-public-suffix
|
|
270
|
-
- script/vendor-se
|
|
271
|
-
- script/vendor-swot
|
|
272
|
-
- script/vendor-us
|
|
273
|
-
- spec/fixtures/domains.txt
|
|
274
|
-
- spec/fixtures/obama.txt
|
|
275
|
-
- spec/gman/bin_spec.rb
|
|
276
|
-
- spec/gman/country_code_spec.rb
|
|
277
|
-
- spec/gman/domain_list_spec.rb
|
|
278
|
-
- spec/gman/domains_spec.rb
|
|
279
|
-
- spec/gman/identifier_spec.rb
|
|
280
|
-
- spec/gman/importer_spec.rb
|
|
281
|
-
- spec/gman/locality_spec.rb
|
|
282
|
-
- spec/gman_spec.rb
|
|
283
|
-
- spec/spec_helper.rb
|
|
284
92
|
homepage: https://github.com/benbalter/gman
|
|
285
93
|
licenses:
|
|
286
94
|
- MIT
|
|
287
|
-
metadata:
|
|
288
|
-
|
|
95
|
+
metadata:
|
|
96
|
+
rubygems_mfa_required: 'true'
|
|
289
97
|
rdoc_options: []
|
|
290
98
|
require_paths:
|
|
291
99
|
- lib
|
|
292
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
101
|
requirements:
|
|
294
|
-
- - "
|
|
102
|
+
- - ">="
|
|
295
103
|
- !ruby/object:Gem::Version
|
|
296
|
-
version: '2
|
|
104
|
+
version: '3.2'
|
|
297
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
106
|
requirements:
|
|
299
107
|
- - ">="
|
|
300
108
|
- !ruby/object:Gem::Version
|
|
301
109
|
version: '0'
|
|
302
110
|
requirements: []
|
|
303
|
-
rubygems_version: 3.
|
|
304
|
-
signing_key:
|
|
111
|
+
rubygems_version: 3.6.9
|
|
305
112
|
specification_version: 4
|
|
306
|
-
summary: Check if a given domain or email address belong to a
|
|
307
|
-
test_files:
|
|
308
|
-
- spec/fixtures/domains.txt
|
|
309
|
-
- spec/fixtures/obama.txt
|
|
310
|
-
- spec/gman/bin_spec.rb
|
|
311
|
-
- spec/gman/country_code_spec.rb
|
|
312
|
-
- spec/gman/domain_list_spec.rb
|
|
313
|
-
- spec/gman/domains_spec.rb
|
|
314
|
-
- spec/gman/identifier_spec.rb
|
|
315
|
-
- spec/gman/importer_spec.rb
|
|
316
|
-
- spec/gman/locality_spec.rb
|
|
317
|
-
- spec/gman_spec.rb
|
|
318
|
-
- spec/spec_helper.rb
|
|
113
|
+
summary: Check if a given domain or email address belong to a government entity
|
|
114
|
+
test_files: []
|
data/.github/CODEOWNERS
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
### Describe the bug
|
|
8
|
-
|
|
9
|
-
A clear and concise description of what the bug is.
|
|
10
|
-
|
|
11
|
-
### Steps to reproduce the behavior
|
|
12
|
-
|
|
13
|
-
1. Go to '...'
|
|
14
|
-
2. Click on '....'
|
|
15
|
-
3. Scroll down to '....'
|
|
16
|
-
4. See error
|
|
17
|
-
|
|
18
|
-
### Expected behavior
|
|
19
|
-
|
|
20
|
-
A clear and concise description of what you expected to happen.
|
|
21
|
-
|
|
22
|
-
### Screenshots
|
|
23
|
-
|
|
24
|
-
If applicable, add screenshots to help explain your problem.
|
|
25
|
-
|
|
26
|
-
### Additional context
|
|
27
|
-
|
|
28
|
-
Add any other context about the problem here.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
### Is your feature request related to a problem? Please describe the problem you're trying to solve.
|
|
8
|
-
|
|
9
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
10
|
-
|
|
11
|
-
### Describe the solution you'd like
|
|
12
|
-
|
|
13
|
-
A clear and concise description of what you want to happen.
|
|
14
|
-
|
|
15
|
-
### Describe alternatives you've considered
|
|
16
|
-
|
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
-
|
|
19
|
-
### Additional context
|
|
20
|
-
|
|
21
|
-
Add any other context or screenshots about the feature request here.
|
data/.github/config.yml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Behaviorbot config. See https://github.com/behaviorbot/ for more information.
|
|
2
|
-
# Note: Please Don't edit this file directly.
|
|
3
|
-
# Edit https://github.com/benbalter/shared-community-files instead.
|
|
4
|
-
|
|
5
|
-
# Configuration for update-docs - https://github.com/behaviorbot/update-docs
|
|
6
|
-
updateDocsComment: "Thanks for the pull request! If you are making any changes to the user-facing functionality, please be sure to update the documentation in the `README` or `docs/` folder alongside your change. :heart:"
|
|
7
|
-
|
|
8
|
-
# Configuration for request-info - https://github.com/behaviorbot/request-info
|
|
9
|
-
requestInfoReplyComment: Thanks for this. Do you mind providing a bit more information about what problem you're trying to solve?
|
|
10
|
-
requestInfoLabelToAdd: more-information-needed
|
|
11
|
-
|
|
12
|
-
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
|
|
13
|
-
#newIssueWelcomeComment: >
|
|
14
|
-
# Welcome!
|
|
15
|
-
|
|
16
|
-
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
|
|
17
|
-
newPRWelcomeComment: Welcome! Congrats on your first pull request to Gman. If you haven't already, please be sure to check out [the contributing guidelines](https://github.com/benbalter/gman/blob/master/docs/CONTRIBUTING.md).
|
|
18
|
-
|
|
19
|
-
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
|
|
20
|
-
firstPRMergeComment: "Congrats on getting your first pull request to Gman merged! Without amazing humans like you submitting pull requests, we couldn’t run this project. You rock! :tada:<br /><br />If you're interested in tackling another bug or feature, take a look at [the open issues](https://github.com/benbalter/gman/issues), especially those [labeled `help wanted`](https://github.com/benbalter/gman/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)."
|
|
21
|
-
|
|
22
|
-
# Bug workaround
|
|
23
|
-
contact_links: []
|
data/.github/funding.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
patreon: benbalter
|
data/.github/no-response.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Configuration for probot-no-response - https://github.com/probot/no-response
|
|
2
|
-
# Note: Please Don't edit this file directly.
|
|
3
|
-
# Edit https://github.com/benbalter/shared-community-files instead.
|
|
4
|
-
|
|
5
|
-
# Number of days of inactivity before an Issue is closed for lack of response
|
|
6
|
-
daysUntilClose: 14
|
|
7
|
-
# Label requiring a response
|
|
8
|
-
responseRequiredLabel: more-information-needed
|
|
9
|
-
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
|
|
10
|
-
closeComment: >
|
|
11
|
-
This issue has been automatically closed because there has been no response
|
|
12
|
-
to our request for more information from the original author. With only the
|
|
13
|
-
information that is currently in the issue, we don't have enough information
|
|
14
|
-
to take action. Please reach out if you have or find the answers we need so
|
|
15
|
-
that we can investigate further.
|
data/.github/release-drafter.yml
DELETED
data/.github/settings.yml
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Repository settings set via https://github.com/probot/settings
|
|
2
|
-
# Note: Please Don't edit this file directly.
|
|
3
|
-
# Edit https://github.com/benbalter/shared-community-files instead.
|
|
4
|
-
|
|
5
|
-
repository:
|
|
6
|
-
has_issues: true
|
|
7
|
-
has_wiki: false
|
|
8
|
-
has_projects: false
|
|
9
|
-
has_downloads: false
|
|
10
|
-
|
|
11
|
-
labels:
|
|
12
|
-
- name: help wanted
|
|
13
|
-
oldname: help-wanted
|
|
14
|
-
color: 0e8a16
|
|
15
|
-
- name: more-information-needed
|
|
16
|
-
color: d93f0b
|
|
17
|
-
- name: bug
|
|
18
|
-
color: b60205
|
|
19
|
-
- name: feature
|
|
20
|
-
color: 1d76db
|
|
21
|
-
- name: good first issue
|
|
22
|
-
color: "5319e7"
|
|
23
|
-
|
|
24
|
-
# Not currently implemented by probot/settings, but manually implemented in script/deploy
|
|
25
|
-
branch_protection:
|
|
26
|
-
restrictions: null
|
|
27
|
-
enforce_admins: false
|
|
28
|
-
required_status_checks:
|
|
29
|
-
strict: true
|
|
30
|
-
contexts:
|
|
31
|
-
- "continuous-integration/travis-ci"
|
|
32
|
-
required_pull_request_reviews:
|
|
33
|
-
require_code_owner_reviews: true
|
data/.github/stale.yml
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Configuration for probot-stale - https://github.com/probot/stale
|
|
2
|
-
# Note: Please Don't edit this file directly.
|
|
3
|
-
# Edit https://github.com/benbalter/shared-community-files instead.
|
|
4
|
-
|
|
5
|
-
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
|
6
|
-
daysUntilStale: 60
|
|
7
|
-
|
|
8
|
-
# Number of days of inactivity before a stale Issue or Pull Request is closed
|
|
9
|
-
daysUntilClose: 7
|
|
10
|
-
|
|
11
|
-
# Issues or Pull Requests with these labels will never be considered stale
|
|
12
|
-
exemptLabels:
|
|
13
|
-
- pinned
|
|
14
|
-
- security
|
|
15
|
-
|
|
16
|
-
# Label to use when marking as stale
|
|
17
|
-
staleLabel: wontfix
|
|
18
|
-
|
|
19
|
-
# Comment to post when marking as stale. Set to `false` to disable
|
|
20
|
-
markComment: >
|
|
21
|
-
This issue has been automatically marked as stale because it has not had
|
|
22
|
-
recent activity. It will be closed if no further activity occurs. Thank you
|
|
23
|
-
for your contributions.
|
|
24
|
-
|
|
25
|
-
# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable
|
|
26
|
-
closeComment: false
|
|
27
|
-
|
|
28
|
-
# Limit to only `issues` or `pulls`
|
|
29
|
-
# only: issues
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
|
2
|
-
|
|
3
|
-
require:
|
|
4
|
-
- rubocop-performance
|
|
5
|
-
- rubocop-rspec
|
|
6
|
-
|
|
7
|
-
AllCops:
|
|
8
|
-
TargetRubyVersion: 2.5
|
|
9
|
-
Exclude:
|
|
10
|
-
- config/**/*
|
|
11
|
-
- vendor/**/*
|
|
12
|
-
|
|
13
|
-
Style/Documentation:
|
|
14
|
-
Enabled: false
|
|
15
|
-
|
|
16
|
-
Metrics/AbcSize:
|
|
17
|
-
Exclude:
|
|
18
|
-
- lib/gman/importer.rb
|
|
19
|
-
|
|
20
|
-
Metrics/ClassLength:
|
|
21
|
-
Exclude:
|
|
22
|
-
- lib/gman/importer.rb
|
|
23
|
-
- test/**/*
|
|
24
|
-
|
|
25
|
-
Metrics/ClassLength:
|
|
26
|
-
Enabled: false
|
|
27
|
-
|
|
28
|
-
Metrics/BlockLength:
|
|
29
|
-
Enabled: false
|
|
30
|
-
|
|
31
|
-
Style/AccessModifierDeclarations:
|
|
32
|
-
Exclude:
|
|
33
|
-
- lib/gman/identifier.rb
|