Skip to content

Commit

Permalink
Switching to git-version-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mscottford committed Sep 5, 2023
1 parent 45d135e commit 006c08f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
6 changes: 0 additions & 6 deletions .semver

This file was deleted.

1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 1.21'
gem 'rubocop-performance'

gem 'semver2', '~> 3.4', '>= 3.4.2'
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
PATH
remote: .
specs:
freshli-commons (0.6.5)
freshli-commons (0.6.5.5.g45d135e.1.dirty.20230905.132546)
aruba (~> 2.1.0)
git-version-bump
grpc
grpc-tools
rspec-expectations
Expand Down Expand Up @@ -49,6 +50,7 @@ GEM
cucumber-tag-expressions (4.1.0)
diff-lcs (1.5.0)
ffi (1.15.5)
git-version-bump (0.19.0)
google-protobuf (3.24.1-arm64-darwin)
google-protobuf (3.24.1-x86_64-linux)
googleapis-common-protos-types (1.8.0)
Expand Down Expand Up @@ -106,7 +108,6 @@ GEM
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.13.0)
semver2 (3.4.2)
sqlite3 (1.6.3-arm64-darwin)
sqlite3 (1.6.3-x86_64-linux)
sys-uname (1.2.3)
Expand All @@ -124,7 +125,6 @@ DEPENDENCIES
rspec (~> 3.0)
rubocop (~> 1.21)
rubocop-performance
semver2 (~> 3.4, >= 3.4.2)

BUNDLED WITH
2.4.18
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'git-version-bump/rake-tasks'

require 'fileutils'

Expand Down
15 changes: 4 additions & 11 deletions freshli-commons.gemspec
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
# frozen_string_literal: true

begin
require 'semver'
# rubocop:disable Style/FormatStringToken
semver_version = SemVer.find.format('%M.%m.%p%s%d')
# rubocop:enable Style/FormatStringToken
rescue LoadError
require 'yaml'
version_data = YAML.load_file(File.join(__dir__, '.semver'))
semver_version = "#{version_data[:major]}.#{version_data[:minor]}.#{version_data[:patch]}-#{version_data[:special]}"
end
require 'git-version-bump'

Gem::Specification.new do |spec|
spec.name = 'freshli-commons'

spec.version = semver_version
spec.version = GVB.version
spec.date = GVB.date

spec.authors = ['M. Scott Ford']
spec.email = ['[email protected]']
Expand Down Expand Up @@ -48,6 +40,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'grpc-tools'
spec.add_dependency 'rspec-expectations'
spec.add_dependency 'sqlite3'
spec.add_dependency 'git-version-bump'

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
Expand Down

0 comments on commit 006c08f

Please sign in to comment.