wcc-contentful.gemspec in wcc-contentful-1.0.0.pre.rc1 vs wcc-contentful.gemspec in wcc-contentful-1.0.0.pre.rc2

- old
+ new

@@ -2,10 +2,13 @@ lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wcc/contentful/version' +doc_version = Gem::Version.new(WCC::Contentful::VERSION).release.to_s.sub(/\.\d+$/, '') + +# rubocop:disable Metrics/LineLength Gem::Specification.new do |spec| spec.name = 'wcc-contentful' spec.version = WCC::Contentful::VERSION spec.authors = ['Watermark Dev'] spec.email = ['dev@watermark.org'] @@ -13,10 +16,14 @@ spec.summary = File.readlines(File.expand_path('README.md', __dir__)).join spec.description = 'Contentful API wrapper library exposing an ActiveRecord-like interface' spec.homepage = 'https://github.com/watermarkchurch/wcc-contentful/wcc-contentful' spec.license = 'MIT' + spec.metadata = { + 'documentation_uri' => "https://watermarkchurch.github.io/wcc-contentful/#{doc_version}/wcc-contentful" + } + spec.required_ruby_version = '>= 2.3' spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/}) @@ -61,5 +68,6 @@ spec.add_dependency 'activesupport', '>= 5' spec.add_dependency 'wcc-base', '~> 0.3.1' spec.add_dependency 'wisper', '~> 2.0.0' end +# rubocop:enable Metrics/LineLength