Skip to content

Commit 4ef0b73

Browse files
committed
Upgrade ruby/gems/javascript
Also some minor fixes to arch
1 parent aea153f commit 4ef0b73

File tree

6 files changed

+1751
-3796
lines changed

6 files changed

+1751
-3796
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.2-bookworm
1+
FROM ruby:3.3-bookworm
22

33
RUN apt-get update \
44
&& apt-get install -y --quiet --no-install-recommends \
@@ -7,7 +7,7 @@ RUN apt-get update \
77
ENV GEM_HOME=/usr/gem
88
ENV PATH="$GEM_HOME/bin/:$PATH"
99

10-
RUN gem install bundler -v '2.4.12'
10+
RUN gem install bundler -v '2.6.3'
1111
# throw errors if Gemfile has been modified since Gemfile.lock
1212
RUN bundle config --global frozen 1
1313

Gemfile.lock

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.4)
5-
public_suffix (>= 2.0.2, < 6.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
bigdecimal (3.1.9)
67
colorator (1.1.0)
7-
concurrent-ruby (1.2.2)
8+
concurrent-ruby (1.3.5)
89
em-websocket (0.5.3)
910
eventmachine (>= 0.12.9)
1011
http_parser.rb (~> 0)
1112
eventmachine (1.2.7)
1213
eventmachine (1.2.7-x64-mingw32)
13-
faraday (2.7.4)
14-
faraday-net_http (>= 2.0, < 3.1)
15-
ruby2_keywords (>= 0.0.4)
16-
faraday-net_http (3.0.2)
17-
ffi (1.15.5)
18-
ffi (1.15.5-x64-mingw32)
14+
faraday (2.12.2)
15+
faraday-net_http (>= 2.0, < 3.5)
16+
json
17+
logger
18+
faraday-net_http (3.4.0)
19+
net-http (>= 0.5.0)
20+
ffi (1.17.1)
1921
forwardable-extended (2.6.0)
20-
google-protobuf (3.22.3)
22+
google-protobuf (4.29.3)
23+
bigdecimal
24+
rake (>= 13)
2125
http_parser.rb (0.8.0)
22-
i18n (1.12.0)
26+
i18n (1.14.7)
2327
concurrent-ruby (~> 1.0)
24-
jekyll (4.3.2)
28+
jekyll (4.3.4)
2529
addressable (~> 2.4)
2630
colorator (~> 1.0)
2731
em-websocket (~> 0.5)
@@ -37,7 +41,7 @@ GEM
3741
safe_yaml (~> 1.0)
3842
terminal-table (>= 1.8, < 4.0)
3943
webrick (~> 1.7)
40-
jekyll-github-metadata (2.16.0)
44+
jekyll-github-metadata (2.16.1)
4145
jekyll (>= 3.4, < 5.0)
4246
octokit (>= 4, < 7, != 4.4.0)
4347
jekyll-paginate-v2 (3.0.0)
@@ -50,43 +54,47 @@ GEM
5054
jekyll (>= 3.3, < 5.0)
5155
jekyll-watch (2.2.1)
5256
listen (~> 3.0)
53-
kramdown (2.4.0)
54-
rexml
57+
json (2.9.1)
58+
kramdown (2.5.1)
59+
rexml (>= 3.3.9)
5560
kramdown-parser-gfm (1.1.0)
5661
kramdown (~> 2.0)
5762
liquid (4.0.4)
58-
listen (3.8.0)
63+
listen (3.9.0)
5964
rb-fsevent (~> 0.10, >= 0.10.3)
6065
rb-inotify (~> 0.9, >= 0.9.10)
66+
logger (1.6.5)
6167
mercenary (0.4.0)
68+
net-http (0.6.0)
69+
uri
6270
octokit (6.1.1)
6371
faraday (>= 1, < 3)
6472
sawyer (~> 0.9)
6573
pathutil (0.16.2)
6674
forwardable-extended (~> 2.6)
67-
public_suffix (5.0.1)
68-
rake (13.0.6)
75+
public_suffix (6.0.1)
76+
rake (13.2.1)
6977
rb-fsevent (0.11.2)
70-
rb-inotify (0.10.1)
78+
rb-inotify (0.11.1)
7179
ffi (~> 1.0)
72-
rexml (3.2.5)
73-
rouge (4.1.0)
74-
ruby2_keywords (0.0.5)
80+
rexml (3.4.0)
81+
rouge (4.5.1)
7582
safe_yaml (1.0.5)
76-
sass-embedded (1.62.0)
77-
google-protobuf (~> 3.21)
78-
rake (>= 10.0.0)
79-
sass-embedded (1.62.0-x64-mingw32)
80-
google-protobuf (~> 3.21)
81-
sass-embedded (1.62.0-x86_64-linux-gnu)
82-
google-protobuf (~> 3.21)
83+
sass-embedded (1.83.4)
84+
google-protobuf (~> 4.29)
85+
rake (>= 13)
86+
sass-embedded (1.83.4-x64-mingw32)
87+
google-protobuf (~> 4.29)
88+
sass-embedded (1.83.4-x86_64-linux-gnu)
89+
google-protobuf (~> 4.29)
8390
sawyer (0.9.2)
8491
addressable (>= 2.3.5)
8592
faraday (>= 0.17.3, < 3)
8693
terminal-table (3.0.2)
8794
unicode-display_width (>= 1.1.1, < 3)
88-
unicode-display_width (2.4.2)
89-
webrick (1.8.1)
95+
unicode-display_width (2.6.0)
96+
uri (1.0.2)
97+
webrick (1.9.1)
9098

9199
PLATFORMS
92100
ruby
@@ -101,4 +109,4 @@ DEPENDENCIES
101109
jekyll-titles-from-headings
102110

103111
BUNDLED WITH
104-
2.4.12
112+
2.6.3

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
environment:
77
- JEKYLL_ENV=development
88
- LANG=C.UTF-8
9-
command: jekyll serve --watch --incremental --host 0.0.0.0
9+
command: bundle exec jekyll serve --watch --incremental --host 0.0.0.0
1010
ports:
1111
- "4000:4000"
1212
volumes:

docs/architecture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ JKAN is a [Jekyll](http://jekyllrb.com/) site that uses JavaScript for enhanced
2929
| `_config.yml` | [Jekyll config file](http://jekyllrb.com/docs/configuration/) |
3030
| `data.json` | Generates a [project open data](https://project-open-data.cio.gov/v1.1/schema/)-compliant `data.json` file that can be used to harvest the JKAN site into other data catalogs. |
3131
| `datasets.json` | Generates a list of datasets used to populate the `datasets-list` component (as seen on the `/datasets/` page). |
32-
| `_data/schemas` | [Schema definition files](/docs/configuration.md), which list the fields each dataset, category, and organization should have. |
32+
| `_data/schemas` | Schema definition files which list the fields each dataset, category, and organization should have. |
3333
| `_data/licenses.yml` | A list of licenses that datasets can be associated with |
3434
| `_datasets` | A directory of `.md` files containing dataset information in YAML front-matter |
3535
| `_dataset_categories` | A directory of `.md` files containing dataset categories in YAML front-matter |
@@ -65,7 +65,7 @@ For example, if there is a `<div data-component="navigation">` on the page, `com
6565

6666
A component is just an [ES6 class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). They typically have a `constructor` method so they can use the variables they are passed. They can extend other components, but they don't have to.
6767

68-
By convention, elements within a component's HTML markup that need to be referenced by JavaScript are designated using a `data-hook` attribute, an idea [borrowed from ampersand.js](https://ampersandjs.com/learn/data-hook-attribute/) that helps keep styling and JavaScript concerns separate. For example, the `datasets-list` component looks for 3 elements within it: a place to put the count of datasets, a search box, and the place to list the dataset items themselves.
68+
By convention, elements within a component's HTML markup that need to be referenced by JavaScript are designated using a `data-hook` attribute, an idea [borrowed from ampersand.js](https://web.archive.org/web/20220808092409/https://ampersandjs.com/learn/data-hook-attribute/) that helps keep styling and JavaScript concerns separate. For example, the `datasets-list` component looks for 3 elements within it: a place to put the count of datasets, a search box, and the place to list the dataset items themselves.
6969

7070
```html
7171
<div data-component="datasets-list">
@@ -78,7 +78,7 @@ By convention, elements within a component's HTML markup that need to be referen
7878

7979
## Decap CMS
8080

81-
[Decap CMS](https://decapcms.org) (formerly Decap CMS) is a headless content management system for static sites. JKAN used to have its own built-in editing UI, but now we use Decap. There are only two files involved in configuring Decap CMS, and they're both in the `editor` directory:
81+
[Decap CMS](https://decapcms.org) is a headless content management system for static sites. JKAN used to have its own built-in editing UI, but now we use Decap. There are only two files involved in configuring Decap CMS, and they're both in the `editor` directory:
8282
```
8383
editor
8484
├── index.html

0 commit comments

Comments
 (0)