forked from rbuchberger/jekyll_picture_tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjekyll-picture-tag.gemspec
52 lines (45 loc) · 2.16 KB
/
jekyll-picture-tag.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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