diff --git a/Gemfile.lock b/Gemfile.lock index 4adfc89b..ff6da412 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,10 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.8.4) + addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) + base64 (0.1.1) bundler-audit (0.9.1) bundler (>= 1.2.0, < 3) thor (~> 1.0) @@ -11,9 +12,9 @@ GEM coderay (1.1.3) diff-lcs (1.5.0) docile (1.4.0) - ffi (1.15.5) + ffi (1.16.2) formatador (1.1.0) - guard (2.18.0) + guard (2.18.1) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) lumberjack (>= 1.0.12, < 2.0) @@ -36,12 +37,13 @@ GEM rubocop (< 2.0) iniparse (1.5.0) json (2.6.3) - json-schema (4.0.0) + json-schema (4.1.1) addressable (>= 2.8) + language_server-protocol (3.17.0.3) listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - lumberjack (1.2.8) + lumberjack (1.2.9) method_source (1.0.0) nenv (0.3.0) notiffany (0.1.3) @@ -58,15 +60,15 @@ GEM pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - public_suffix (5.0.1) - racc (1.7.0) + public_suffix (5.0.3) + racc (1.7.1) rainbow (3.1.1) rake (13.0.6) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - regexp_parser (2.8.0) - rexml (3.2.5) + regexp_parser (2.8.1) + rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) @@ -76,32 +78,34 @@ GEM rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-mocks (3.12.5) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-support (3.12.0) - rubocop (1.52.0) + rspec-support (3.12.1) + rubocop (1.56.4) + base64 (~> 0.1.1) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.29.0) parser (>= 3.2.1.0) - rubocop-capybara (2.18.0) + rubocop-capybara (2.19.0) rubocop (~> 1.41) - rubocop-factory_bot (2.23.1) + rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-performance (1.18.0) + rubocop-performance (1.19.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) rubocop-rake (0.6.0) rubocop (~> 1.0) - rubocop-rspec (2.22.0) + rubocop-rspec (2.24.1) rubocop (~> 1.33) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) @@ -113,7 +117,7 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - thor (1.2.1) + thor (1.2.2) unicode-display_width (2.4.2) PLATFORMS diff --git a/lib/catalog.rb b/lib/catalog.rb index aaf83bd8..4303446f 100644 --- a/lib/catalog.rb +++ b/lib/catalog.rb @@ -47,7 +47,7 @@ def category_groups def categories_at(path) Dir[File.join(path, "*.yml")].reject { |file_path| File.basename(file_path) == "_meta.yml" }.map do |category_path| - YAML.safe_load(File.read(category_path)).merge(permalink: File.basename(category_path).gsub(".yml", "")) + YAML.safe_load_file(category_path).merge(permalink: File.basename(category_path).gsub(".yml", "")) end end end diff --git a/spec/catalog_spec.rb b/spec/catalog_spec.rb index a31426b9..ee126d22 100644 --- a/spec/catalog_spec.rb +++ b/spec/catalog_spec.rb @@ -31,7 +31,7 @@ describe "Category #{category['name'].inspect}" do it "defines all projects in alphabetical order" do expected_order = category["projects"].sort_by(&:downcase) - expect(category["projects"]).to be == expected_order + expect(category["projects"]).to eq expected_order end end end @@ -63,7 +63,7 @@ end it "references only actually existing gems" do - expect(referenced_gems - available_gems).to be == [] + expect(referenced_gems - available_gems).to eq [] end end end