Sha256: 2321d0c53a265844a1dea3e2b445e9899bfef633f731ae8055d233acacbeb1b4
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
#! /usr/bin/env ruby # # Vendors the USA.gov-maintained list of US domains into domains.txt # Source: https://github.com/GSA-OCSIT/govt-urls # # Usage: script/vendor-us # # Will automatically fetch latest version of the list and merge # You can check for changes and commit via `git status` # # It's also probably a good idea to run `script/ci-build` for good measure require './lib/gman/importer' source = "https://raw.githubusercontent.com/GSA/govt-urls/master/government-urls.yaml" blacklist = ["usagovQUASI"] data = open(source).read domains = YAML.load(data) domains.reject! { |group,domain| blacklist.include?(group) } Gman.import(domains)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gman-5.0.1 | script/vendor-us |
gman-5.0.0 | script/vendor-us |