jekyll-language-plugin 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-language-plugin.rb +1 -0
- data/lib/jekyll/drops/language_url_drop.rb +13 -0
- data/lib/jekyll/language-plugin/version.rb +1 -1
- data/lib/jekyll/language_document.rb +1 -4
- data/lib/jekyll/patches.rb +1 -1
- data/lib/jekyll/patches/jekyll/renderer.rb +13 -0
- metadata +6 -5
- data/lib/jekyll/patches/jekyll/url.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fee49fa7fb042a2ef15391e28f207a926e6c1e42
|
4
|
+
data.tar.gz: 09f0617905cd7b4949814aa3c454f9c77ed0e23a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b93d0cccdfc62796317197db5a1357d9360c2e071bb58de8421c2d7abdd85b6698801b76cf9be4189061c048aa4c02253d9ca08472865437b83882adabd280c
|
7
|
+
data.tar.gz: a126a06ebef76129853539d11987933884bf52edb5a3ba6f9d27de7f9b43221f6261dd3cc88e5bb9351165a352691252e63bc0f10998c2393c77b20df4d562af
|
@@ -7,6 +7,7 @@ require_relative 'jekyll/language_reader.rb'
|
|
7
7
|
require_relative 'jekyll/language_properties.rb'
|
8
8
|
require_relative 'jekyll/language_page.rb'
|
9
9
|
require_relative 'jekyll/language_document.rb'
|
10
|
+
require_relative 'jekyll/drops/language_url_drop.rb'
|
10
11
|
require_relative 'jekyll/readers/language_collection_reader.rb'
|
11
12
|
require_relative 'jekyll/readers/language_page_reader.rb'
|
12
13
|
require_relative 'jekyll/readers/language_post_reader.rb'
|
data/lib/jekyll/patches.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Frozen-string-literal: true
|
2
|
+
# Encoding: utf-8
|
3
|
+
|
4
|
+
module Jekyll
|
5
|
+
class Renderer
|
6
|
+
def permalink_ext
|
7
|
+
if document.permalink && !document.permalink.end_with?("/")
|
8
|
+
ext_match = document.permalink.match(/\.[\w+-]+$/)
|
9
|
+
ext_match[0] unless ext_match.nil?
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-language-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Wochnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.1.2
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- lib/jekyll-language-plugin.rb
|
77
|
+
- lib/jekyll/drops/language_url_drop.rb
|
77
78
|
- lib/jekyll/language-plugin/date_localizer.rb
|
78
79
|
- lib/jekyll/language-plugin/filters/language_date.rb
|
79
80
|
- lib/jekyll/language-plugin/filters.rb
|
@@ -94,8 +95,8 @@ files:
|
|
94
95
|
- lib/jekyll/language_page.rb
|
95
96
|
- lib/jekyll/language_properties.rb
|
96
97
|
- lib/jekyll/language_reader.rb
|
98
|
+
- lib/jekyll/patches/jekyll/renderer.rb
|
97
99
|
- lib/jekyll/patches/jekyll/site.rb
|
98
|
-
- lib/jekyll/patches/jekyll/url.rb
|
99
100
|
- lib/jekyll/patches.rb
|
100
101
|
- lib/jekyll/readers/language_collection_reader.rb
|
101
102
|
- lib/jekyll/readers/language_page_reader.rb
|