mirror of
https://github.com/Evolix/chexpire.git
synced 2024-04-26 22:10:50 +02:00
Remove "require" deprecated by Zeitwerk
This commit is contained in:
parent
f07b93189c
commit
41f6433b58
|
@ -1,4 +1,5 @@
|
||||||
# require "ssl/errors"
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
class SSLSyncJob < ApplicationJob
|
class SSLSyncJob < ApplicationJob
|
||||||
queue_as :default
|
queue_as :default
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# require "whois/errors"
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
class WhoisSyncJob < ApplicationJob
|
class WhoisSyncJob < ApplicationJob
|
||||||
queue_as :default
|
queue_as :default
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "notifier/processor"
|
|
||||||
|
|
||||||
module Notifier
|
module Notifier
|
||||||
class << self
|
class << self
|
||||||
def process_all(configuration = nil)
|
def process_all(configuration = nil)
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "naught"
|
|
||||||
|
|
||||||
NullLogger = Naught.build
|
NullLogger = Naught.build
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "null_logger"
|
|
||||||
# require "system_command"
|
|
||||||
# require_relative "ssl/parser"
|
|
||||||
# require_relative "ssl/response"
|
|
||||||
# require_relative "ssl/errors"
|
|
||||||
|
|
||||||
module SSL
|
module SSL
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "null_logger"
|
|
||||||
# require "ssl/errors"
|
|
||||||
|
|
||||||
module SSL
|
module SSL
|
||||||
class Parser
|
class Parser
|
||||||
DATE_REGEX = /will expire on (.+)\./
|
DATE_REGEX = /will expire on (.+)\./
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "open4"
|
|
||||||
# require "null_logger"
|
|
||||||
|
|
||||||
class SystemCommand
|
class SystemCommand
|
||||||
Result = Struct.new(:command, :exit_status, :stdout, :stderr)
|
Result = Struct.new(:command, :exit_status, :stdout, :stderr)
|
||||||
class NotAllowedError < StandardError; end
|
class NotAllowedError < StandardError; end
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "null_logger"
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "system_command"
|
|
||||||
# require_relative "whois/parser"
|
|
||||||
# require_relative "whois/response"
|
|
||||||
# require_relative "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "null_logger"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require "whois/parser/afilias"
|
|
||||||
# require "whois/parser/afnic"
|
|
||||||
# require "whois/parser/cira"
|
|
||||||
# require "whois/parser/io"
|
|
||||||
# require "whois/parser/neustar"
|
|
||||||
# require "whois/parser/sonic"
|
|
||||||
# require "whois/parser/verisign"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
PARSERS = [
|
PARSERS = [
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class Afilias < Base
|
class Afilias < Base
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class AFNIC < Base
|
class AFNIC < Base
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "null_logger"
|
|
||||||
require_relative "../response"
|
require_relative "../response"
|
||||||
# require_relative "../errors"
|
|
||||||
# require_relative "entry_builder"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class CIRA < Base
|
class CIRA < Base
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
module Entry
|
module Entry
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
module Entry
|
module Entry
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
module Entry
|
module Entry
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require_relative "entry/blank"
|
|
||||||
# require_relative "entry/field"
|
|
||||||
# require_relative "entry/text"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class EntryBuilder
|
class EntryBuilder
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class IO < Base
|
class IO < Base
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class Neustar < Base
|
class Neustar < Base
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class Sonic < Base
|
class Sonic < Base
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "domain_helper"
|
|
||||||
# require "whois/errors"
|
|
||||||
# require_relative "base"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
module Parser
|
module Parser
|
||||||
class Verisign < Base
|
class Verisign < Base
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "null_logger"
|
|
||||||
|
|
||||||
namespace :checks do
|
namespace :checks do
|
||||||
namespace :sync_dates do
|
namespace :sync_dates do
|
||||||
task all: [:domain, :ssl]
|
task all: [:domain, :ssl]
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "services/notifier"
|
|
||||||
|
|
||||||
namespace :notifications do
|
namespace :notifications do
|
||||||
desc "Send all notifications after checks have been performend"
|
desc "Send all notifications after checks have been performend"
|
||||||
task send_all: :environment do
|
task send_all: :environment do
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "domain_helper"
|
|
||||||
|
|
||||||
class DomainHelperTest < ActiveSupport::TestCase
|
class DomainHelperTest < ActiveSupport::TestCase
|
||||||
include DomainHelper
|
include DomainHelper
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "check_logger"
|
|
||||||
# require "system_command"
|
|
||||||
|
|
||||||
class CheckLoggerTest < ActiveSupport::TestCase
|
class CheckLoggerTest < ActiveSupport::TestCase
|
||||||
setup do
|
setup do
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "notifier/resolver"
|
|
||||||
|
|
||||||
# rubocop:disable Metrics/LineLength
|
# rubocop:disable Metrics/LineLength
|
||||||
module Notifier
|
module Notifier
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "notifier"
|
|
||||||
|
|
||||||
class NotifierTest < ActiveSupport::TestCase
|
class NotifierTest < ActiveSupport::TestCase
|
||||||
test "#process_all process expirable & failures notifications" do
|
test "#process_all process expirable & failures notifications" do
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "ssl/parser"
|
|
||||||
# require "ssl/errors"
|
|
||||||
|
|
||||||
module SSL
|
module SSL
|
||||||
class ParserTest < ActiveSupport::TestCase
|
class ParserTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "ssl"
|
|
||||||
# require "system_command"
|
|
||||||
|
|
||||||
module SSL
|
module SSL
|
||||||
class ServiceTest < ActiveSupport::TestCase
|
class ServiceTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "system_command"
|
|
||||||
|
|
||||||
class SystemCommandTest < ActiveSupport::TestCase
|
class SystemCommandTest < ActiveSupport::TestCase
|
||||||
test "should execute and log a command" do
|
test "should execute and log a command" do
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/afilias"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class AfiliasTest < ActiveSupport::TestCase
|
class AfiliasTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/afnic"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class AFNICTest < ActiveSupport::TestCase
|
class AFNICTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/cira"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class CIRATest < ActiveSupport::TestCase
|
class CIRATest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/io"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class IOTest < ActiveSupport::TestCase
|
class IOTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/neustar"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class NeustarTest < ActiveSupport::TestCase
|
class NeustarTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/sonic"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class SonicTest < ActiveSupport::TestCase
|
class SonicTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser/verisign"
|
|
||||||
# require "whois/response"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class VerisignTest < ActiveSupport::TestCase
|
class VerisignTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois/parser"
|
|
||||||
# require "whois/errors"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class ParserTest < ActiveSupport::TestCase
|
class ParserTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
require "test_helper"
|
require "test_helper"
|
||||||
# require "whois"
|
|
||||||
# require "system_command"
|
|
||||||
|
|
||||||
module Whois
|
module Whois
|
||||||
class ServiceTest < ActiveSupport::TestCase
|
class ServiceTest < ActiveSupport::TestCase
|
||||||
|
|
|
@ -40,8 +40,6 @@ class ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
# Disable Open4 real system calls
|
# Disable Open4 real system calls
|
||||||
# require "open4"
|
|
||||||
# require "errors"
|
|
||||||
module Open4
|
module Open4
|
||||||
def popen4(*)
|
def popen4(*)
|
||||||
fail SystemCommand::NotAllowedError,
|
fail SystemCommand::NotAllowedError,
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
||||||
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
||||||
|
|
||||||
# require "system_command"
|
|
||||||
|
|
||||||
module TestMocksHelper
|
module TestMocksHelper
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
def mock_system_command(program, args, exit_status: 0, stdout: "", stderr: "")
|
def mock_system_command(program, args, exit_status: 0, stdout: "", stderr: "")
|
||||||
|
|
Loading…
Reference in a new issue