diff --git a/Gemfile b/Gemfile index 326891a37..8158a5d09 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ gem "aws-sdk-sqs", "~> 1.3" gem "base32-url", "~> 0.3" gem "batch-loader", "~> 1.4", ">= 1.4.1" gem "bcrypt", "~> 3.1.7" -gem "bolognese", "~> 1.9" +gem "bolognese", "~> 1.11.0" gem "bootsnap", "~> 1.4", ">= 1.4.4", require: false gem "cancancan", "~> 3.0" gem "commonmarker", "~> 0.23.4" diff --git a/Gemfile.lock b/Gemfile.lock index f8ad6f6fd..317ced155 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,42 +1,42 @@ GEM remote: https://rubygems.org/ specs: - aasm (5.2.0) + aasm (5.4.0) concurrent-ruby (~> 1.0) - actioncable (6.1.6) - actionpack (= 6.1.6) - activesupport (= 6.1.6) + actioncable (6.1.7) + actionpack (= 6.1.7) + activesupport (= 6.1.7) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.1.6) - actionpack (= 6.1.6) - activejob (= 6.1.6) - activerecord (= 6.1.6) - activestorage (= 6.1.6) - activesupport (= 6.1.6) + actionmailbox (6.1.7) + actionpack (= 6.1.7) + activejob (= 6.1.7) + activerecord (= 6.1.7) + activestorage (= 6.1.7) + activesupport (= 6.1.7) mail (>= 2.7.1) - actionmailer (6.1.6) - actionpack (= 6.1.6) - actionview (= 6.1.6) - activejob (= 6.1.6) - activesupport (= 6.1.6) + actionmailer (6.1.7) + actionpack (= 6.1.7) + actionview (= 6.1.7) + activejob (= 6.1.7) + activesupport (= 6.1.7) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.1.6) - actionview (= 6.1.6) - activesupport (= 6.1.6) + actionpack (6.1.7) + actionview (= 6.1.7) + activesupport (= 6.1.7) rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.1.6) - actionpack (= 6.1.6) - activerecord (= 6.1.6) - activestorage (= 6.1.6) - activesupport (= 6.1.6) + actiontext (6.1.7) + actionpack (= 6.1.7) + activerecord (= 6.1.7) + activestorage (= 6.1.7) + activesupport (= 6.1.7) nokogiri (>= 1.8.5) - actionview (6.1.6) - activesupport (= 6.1.6) + actionview (6.1.7) + activesupport (= 6.1.7) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) @@ -46,22 +46,22 @@ GEM activemodel (>= 4.1, < 7.1) case_transform (>= 0.2) jsonapi-renderer (>= 0.1.1.beta1, < 0.3) - activejob (6.1.6) - activesupport (= 6.1.6) + activejob (6.1.7) + activesupport (= 6.1.7) globalid (>= 0.3.6) - activemodel (6.1.6) - activesupport (= 6.1.6) - activerecord (6.1.6) - activemodel (= 6.1.6) - activesupport (= 6.1.6) - activestorage (6.1.6) - actionpack (= 6.1.6) - activejob (= 6.1.6) - activerecord (= 6.1.6) - activesupport (= 6.1.6) + activemodel (6.1.7) + activesupport (= 6.1.7) + activerecord (6.1.7) + activemodel (= 6.1.7) + activesupport (= 6.1.7) + activestorage (6.1.7) + actionpack (= 6.1.7) + activejob (= 6.1.7) + activerecord (= 6.1.7) + activesupport (= 6.1.7) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (6.1.6) + activesupport (6.1.7) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) @@ -78,23 +78,23 @@ GEM audited (4.10.0) activerecord (>= 4.2, < 6.2) aws-eventstream (1.2.0) - aws-partitions (1.603.0) - aws-sdk-core (3.131.2) + aws-partitions (1.653.0) + aws-sdk-core (3.166.0) aws-eventstream (~> 1, >= 1.0.2) - aws-partitions (~> 1, >= 1.525.0) - aws-sigv4 (~> 1.1) + aws-partitions (~> 1, >= 1.651.0) + aws-sigv4 (~> 1.5) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.57.0) - aws-sdk-core (~> 3, >= 3.127.0) + aws-sdk-kms (1.59.0) + aws-sdk-core (~> 3, >= 3.165.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.114.0) - aws-sdk-core (~> 3, >= 3.127.0) + aws-sdk-s3 (1.117.1) + aws-sdk-core (~> 3, >= 3.165.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.4) - aws-sdk-sqs (1.51.1) - aws-sdk-core (~> 3, >= 3.127.0) + aws-sdk-sqs (1.52.0) + aws-sdk-core (~> 3, >= 3.165.0) aws-sigv4 (~> 1.1) - aws-sigv4 (1.5.0) + aws-sigv4 (1.5.2) aws-eventstream (~> 1, >= 1.0.2) base32-url (0.5) batch-loader (1.5.0) @@ -110,7 +110,7 @@ GEM latex-decode (~> 0.0) binding_of_caller (1.0.0) debug_inspector (>= 0.0.1) - bolognese (1.9.18) + bolognese (1.11.0) activesupport (>= 4.2.5) benchmark_methods (~> 0.7) bibtex-ruby (>= 5.1.0) @@ -120,7 +120,6 @@ GEM concurrent-ruby (~> 1.1, >= 1.1.5) csl-styles (~> 1.0, >= 1.0.1.10) edtf (~> 3.0, >= 3.0.4) - faraday (~> 0.17.3) gender_detector (~> 0.1.2) iso8601 (~> 0.9.1) json-ld-preloaded (~> 3.1, >= 3.1.3) @@ -135,7 +134,7 @@ GEM rdf-rdfxml (~> 3.1) rdf-turtle (~> 3.1) thor (>= 0.19) - bootsnap (1.12.0) + bootsnap (1.13.0) msgpack (~> 1.2) builder (3.2.4) bullet (6.1.5) @@ -162,9 +161,9 @@ GEM climate_control (0.2.0) coderay (1.1.3) colorize (0.8.1) - commonmarker (0.23.5) + commonmarker (0.23.6) concurrent-ruby (1.1.10) - connection_pool (2.2.5) + connection_pool (2.3.0) countries (2.1.4) i18n_data (~> 0.8.0) money (~> 6.9) @@ -183,7 +182,7 @@ GEM rexml csl-styles (1.0.1.11) csl (~> 1.0) - css_parser (1.11.0) + css_parser (1.12.0) addressable dalli (2.7.11) database_cleaner (2.0.1) @@ -201,7 +200,7 @@ GEM docopt (0.6.1) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) - dotenv (2.7.6) + dotenv (2.8.1) ebnf (2.3.1) amazing_print (~> 1.4) htmlentities (~> 4.3) @@ -229,7 +228,7 @@ GEM multi_json equivalent-xml (0.6.0) nokogiri (>= 1.4.3) - erubi (1.10.0) + erubi (1.11.0) excon (0.71.1) facets (3.1.0) factory_bot (4.11.1) @@ -257,10 +256,12 @@ GEM flipper (~> 0.17.2) gender_detector (0.1.2) unicode_utils (>= 1.3.0) - git (1.11.0) + git (1.12.0) + addressable (~> 2.8) rchardet (~> 1.8) globalid (1.0.0) activesupport (>= 5.0) + google-protobuf (3.19.2-x86_64-darwin) google-protobuf (3.19.2-x86_64-linux) graphql (1.11.4) graphql-batch (0.4.3) @@ -298,14 +299,14 @@ GEM multi_json (~> 1.15) rack (~> 2.2) rdf (~> 3.2, >= 3.2.9) - json-ld-preloaded (3.2.1) + json-ld-preloaded (3.2.2) json-ld (~> 3.2) rdf (~> 3.2) jsonapi-renderer (0.2.2) jsonlint (0.3.0) oj (~> 3) optimist (~> 3) - jwt (2.4.1) + jwt (2.5.0) kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -318,7 +319,7 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kt-paperclip (6.4.1) + kt-paperclip (6.4.2) activemodel (>= 4.2.0) activesupport (>= 4.2.0) mime-types @@ -370,11 +371,10 @@ GEM rake mini_magick (4.11.0) mini_mime (1.1.2) - mini_portile2 (2.8.0) minitest (5.16.3) money (6.16.0) i18n (>= 0.6.4, <= 2) - msgpack (1.5.3) + msgpack (1.6.0) multi_json (1.15.0) multipart-post (2.2.3) mysql2 (0.5.4) @@ -383,16 +383,19 @@ GEM connection_pool (~> 2.2) netrc (0.11.0) nio4r (2.5.8) - nokogiri (1.13.8) - mini_portile2 (~> 2.8.0) + nokogiri (1.13.9-arm64-darwin) + racc (~> 1.4) + nokogiri (1.13.9-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.9-x86_64-linux) racc (~> 1.4) oj (3.13.21) oj_mimic_json (1.0.1) optimist (3.0.1) parallel (1.22.1) - parallel_tests (3.12.1) + parallel_tests (3.13.0) parallel - parser (3.1.2.0) + parser (3.1.2.1) ast (~> 2.4.1) postrank-uri (1.0.24) addressable (>= 2.4.0) @@ -416,37 +419,37 @@ GEM rack (>= 2.0.0) rack-test (2.0.2) rack (>= 1.3) - rack-utf8_sanitizer (1.7.0) - rack (>= 1.0, < 3.0) - rails (6.1.6) - actioncable (= 6.1.6) - actionmailbox (= 6.1.6) - actionmailer (= 6.1.6) - actionpack (= 6.1.6) - actiontext (= 6.1.6) - actionview (= 6.1.6) - activejob (= 6.1.6) - activemodel (= 6.1.6) - activerecord (= 6.1.6) - activestorage (= 6.1.6) - activesupport (= 6.1.6) + rack-utf8_sanitizer (1.8.0) + rack (>= 1.0, < 4.0) + rails (6.1.7) + actioncable (= 6.1.7) + actionmailbox (= 6.1.7) + actionmailer (= 6.1.7) + actionpack (= 6.1.7) + actiontext (= 6.1.7) + actionview (= 6.1.7) + activejob (= 6.1.7) + activemodel (= 6.1.7) + activerecord (= 6.1.7) + activestorage (= 6.1.7) + activesupport (= 6.1.7) bundler (>= 1.15.0) - railties (= 6.1.6) + railties (= 6.1.7) sprockets-rails (>= 2.0.0) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) rails-html-sanitizer (1.4.3) loofah (~> 2.3) - railties (6.1.6) - actionpack (= 6.1.6) - activesupport (= 6.1.6) + railties (6.1.7) + actionpack (= 6.1.7) + activesupport (= 6.1.7) method_source rake (>= 12.2) thor (~> 1.0) rainbow (3.1.1) rake (12.3.3) - rb-fsevent (0.11.1) + rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) rchardet (1.8.0) @@ -469,12 +472,12 @@ GEM rdf-turtle (3.2.1) ebnf (~> 2.3) rdf (~> 3.2) - rdf-vocab (3.2.2) + rdf-vocab (3.2.3) rdf (~> 3.2, >= 3.2.4) rdf-xsd (3.2.1) rdf (~> 3.2) rexml (~> 3.2) - regexp_parser (1.8.2) + regexp_parser (2.6.0) request_store (1.5.1) rack (>= 1.4) rest-client (2.1.0) @@ -511,29 +514,29 @@ GEM rspec-mocks (~> 3.9.0) rspec-support (~> 3.9.0) rspec-support (3.9.4) - rubocop (1.31.2) + rubocop (1.37.1) json (~> 2.3) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.1.2.1) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.18.0, < 2.0) + rubocop-ast (>= 1.23.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.18.0) + rubocop-ast (1.23.0) parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.14.2) + rubocop-packaging (0.5.2) + rubocop (>= 1.33, < 2.0) + rubocop-performance (1.15.0) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.15.2) + rubocop-rails (2.17.2) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.12.1) - rubocop (~> 1.31) + rubocop (>= 1.33.0, < 2.0) + rubocop-rspec (2.14.2) + rubocop (~> 1.33) ruby-progressbar (1.11.0) ruby_dep (1.5.0) scanf (1.0.0) @@ -582,16 +585,16 @@ GEM actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - string_pattern (2.2.3) - regexp_parser (~> 1.3, >= 1.3.0) + string_pattern (2.3.0) + regexp_parser (~> 2.5, >= 2.5.0) strip_attributes (1.13.0) activemodel (>= 3.0, < 8.0) - sxp (1.2.2) - matrix + sxp (1.2.3) + matrix (~> 0.4) rdf (~> 3.2) sysrandom (1.0.5) systemu (2.6.5) - temple (0.8.2) + temple (0.9.1) terrapin (0.6.0) climate_control (>= 0.0.3, < 1.0) test-prof (0.10.2) @@ -607,14 +610,14 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.8.2) - unicode-display_width (2.2.0) + unicode-display_width (2.3.0) unicode-types (1.8.0) unicode_utils (1.4.0) uniform_notifier (1.16.0) uuid (2.3.9) macaddr (~> 1.0) vcr (5.1.0) - webmock (3.14.0) + webmock (3.18.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -623,9 +626,10 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.1) + zeitwerk (2.6.2) PLATFORMS + universal-darwin-21 x86_64-linux DEPENDENCIES @@ -640,7 +644,7 @@ DEPENDENCIES bcrypt (~> 3.1.7) better_errors binding_of_caller - bolognese (~> 1.9) + bolognese (~> 1.11.0) bootsnap (~> 1.4, >= 1.4.4) bullet (~> 6.1) byebug @@ -696,7 +700,7 @@ DEPENDENCIES nokogiri (>= 1.11.2) oj (>= 2.8.3) oj_mimic_json (~> 1.0, >= 1.0.1) - parallel_tests + parallel_tests (~> 3.12) premailer (~> 1.11, >= 1.11.1) pwqgen.rb (~> 0.1.0) rack-cors (~> 1.0) diff --git a/spec/graphql/types/repository_type_spec.rb b/spec/graphql/types/repository_type_spec.rb index 13d83e1a0..85332230c 100644 --- a/spec/graphql/types/repository_type_spec.rb +++ b/spec/graphql/types/repository_type_spec.rb @@ -285,8 +285,7 @@ it "uses the cursor to continue searching" do response = LupoSchema.execute( search_query, - variables: { - } + variables: {} ).as_json expect(response.dig("data", "repositories",