From 2f746cc9f5441e5b9af169e323b35056e6d695ef Mon Sep 17 00:00:00 2001
From: f <f@sutty.nl>
Date: Sat, 2 May 2020 12:22:18 -0300
Subject: [PATCH] v0.1.1

---
 jekyll-hardlinks.gemspec        | 47 ++++++++++++++++++---------------
 lib/jekyll/hardlinks/version.rb |  5 ----
 2 files changed, 25 insertions(+), 27 deletions(-)
 delete mode 100644 lib/jekyll/hardlinks/version.rb

diff --git a/jekyll-hardlinks.gemspec b/jekyll-hardlinks.gemspec
index 3f34b22..ec71047 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 19eee22..0000000
--- a/lib/jekyll/hardlinks/version.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-module Jekyll
-  module Hardlinks
-    VERSION = "0.1.0"
-  end
-end
-- 
GitLab