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: fee49fa7fb042a2ef15391e28f207a926e6c1e42
4
- data.tar.gz: 09f0617905cd7b4949814aa3c454f9c77ed0e23a
3
+ metadata.gz: bf01a93737f3e741c3e0609e384d80e5b22d63a3
4
+ data.tar.gz: 3699deb685b84450979e39dc2849d76747fc20c8
5
5
  SHA512:
6
- metadata.gz: 5b93d0cccdfc62796317197db5a1357d9360c2e071bb58de8421c2d7abdd85b6698801b76cf9be4189061c048aa4c02253d9ca08472865437b83882adabd280c
7
- data.tar.gz: a126a06ebef76129853539d11987933884bf52edb5a3ba6f9d27de7f9b43221f6261dd3cc88e5bb9351165a352691252e63bc0f10998c2393c77b20df4d562af
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 tag_includes_dir(context)
9
- (context.registers[:site].config['language_includes_dir'].to_s || '_i18n').freeze
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
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Jekyll
5
5
  module LanguagePlugin
6
- VERSION = '1.3.2'
6
+ VERSION = '1.3.3'
7
7
  end
8
8
  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.2
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-02-20 00:00:00.000000000 Z
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.1.2
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.1.2
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