lib/cmd/version.rb in spell_craft-0.1.2 vs lib/cmd/version.rb in spell_craft-0.1.3
- old
+ new
@@ -1,12 +1,14 @@
# frozen_string_literal: true
# typed: true
+require 'rubygems'
+
module Cmd
class Version < Dry::CLI::Command
desc 'Print version'
def call
- puts '0.0.1'
+ puts Gem::Specification.load('spell_craft.gemspec').version
end
end
end