# Why 2 gemspecs? # # Originally, this gem was named 'jekyll-picture-tag', and published on rubygems # under this name. There was a break in development, during which push access to # rubygems was lost. Development was later resumed, and as a workaround for that # issue the installation instructions were to source the gem from the Github # repository. # # Ultimately, the decision was made to rename it by switching the dashes for # underscores, which follows best practice and allows pushing it to rubygems # under the new name. The drawback of this situation is that everyone who # followed the installaion instructions previously would see their site # inexplicably break, as it would be searching for a gemspec that doesn't exist. # As a workaround (to the old workaround... sigh) this gemspec lets us print a # warning and then require the new version, which keeps old sites working while # encouraging people to use rubygems. lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'jekyll_picture_tag/version' Gem::Specification.new do |spec| spec.name = 'jekyll-picture-tag' spec.version = PictureTag::VERSION spec.authors = ['Robert Wierzbowski', 'Brendan Tobolaski', 'Robert Buchberger'] spec.email = ['robert@buchberger.cc'] spec.summary = 'Easy responsive images for Jekyll.' spec.description = <<~HEREDOC ____ _ _ | _ \ ___ _ __ _ __ ___ ___ __ _| |_ ___ __| | | | | |/ _ \ '_ \| '__/ _ \/ __/ _` | __/ _ \/ _` | | |_| | __/ |_) | | | __/ (_| (_| | || __/ (_| | |____/ \___| .__/|_| \___|\___\__,_|\__\___|\__,_| |_| This gem has been renamed! Use jekyll_picture_tag instead, which is now hosted on rubygems. HEREDOC spec.homepage = 'https://github.com/rbuchberger/jekyll_picture_tag' spec.license = 'BSD-3-Clause' spec.require_paths = ['lib'] spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/}) end spec.required_ruby_version = ['>= 2.5', '< 3'] spec.add_dependency 'jekyll_picture_tag' end