Skip to content

Commit

Permalink
Technical/Refactor (#96)
Browse files Browse the repository at this point in the history
* Updated releasing script
* Updated gemspecs
* Updated linter configs
* Updated gem version
  • Loading branch information
bestwebua authored Dec 1, 2022
1 parent 93439c0 commit aac67a2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 49 deletions.
9 changes: 3 additions & 6 deletions .circleci/gemspecs/compatible
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ Gem::Specification.new do |spec|
spec.name = 'dns_mock'
spec.version = DnsMock::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = ['[email protected]']
spec.email = %w[[email protected]]
spec.summary = %(dns_mock)
spec.description = %(💎 Ruby DNS mock. Mimic any DNS records for your test environment and even more.)
spec.homepage = 'https://github.com/mocktools/ruby-dns-mock'
spec.license = 'MIT'

spec.required_ruby_version = '>= 2.5.0'

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
spec.require_paths = ['lib']
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = %w[lib]

spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'

Expand Down
7 changes: 2 additions & 5 deletions .circleci/gemspecs/latest
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ Gem::Specification.new do |spec|
spec.name = 'dns_mock'
spec.version = DnsMock::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = ['[email protected]']
spec.email = %w[[email protected]]
spec.summary = %(dns_mock)
spec.description = %(💎 Ruby DNS mock. Mimic any DNS records for your test environment and even more.)
spec.homepage = 'https://github.com/mocktools/ruby-dns-mock'
spec.license = 'MIT'

spec.required_ruby_version = '>= 2.5.0'

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
spec.require_paths = ['lib']
spec.require_paths = %w[lib]

spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'

Expand Down
6 changes: 3 additions & 3 deletions .circleci/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# !/bin/sh
set -e

RELEASES_URL="https://github.com/cli/cli/releases"
GH_CLI_RELEASES_URL="https://github.com/cli/cli/releases"
FILE_NAME="gh"
BUILD_ARCHITECTURE="linux_amd64.deb"
DELIMETER="_"
PACKAGE_FILE="$FILE_NAME$DELIMETER$BUILD_ARCHITECTURE"

gh_cli_latest_release() {
curl -sL -o /dev/null -w %{url_effective} "$RELEASES_URL/latest" | rev | cut -f1 -d'/'| rev
curl -sL -o /dev/null -w %{url_effective} "$GH_CLI_RELEASES_URL/latest" | rev | cut -f1 -d'/'| rev
}

download_gh_cli() {
Expand All @@ -17,7 +17,7 @@ download_gh_cli() {
echo "Unable to get GitHub CLI release." >&2
exit 1
}
curl -s -L -o "$PACKAGE_FILE" "$RELEASES_URL/download/$VERSION/$FILE_NAME$DELIMETER${VERSION:1}$DELIMETER$BUILD_ARCHITECTURE"
curl -s -L -o "$PACKAGE_FILE" "$GH_CLI_RELEASES_URL/download/$VERSION/$FILE_NAME$DELIMETER${VERSION:1}$DELIMETER$BUILD_ARCHITECTURE"
}

install_gh_cli() {
Expand Down
2 changes: 2 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

checks:
argument-count:
enabled: false
Expand Down
31 changes: 4 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,19 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.11] - 2022-11-30
## [1.5.13] - 2022-12-01

### Updated

- Updated releasing script, removed git publisher defining

## [1.5.11] - 2022-11-30

### Fixed

- Fixed releasing script (publisher git details)
- Updated releasing script, gemspecs, linter configs
- Updated gem version

## [1.5.10] - 2022-11-30
## [1.5.7 - 1.5.12] - 2022-11-30

### Fixed

- Fixed releasing script (publisher git details)

## [1.5.9] - 2022-11-30

### Fixed

- Fixed releasing script (publisher details)

## [1.5.8] - 2022-11-30

### Fixed

- Fixed releasing script (publisher details)

## [1.5.7] - 2022-11-30

### Fixed

- Fixed releasing script

## [1.5.6] - 2022-11-30

### Added
Expand Down
10 changes: 3 additions & 7 deletions dns_mock.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
spec.name = 'dns_mock'
spec.version = DnsMock::VERSION
spec.authors = ['Vladislav Trotsenko']
spec.email = ['[email protected]']
spec.email = %w[[email protected]]

spec.summary = %(dns_mock)
spec.description = %(💎 Ruby DNS mock. Mimic any DNS records for your test environment and even more.)
Expand All @@ -23,12 +23,8 @@ Gem::Specification.new do |spec|
}

spec.required_ruby_version = '>= 2.5.0'

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib)/|.ruby-version|dns_mock.gemspec|LICENSE}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
spec.require_paths = ['lib']
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib)/|.ruby-version|dns_mock.gemspec|LICENSE}) }
spec.require_paths = %w[lib]

spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'

Expand Down
2 changes: 2 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

skip_output:
- meta
code-style-linters:
Expand Down
2 changes: 1 addition & 1 deletion lib/dns_mock/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module DnsMock
VERSION = '1.5.12'
VERSION = '1.5.13'
end

0 comments on commit aac67a2

Please sign in to comment.