diff --git a/jekyll-hardlinks.gemspec b/jekyll-hardlinks.gemspec index 3f34b22386d970c32ac9b08892ae76e26ee18068..ec71047c0abdbd3d00b18511b4774b9f5fbacf87 100644 --- a/jekyll-hardlinks.gemspec +++ b/jekyll-hardlinks.gemspec @@ -1,33 +1,36 @@ -lib = File.expand_path('lib', __dir__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'jekyll/hardlinks/version' - Gem::Specification.new do |spec| spec.name = 'jekyll-hardlinks' - spec.version = Jekyll::Hardlinks::VERSION - spec.authors = ['f'] - spec.email = ['f@sutty.nl'] + spec.version = '0.1.1' + spec.authors = %w[f] + spec.email = %w[f@sutty.nl] spec.summary = 'Saves space by using hard links for static files' spec.description = 'Jekyll copies static files and duplicates storage use. Hard links point to the same file instead of making copies, thus saving storage.' - spec.homepage = 'https://0xacab.org/sutty/jekyll/jekyll-hardlinks' + spec.homepage = "https://0xacab.org/sutty/jekyll/#{spec.name}" spec.license = 'GPL-3.0' + spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') + + spec.metadata = { + 'bug_tracker_uri' => "#{spec.homepage}/issues", + 'homepage_uri' => spec.homepage, + 'source_code_uri' => spec.homepage, + 'changelog_uri' => "#{spec.homepage}/-/blob/master/CHANGELOG.md", + 'documentation_uri' => "https://rubydoc.info/gems/#{spec.name}" + } - spec.metadata['allowed_push_host'] = 'https://rubygems.org' + spec.files = Dir['lib/**/*'] + spec.require_paths = %w[lib] - spec.metadata['homepage_uri'] = spec.homepage - spec.metadata['source_code_uri'] = spec.homepage - spec.metadata['changelog_uri'] = spec.homepage + spec.extra_rdoc_files = Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt'] + spec.rdoc_options += [ + '--title', "#{spec.name} - #{spec.summary}", + '--main', 'README.md', + '--line-numbers', + '--inline-source', + '--quiet' + ] - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end - spec.bindir = 'exe' - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ['lib'] + spec.required_ruby_version = '~> 2' - spec.add_development_dependency 'bundler', '~> 2.0' - spec.add_development_dependency 'rake', '~> 10.0' + spec.add_dependency 'jekyll', '~> 4' end diff --git a/lib/jekyll/hardlinks/version.rb b/lib/jekyll/hardlinks/version.rb deleted file mode 100644 index 19eee2278ecef5463f893137b4d8ba3c702588fd..0000000000000000000000000000000000000000 --- a/lib/jekyll/hardlinks/version.rb +++ /dev/null @@ -1,5 +0,0 @@ -module Jekyll - module Hardlinks - VERSION = "0.1.0" - end -end