Skip to content

Commit 7ff25cd

Browse files
authored
Merge pull request #206 from AntennaPod/update-ci
Update Ruby on CI
2 parents 784d8eb + 0191fa1 commit 7ff25cd

File tree

8 files changed

+73
-140
lines changed

8 files changed

+73
-140
lines changed

.github/workflows/autoreview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
build:
1414
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v2
1717
- run: sudo apt-get install ruby-full build-essential zlib1g-dev git
18-
- uses: actions/setup-ruby@v1
18+
- uses: ruby/setup-ruby@v1
1919
with:
20-
ruby-version: '2.7.x'
20+
ruby-version: '3.2.0'
2121
- run: gem install bundler jekyll --no-document
2222
- run: bundle install
2323
- run: bundle exec jekyll build

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
build:
1010
runs-on: ubuntu-20.04
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v2
1313
- run: sudo apt-get install ruby-full build-essential zlib1g-dev git
14-
- uses: actions/setup-ruby@v1
14+
- uses: ruby/setup-ruby@v1
1515
with:
16-
ruby-version: '2.7.x'
16+
ruby-version: '3.2.0'
1717
- run: gem install bundler jekyll --no-document
1818
- run: bundle install
1919
- run: bundle exec jekyll build

Gemfile.lock

Lines changed: 47 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,100 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.0.3.7)
4+
activesupport (6.0.6)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
88
tzinfo (~> 1.1)
99
zeitwerk (~> 2.2, >= 2.2.2)
10-
addressable (2.7.0)
11-
public_suffix (>= 2.0.2, < 5.0)
10+
addressable (2.8.1)
11+
public_suffix (>= 2.0.2, < 6.0)
1212
colorator (1.1.0)
13-
concurrent-ruby (1.1.8)
14-
em-websocket (0.5.2)
13+
concurrent-ruby (1.1.10)
14+
em-websocket (0.5.3)
1515
eventmachine (>= 0.12.9)
16-
http_parser.rb (~> 0.6.0)
16+
http_parser.rb (~> 0)
1717
eventmachine (1.2.7)
1818
eventmachine (1.2.7-x64-mingw32)
19-
ffi (1.15.0)
20-
ffi (1.15.0-x64-mingw32)
19+
ffi (1.15.5)
20+
ffi (1.15.5-x64-mingw32)
2121
forwardable-extended (2.6.0)
22-
html-pipeline (2.14.0)
22+
google-protobuf (3.21.12)
23+
google-protobuf (3.21.12-x64-mingw32)
24+
html-pipeline (2.14.3)
2325
activesupport (>= 2)
2426
nokogiri (>= 1.4)
25-
http_parser.rb (0.6.0)
26-
i18n (1.8.10)
27+
http_parser.rb (0.8.0)
28+
i18n (1.12.0)
2729
concurrent-ruby (~> 1.0)
28-
jekyll (4.2.0)
30+
jekyll (4.3.1)
2931
addressable (~> 2.4)
3032
colorator (~> 1.0)
3133
em-websocket (~> 0.5)
3234
i18n (~> 1.0)
33-
jekyll-sass-converter (~> 2.0)
35+
jekyll-sass-converter (>= 2.0, < 4.0)
3436
jekyll-watch (~> 2.0)
35-
kramdown (~> 2.3)
37+
kramdown (~> 2.3, >= 2.3.1)
3638
kramdown-parser-gfm (~> 1.0)
3739
liquid (~> 4.0)
38-
mercenary (~> 0.4.0)
40+
mercenary (>= 0.3.6, < 0.5)
3941
pathutil (~> 0.9)
40-
rouge (~> 3.0)
42+
rouge (>= 3.0, < 5.0)
4143
safe_yaml (~> 1.0)
42-
terminal-table (~> 2.0)
44+
terminal-table (>= 1.8, < 4.0)
45+
webrick (~> 1.7)
4346
jekyll-mentions (1.6.0)
4447
html-pipeline (~> 2.3)
4548
jekyll (>= 3.7, < 5.0)
46-
jekyll-multiple-languages-plugin (1.7.0)
49+
jekyll-multiple-languages-plugin (1.8.0)
4750
jekyll (>= 2.0, < 5.0)
48-
jekyll-sass-converter (2.1.0)
49-
sassc (> 2.0.1, < 3.0)
51+
jekyll-sass-converter (3.0.0)
52+
sass-embedded (~> 1.54)
5053
jekyll-watch (2.2.1)
5154
listen (~> 3.0)
52-
kramdown (2.3.1)
55+
kramdown (2.4.0)
5356
rexml
5457
kramdown-parser-gfm (1.1.0)
5558
kramdown (~> 2.0)
56-
liquid (4.0.3)
57-
listen (3.5.1)
59+
liquid (4.0.4)
60+
listen (3.8.0)
5861
rb-fsevent (~> 0.10, >= 0.10.3)
5962
rb-inotify (~> 0.9, >= 0.9.10)
6063
mercenary (0.4.0)
61-
mini_portile2 (2.5.1)
62-
minitest (5.14.4)
63-
nokogiri (1.11.3)
64-
mini_portile2 (~> 2.5.0)
64+
mini_portile2 (2.8.1)
65+
minitest (5.17.0)
66+
nokogiri (1.14.0)
67+
mini_portile2 (~> 2.8.0)
6568
racc (~> 1.4)
66-
nokogiri (1.11.3-x64-mingw32)
69+
nokogiri (1.14.0-x64-mingw32)
6770
racc (~> 1.4)
6871
pathutil (0.16.2)
6972
forwardable-extended (~> 2.6)
70-
public_suffix (4.0.6)
71-
racc (1.5.2)
72-
rb-fsevent (0.11.0)
73+
public_suffix (5.0.1)
74+
racc (1.6.2)
75+
rake (13.0.6)
76+
rb-fsevent (0.11.2)
7377
rb-inotify (0.10.1)
7478
ffi (~> 1.0)
7579
rexml (3.2.5)
76-
rouge (3.26.0)
80+
rouge (4.0.1)
7781
safe_yaml (1.0.5)
78-
sassc (2.4.0)
79-
ffi (~> 1.9)
80-
sassc (2.4.0-x64-mingw32)
81-
ffi (~> 1.9)
82-
terminal-table (2.0.0)
83-
unicode-display_width (~> 1.1, >= 1.1.1)
82+
sass-embedded (1.57.1)
83+
google-protobuf (~> 3.21)
84+
rake (>= 10.0.0)
85+
sass-embedded (1.57.1-x64-mingw32)
86+
google-protobuf (~> 3.21)
87+
terminal-table (3.0.2)
88+
unicode-display_width (>= 1.1.1, < 3)
8489
thread_safe (0.3.6)
85-
tzinfo (1.2.9)
90+
tzinfo (1.2.10)
8691
thread_safe (~> 0.1)
87-
tzinfo-data (1.2021.1)
92+
tzinfo-data (1.2022.7)
8893
tzinfo (>= 1.0.0)
89-
unicode-display_width (1.7.0)
94+
unicode-display_width (2.4.2)
9095
wdm (0.1.1)
9196
webrick (1.7.0)
92-
zeitwerk (2.4.2)
97+
zeitwerk (2.6.6)
9398

9499
PLATFORMS
95100
ruby

_i18n/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ titles:
66
documentation: "Documentation"
77
download: "Download AntennaPod"
88
forum: "Forum"
9-
media: "Media Kit"
9+
media-kit: "Media Kit"
1010
license: "License"
1111
privacy: "Privacy Policy"
1212

@@ -34,6 +34,7 @@ generic:
3434
share-md: "Share on Mastodon"
3535
share-tw: "Share on Twitter"
3636
share-eml: "Share via email"
37+
logo: "AntennaPod Logo"
3738
eml-share:
3839
subject: "I wanted you to see this"
3940
body: "Check out this article"

_includes/head.html

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
{% capture title %}{% t page.title %}{% endcapture %}
2-
{% unless title.size > 0 %}{% assign title = page.title %}{% endunless %}
3-
{% capture title %}{% if title.size > 0 %}{{ title }} – {{ site.title }}{% else %}{{ site.title }} – {% t homepage.header %}{% endif %}{% endcapture %}
1+
{% if page.layout == "blog" %}
2+
{% capture title %}{{ page.title }}{% endcapture %}
3+
{% elsif page.title %}
4+
{% capture title %}{% t page.title %}{% endcapture %}
5+
{% else %}
6+
{% capture title %}{{ site.title }} – {% t homepage.header %}{% endcapture %}
7+
{% endif %}
48

5-
{% capture descrlong %}
6-
{% capture descrtransl %}{% t page.excerpt %}{% endcapture %}
7-
{% if descrtransl.size > 0 %}
8-
{{ descrtransl }}
9-
{% elsif page.excerpt %}
10-
{{ page.excerpt }}
11-
{% else %}
12-
{% t homepage.description %}
13-
{% endif %}
14-
{% endcapture %}
9+
{% if page.layout == "blog" %}
10+
{% capture descrlong %}{{ page.excerpt }}{% endcapture %}
11+
{% elsif page.layout == "doc" %}
12+
{% capture descrlong %}{{ page.excerpt }}{% endcapture %}
13+
{% elsif page.excerpt %}
14+
{% capture descrlong %}{% t page.excerpt %}{% endcapture %}
15+
{% else %}
16+
{% capture descrlong %}{% t homepage.description %}{% endcapture %}
17+
{% endif %}
1518
{% capture description %}{{ descrlong | strip | strip_html | strip_newlines | truncate: 180 }}{% endcapture %}
1619

1720
{% capture image %}

_layouts/blog.html

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
{% assign author = site.data.authors[page.author] %}
1616

1717
<header class="post-header">
18-
<p class="size-14 color-orange-900 mb-2 weight-500">
19-
{% capture category %}{{ page.category }}{% endcapture %}
20-
{% t news.filters.{{ category }} %}
21-
</p>
2218
<h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
2319
{% assign words = page.content | number_of_words %}
2420
{% if words < 360 %}
@@ -47,87 +43,13 @@ <h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
4743
</div>
4844
<div class="container-fluid">
4945
<div class="container py-3">
50-
51-
5246
<div class="row no-gutters justify-content-center pb-4">
5347
<div class="col-lg-9">
5448
<article class="post-content pb-3">
5549
{{ content }}
5650
</article>
5751
</div>
5852
</div>
59-
60-
<hr>
61-
62-
<div class="row no-gutters pt-4">
63-
<h2 class="size-24 color-gray-900 pb-2">{% t news.related %}</h2>
64-
</div>
65-
66-
<div class="row no-gutters pb-4">
67-
<div class="row justify-content-start">
68-
69-
{% if page.url contains 'news' %}
70-
71-
{% assign maxRelated = 3 %}
72-
{% assign minCommonTags = 1 %}
73-
{% assign maxRelatedCounter = 0 %}
74-
75-
{% for news in site.news %}
76-
77-
{% assign sameTagCount = 0 %}
78-
{% assign commonTags = '' %}
79-
80-
{% for category in news.categories %}
81-
{% if news.url != page.url %}
82-
{% if page.categories contains category %}
83-
{% assign sameTagCount = sameTagCount | plus: 1 %}
84-
{% capture tagmarkup %} {% endcapture %}
85-
{% assign commonTags = commonTags | append: tagmarkup %}
86-
{% endif %}
87-
{% endif %}
88-
{% endfor %}
89-
90-
{% if sameTagCount >= minCommonTags %}
91-
<div class="col-12 col-md-4 mb-3 d-flex">
92-
<div class="highlight-card">
93-
<a class="stretched-link" href="{{ news.url | replace: '.html', '' }}"></a>
94-
<img class="mb-3" src="{{ site.baseurl_root }}/assets/images/posts/{{ news.image }}" alt="{{ news.title }}" />
95-
<h3 class="size-24 color-gray-900 weight-700">{{ news.title }}</h3>
96-
{% if news.excerpt %}
97-
{% assign excerpt = news.excerpt %}
98-
{% else %}
99-
{% assign excerpt = news.content %}
100-
{% endif %}
101-
<p class="size-14 color-gray-900 mb-3">{{ excerpt | strip_html | truncatewords: 15 }}</p>
102-
<div class="bottom">
103-
<span class="size-12 color-gray-900 weight-700 mb-0">
104-
{% capture category %}{{ news.category }}{% endcapture %}
105-
{% t news.filters.{{ category }} %}
106-
</span>
107-
</div>
108-
<div class="bottom right">
109-
<span class="size-12 color-gray-900 weight-700 mb-0">
110-
{% capture month %}{{ news.date | date: "%b" }}{% endcapture %}
111-
{% t month.{{ month }} %} {{ news.date | date: "%-d, %Y"}}
112-
</span>
113-
</div>
114-
</div>
115-
</div>
116-
{% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
117-
{% if maxRelatedCounter >= maxRelated %}
118-
{% break %}
119-
{% endif %}
120-
{% endif %}
121-
122-
{% endfor %}
123-
124-
{% else %}
125-
126-
{% endif %}
127-
128-
</div>
129-
</div>
130-
13153
</div>
13254
</div>
13355
</div>

documentation-redirect.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ layout: redirect
33
sitemap: false
44
permalink: /documentation/
55
redirect_to: /documentation
6+
title: generic.redirect.title
67
---

privacy-redirect.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ layout: redirect
33
sitemap: false
44
permalink: /privacy/
55
redirect_to: /privacy
6+
title: generic.redirect.title
67
---

0 commit comments

Comments
 (0)