Sha256: fc5d6c707cb4da6eb98960766ae13621889e8079dbb6f1568aeba86212cbb961
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
#! /usr/bin/env ruby require 'yaml' require 'open-uri' require './lib/gman' require './lib/gman/importer' current = Gman::DomainList.current puts 'Checking for duplicate domains in the domain list...' puts "Current list contains #{current.count} domains..." dupe = current.count - current.domains.uniq.count puts "Found #{dupe} duplicate domains" exit 0 if dupe == 0 dupes = current.domains.select { |domain| current.domains.count(domain) > 1 } puts 'Duplicate domains:' puts dupes exit 1
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gman-7.0.1 | script/dedupe |
gman-7.0.0 | script/dedupe |
gman-6.0.1 | script/dedupe |
gman-6.0.0 | script/dedupe |