diff --git a/lib/sharepoint/version.rb b/lib/sharepoint/version.rb new file mode 100644 index 0000000..07eea6e --- /dev/null +++ b/lib/sharepoint/version.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Sharepoint + module Version + MAJOR = 0 + MINOR = 2 + PATCH = 0 + BUILD = nil + + VERSION = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze + end +end diff --git a/sharepoint.gemspec b/sharepoint.gemspec index 0a4f4ff..3855887 100644 --- a/sharepoint.gemspec +++ b/sharepoint.gemspec @@ -1,8 +1,11 @@ # frozen_string_literal: true +$LOAD_PATH.push File.expand_path('lib', __dir__) +require 'sharepoint/version' + Gem::Specification.new do |gem| gem.name = 'sharepoint' - gem.version = '0.1.0' + gem.version = Sharepoint::Version::VERSION gem.authors = ['Antonio Delfin'] gem.email = ['a.delfin@ifad.org'] gem.description = 'Ruby client to consume Sharepoint services'