We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 130e939 commit c2e24d2Copy full SHA for c2e24d2
3 files changed
VERSION
@@ -0,0 +1 @@
1
+0.13.0
lib/netbox_client_ruby/version.rb
@@ -0,0 +1,11 @@
+# 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
11
+end
netbox-client-ruby.gemspec
@@ -1,8 +1,10 @@
# frozen_string_literal: true
+require_relative 'lib/netbox_client_ruby/version'
Gem::Specification.new do |spec|
spec.name = 'netbox-client-ruby'
- spec.version = `git describe --tags --match="v[0-9]*" --abbrev=0`.strip.delete_prefix("v")
+ spec.version = NetboxClientRuby::VERSION::STRING
spec.summary = 'A read/write client for Netbox v2.'
spec.homepage = 'https://github.com/ninech/netbox-client-ruby'
0 commit comments