Skip to content

Commit

Permalink
Feature/polyglot 1.5.1 (#165)
Browse files Browse the repository at this point in the history
* polyglot 1.5.1

* update build deps, add hebrew, polyglot 1.5.1
  • Loading branch information
untra authored Oct 1, 2022
1 parent 624fe2f commit 82105aa
Show file tree
Hide file tree
Showing 164 changed files with 7,726 additions and 1,141 deletions.
15 changes: 9 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ gemspec

gem 'rake'
group :test do
gem 'minitest'
gem 'nokogiri'
gem 'rspec'
gem 'rspec-mocks'
gem 'rspec_junit_formatter'
gem 'rubocop'
gem 'minitest', '~>5.16.3'
gem 'nokogiri', '~>1.13.8'
gem 'rspec', '~>3.11.0'
gem 'rspec-mocks', '~>3.11.0'
gem 'rspec_junit_formatter', '~>0.6.0'
gem 'rubocop', '~>1.36.0'
end

gem 'github-pages'
gem 'jekyll'
gem 'jekyll-paginate'
gem "webrick", "~> 1.7"
122 changes: 56 additions & 66 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
PATH
remote: .
specs:
jekyll-polyglot (1.5.0)
jekyll-polyglot (1.5.1)
jekyll (>= 3.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.4.7)
activesupport (6.0.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.23.4)
commonmarker (0.23.6)
concurrent-ruby (1.1.10)
diff-lcs (1.5.0)
dnsruby (1.61.9)
Expand All @@ -33,35 +33,16 @@ GEM
ffi (>= 1.15.0)
eventmachine (1.2.7)
execjs (2.8.1)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
faraday (2.5.2)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday-net_http (3.0.0)
ffi (1.15.5)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (225)
github-pages (227)
github-pages-health-check (= 1.17.9)
jekyll (= 3.9.0)
jekyll (= 3.9.2)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.2.0)
Expand Down Expand Up @@ -96,12 +77,12 @@ GEM
jekyll-theme-time-machine (= 0.2.0)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.12.0)
kramdown (= 2.3.1)
kramdown (= 2.3.2)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.12.5, < 2.0)
nokogiri (>= 1.13.6, < 2.0)
rouge (= 3.26.0)
terminal-table (~> 1.4)
github-pages-health-check (1.17.9)
Expand All @@ -110,13 +91,13 @@ GEM
octokit (~> 4.0)
public_suffix (>= 3.0, < 5.0)
typhoeus (~> 1.3)
html-pipeline (2.14.1)
html-pipeline (2.14.2)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.8.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
jekyll (3.9.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand Down Expand Up @@ -224,7 +205,8 @@ GEM
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.1)
json (2.6.2)
kramdown (2.3.2)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
Expand All @@ -233,30 +215,33 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.8.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.15.0)
multipart-post (2.1.1)
nokogiri (1.13.4-x86_64-darwin)
minitest (5.16.3)
nokogiri (1.13.8)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
octokit (4.22.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
nokogiri (1.13.8-x86_64-darwin)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
parallel (1.22.1)
parser (3.1.1.0)
parser (3.1.2.1)
ast (~> 2.4.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.7)
racc (1.6.0)
rainbow (3.1.1)
rake (13.0.6)
rb-fsevent (0.11.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.3.0)
regexp_parser (2.6.0)
rexml (3.2.5)
rouge (3.26.0)
rspec (3.11.0)
Expand All @@ -265,25 +250,26 @@ GEM
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
rspec-expectations (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rspec_junit_formatter (0.5.1)
rspec-support (3.11.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.27.0)
rubocop (1.36.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.16.0, < 2.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.20.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.17.0)
rubocop-ast (1.21.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
Expand All @@ -294,37 +280,41 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
faraday (>= 0.17.3, < 3)
simpleidn (0.2.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
terminal-table (1.6.0)
thread_safe (0.3.6)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
tzinfo (1.2.10)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.1)
unicode-display_width (1.8.0)
zeitwerk (2.5.4)
unf_ext (0.0.8.2)
unicode-display_width (2.3.0)
webrick (1.7.0)
zeitwerk (2.6.1)

PLATFORMS
ruby
x86_64-darwin-21

DEPENDENCIES
github-pages
jekyll
jekyll-paginate
jekyll-polyglot!
minitest
nokogiri
minitest (~> 5.16.3)
nokogiri (~> 1.13.8)
rake
rspec
rspec-mocks
rspec_junit_formatter
rubocop
rspec (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec_junit_formatter (~> 0.6.0)
rubocop (~> 1.36.0)
webrick (~> 1.7)

BUNDLED WITH
2.3.9
2.3.22
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ lang-exclusive: ['en', 'fr']
#### Machine-aware site building
_New in 1.5.0_

Polyglot will only start builds after it confirms there is a cpu core ready to accept the build thread. This ensures that jekll will build large sites efficiently streamlining build processes instead of overloading machines with process thrash.
Polyglot will only start builds after it confirms there is a cpu core ready to accept the build thread. This ensures that jekyll will build large sites efficiently streamlining build processes instead of overloading machines with process thrash.

#### Localized site.data

Expand All @@ -163,7 +163,7 @@ This plugin stands out from other I18n Jekyll plugins.
- provides the liquid tag `{{ site.default_lang }}` to get the default_lang I18n string.
- provides the liquid tag `{{ site.active_lang }}` to get the I18n language string the website was built for. Alternative names for `active_lang` can be configured via `config.lang_vars`.
- provides the liquid tag `{{ I18n_Headers https://yourwebsite.com/ }}` to append SEO bonuses to your website.
- provides the liquid tag `{{ Unrelativized_Link href="/hello" }}` to make urls that do not get influenced by url correction regexs.
- provides the liquid tag `{{ Unrelativized_Link href="/hello" }}` to make urls that do not get influenced by url correction regexes.
- provides `site.data` localization for efficient rich text replacement.
- a creator that will answer all of your questions and issues.

Expand Down Expand Up @@ -203,9 +203,9 @@ If you have something you'd like to contribute to jekyll-polyglot, please open a
* [ ] - **site language**: arabic `ar`
* [ ] - **site language**: japanese `ja`
* [x] - **site language**: russian `ru`
* [x] - **site language**: russian `nl`
* [x] - **site language**: dutch `nl`
* [ ] - **site language**: korean `ko`
* [ ] - **site language**: hebrew `he`
* [x] - **site language**: hebrew `he`
* [ ] - get whitelisted as an official github-pages jekyll plugin
* [x] - update CI provider

Expand Down
4 changes: 2 additions & 2 deletions jekyll-polyglot.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'jekyll-polyglot'
s.version = '1.5.0'
s.date = '2021-07-17'
s.version = '1.5.1'
s.date = '2022-10-01'
s.summary = 'I18n plugin for Jekyll Blogs'
s.description = 'Fast open source i18n plugin for Jekyll blogs.'
s.authors = ['Samuel Volin']
Expand Down
4 changes: 2 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#! /bin/sh
VERSION="1.5.0"
VERSION="1.5.1"
# this is running tests
gem build jekyll-polyglot.gemspec
gem install jekyll-polyglot-$VERSION.gem
cd site
rm -rf _site/
jekyll build --no-watch
bundle exec jekyll build --no-watch
6 changes: 4 additions & 2 deletions site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ hello:
de: Hallo!
ru: Привет!
nl: Hallo!
he: "שלום!"

plugins: [jekyll-polyglot, jekyll-paginate]
# Permalinks
Expand All @@ -40,6 +41,7 @@ exclude: ['LICENSE.md', 'README.md', 'publi.sh', 'Gemfile.lock', 'Gemfile']
title: Polyglot
tagline: 'Straightforward I18n for Jekyll Blogs'
description:
he: תוסף תמיכה ב-i18n עבור <a href="http://jekyllrb.com" target="_blank">Jekyll</a> שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת <a href="https://github.com/untra" target="_blank">@untra</a>.
nl: Een plug-in voor internationlisering van <a href="http://jekyllrb.com" target="_blank">Jekyll</a> die meertalige ondersteuning snel en intuïtief maakt, voor blogs groot en klein. Gemaakt door <a href="https://github.com/untra" target="_blank">@untra</a>.
ru: Плагин поддержки i18n для <a href="http://jekyllrb.com" target="_blank">Jekyll</a> что делает поддержку нескольких языков быстрой и интуитивно понятной, для больших и маленьких блогов. Сделано в <a href="https://github.com/untra" target="_blank">@untra</a>.
de: Ein sprachunterstützung plugin für <a href="http://jekyllrb.com" target="_blank">Jekyll</a>, die Unterstützung der Internationalisierung schnell und intuitiv macht, für Blogs groß und klein. Hergestellt von <a href="https://github.com/untra" target="_blank">@untra</a>.
Expand All @@ -51,12 +53,12 @@ url: https://polyglot.untra.io

paginate: 5
# Custom vars
version: 1.5.0
version: 1.5.1

github:
repo: https://github.com/untra/polyglot

#Polyglot
languages: ["en", "es", "de", "fr", "ru", "nl"]
languages: ["en", "es", "de", "fr", "ru", "nl", "he"]
default_lang: "en"
exclude_from_localization: ["javascript", "images", "css", "public"]
2 changes: 1 addition & 1 deletion site/_posts/2021-07-17-polyglot-1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Polyglot 1.5.0
lang: en
---

Polyglot Release for version [version 1.5.0](https://rubygems.org/gems/jekyll-polyglot/versions/1.5.0), with new support for staggered builds by logical cpus.
Polyglot Release for [version 1.5.0](https://rubygems.org/gems/jekyll-polyglot/versions/1.5.0), with new support for staggered builds by logical cpus.

## Faster Staggered Builds

Expand Down
15 changes: 15 additions & 0 deletions site/_posts/2022-10-01-polyglot-1.5.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: Polyglot 1.5.1
lang: en
---

Polyglot Release for [version 1.5.1](https://rubygems.org/gems/jekyll-polyglot/versions/1.5.1).

## Anchor links in relativized urls

With support from **[dougieh](https://github.com/dougieh)** Polyglot will now relativize urls in anchor links.

## Support for Hebrew

Shalom my hebrews and shebrews, Polyglot's website is now in עברית!
15 changes: 15 additions & 0 deletions site/_posts/he/2022-10-01-polyglot-1.5.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: Polyglot 1.5.1
lang: he
---

Polyglot Release for [version 1.5.1](https://rubygems.org/gems/jekyll-polyglot/versions/1.5.1).

## Anchor links in relativized urls

With support from **[dougieh](https://github.com/dougieh)**, Polyglot will now relativize urls in anchor links.

## Support for Hebrew

שלום לעברים ועשבריים שלי, האתר של Polyglot עכשיו בעברית!
Loading

0 comments on commit 82105aa

Please sign in to comment.