Преглед изворни кода

Merge branch 'main' into babel-fix

Simon Legner пре 2 година
родитељ
комит
44489a76f3

+ 2 - 2
.github/workflows/build.yml

@@ -11,9 +11,9 @@ jobs:
     runs-on: ubuntu-20.04
     if: github.repository == 'freeCodeCamp/devdocs'
     steps:
-    - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
+    - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
     - name: Set up Ruby
-      uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0
+      uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
       with:
         bundler-cache: true # runs 'bundle install' and caches installed gems automatically
     - name: Run tests

+ 2 - 2
.github/workflows/schedule-doc-report.yml

@@ -8,9 +8,9 @@ jobs:
     runs-on: ubuntu-20.04
     if: github.repository == 'freeCodeCamp/devdocs'
     steps:
-    - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
+    - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
     - name: Set up Ruby
-      uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0
+      uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
       with:
         bundler-cache: true # runs 'bundle install' and caches installed gems automatically
     - name: Generate report

+ 2 - 2
.github/workflows/test.yml

@@ -9,9 +9,9 @@ jobs:
   test:
     runs-on: ubuntu-20.04
     steps:
-    - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
+    - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
     - name: Set up Ruby
-      uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # v1.138.0
+      uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
       with:
         bundler-cache: true # runs 'bundle install' and caches installed gems automatically
     - name: Run tests

+ 1 - 1
.ruby-version

@@ -1 +1 @@
-3.2.1
+3.2.2

+ 1 - 1
.tool-versions

@@ -1 +1 @@
-ruby 3.2.1
+ruby 3.2.2

+ 1 - 1
Dockerfile

@@ -1,4 +1,4 @@
-FROM ruby:3.2.1
+FROM ruby:3.2.2
 ENV LANG=C.UTF-8
 ENV ENABLE_SERVICE_WORKER=true
 

+ 1 - 1
Dockerfile-alpine

@@ -1,4 +1,4 @@
-FROM ruby:3.2.1-alpine
+FROM ruby:3.2.2-alpine
 
 ENV LANG=C.UTF-8
 ENV ENABLE_SERVICE_WORKER=true

+ 1 - 1
Gemfile

@@ -1,5 +1,5 @@
 source 'https://rubygems.org'
-ruby '3.2.1'
+ruby '3.2.2'
 
 gem 'activesupport', require: false
 gem 'html-pipeline'

+ 20 - 20
Gemfile.lock

@@ -1,7 +1,7 @@
 GEM
   remote: https://rubygems.org/
   specs:
-    activesupport (7.0.4.2)
+    activesupport (7.0.4.3)
       concurrent-ruby (~> 1.0, >= 1.0.2)
       i18n (>= 1.6, < 2)
       minitest (>= 5.1)
@@ -20,7 +20,7 @@ GEM
     coffee-script-source (1.12.2)
     concurrent-ruby (1.1.10)
     daemons (1.4.1)
-    erubi (1.11.0)
+    erubi (1.12.0)
     ethon (0.16.0)
       ffi (>= 1.15.0)
     eventmachine (1.2.7)
@@ -40,22 +40,22 @@ GEM
       image_size (>= 1.5, < 4)
       in_threads (~> 1.3)
       progress (~> 3.0, >= 3.0.1)
-    image_optim_pack (0.9.1.20221104)
+    image_optim_pack (0.9.1.20230325)
       fspath (>= 2.1, < 4)
       image_optim (~> 0.19)
     image_size (3.2.0)
     in_threads (1.6.0)
     method_source (1.0.0)
-    mini_portile2 (2.8.0)
-    minitest (5.16.3)
+    mini_portile2 (2.8.1)
+    minitest (5.18.0)
     multi_json (1.15.0)
     mustermann (3.0.0)
       ruby2_keywords (~> 0.0.1)
     net-sftp (4.0.0)
       net-ssh (>= 5.0.0, < 8.0.0)
     net-ssh (7.0.1)
-    newrelic_rpm (8.12.0)
-    nokogiri (1.14.2)
+    newrelic_rpm (8.16.0)
+    nokogiri (1.14.3)
       mini_portile2 (~> 2.8.0)
       racc (~> 1.4)
     options (2.3.2)
@@ -63,24 +63,24 @@ GEM
     progress_bar (1.3.3)
       highline (>= 1.6, < 3)
       options (~> 2.3.0)
-    pry (0.14.1)
+    pry (0.14.2)
       coderay (~> 1.1)
       method_source (~> 1.0)
     pry-byebug (3.10.1)
       byebug (~> 11.0)
       pry (>= 0.13, < 0.15)
-    racc (1.6.1)
-    rack (2.2.6.2)
-    rack-protection (3.0.3)
+    racc (1.6.2)
+    rack (2.2.6.4)
+    rack-protection (3.0.5)
       rack
     rack-ssl-enforcer (0.2.9)
-    rack-test (2.0.2)
+    rack-test (2.1.0)
       rack (>= 1.3)
     rake (13.0.6)
     rb-fsevent (0.11.2)
     rb-inotify (0.10.1)
       ffi (~> 1.0)
-    redcarpet (3.5.1)
+    redcarpet (3.6.0)
     rexml (3.2.5)
     rr (3.1.0)
     rss (0.2.9)
@@ -91,16 +91,16 @@ GEM
     sass-listen (4.0.0)
       rb-fsevent (~> 0.9, >= 0.9.4)
       rb-inotify (~> 0.9, >= 0.9.7)
-    sinatra (3.0.3)
+    sinatra (3.0.5)
       mustermann (~> 3.0)
       rack (~> 2.2, >= 2.2.4)
-      rack-protection (= 3.0.3)
+      rack-protection (= 3.0.5)
       tilt (~> 2.0)
-    sinatra-contrib (3.0.3)
+    sinatra-contrib (3.0.5)
       multi_json
       mustermann (~> 3.0)
-      rack-protection (= 3.0.3)
-      sinatra (= 3.0.3)
+      rack-protection (= 3.0.5)
+      sinatra (= 3.0.5)
       tilt (~> 2.0)
     sprockets (3.7.2)
       concurrent-ruby (~> 1.0)
@@ -116,7 +116,7 @@ GEM
     strings-ansi (0.2.0)
     terminal-table (3.0.2)
       unicode-display_width (>= 1.1.1, < 3)
-    thin (1.8.1)
+    thin (1.8.2)
       daemons (~> 1.0, >= 1.0.9)
       eventmachine (~> 1.0, >= 1.0.4)
       rack (>= 1, < 3)
@@ -179,7 +179,7 @@ DEPENDENCIES
   yajl-ruby
 
 RUBY VERSION
-   ruby 3.2.1p31
+   ruby 3.2.2p53
 
 BUNDLED WITH
    2.4.6

+ 1 - 1
lib/docs/filters/redis/entries.rb

@@ -489,7 +489,7 @@ module Docs
         "scripting" => "Core: Scripting and Functions",
         "server" => "Core: Server managment",
         "set" => "Core: Set",
-        "sorted-set:" => "Core: Sorted Set",
+        "sorted-set" => "Core: Sorted Set",
         "stream" => "Core: Stream",
         "string" => "Core: String",
         "transactions" => "Core: Transactions",

+ 5 - 0
lib/docs/scrapers/django.rb

@@ -34,6 +34,11 @@ module Docs
       Licensed under the BSD License.
     HTML
 
+    version '4.2' do
+      self.release = '4.2'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/"
+    end
+
     version '4.1' do
       self.release = '4.1'
       self.base_url = "https://docs.djangoproject.com/en/#{self.version}/"

+ 1 - 1
lib/docs/scrapers/fastapi.rb

@@ -2,7 +2,7 @@ module Docs
   class Fastapi < UrlScraper
     self.name = 'FastAPI'
     self.type = 'fastapi'
-    self.release = '0.88.0'
+    self.release = '0.95.0'
     self.base_url = 'https://fastapi.tiangolo.com/'
     self.root_path = '/'
     self.links = {

+ 1 - 1
lib/docs/scrapers/git.rb

@@ -1,7 +1,7 @@
 module Docs
   class Git < UrlScraper
     self.type = 'git'
-    self.release = '2.39.0'
+    self.release = '2.40.0'
     self.base_url = 'https://git-scm.com/docs'
     self.initial_paths = %w(/git.html)
     self.links = {

+ 6 - 1
lib/docs/scrapers/octave.rb

@@ -23,12 +23,17 @@ module Docs
     options[:root_title] = 'GNU Octave'
 
     options[:attribution] = <<-HTML
-      &copy; 1996–2022 The Octave Project Developers<br>
+      &copy; 1996–2023 The Octave Project Developers<br>
       Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.<br/>
       Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.</br>
       Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
     HTML
 
+    version '8' do
+      self.release = '8.1.0'
+      self.base_url = "https://docs.octave.org/v#{self.release}/"
+    end
+
     version '7' do
       self.release = '7.2.0'
       self.base_url = "https://docs.octave.org/v#{self.release}/"

+ 2 - 2
lib/docs/scrapers/redis.rb

@@ -1,7 +1,7 @@
 module Docs
   class Redis < UrlScraper
     self.type = 'redis'
-    self.release = '7.0.8'
+    self.release = '7.0.10'
     self.base_url = 'https://redis.io/commands'
     self.links = {
       home: 'https://redis.io/',
@@ -16,7 +16,7 @@ module Docs
     options[:follow_links] = ->(filter) { filter.root_page? }
 
     options[:attribution] = <<-HTML
-      &copy; 2009&ndash;2022 Salvatore Sanfilippo<br>
+      &copy; 2006&ndash;2022 Salvatore Sanfilippo<br>
       Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
     HTML
 

+ 2 - 2
lib/docs/scrapers/typescript.rb

@@ -4,7 +4,7 @@ module Docs
 
     self.name = 'TypeScript'
     self.type = 'typescript'
-    self.release = '4.9.3'
+    self.release = '5.0.2'
     self.base_urls = [
       'https://www.typescriptlang.org/docs/handbook/',
       'https://www.typescriptlang.org/'
@@ -35,7 +35,7 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      &copy; 2012-2022 Microsoft<br>
+      &copy; 2012-2023 Microsoft<br>
       Licensed under the Apache License, Version 2.0.
     HTML
 

+ 1 - 1
lib/docs/scrapers/vitest.rb

@@ -16,7 +16,7 @@ module Docs
       Licensed under the MIT License.
     HTML
 
-    self.release = '0.27.1'
+    self.release = '0.30.1'
     self.base_url = 'https://vitest.dev/'
     self.initial_paths = %w(guide/)
     html_filters.push 'vitest/entries', 'vite/clean_html'