jekyll_i18n_multi_page 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c5ddb36f4854a6045602943d170083ee5c51d1d48af49d295e6df760853e652
4
- data.tar.gz: 3df4b08e1376a156a9598282c647be92ceccd6e9e16d915a8db44d21f96576ec
3
+ metadata.gz: 0fd702da77ff3af35457709b8bcd12607d8628ce5d97778018a5985f4b455870
4
+ data.tar.gz: 28c5154ad2bd22184977b960197e7c5ab1436d4216b1e22031918572d3bbc297
5
5
  SHA512:
6
- metadata.gz: 979de192576658b9386ecddf2dfe9a13e0f281681c05499bb39926f563f247def71ec374ba143542074a58956444b3be1aca6a8ecdb0ef94ad7ccaa4f02b4cb9
7
- data.tar.gz: 59038f63b591d94c69432eb7924e81ee2340e0c8adf14eea962cedb664b3326dc8a6dd0ef27b5c644253a9232009f143497b633597bc94f7b05f52f3bc3c63b4
6
+ metadata.gz: e53a4c71b90db69afa87cf3d36de854c9388f498ddea5ee6b80de47289a4f01a775529683d8663c8a2b04ee875480c02875f88b65b9b5b7aebf04934635f1502
7
+ data.tar.gz: 8442d0c68b15f396b84469326ff87f092fbeb15dcc423628cfa2fbeacd0f2890a62328b174195c92f330e20718239db0516f303195992a1f1593ccdefa18bbdc
data/.travis.yml CHANGED
@@ -4,5 +4,11 @@ language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
6
  - 2.6.3
7
+ before_script:
8
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9
+ - chmod +x ./cc-test-reporter
10
+ - ./cc-test-reporter before-build
7
11
  script:
8
- - bundle exec rspec
12
+ - bundle exec rspec
13
+ after_script:
14
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Jekyll I18n MultiPage
2
2
 
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/706668635f16a2f4de81/maintainability)](https://codeclimate.com/github/yfxie/jekyll_i18n_multi_page/maintainability)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/706668635f16a2f4de81/test_coverage)](https://codeclimate.com/github/yfxie/jekyll_i18n_multi_page/test_coverage)
5
+ [![Build Status](https://travis-ci.org/yfxie/jekyll_i18n_multi_page.svg?branch=master)](https://travis-ci.org/yfxie/jekyll_i18n_multi_page)
6
+ [![Gem Version](https://badge.fury.io/rb/jekyll_i18n_multi_page.svg)](https://badge.fury.io/rb/jekyll_i18n_multi_page)
7
+
3
8
  Generate multiple pages for different locales based on single template.
4
9
 
5
10
  ## Installation
@@ -1,3 +1,3 @@
1
1
  module JekyllI18nMultiPage
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -18,6 +18,9 @@ end
18
18
 
19
19
  Jekyll::Hooks.register :site, :post_read do |site|
20
20
  config = site.config['i18n']
21
+ return unless config
22
+
23
+ I18n.reload!
21
24
 
22
25
  locale_config_mappings = config.reduce({}) do |map, config|
23
26
  map[config['locale']] = config
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_i18n_multi_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yi Feng