From 6af5922217411bd0962c614bb7e9f184f966cde3 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Tue, 27 Sep 2022 20:58:19 +0200 Subject: [PATCH] Version 0.2.0 - required ruby>=2.7. **-kw-options. BETA --- Gemfile | 1 + knot-ruby.gemspec | 2 +- lib/knot.rb | 10 ++++++++++ lib/knot/interface.rb | 15 +++++++++------ lib/knot/protocol.rb | 35 ++++++++++++++++++++++++++++------- lib/knot/version.rb | 2 +- 6 files changed, 50 insertions(+), 15 deletions(-) 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 <