From 82e7696ae1080cc6eb0b05f54381a2e80cc56093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Boros?= Date: Sun, 17 Dec 2023 11:02:26 +0400 Subject: [PATCH] chore: bump ruby and dependency versions (#1365) --- .ruby-version | 1 + Gemfile | 16 +++++------ Gemfile.lock | 79 ++++++++++++++++++++++----------------------------- Rakefile | 4 +-- 4 files changed, 45 insertions(+), 55 deletions(-) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..be94e6f53 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.2 diff --git a/Gemfile b/Gemfile index 1a9eaaac7..715300e8a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,10 +1,10 @@ source "https://rubygems.org" -gem 'jekyll', '~>4.3.1' -gem "kramdown", "~> 2.4.0" -gem "kramdown-parser-gfm", "~> 1.1.0" -gem 'therubyracer', '~>0.12.3' -gem 'rouge', '~> 4.0.1' -gem 'bourbon', '~> 6.0.0' -gem 'neat', '~> 3.0.1' -gem 'nokogiri', '~> 1.14.0' +gem 'bourbon', '~> 4.2' +gem 'jekyll', '~> 3.9' +gem 'neat', '~> 1.7' +gem 'nokogiri', '~> 1.13' +gem 'rouge', '~> 2.2' +gem 'therubyracer', '~> 0.12' +gem "kramdown-parser-gfm", "~> 1.1" +gem "kramdown", "~> 2.3" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 9cc36abcc..9b4197437 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,100 +1,89 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.8.1) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) - bourbon (6.0.0) + bourbon (4.3.4) + sass (~> 3.4) thor (~> 0.19) colorator (1.1.0) - concurrent-ruby (1.1.10) + concurrent-ruby (1.2.2) em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) - ffi (1.15.5) + ffi (1.16.3) forwardable-extended (2.6.0) - google-protobuf (3.21.12) http_parser.rb (0.8.0) - i18n (1.12.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) - jekyll (4.3.1) + jekyll (3.9.3) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) - i18n (~> 1.0) - jekyll-sass-converter (>= 2.0, < 4.0) + i18n (>= 0.7, < 2) + jekyll-sass-converter (~> 1.0) jekyll-watch (~> 2.0) - kramdown (~> 2.3, >= 2.3.1) - kramdown-parser-gfm (~> 1.0) + kramdown (>= 1.17, < 3) liquid (~> 4.0) - mercenary (>= 0.3.6, < 0.5) + mercenary (~> 0.3.3) pathutil (~> 0.9) - rouge (>= 3.0, < 5.0) + rouge (>= 1.7, < 4) safe_yaml (~> 1.0) - terminal-table (>= 1.8, < 4.0) - webrick (~> 1.7) - jekyll-sass-converter (3.0.0) - sass-embedded (~> 1.54) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) jekyll-watch (2.2.1) listen (~> 3.0) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - libv8 (3.16.14.19) + libv8 (3.16.14.19.1) liquid (4.0.4) listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - mercenary (0.4.0) - mini_portile2 (2.8.1) - neat (3.0.1) - sass (~> 3.4) + mercenary (0.3.6) + mini_portile2 (2.8.5) + neat (1.9.1) + sass (>= 3.3) thor (~> 0.19) - nokogiri (1.14.0) - mini_portile2 (~> 2.8.0) + nokogiri (1.15.5) + mini_portile2 (~> 2.8.2) racc (~> 1.4) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (5.0.1) - racc (1.6.2) - rake (13.0.6) + public_suffix (5.0.4) + racc (1.7.3) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) ref (2.0.0) - rexml (3.2.5) - rouge (4.0.1) + rexml (3.2.6) + rouge (2.2.1) safe_yaml (1.0.5) sass (3.7.4) sass-listen (~> 4.0.0) - sass-embedded (1.57.1) - google-protobuf (~> 3.21) - rake (>= 10.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) - terminal-table (3.0.2) - unicode-display_width (>= 1.1.1, < 3) therubyracer (0.12.3) libv8 (~> 3.16.14.15) ref thor (0.20.3) - unicode-display_width (2.4.2) - webrick (1.7.0) PLATFORMS ruby DEPENDENCIES - bourbon (~> 6.0.0) - jekyll (~> 4.3.1) - kramdown (~> 2.4.0) - kramdown-parser-gfm (~> 1.1.0) - neat (~> 3.0.1) - nokogiri (~> 1.14.0) - rouge (~> 4.0.1) - therubyracer (~> 0.12.3) + bourbon (~> 4.2) + jekyll (~> 3.9) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.1) + neat (~> 1.7) + nokogiri (~> 1.13) + rouge (~> 2.2) + therubyracer (~> 0.12) BUNDLED WITH - 2.1.4 + 2.5.1 diff --git a/Rakefile b/Rakefile index 1d0407ee1..6b8cb3cfb 100644 --- a/Rakefile +++ b/Rakefile @@ -24,7 +24,7 @@ desc 'Copy assets and includes for the Jekyll build' task :copy_assets do # Create each destination directory, if it doesn't already exist ['_data/docs','_includes','assets/images/docs'].each{ |dir_name| - FileUtils.mkdir_p(dir_name) unless Dir.exists?(dir_name) + FileUtils.mkdir_p(dir_name) unless Dir.exist?(dir_name) } assets_to_copy = [ @@ -102,7 +102,7 @@ end def check_for_required_files(opts={}) missing_files = 0 $generated_files.each do |f| - if !File.exists?(f) + if !File.exist?(f) puts "Required file missing: #{f}" missing_files +=1 end