1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-08-08 08:33:56 +02:00

Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
921c187d33 gems: update async-dns requirement from ~> 1.3.0 to >= 1.3, < 1.5
Updates the requirements on [async-dns](https://github.com/socketry/async-dns) to permit the latest version.
- [Changelog](https://github.com/socketry/async-dns/blob/main/release.cert)
- [Commits](https://github.com/socketry/async-dns/compare/v1.3.0...v1.4.1)

---
updated-dependencies:
- dependency-name: async-dns
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-27 22:03:49 +00:00
9 changed files with 18 additions and 24 deletions

View File

@@ -20,13 +20,6 @@
matchManagers: ["bundler"],
enabled: false,
},
// Only quarter update since noisy/stable tools
{
matchPackageNames: [
"aquasecurity/trivy",
],
schedule: ["* 0-8 1 */3 *"],
},
// Commit message formats
{
matchDatasources: ["docker"],
@@ -40,7 +33,7 @@
customManagers: [
{
customType: "regex",
managerFilePatterns: ["/.rb$/", "/^Rakefile$/"],
fileMatch: ["\.rb$", "^Rakefile$"],
matchStrings: [
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s.*_version = '(?<currentValue>.*)'\\s"
]

View File

@@ -18,6 +18,7 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- '3.0'
- '3.1'
- '3.2'
- '3.3'

View File

@@ -1,4 +1,4 @@
plugins:
require:
- rubocop-rake
- rubocop-rspec

View File

@@ -16,7 +16,7 @@ end
hadolint_version = 'v2.12.0'
# renovate: datasource=github-tags depName=aquasecurity/trivy
trivy_version = 'v0.61.1'
trivy_version = 'v0.59.1'
namespace :docker do
ci_image = 'cmur2/dyndnsd:ci'
@@ -69,7 +69,7 @@ end
namespace :bundle do
desc 'Check for vulnerabilities with bundler-audit'
task :audit do
sh 'bundler-audit check --ignore GHSA-vvfq-8hwr-qm4m' if !RUBY_VERSION.start_with?('3.0')
sh 'bundler-audit check --ignore GHSA-vvfq-8hwr-qm4m'
end
end

View File

@@ -1,11 +1,11 @@
FROM alpine:3.22.0
FROM alpine:3.21.2
EXPOSE 5353 8080
ARG DYNDNSD_VERSION
RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-webrick && \
apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \
apk --no-cache add --virtual .build-deps linux-headers ruby-dev build-base tzdata && \
gem install --no-document dyndnsd -v ${DYNDNSD_VERSION} && \
rm -rf /usr/lib/ruby/gems/*/cache/ && \

View File

@@ -1,11 +1,11 @@
FROM alpine:3.22.0
FROM alpine:3.21.2
EXPOSE 5353 8080
COPY pkg/dyndnsd-*.gem /tmp/dyndnsd.gem
RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-webrick && \
apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \
apk --no-cache add --virtual .build-deps linux-headers ruby-dev build-base tzdata && \
gem install --no-document /tmp/dyndnsd.gem && \
rm -rf /usr/lib/ruby/gems/*/cache/ && \

View File

@@ -28,9 +28,9 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 3.0'
s.add_dependency 'async', '~> 1.31.0'
s.add_dependency 'async-dns', '~> 1.3.0'
s.add_dependency 'async-dns', '>= 1.3', '< 1.5'
s.add_dependency 'base64', '~> 0.2.0' # needed for async
s.add_dependency 'logger', '>= 1.6', '< 1.8'
s.add_dependency 'logger', '~> 1.6.0'
s.add_dependency 'metriks'
s.add_dependency 'opentelemetry-exporter-jaeger', '~> 0.22.0'
s.add_dependency 'opentelemetry-instrumentation-rack', '~> 0.22.0'
@@ -44,8 +44,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 1.77.0'
s.add_development_dependency 'rubocop-rake', '~> 0.7.1'
s.add_development_dependency 'rubocop-rspec', '~> 3.6.0'
s.add_development_dependency 'solargraph', '~> 0.55.0'
s.add_development_dependency 'rubocop', '~> 1.71.0'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 3.4.0'
s.add_development_dependency 'solargraph', '~> 0.49.0'
end

View File

@@ -138,7 +138,7 @@ module Dyndnsd
# @param params [Hash{String => String}]
# @return [Array<String>]
def extract_v4_and_v6_address(params)
return [] if !params['myip']
return [] if !(params['myip'])
begin
IPAddr.new(params['myip'], Socket::AF_INET)
IPAddr.new(params['myip6'], Socket::AF_INET6)
@@ -207,7 +207,7 @@ module Dyndnsd
params = Rack::Utils.parse_query(env['QUERY_STRING'])
# require hostname parameter
return [422, {'X-DynDNS-Response' => 'hostname_missing'}, []] if !params['hostname']
return [422, {'X-DynDNS-Response' => 'hostname_missing'}, []] if !(params['hostname'])
hostnames = params['hostname'].split(',')

View File

@@ -89,7 +89,7 @@ module Dyndnsd
# @return [Array{Array{Object}}]
def self.parse_endpoints(endpoint_list)
endpoint_list.map { |addr_string| addr_string.split('@') }
.map { |addr_parts| [addr_parts[0], addr_parts[1]&.to_i || 53] }
.map { |addr_parts| [addr_parts[0], addr_parts[1].to_i || 53] }
.map { |addr| [:tcp, :udp].map { |type| [type] + addr } }
.flatten(1)
end