From ceb0e6bf14bd0df6c3dbb110606ecf9b8f3feda8 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 5 Jan 2024 14:31:24 +0100 Subject: [PATCH 1/4] add GHA based CI --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7912573 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +--- +name: CI + +on: + pull_request: + push: + branches: + - 'master' + - '*-stable' + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + rubocop: + name: Rubocop + uses: theforeman/actions/.github/workflows/rubocop.yml@v0 + + test: + name: Ruby + needs: rubocop + uses: theforeman/actions/.github/workflows/smart_proxy_plugin.yml@v0 From 87d6d4fea155ad1a9d43522afb9c54face1d2f47 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 24 Jul 2024 10:37:28 +0200 Subject: [PATCH 2/4] unique description --- smart_proxy_pulp.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_proxy_pulp.gemspec b/smart_proxy_pulp.gemspec index ce46973..0ee323a 100644 --- a/smart_proxy_pulp.gemspec +++ b/smart_proxy_pulp.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |gem| gem.email = ['dmitri@redhat.com'] gem.homepage = "https://github.com/theforeman/smart-proxy-pulp-plugin" gem.summary = 'Basic Pulp support for Foreman Smart-Proxy' - gem.description = 'Basic Pulp support for Foreman Smart-Proxy' + gem.description = 'Plugin for Basic Pulp support for Foreman Smart-Proxy' gem.files = Dir['{bundler.d,lib,settings.d}/**/*', 'LICENSE', 'Gemfile'] gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) From 2680a38bcd29e2a50488b161970a70aab5d5a615 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 14 Oct 2024 08:46:56 +0200 Subject: [PATCH 3/4] fetch branch from ENV --- Gemfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 727fbd8..713e47c 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,8 @@ group :test do gem 'mocha', '~> 1' gem 'rack-test' gem 'rake', '~> 13' - gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy', :branch => 'develop' + gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy', + :branch => ENV.fetch('SMART_PROXY_BRANCH', 'develop') gem 'test-unit', '~> 3' gem 'webmock', '~> 3' end From 6aea1cf5280100047fba76fd4e43fd98a254caee Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 15 Oct 2024 16:57:17 +0200 Subject: [PATCH 4/4] spdx gpl tag --- smart_proxy_pulp.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_proxy_pulp.gemspec b/smart_proxy_pulp.gemspec index 0ee323a..3724c86 100644 --- a/smart_proxy_pulp.gemspec +++ b/smart_proxy_pulp.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.files = Dir['{bundler.d,lib,settings.d}/**/*', 'LICENSE', 'Gemfile'] gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.license = 'GPL-3.0' + gem.license = 'GPL-3.0-only' gem.required_ruby_version = '>= 2.7', '< 4' end