jekyll-redirect-from 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +1 -0
- data/.travis.yml +3 -6
- data/Gemfile +3 -1
- data/History.markdown +24 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -1
- data/Rakefile +3 -1
- data/jekyll-redirect-from.gemspec +15 -12
- data/lib/jekyll-redirect-from.rb +7 -4
- data/lib/jekyll-redirect-from/context.rb +2 -0
- data/lib/jekyll-redirect-from/generator.rb +21 -5
- data/lib/jekyll-redirect-from/layout.rb +3 -1
- data/lib/jekyll-redirect-from/page_without_a_file.rb +9 -0
- data/lib/jekyll-redirect-from/redirect.html +3 -2
- data/lib/jekyll-redirect-from/redirect_page.rb +14 -4
- data/lib/jekyll-redirect-from/redirectable.rb +2 -0
- data/lib/jekyll-redirect-from/version.rb +3 -1
- data/script/bootstrap +2 -1
- data/script/cibuild +3 -3
- data/script/fmt +10 -0
- data/script/release +1 -0
- data/spec/integrations_spec.rb +2 -0
- data/spec/jekyll_redirect_from/context_spec.rb +2 -0
- data/spec/jekyll_redirect_from/generator_spec.rb +62 -0
- data/spec/jekyll_redirect_from/layout_spec.rb +3 -1
- data/spec/jekyll_redirect_from/redirect_page_spec.rb +1 -1
- data/spec/jekyll_redirect_from/redirectable_spec.rb +2 -0
- data/spec/spec_helper.rb +8 -6
- metadata +21 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 73140a57a234f6232115e33527adf1c1990047e283c7c7da89903e5f7e6c69f0
|
4
|
+
data.tar.gz: a8fefa172d07d08585d4b588f92387fc7619b4c44c175219a0586bf28f9d33a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d78e9d907d33605e3975096ece1d8175a1fd4a68ee4cf637ea4b6f304e62e41aaeb720f2b3bfe208fcfcdcfaa7c2496fa2a6c3addb00afc5d4184c8767588fae
|
7
|
+
data.tar.gz: 13a2e320e9ab868e8949eec8fc3da74a328a0d276a1e2312a7ad0026430f861ebc4a7f9338031fb85a881ee5c145432a73539608f21de6075b77ed0c29494fcf
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -7,14 +7,11 @@ cache: bundler
|
|
7
7
|
matrix:
|
8
8
|
include:
|
9
9
|
- # GitHub Pages
|
10
|
-
rvm: 2.
|
10
|
+
rvm: 2.4.0
|
11
11
|
env: GH_PAGES=true
|
12
|
-
allow_failures:
|
13
|
-
- env: GH_PAGES=true # Jekyll 2.4 will fail tests
|
14
|
-
fast_finish: true
|
15
12
|
|
16
13
|
rvm:
|
17
|
-
- 2.
|
14
|
+
- 2.4
|
15
|
+
- 2.3
|
18
16
|
- 2.2
|
19
17
|
- 2.1
|
20
|
-
- 2.0
|
data/Gemfile
CHANGED
data/History.markdown
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
## HEAD
|
2
2
|
|
3
|
+
* Test against same version of Ruby that GitHub Pages uses (#132)
|
4
|
+
|
5
|
+
### Development Fixes
|
6
|
+
|
7
|
+
* Rubocop (#141)
|
8
|
+
* Fix tests for jekyll 3.5.x (#160)
|
9
|
+
* Rubocop: autocorrect (#165)
|
10
|
+
|
11
|
+
### Minor Enhancements
|
12
|
+
|
13
|
+
* HTML encode ellipsis (#142)
|
14
|
+
* Added no-index to template (#152)
|
15
|
+
* Define path with __dir__ (#161)
|
16
|
+
|
17
|
+
### Major Enhancements
|
18
|
+
|
19
|
+
* Create redirects.json file (#147)
|
20
|
+
|
21
|
+
### Documentation
|
22
|
+
|
23
|
+
* Update README.md (#167)
|
24
|
+
|
25
|
+
## 0.12.1 / 2017-01-12
|
26
|
+
|
3
27
|
### Development Fixes
|
4
28
|
|
5
29
|
* Stop testing Ruby 1.9 (#133)
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -34,10 +34,12 @@ Or install it yourself as:
|
|
34
34
|
Once it's installed into your evironment, add it to your `_config.yml`:
|
35
35
|
|
36
36
|
```yaml
|
37
|
-
|
37
|
+
plugins:
|
38
38
|
- jekyll-redirect-from
|
39
39
|
```
|
40
40
|
|
41
|
+
💡 If you are using a Jekyll version less than 3.5.0, use the `gems` key instead of `plugins`.
|
42
|
+
|
41
43
|
If you're using Jekyll in `safe` mode to mimic GitHub Pages, make sure to
|
42
44
|
add jekyll-redirect-from to your whitelist:
|
43
45
|
|
data/Rakefile
CHANGED
@@ -1,28 +1,31 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
5
|
+
require "jekyll-redirect-from/version"
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = "jekyll-redirect-from"
|
8
9
|
spec.version = JekyllRedirectFrom::VERSION
|
9
10
|
spec.authors = ["Parker Moore"]
|
10
11
|
spec.email = ["parkrmoore@gmail.com"]
|
11
|
-
spec.
|
12
|
-
|
12
|
+
spec.summary = "Seamlessly specify multiple redirection URLs " \
|
13
|
+
"for your pages and posts"
|
13
14
|
spec.homepage = "https://github.com/jekyll/jekyll-redirect-from"
|
14
15
|
spec.license = "MIT"
|
15
16
|
|
17
|
+
# rubocop:disable Style/SpecialGlobalVars
|
16
18
|
spec.files = `git ls-files`.split($/)
|
17
|
-
|
18
|
-
|
19
|
+
# rubocop:enable Style/SpecialGlobalVars
|
20
|
+
|
21
|
+
spec.executables = spec.files.grep(%r!^bin/!) { |f| File.basename(f) }
|
22
|
+
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
|
19
23
|
spec.require_paths = ["lib"]
|
20
24
|
|
21
25
|
spec.add_runtime_dependency "jekyll", "~> 3.3"
|
22
|
-
|
23
26
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
-
spec.add_development_dependency "
|
25
|
-
spec.add_development_dependency "
|
26
|
-
spec.add_development_dependency "
|
27
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
27
|
+
spec.add_development_dependency "jekyll-sitemap", "~> 1.0"
|
28
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
30
|
+
spec.add_development_dependency "rubocop", "~> 0.51"
|
28
31
|
end
|
data/lib/jekyll-redirect-from.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "jekyll"
|
2
4
|
require "jekyll-redirect-from/version"
|
3
5
|
require "jekyll-redirect-from/generator"
|
@@ -6,10 +8,11 @@ module JekyllRedirectFrom
|
|
6
8
|
# Jekyll classes which should be redirectable
|
7
9
|
CLASSES = [Jekyll::Page, Jekyll::Document].freeze
|
8
10
|
|
9
|
-
autoload :Context,
|
10
|
-
autoload :RedirectPage,
|
11
|
-
autoload :Redirectable,
|
12
|
-
autoload :Layout,
|
11
|
+
autoload :Context, "jekyll-redirect-from/context"
|
12
|
+
autoload :RedirectPage, "jekyll-redirect-from/redirect_page"
|
13
|
+
autoload :Redirectable, "jekyll-redirect-from/redirectable"
|
14
|
+
autoload :Layout, "jekyll-redirect-from/layout"
|
15
|
+
autoload :PageWithoutAFile, "jekyll-redirect-from/page_without_a_file"
|
13
16
|
end
|
14
17
|
|
15
18
|
JekyllRedirectFrom::CLASSES.each do |klass|
|
@@ -1,10 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module JekyllRedirectFrom
|
2
4
|
class Generator < Jekyll::Generator
|
3
5
|
safe true
|
4
|
-
attr_reader :site
|
6
|
+
attr_reader :site, :redirects
|
5
7
|
|
6
8
|
def generate(site)
|
7
9
|
@site = site
|
10
|
+
@redirects = {}
|
8
11
|
|
9
12
|
# Inject our layout, unless the user has already specified a redirect layout'
|
10
13
|
unless site.layouts.keys.any? { |name| name == "redirect" }
|
@@ -17,6 +20,8 @@ module JekyllRedirectFrom
|
|
17
20
|
generate_redirect_from(doc)
|
18
21
|
generate_redirect_to(doc)
|
19
22
|
end
|
23
|
+
|
24
|
+
generate_redirects_json
|
20
25
|
end
|
21
26
|
|
22
27
|
private
|
@@ -24,15 +29,26 @@ module JekyllRedirectFrom
|
|
24
29
|
# For every `redirect_from` entry, generate a redirect page
|
25
30
|
def generate_redirect_from(doc)
|
26
31
|
doc.redirect_from.each do |path|
|
27
|
-
|
32
|
+
page = RedirectPage.redirect_from(doc, path)
|
33
|
+
doc.site.pages << page
|
34
|
+
redirects[page.redirect_from] = page.redirect_to
|
28
35
|
end
|
29
36
|
end
|
30
37
|
|
31
38
|
def generate_redirect_to(doc)
|
32
39
|
return unless doc.redirect_to
|
33
|
-
|
34
|
-
doc.data.merge!(
|
35
|
-
doc.content = doc.output =
|
40
|
+
page = RedirectPage.redirect_to(doc, doc.redirect_to)
|
41
|
+
doc.data.merge!(page.data)
|
42
|
+
doc.content = doc.output = page.output
|
43
|
+
redirects[page.redirect_from] = page.redirect_to
|
44
|
+
end
|
45
|
+
|
46
|
+
def generate_redirects_json
|
47
|
+
return if File.exist? site.in_source_dir("redirects.json")
|
48
|
+
page = PageWithoutAFile.new(site, "", "", "redirects.json")
|
49
|
+
page.content = redirects.to_json
|
50
|
+
page.data["layout"] = nil
|
51
|
+
site.pages << page
|
36
52
|
end
|
37
53
|
end
|
38
54
|
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module JekyllRedirectFrom
|
2
4
|
# A stubbed layout for our default redirect template
|
3
5
|
# We cannot use the standard Layout class because of site.in_source_dir
|
4
6
|
class Layout < Jekyll::Layout
|
5
7
|
def initialize(site)
|
6
8
|
@site = site
|
7
|
-
@base =
|
9
|
+
@base = __dir__
|
8
10
|
@name = "redirect.html"
|
9
11
|
@path = File.expand_path(@name, @base)
|
10
12
|
@relative_path = "_layouts/redirect.html"
|
@@ -1,10 +1,11 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en-US">
|
3
3
|
<meta charset="utf-8">
|
4
|
-
<title>Redirecting
|
4
|
+
<title>Redirecting…</title>
|
5
5
|
<link rel="canonical" href="{{ page.redirect.to }}">
|
6
6
|
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
|
7
|
-
<
|
7
|
+
<meta name="robots" content="noindex">
|
8
|
+
<h1>Redirecting…</h1>
|
8
9
|
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
|
9
10
|
<script>location="{{ page.redirect.to }}"</script>
|
10
11
|
</html>
|
@@ -1,4 +1,5 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module JekyllRedirectFrom
|
3
4
|
# Specialty page which implements the redirect path logic
|
4
5
|
class RedirectPage < Jekyll::Page
|
@@ -7,7 +8,7 @@ module JekyllRedirectFrom
|
|
7
8
|
|
8
9
|
DEFAULT_DATA = {
|
9
10
|
"sitemap" => false,
|
10
|
-
"layout" => "redirect"
|
11
|
+
"layout" => "redirect",
|
11
12
|
}.freeze
|
12
13
|
|
13
14
|
# Creates a new RedirectPage instance from a source path and redirect path
|
@@ -43,15 +44,24 @@ module JekyllRedirectFrom
|
|
43
44
|
# to - the relative path or absolute URL to the redirect target
|
44
45
|
def set_paths(from, to)
|
45
46
|
@context ||= context
|
47
|
+
from = ensure_leading_slash(from)
|
46
48
|
data.merge!({
|
47
49
|
"permalink" => from,
|
48
50
|
"redirect" => {
|
49
51
|
"from" => from,
|
50
|
-
"to" => to =~ %r!^https?://! ? to : absolute_url(to)
|
51
|
-
}
|
52
|
+
"to" => to =~ %r!^https?://! ? to : absolute_url(to),
|
53
|
+
},
|
52
54
|
})
|
53
55
|
end
|
54
56
|
|
57
|
+
def redirect_from
|
58
|
+
data["redirect"]["from"] if data["redirect"]
|
59
|
+
end
|
60
|
+
|
61
|
+
def redirect_to
|
62
|
+
data["redirect"]["to"] if data["redirect"]
|
63
|
+
end
|
64
|
+
|
55
65
|
private
|
56
66
|
|
57
67
|
def context
|
data/script/bootstrap
CHANGED
data/script/cibuild
CHANGED
data/script/fmt
ADDED
data/script/release
CHANGED
data/spec/integrations_spec.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RSpec.describe JekyllRedirectFrom::Generator do
|
2
4
|
before(:each) do
|
3
5
|
site.read
|
4
6
|
site.generate
|
5
7
|
site.render
|
8
|
+
site.write
|
6
9
|
end
|
7
10
|
|
8
11
|
context "layouts" do
|
@@ -84,4 +87,63 @@ RSpec.describe JekyllRedirectFrom::Generator do
|
|
84
87
|
end
|
85
88
|
end
|
86
89
|
end
|
90
|
+
|
91
|
+
context "redirects.json" do
|
92
|
+
let(:path) { dest_dir("redirects.json") }
|
93
|
+
let(:contents) { File.read(path) }
|
94
|
+
let(:redirects) { JSON.parse(contents) }
|
95
|
+
let(:domain) { "http://jekyllrb.com" }
|
96
|
+
|
97
|
+
it "creates the redirets file" do
|
98
|
+
expect(path).to exist
|
99
|
+
end
|
100
|
+
|
101
|
+
it "contains redirects" do
|
102
|
+
expect(redirects.count).to eql(13)
|
103
|
+
end
|
104
|
+
|
105
|
+
it "contains single redirects tos" do
|
106
|
+
expect(redirects.keys).to include "/one_redirect_to_path.html"
|
107
|
+
expect(redirects["/one_redirect_to_path.html"]).to eql("#{domain}/foo")
|
108
|
+
end
|
109
|
+
|
110
|
+
it "contains multiple redirect tos" do
|
111
|
+
expect(redirects.keys).to include "/multiple_redirect_tos.html"
|
112
|
+
expect(redirects["/multiple_redirect_tos.html"]).to eql("https://www.jekyllrb.com")
|
113
|
+
end
|
114
|
+
|
115
|
+
it "contains single redirect froms" do
|
116
|
+
expect(redirects.keys).to include "/some/other/path"
|
117
|
+
expect(redirects["/some/other/path"]).to eql("#{domain}/one_redirect_from.html")
|
118
|
+
end
|
119
|
+
|
120
|
+
it "contains multiple redirect froms" do
|
121
|
+
expect(redirects.keys).to include "/help"
|
122
|
+
expect(redirects["/help"]).to eql("#{domain}/multiple_redirect_froms.html")
|
123
|
+
|
124
|
+
expect(redirects.keys).to include "/contact"
|
125
|
+
expect(redirects["/contact"]).to eql("#{domain}/multiple_redirect_froms.html")
|
126
|
+
end
|
127
|
+
|
128
|
+
context "with a user-supplied redirects.json" do
|
129
|
+
let(:source_path) { File.join fixtures_path, "redirects.json" }
|
130
|
+
before do
|
131
|
+
File.write source_path, { "foo" => "bar" }.to_json
|
132
|
+
site.reset
|
133
|
+
site.read
|
134
|
+
site.generate
|
135
|
+
site.render
|
136
|
+
site.write
|
137
|
+
end
|
138
|
+
|
139
|
+
after do
|
140
|
+
FileUtils.rm_f source_path
|
141
|
+
end
|
142
|
+
|
143
|
+
it "doesn't overwrite redirets.json" do
|
144
|
+
expect(path).to exist
|
145
|
+
expect(redirects).to eql({ "foo" => "bar" })
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
87
149
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RSpec.describe JekyllRedirectFrom::Layout do
|
2
4
|
subject { described_class.new(@site) }
|
3
5
|
|
@@ -10,7 +12,7 @@ RSpec.describe JekyllRedirectFrom::Layout do
|
|
10
12
|
end
|
11
13
|
|
12
14
|
it "exposes the path" do
|
13
|
-
expected = File.expand_path "../../lib/jekyll-redirect-from/redirect.html",
|
15
|
+
expected = File.expand_path "../../lib/jekyll-redirect-from/redirect.html", __dir__
|
14
16
|
expect(subject.path).to eql(expected)
|
15
17
|
end
|
16
18
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "jekyll"
|
2
4
|
require File.expand_path("lib/jekyll-redirect-from.rb")
|
3
5
|
|
@@ -20,7 +22,7 @@ RSpec.configure do |config|
|
|
20
22
|
end
|
21
23
|
|
22
24
|
def fixtures_path
|
23
|
-
Pathname.new(
|
25
|
+
Pathname.new(__dir__).join("fixtures")
|
24
26
|
end
|
25
27
|
|
26
28
|
def dest_path
|
@@ -37,18 +39,18 @@ RSpec.configure do |config|
|
|
37
39
|
"destination" => fixtures_path.join("_site").to_s,
|
38
40
|
"collections" => {
|
39
41
|
"articles" => { "output" => true },
|
40
|
-
"authors" => {}
|
42
|
+
"authors" => {},
|
41
43
|
},
|
42
44
|
"url" => "http://jekyllrb.com",
|
43
45
|
"gems" => [
|
44
46
|
"jekyll-redirect-from",
|
45
|
-
"jekyll-sitemap"
|
47
|
+
"jekyll-sitemap",
|
46
48
|
],
|
47
49
|
"defaults" => [{
|
48
50
|
"scope" => { "path" => "" },
|
49
|
-
"values" => { "layout" => "layout" }
|
50
|
-
}]
|
51
|
-
})
|
51
|
+
"values" => { "layout" => "layout" },
|
52
|
+
},],
|
53
|
+
}).backwards_compatibilize
|
52
54
|
end
|
53
55
|
|
54
56
|
def site
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-redirect-from
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parker Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -39,62 +39,62 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: jekyll-sitemap
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '12.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '12.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '3.5'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '3.5'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
89
|
+
version: '0.51'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
97
|
-
description:
|
96
|
+
version: '0.51'
|
97
|
+
description:
|
98
98
|
email:
|
99
99
|
- parkrmoore@gmail.com
|
100
100
|
executables: []
|
@@ -115,12 +115,14 @@ files:
|
|
115
115
|
- lib/jekyll-redirect-from/context.rb
|
116
116
|
- lib/jekyll-redirect-from/generator.rb
|
117
117
|
- lib/jekyll-redirect-from/layout.rb
|
118
|
+
- lib/jekyll-redirect-from/page_without_a_file.rb
|
118
119
|
- lib/jekyll-redirect-from/redirect.html
|
119
120
|
- lib/jekyll-redirect-from/redirect_page.rb
|
120
121
|
- lib/jekyll-redirect-from/redirectable.rb
|
121
122
|
- lib/jekyll-redirect-from/version.rb
|
122
123
|
- script/bootstrap
|
123
124
|
- script/cibuild
|
125
|
+
- script/fmt
|
124
126
|
- script/release
|
125
127
|
- script/test
|
126
128
|
- spec/fixtures/_articles/redirect-me-plz.md
|
@@ -162,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
164
|
version: '0'
|
163
165
|
requirements: []
|
164
166
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.7.1
|
166
168
|
signing_key:
|
167
169
|
specification_version: 4
|
168
170
|
summary: Seamlessly specify multiple redirection URLs for your pages and posts
|