Skip to content

Commit c4a1f98

Browse files
committed
Merge tag 'v0.16.2'
# Conflicts: # INSTALL.md # _books/the_godfather.md
2 parents 843ffe8 + 5be5124 commit c4a1f98

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

Gemfile.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ GEM
112112
nokogiri (>= 1.4)
113113
htmlcompressor (0.4.0)
114114
http_parser.rb (0.8.1)
115-
httparty (0.24.0)
115+
httparty (0.24.2)
116116
csv
117117
mini_mime (>= 1.0.0)
118118
multi_xml (>= 0.5.2)
@@ -141,7 +141,7 @@ GEM
141141
safe_yaml (~> 1.0)
142142
terminal-table (>= 1.8, < 4.0)
143143
webrick (~> 1.7)
144-
jekyll-archives-v2 (0.0.6)
144+
jekyll-archives-v2 (0.0.7)
145145
activesupport
146146
jekyll (>= 3.6, < 5.0)
147147
jekyll-cache-bust (0.0.1)
@@ -198,7 +198,8 @@ GEM
198198
kramdown (~> 2.0)
199199
latex-decode (0.4.2)
200200
liquid (4.0.4)
201-
listen (3.9.0)
201+
listen (3.10.0)
202+
logger
202203
rb-fsevent (~> 0.10, >= 0.10.3)
203204
rb-inotify (~> 0.9, >= 0.9.10)
204205
logger (1.7.0)
@@ -325,4 +326,4 @@ DEPENDENCIES
325326
ostruct
326327

327328
BUNDLED WITH
328-
4.0.3
329+
4.0.4

_plugins/google-scholar-citations.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Helpers
99
module Jekyll
1010
class GoogleScholarCitationsTag < Liquid::Tag
1111
Citations = { }
12+
CITED_BY_REGEX = /Cited by (\d+[,\d]*)/
1213

1314
def initialize(tag_name, params, tokens)
1415
super
@@ -51,15 +52,15 @@ def render(context)
5152

5253
if !description_meta.empty?
5354
cited_by_text = description_meta[0]['content']
54-
matches = cited_by_text.match(/Cited by (\d+[,\d]*)/)
55+
matches = cited_by_text.match(CITED_BY_REGEX)
5556

5657
if matches
5758
citation_count = matches[1].sub(",", "").to_i
5859
end
5960

6061
elsif !og_description_meta.empty?
6162
cited_by_text = og_description_meta[0]['content']
62-
matches = cited_by_text.match(/Cited by (\d+[,\d]*)/)
63+
matches = cited_by_text.match(CITED_BY_REGEX)
6364

6465
if matches
6566
citation_count = matches[1].sub(",", "").to_i

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# this file uses prebuilt image in dockerhub
22
services:
33
jekyll:
4-
image: amirpourmand/al-folio:v0.16.1
4+
image: amirpourmand/al-folio:v0.16.2
55
build: .
66
# uncomment these if you are having this issue with the build:
77
# /usr/local/bundle/gems/jekyll-4.3.4/lib/jekyll/site.rb:509:in `initialize': Permission denied @ rb_sysopen - /srv/jekyll/.jekyll-cache/.gitignore (Errno::EACCES)

0 commit comments

Comments
 (0)