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

Compare commits

..

9 Commits

9 changed files with 33 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Extract dyndnsd version from tag name - name: Extract dyndnsd version from tag name
run: | run: |
echo ::set-env name=DYNDNSD_VERSION::${GITHUB_REF#refs/*/v} echo "DYNDNSD_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
# https://github.com/marketplace/actions/build-and-push-docker-images # https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build and push Docker image for dyndnsd ${{ env.DYNDNSD_VERSION }} - name: Build and push Docker image for dyndnsd ${{ env.DYNDNSD_VERSION }}
uses: docker/build-push-action@v1 uses: docker/build-push-action@v1

View File

@@ -19,15 +19,14 @@ jobs:
- '2.5' - '2.5'
- '2.6' - '2.6'
- '2.7' - '2.7'
- '3.0'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }} - name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: ${{ matrix.ruby-version }} ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies bundler-cache: true # runs 'bundle install' and caches installed gems automatically
run: | - name: Lint and Test
bundle
- name: Test
run: | run: |
bundle exec rake ci bundle exec rake ci

View File

@@ -1,3 +1,7 @@
require:
- rubocop-rake
- rubocop-rspec
AllCops: AllCops:
TargetRubyVersion: '2.5' TargetRubyVersion: '2.5'
NewCops: enable NewCops: enable
@@ -86,3 +90,9 @@ Style/SymbolArray:
Style/TrailingCommaInArrayLiteral: Style/TrailingCommaInArrayLiteral:
Enabled: false Enabled: false
RSpec/ExampleLength:
Max: 20
RSpec/MultipleExpectations:
Max: 20

View File

@@ -1,5 +1,17 @@
# Changelog # Changelog
## 3.2.0 (January 14, 2021)
IMPROVEMENTS:
- Add Ruby 3.0 support
## 3.1.3 (December 20, 2020)
OTHER:
- fix Docker image release process in Github Actions CI, 3.1.2 was not released as a Docker image
## 3.1.2 (December 20, 2020) ## 3.1.2 (December 20, 2020)
OTHER: OTHER:

View File

@@ -3,5 +3,3 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gemspec gemspec
gem 'solargraph', git: 'https://github.com/zaratan/solargraph.git', branch: 'fix_rubocop_1_0'

View File

@@ -28,4 +28,5 @@ end
task default: [:rubocop, :spec, 'bundle:audit', :solargraph] task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
desc 'Run all tasks desired for CI'
task ci: ['solargraph:init', :default, :hadolint] task ci: ['solargraph:init', :default, :hadolint]

View File

@@ -40,6 +40,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test' s.add_development_dependency 'rack-test'
s.add_development_dependency 'rake' s.add_development_dependency 'rake'
s.add_development_dependency 'rspec' s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 1.6.1' s.add_development_dependency 'rubocop', '~> 1.7.0'
# s.add_development_dependency 'solargraph', '~> 0.39.0' s.add_development_dependency 'rubocop-rake', '~> 0.5.1'
s.add_development_dependency 'rubocop-rspec', '~> 2.1.0'
s.add_development_dependency 'solargraph', '~> 0.40.0'
end end

View File

@@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Dyndnsd module Dyndnsd
VERSION = '3.1.2' VERSION = '3.2.0'
end end

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
require_relative 'spec_helper' require_relative '../spec_helper'
describe Dyndnsd::Daemon do describe Dyndnsd::Daemon do
include Rack::Test::Methods include Rack::Test::Methods