Skip to content

Commit

Permalink
Merge pull request #61 from truemail-rb/develop
Browse files Browse the repository at this point in the history
truemail-client v0.6.1
  • Loading branch information
bestwebua authored Mar 4, 2024
2 parents 37d37ec + 5c6c027 commit 8682100
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
- <<: *bundle_install
- <<: *install_linters

- run:
name: Running commit linters
command: lefthook run commit-linters

- run:
name: Running code style linters
command: lefthook run code-style-linters
Expand Down
6 changes: 3 additions & 3 deletions .circleci/gemspecs/latest
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'reek', '~> 6.3'
spec.add_development_dependency 'rspec', '~> 3.13'
spec.add_development_dependency 'rubocop', '~> 1.60', '>= 1.60.2'
spec.add_development_dependency 'rubocop', '~> 1.61'
spec.add_development_dependency 'rubocop-performance', '~> 1.20', '>= 1.20.2'
spec.add_development_dependency 'rubocop-rspec', '~> 2.26', '>= 2.26.1'
spec.add_development_dependency 'rubocop-rspec', '~> 2.27', '>= 2.27.1'
spec.add_development_dependency 'simplecov', '~> 0.22.0'
spec.add_development_dependency 'webmock', '~> 3.19', '>= 3.19.1'
spec.add_development_dependency 'webmock', '~> 3.23'
end
39 changes: 39 additions & 0 deletions .circleci/linter_configs/.commitspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---

enableGlobDot: true

patterns:
- name: GithubUser
pattern: /\[@.+\]/gmx

languageSettings:
- languageId: markdown
ignoreRegExpList:
- Email
- GithubUser

words:
- autoreleasing
- bagage
- bagages
- bestwebua
- configurator
- codebases
- codeclimate
- commitspell
- changeloglint
- ffaker
- gemset
- gemspecs
- healthcheck
- lefthook
- markdownlint
- punycode
- rubocop
- rubygems
- simplecov
- shellcheck
- stdlib
- substeps
- truemail
- yamlint
5 changes: 5 additions & 0 deletions .circleci/linter_configs/.lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ no_tty: true
skip_output:
- meta

commit-linters:
commands:
commitspell:
run: .circleci/scripts/commitspell.sh -c '.circleci/linter_configs/.commitspell.yml'

code-style-linters:
commands:
reek:
Expand Down
22 changes: 22 additions & 0 deletions .circleci/scripts/commitspell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
set -e

configuration=$(if [ "$2" = "" ]; then echo "$2"; else echo " $1 $2"; fi)
latest_commit=$(git rev-parse HEAD)

spellcheck_info() {
echo "Checking the spelling of the latest commit ($latest_commit) message..."
}

compose_cspell_command() {
echo "cspell-cli lint stdin$configuration"
}

cspell="$(compose_cspell_command)"

spellcheck_latest_commit() {
git log -1 --pretty=%B | $cspell
}

spellcheck_info
spellcheck_latest_commit
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ checks:
plugins:
rubocop:
enabled: true
channel: rubocop-1-60
channel: rubocop-1-61
config:
file: .circleci/linter_configs/.rubocop.yml

Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +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).

## [0.6.1] - 2024-03-04

### Added

- Added `commitspell`

### Updated

- Updated development dependencies
- Updated gemspecs
- Updated `codeclimate`/`circleci` configs
- Updated gem version

## [0.6.0] - 2023-02-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/truemail/client/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Truemail
module Client
VERSION = '0.6.0'
VERSION = '0.6.1'
end
end
2 changes: 1 addition & 1 deletion spec/truemail/client/version_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

RSpec.describe Truemail::Client::VERSION do
specify { is_expected.not_to be_nil }
it { is_expected.not_to be_nil }
end
2 changes: 1 addition & 1 deletion truemail-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'json_matchers', '~> 0.11.1'
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'rspec', '~> 3.13'
spec.add_development_dependency 'webmock', '~> 3.19', '>= 3.19.1'
spec.add_development_dependency 'webmock', '~> 3.23'
end

0 comments on commit 8682100

Please sign in to comment.