From 212673c1b0e31e2ea705dac80493fbf748dae1ad Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 14 May 2024 16:57:25 +0200 Subject: [PATCH] test(bundler): Add a test for a GitHub dependency See [1]. [1]: https://bundler.io/guides/git.html#custom-git-sources Signed-off-by: Sebastian Schuberth --- .../bundler-expected-output-lockfile.yml | 33 +++++++++++++++++++ .../projects/synthetic/lockfile/Gemfile | 1 + 2 files changed, 34 insertions(+) diff --git a/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/bundler-expected-output-lockfile.yml b/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/bundler-expected-output-lockfile.yml index e842f1852f88a..1a8407faf6fba 100644 --- a/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/bundler-expected-output-lockfile.yml +++ b/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/bundler-expected-output-lockfile.yml @@ -24,6 +24,7 @@ project: - id: "Gem::rack:2.1.4" - name: "test" dependencies: + - id: "Gem::elasticsearch-rails:7.2.1" - id: "Gem::rspec:3.7.0" dependencies: - id: "Gem::rspec-core:3.7.1" @@ -78,6 +79,38 @@ packages: url: "https://github.com/halostatue/diff-lcs.git" revision: "" path: "" +- id: "Gem::elasticsearch-rails:7.2.1" + purl: "pkg:gem/elasticsearch-rails@7.2.1" + authors: + - "Karel Minarik" + declared_licenses: + - "Apache 2" + declared_licenses_processed: + spdx_expression: "Apache-2.0" + mapped: + Apache 2: "Apache-2.0" + description: "Ruby on Rails integrations for Elasticsearch." + homepage_url: "https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby_on_rails.html" + binary_artifact: + url: "" + hash: + value: "" + algorithm: "" + source_artifact: + url: "https://rubygems.org/gems/elasticsearch-rails-7.2.1.gem" + hash: + value: "0750dc0e956358d9a3a0912a8186c266ef19f8de0b178c61996ed1a6998156e4" + algorithm: "SHA-256" + vcs: + type: "Git" + url: "https://github.com/elastic/elasticsearch-rails.git" + revision: "" + path: "" + vcs_processed: + type: "Git" + url: "https://github.com/elastic/elasticsearch-rails.git" + revision: "" + path: "" - id: "Gem::mini_portile2:2.4.0" purl: "pkg:gem/mini_portile2@2.4.0" authors: diff --git a/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/lockfile/Gemfile b/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/lockfile/Gemfile index 9ba55c07d6e91..61361be97c804 100644 --- a/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/lockfile/Gemfile +++ b/plugins/package-managers/bundler/src/funTest/assets/projects/synthetic/lockfile/Gemfile @@ -7,4 +7,5 @@ gem 'rack', '~>2.1' group :test do gem 'rspec', :require => 'spec' + gem 'elasticsearch-rails', github: 'elastic/elasticsearch-rails', ref: 'v7.2.1' end