jekyll-language-plugin 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf01a93737f3e741c3e0609e384d80e5b22d63a3
|
4
|
+
data.tar.gz: 3699deb685b84450979e39dc2849d76747fc20c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf0d2118692998894cbd1c285a9dea388f2737d5ab50f3a96c1a7b47ea11ee1fd0efb363bb761cefeea3be2c9d96df950ea085e8649fc86ff0db6094e1de820f
|
7
|
+
data.tar.gz: 9553a2d4de0137ebd1b2c2f41407f030281073c8ba09d04e2fad0e1147dfd51c1cc1992d7d07b70d08f74f021d296726cf3260637bd620e6eaae58b743642e55
|
@@ -5,8 +5,13 @@ module Jekyll
|
|
5
5
|
module LanguagePlugin
|
6
6
|
module Tags
|
7
7
|
class LanguageIncludeTag < Jekyll::Tags::IncludeTag
|
8
|
-
def
|
9
|
-
(context
|
8
|
+
def tag_includes_dirs(context)
|
9
|
+
Array(language_includes_path(context)).freeze
|
10
|
+
end
|
11
|
+
|
12
|
+
def language_includes_path(context)
|
13
|
+
includes_dir = context.registers[:site].config['language_includes_dir'].to_s || '_i18n'
|
14
|
+
File.join(context.registers[:site].in_source_dir(includes_dir), page_language(context))
|
10
15
|
end
|
11
16
|
|
12
17
|
def page_language(context)
|
@@ -16,9 +21,6 @@ module Jekyll
|
|
16
21
|
context.registers[:page].nil? ? "." : context.registers[:page]["language"]
|
17
22
|
end
|
18
23
|
|
19
|
-
def resolved_includes_dir(context)
|
20
|
-
File.join(context.registers[:site].in_source_dir(@includes_dir), page_language(context))
|
21
|
-
end
|
22
24
|
end
|
23
25
|
end
|
24
26
|
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.3
|
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-08-21 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: 3.
|
19
|
+
version: 3.2.0
|
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: 3.
|
26
|
+
version: 3.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.0.14
|
208
|
+
rubygems_version: 2.0.14.1
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: This plugin enables Jekyll to run multilingual websites where pages and posts
|