gman 7.0.4 → 7.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/ci.yml +23 -0
- data/.github/workflows/clean.yml +31 -0
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.github/workflows/validate.yml +30 -0
- data/.github/workflows/vendor.yml +29 -0
- data/.rubocop.yml +1 -5
- data/config/domains.txt +507 -10
- data/config/vendor/academic.txt +0 -1
- data/config/vendor/dotgovs.csv +8570 -5786
- data/gman.gemspec +5 -4
- data/lib/gman/identifier.rb +10 -10
- data/lib/gman/version.rb +1 -1
- data/lib/gman.rb +4 -5
- data/script/profile +1 -1
- data/script/prune +1 -1
- data/script/reconcile-us +1 -1
- data/script/validate-domains +34 -0
- data/script/vendor +1 -1
- data/script/vendor-gov-list +1 -10
- data/script/vendor-us +20 -16
- data/spec/gman/domain_list_spec.rb +2 -2
- data/spec/gman/identifier_spec.rb +5 -5
- data/spec/gman/importer_spec.rb +2 -2
- data/spec/gman_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +35 -26
- data/.ruby-version +0 -1
- data/.travis.yml +0 -4
- data/script/vendor-municipal-de +0 -23
- data/script/vendor-nl +0 -21
- data/script/vendor-se +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc57dd46a54d019ca356131e6f915b8ce1105fcce38cff2bbfa00bfc14736395
|
4
|
+
data.tar.gz: d39f45690057d362e1a119b2c6f57ecdf2ff99c37a68ca880315ffe5711ca18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81c4a0bc8b40fdfea16ece37bbe0068cebb8a9c79ec1a970f7da1918470c845b75f2efeaeb88e98c013987fdfded32fb42f9d0795d065e6150b2b4a512418c9d
|
7
|
+
data.tar.gz: 304d191c1178d976cde998741b2b5c11ea9d331a8c8db2c1ce816d009b9e139014d63b3d3060d333cfd5fa7d4b0a0597d1fbd2f2c4e5c88b34d4f7b7de336295
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [main]
|
6
|
+
pull_request:
|
7
|
+
branches: [main]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v3
|
15
|
+
- name: Set up Ruby
|
16
|
+
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 3.0
|
20
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
21
|
+
|
22
|
+
- name: Run tests
|
23
|
+
run: script/cibuild
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Clean domain list
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [main]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
clean:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v3
|
13
|
+
- name: Set up Ruby
|
14
|
+
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 3.0
|
18
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
19
|
+
|
20
|
+
- name: Alphabetize
|
21
|
+
run: bundle exec script/alphabetize
|
22
|
+
|
23
|
+
- name: Dedupe
|
24
|
+
run: bundle exec script/dedupe
|
25
|
+
|
26
|
+
- name: Create Pull Request
|
27
|
+
uses: peter-evans/create-pull-request@v4
|
28
|
+
with:
|
29
|
+
commit-message: Clean domain list
|
30
|
+
title: Clean domain list
|
31
|
+
add-paths: config/*
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
2
|
+
# to commit it to your repository.
|
3
|
+
#
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
+
# or to provide custom queries or build logic.
|
6
|
+
#
|
7
|
+
# ******** NOTE ********
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
+
# supported CodeQL languages.
|
11
|
+
#
|
12
|
+
name: "CodeQL"
|
13
|
+
|
14
|
+
on:
|
15
|
+
push:
|
16
|
+
branches: [ main ]
|
17
|
+
pull_request:
|
18
|
+
# The branches below must be a subset of the branches above
|
19
|
+
branches: [ main ]
|
20
|
+
schedule:
|
21
|
+
- cron: '38 17 * * 5'
|
22
|
+
|
23
|
+
jobs:
|
24
|
+
analyze:
|
25
|
+
name: Analyze
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
permissions:
|
28
|
+
actions: read
|
29
|
+
contents: read
|
30
|
+
security-events: write
|
31
|
+
|
32
|
+
strategy:
|
33
|
+
fail-fast: false
|
34
|
+
matrix:
|
35
|
+
language: [ 'ruby' ]
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
37
|
+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
38
|
+
|
39
|
+
steps:
|
40
|
+
- name: Checkout repository
|
41
|
+
uses: actions/checkout@v2
|
42
|
+
|
43
|
+
# Initializes the CodeQL tools for scanning.
|
44
|
+
- name: Initialize CodeQL
|
45
|
+
uses: github/codeql-action/init@v2
|
46
|
+
with:
|
47
|
+
languages: ${{ matrix.language }}
|
48
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
49
|
+
# By default, queries listed here will override any specified in a config file.
|
50
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
51
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
52
|
+
|
53
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
55
|
+
- name: Autobuild
|
56
|
+
uses: github/codeql-action/autobuild@v2
|
57
|
+
|
58
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
59
|
+
# 📚 https://git.io/JvXDl
|
60
|
+
|
61
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
62
|
+
# and modify them (or add more) to build your code if your project
|
63
|
+
# uses a compiled language
|
64
|
+
|
65
|
+
#- run: |
|
66
|
+
# make bootstrap
|
67
|
+
# make release
|
68
|
+
|
69
|
+
- name: Perform CodeQL Analysis
|
70
|
+
uses: github/codeql-action/analyze@v2
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: "Validate Domain List"
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: '0 0 15 * *'
|
6
|
+
workflow_dispatch: {}
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
validate:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
- name: Set up Ruby
|
15
|
+
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: 3.0
|
19
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
20
|
+
|
21
|
+
- name: Validate domains
|
22
|
+
run: bundle exec script/validate-domains
|
23
|
+
|
24
|
+
- name: Create Pull Request
|
25
|
+
uses: peter-evans/create-pull-request@v4
|
26
|
+
if: always()
|
27
|
+
with:
|
28
|
+
commit-message: Remove invalid domains
|
29
|
+
title: Remove invalid domains
|
30
|
+
add-paths: config/*
|
@@ -0,0 +1,29 @@
|
|
1
|
+
name: "Vendor Domain List"
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: '0 0 1 * * '
|
6
|
+
workflow_dispatch: {}
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
vendor:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
- name: Set up Ruby
|
15
|
+
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: 3.0
|
19
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
20
|
+
|
21
|
+
- name: Vendor
|
22
|
+
run: script/vendor
|
23
|
+
|
24
|
+
- name: Create Pull Request
|
25
|
+
uses: peter-evans/create-pull-request@v4
|
26
|
+
with:
|
27
|
+
commit-message: Vendor domain list
|
28
|
+
title: Vendor domain list
|
29
|
+
add-paths: config/*
|
data/.rubocop.yml
CHANGED
@@ -5,6 +5,7 @@ require:
|
|
5
5
|
- rubocop-rspec
|
6
6
|
|
7
7
|
AllCops:
|
8
|
+
NewCops: enable
|
8
9
|
TargetRubyVersion: 2.5
|
9
10
|
Exclude:
|
10
11
|
- config/**/*
|
@@ -17,11 +18,6 @@ Metrics/AbcSize:
|
|
17
18
|
Exclude:
|
18
19
|
- lib/gman/importer.rb
|
19
20
|
|
20
|
-
Metrics/ClassLength:
|
21
|
-
Exclude:
|
22
|
-
- lib/gman/importer.rb
|
23
|
-
- test/**/*
|
24
|
-
|
25
21
|
Metrics/ClassLength:
|
26
22
|
Enabled: false
|
27
23
|
|