Skip to content

Commit c2e24d2

Browse files
committed
Restore VERSION file
1 parent 130e939 commit c2e24d2

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.13.0

lib/netbox_client_ruby/version.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
module NetboxClientRuby
4+
def self.gem_version
5+
Gem::Version.new VERSION::STRING
6+
end
7+
8+
module VERSION
9+
STRING = File.read(File.expand_path('../../VERSION', __dir__)).strip
10+
end
11+
end

netbox-client-ruby.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# frozen_string_literal: true
22

3+
require_relative 'lib/netbox_client_ruby/version'
4+
35
Gem::Specification.new do |spec|
46
spec.name = 'netbox-client-ruby'
5-
spec.version = `git describe --tags --match="v[0-9]*" --abbrev=0`.strip.delete_prefix("v")
7+
spec.version = NetboxClientRuby::VERSION::STRING
68

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

0 commit comments

Comments
 (0)