From 05d50b8bd78007bdf2f59fc10d8210745e2b877d Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Wed, 19 Apr 2023 16:16:05 -0300 Subject: [PATCH] Fix missing version bump from last release. This changes the VERSION constant be a macro, so just the shards.yml version number need to be changed. Also change the change lo to adhere to keepachangelog.com --- CHANGELOG.md | 37 +++++++++++++++++++++++++++++++++++++ Changes.md | 26 -------------------------- shard.yml | 2 +- spec/sidekiq_spec.cr | 3 ++- src/sidekiq/version.cr | 2 +- 5 files changed, 41 insertions(+), 29 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 Changes.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d8265b8 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,37 @@ +# Sidekiq.cr Changelog +All notable changes to this project will be documented in this file. + +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.7.2] - 2023-04-19 +### Fixed +- Fix version numbering mistake from 0.7.1 release. +- Fix some more ameba linter errors and ignore others. + +### Changed +- Update dependencies and just fix the minimum required version of them +- Remove ameba from development dependencies but keep using it on CI. +- Adhere to https://keepachangelog.com/en/1.0.0/ + +## [0.7.1] - 2023-03-31 +### Fixed +- Update kemal dependency [#112] + +## [0.7.0] - 2021-04-01 +### Fixed +- Works with Crystal 1.0 + +## [0.6.1] - 2017-05-09 +### Fixed +- Updates for latest Crystal, Kemal versions + +## [0.6.0] - 2016-09-08 +### Added +- Implement `sidekiq_options` for Workers. [#3] + +### Fixed +- Fixes for Crystal 0.19 + +## [0.5.0] - 2016-06-11 +- Initial release. See the wiki for how to [Get Started](https://github.com/mperham/sidekiq.cr/wiki/Getting-Started)! diff --git a/Changes.md b/Changes.md deleted file mode 100644 index 3f730b5..0000000 --- a/Changes.md +++ /dev/null @@ -1,26 +0,0 @@ -# Sidekiq.cr Changelog - -0.7.1 ----------- -- Update kemal dependency [#112] - -0.7.0 ----------- - -- Works with Crystal 1.0 - -0.6.1 ----------- - -- Updates for latest Crystal, Kemal versions - -0.6.0 ----------- - -- Implement `sidekiq_options` for Workers. [#3] -- Fixes for Crystal 0.19 - -0.5.0 ----------- - -- Initial release. See the wiki for how to [Get Started](https://github.com/mperham/sidekiq.cr/wiki/Getting-Started)! diff --git a/shard.yml b/shard.yml index 8dbb79d..001f3ac 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: sidekiq -version: 0.7.0 +version: 0.7.2 authors: - Mike Perham diff --git a/spec/sidekiq_spec.cr b/spec/sidekiq_spec.cr index afa77e7..59f9731 100644 --- a/spec/sidekiq_spec.cr +++ b/spec/sidekiq_spec.cr @@ -1,9 +1,10 @@ require "./spec_helper" +require "semantic_version" describe Sidekiq do describe "basics" do it "has a version" do - Sidekiq::VERSION.should_not be_nil + SemanticVersion.parse(Sidekiq::VERSION) end end diff --git a/src/sidekiq/version.cr b/src/sidekiq/version.cr index 546bd32..26d49ef 100644 --- a/src/sidekiq/version.cr +++ b/src/sidekiq/version.cr @@ -1,3 +1,3 @@ module Sidekiq - VERSION = "0.7.0" + VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }} end