Skip to content

Commit

Permalink
build: read version from git or env
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Oct 22, 2024
1 parent c12924a commit 194a201
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

2 changes: 1 addition & 1 deletion netbox-client-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'netbox-client-ruby'
spec.version = File.read(File.expand_path('VERSION', __dir__)).strip
spec.version = (ENV["GITHUB_REF_NAME"] || `git describe --tags --match="v[0-9]*" --abbrev=0`).strip.delete_prefix("v")

spec.summary = 'A read/write client for Netbox v2.'
spec.homepage = 'https://github.com/ninech/netbox-client-ruby'
Expand Down

0 comments on commit 194a201

Please sign in to comment.