Skip to content

Commit

Permalink
fix EOL icons & dates
Browse files Browse the repository at this point in the history
  • Loading branch information
kowal committed Jan 9, 2024
1 parent 34ffcb8 commit faeee4a
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ See full version of this project on https://rubychangelog.com/

<img src='assets/screen1.jpg' width="500">

This page was last updated on 2024-01-07 via `rake readme` task
This page was last updated on 2024-01-09 via `rake readme` task

## Ruby changelog

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

.icon-label {
display: inline;
font-size: small;
/* font-size: small; */
}

.icon-label.calendar {
Expand All @@ -15,7 +15,7 @@
}

.eol > .icon {
fill: red;
fill: #f98b8b;
}

.calendar > .icon {
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/timeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@

----

(Last updated on 2024-01-07 21:45:25 +0100)
(Last updated on 2024-01-09 18:49:47 +0100)
58 changes: 53 additions & 5 deletions docs/docs/versions-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@



## Ruby 3.3 <div class='icon-label eol' title='All maintenance ended on 2027-03-31'><div data-icon='ei-lock' data-size='s'></div></div>




## Ruby 3.3


### Ruby [3.3.0](https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/) <div class='icon-label calendar' title='Released on 2023-12-25'><div data-icon='ei-calendar' data-size='s'></div></div>
Expand All @@ -19,7 +23,11 @@
----


## Ruby 3.2 <div class='icon-label eol' title='All maintenance ended on 2026-03-31'><div data-icon='ei-lock' data-size='s'></div></div>




## Ruby 3.2


### Ruby [3.2.2](https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-2-2-released/) <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>
Expand Down Expand Up @@ -47,7 +55,11 @@
----


## Ruby 3.1 <div class='icon-label eol' title='All maintenance ended on 2025-03-31'><div data-icon='ei-lock' data-size='s'></div></div>




## Ruby 3.1


### Ruby [3.1.4](https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-1-4-released/) <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>
Expand Down Expand Up @@ -90,7 +102,11 @@
----


## Ruby 3.0 <div class='icon-label eol' title='All maintenance ended on 2024-03-31'><div data-icon='ei-lock' data-size='s'></div></div>




## Ruby 3.0


### Ruby [3.0.6](https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-0-6-released/) <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>
Expand Down Expand Up @@ -161,6 +177,10 @@
----






## Ruby 2.7 <div class='icon-label eol' title='All maintenance ended on 2023-03-31'><div data-icon='ei-lock' data-size='s'></div></div>


Expand Down Expand Up @@ -239,6 +259,10 @@
----






## Ruby 2.6 <div class='icon-label eol' title='All maintenance ended on 2022-04-13'><div data-icon='ei-lock' data-size='s'></div></div>


Expand Down Expand Up @@ -324,6 +348,10 @@
----






## Ruby 2.5 <div class='icon-label eol' title='All maintenance ended on 2021-04-06'><div data-icon='ei-lock' data-size='s'></div></div>


Expand Down Expand Up @@ -412,6 +440,10 @@
----






## Ruby 2.4 <div class='icon-label eol' title='All maintenance ended on 2020-04-01'><div data-icon='ei-lock' data-size='s'></div></div>


Expand Down Expand Up @@ -505,6 +537,10 @@
----






## Ruby 2.3 <div class='icon-label eol' title='All maintenance ended on 2019-03-31'><div data-icon='ei-lock' data-size='s'></div></div>


Expand Down Expand Up @@ -579,21 +615,33 @@
----






## Ruby 2.2 <div class='icon-label eol' title='All maintenance ended on 2018-03-31'><div data-icon='ei-lock' data-size='s'></div></div>


----






## Ruby 2.1 <div class='icon-label eol' title='All maintenance ended on 2017-03-31'><div data-icon='ei-lock' data-size='s'></div></div>


----






## Ruby 2.0 <div class='icon-label eol' title='All maintenance ended on 2016-02-24'><div data-icon='ei-lock' data-size='s'></div></div>


----

(Last updated on 2024-01-07 21:45:25 +0100)
(Last updated on 2024-01-09 18:49:47 +0100)
46 changes: 41 additions & 5 deletions docs/docs/versions-latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@










## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/">3.3.0</a> <div class='icon-label eol' title='All maintenance ended on 2027-03-31'><div data-icon='ei-lock' data-size='s'></div></div> <div class='icon-label calendar' title='Released on 2023-12-25'><div data-icon='ei-calendar' data-size='s'></div></div>
## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/">3.3.0</a> <div class='icon-label calendar' title='Released on 2023-12-25'><div data-icon='ei-calendar' data-size='s'></div></div>

- <span class='badge badge-pill badge-dark'>Internals</span>
Introduced Prism parser as a default gem, replacing Ripper
Expand All @@ -25,10 +29,14 @@










## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-2-2-released/">3.2.2</a> <div class='icon-label eol' title='All maintenance ended on 2026-03-31'><div data-icon='ei-lock' data-size='s'></div></div> <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>
## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-2-2-released/">3.2.2</a> <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>

- <span class='badge badge-pill badge-dark'>Internals</span>
WASI based WebAssembly support
Expand All @@ -46,10 +54,14 @@










## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-1-4-released/">3.1.4</a> <div class='icon-label eol' title='All maintenance ended on 2025-03-31'><div data-icon='ei-lock' data-size='s'></div></div> <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>
## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-1-4-released/">3.1.4</a> <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>

- <span class='badge badge-pill badge-dark'>Internals</span>
YJIT: New experimental in-process JIT compiler (experimental)
Expand Down Expand Up @@ -86,10 +98,14 @@ foo(x:, y:) is syntax sugar for foo(x: x, y: y).</code>










## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-0-6-released/">3.0.6</a> <div class='icon-label eol' title='All maintenance ended on 2024-03-31'><div data-icon='ei-lock' data-size='s'></div></div> <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>
## Ruby <a target='_blank' href="https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-0-6-released/">3.0.6</a> <div class='icon-label calendar' title='Released on 2023-03-30'><div data-icon='ei-calendar' data-size='s'></div></div>

- <span class='badge badge-pill badge-dark'>Internals</span>
MJIT improvements
Expand Down Expand Up @@ -156,6 +172,10 @@ This reverts change from Ruby 2.5.0.</code>










Expand Down Expand Up @@ -212,6 +232,10 @@ end</code>










Expand All @@ -235,6 +259,10 @@ end</code>










Expand Down Expand Up @@ -286,6 +314,10 @@ This will be reversed again in Ruby 3.0.0</code>










Expand All @@ -308,6 +340,10 @@ This will be reversed again in Ruby 3.0.0</code>










Expand Down Expand Up @@ -368,4 +404,4 @@ This will be reversed again in Ruby 3.0.0</code>

----

(Last updated on 2024-01-07 21:45:25 +0100)
(Last updated on 2024-01-09 18:49:47 +0100)
7 changes: 6 additions & 1 deletion lib/templates/docs/versions/all.md.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Ruby all versions changelog
<%- require 'date' -%>
<%- ruby_versions.each do |ruby_version| %>
## Ruby <%= ruby_version['version'] %> <%= !ruby_version['eol'].nil? ? "<div class='icon-label eol' title='All maintenance ended on #{ruby_version['eol']}'><div data-icon='ei-lock' data-size='s'></div></div>" : '' %>
<% eol_date = ruby_version['eol'] %>
<% eol_set = !eol_date.nil? %>
<% eol_in_past = Date.parse(eol_date) < Date.today rescue nil %>

## Ruby <%= ruby_version['version'] %> <%= eol_set && eol_in_past ? "<div class='icon-label eol' title='All maintenance ended on #{eol_date}'><div data-icon='ei-lock' data-size='s'></div></div>" : '' %>
<%- [*ruby_version['minors']].each do |minor_version| %>
### Ruby [<%= minor_version['version'] %>](https://www.ruby-lang.org/en/news/<%= minor_version['release_date'].gsub('-', '/') %>/ruby-<%= minor_version['version'].gsub('.', '-') %>-released/) <div class='icon-label calendar' title='Released on <%= minor_version['release_date'] %>'><div data-icon='ei-calendar' data-size='s'></div></div>
Expand Down
7 changes: 6 additions & 1 deletion lib/templates/docs/versions/latest.md.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Ruby latest versions changelog
<%- require 'date' -%>
<%- ruby_versions.each do |ruby_version| %>
<%- if !ruby_version['implementations'].nil? %>
<% implementation_link = ruby_version['implementations'].first.yield_self { |impl| "<a target='_blank' href=\"#{impl['url']}\">#{impl['name'].split.last}</a>" } %>
<% eol_date_icon = !ruby_version['eol'].nil? ? "<div class='icon-label eol' title='All maintenance ended on #{ruby_version['eol']}'><div data-icon='ei-lock' data-size='s'></div></div>" : '' %>
<% eol_date = ruby_version['eol'] %>
<% eol_set = !eol_date.nil? %>
<% eol_in_past = Date.parse(eol_date) < Date.today rescue nil %>
<% eol_date_icon = eol_set && eol_in_past ? "<div class='icon-label eol' title='All maintenance ended on #{eol_date}'><div data-icon='ei-lock' data-size='s'></div></div>" : '' %>
<% release_date_icon = "<div class='icon-label calendar' title='Released on #{ruby_version['minors'].first['release_date']}'><div data-icon='ei-calendar' data-size='s'></div></div>" %>

## Ruby <%= implementation_link %> <%= eol_date_icon %> <%= release_date_icon %>
Expand Down

0 comments on commit faeee4a

Please sign in to comment.