diff --git a/Gemfile b/Gemfile index 548b363..844a1ab 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source "https://rubygems.org" +ruby '>=2.7' # Specify your gem's dependencies in knot.gemspec gemspec diff --git a/knot-ruby.gemspec b/knot-ruby.gemspec index 5a51a4b..d8dded8 100644 --- a/knot-ruby.gemspec +++ b/knot-ruby.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.summary = %q{Provides interface to knot-server.} spec.description = %q{Implements knot-protocol to provide an interface to knot-DNS-server} spec.homepage = 'https://git.denkn.at/deac/knot' - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") #spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" diff --git a/lib/knot.rb b/lib/knot.rb index 4231108..32f0701 100644 --- a/lib/knot.rb +++ b/lib/knot.rb @@ -2,3 +2,13 @@ require 'knot/version' require 'knot/errors' require 'knot/protocol' require 'knot/interface' + +module Knot + class <