From 33dcc269122f75e6fffe3490036893907c921245 Mon Sep 17 00:00:00 2001 From: Kevin Upstill Date: Tue, 12 Aug 2025 09:57:46 +0100 Subject: [PATCH 1/2] moved runtime dependencies to gemspec --- .github/workflows/gem-build.yml | 2 +- .github/workflows/gem-test.yml | 2 +- Gemfile | 3 --- README.md | 6 +++--- dvla-kaping.gemspec | 4 ++++ lib/dvla/kaping/aws_client.rb | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gem-build.yml b/.github/workflows/gem-build.yml index a8e067f..d36b401 100644 --- a/.github/workflows/gem-build.yml +++ b/.github/workflows/gem-build.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: [ '3.1', '3.2', '3.4' ] + ruby-version: [ '3.2', '3.3', '3.4' ] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/gem-test.yml b/.github/workflows/gem-test.yml index 5375624..bf05ab8 100644 --- a/.github/workflows/gem-test.yml +++ b/.github/workflows/gem-test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ] + ruby-version: [ '3.2', '3.3', '3.4' ] steps: - uses: actions/checkout@v2 diff --git a/Gemfile b/Gemfile index a78bec6..8165cce 100644 --- a/Gemfile +++ b/Gemfile @@ -4,11 +4,8 @@ source 'https://rubygems.org' # Specify your gem's dependencies in dvla-kaping.gemspec gemspec -gem 'aws-sdk-core', '~> 3.196' -gem 'aws-sigv4', '~> 1.8' gem 'bundler-audit', '~> 0.9.2' gem 'dvla-lint', '~> 1.8' -gem 'opensearch-aws-sigv4', '~> 1.2', '>= 1.2.1' gem 'rake', '~> 13.0' gem 'rspec', '~> 3.0' gem 'rspec-sonarqube-formatter', '~> 1.5' diff --git a/README.md b/README.md index 099235b..18ce01a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Dvla::Kaping -The Kaping! gem - an idiomatic way to create DSL openSearch definitions +The Kaping! Gem, an idiomatic way to create DSL openSearch definitions The Ka-Ping Ruby gem enables the user to build complex ElasticSearch DSL Queries for searching and filtering large data sets without having to worry about formatting the JSON payloads. @@ -35,10 +35,10 @@ complex to construct so this gem looks to simplify the process. ## Query and filter context -A filter context asks - “Does the document match the query clause?” and returns matching documents +A filter context asks: “Does the document match the query clause?” and returns matching documents i.e it's a binary answer -A query context asks - “How well does the document match the query clause?”, - also returns a relevance score +A query context asks: “How well does the document match the query clause?”, - also returns a relevance score good for full-text searches # How to use diff --git a/dvla-kaping.gemspec b/dvla-kaping.gemspec index 6c02374..ea5dee3 100644 --- a/dvla-kaping.gemspec +++ b/dvla-kaping.gemspec @@ -33,5 +33,9 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = %w[lib] + spec.add_dependency 'aws-sdk-sts' + spec.add_dependency 'aws-sigv4', '~> 1.8' spec.add_dependency 'nokogiri', '~> 1.18', '>= 1.18.8' + spec.add_dependency 'opensearch-aws-sigv4', '~> 1.2', '>= 1.2.1' + end diff --git a/lib/dvla/kaping/aws_client.rb b/lib/dvla/kaping/aws_client.rb index 0b7df3e..15db6a9 100644 --- a/lib/dvla/kaping/aws_client.rb +++ b/lib/dvla/kaping/aws_client.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true -require 'aws-sdk-core' require 'opensearch-aws-sigv4' require 'aws-sigv4' +require 'aws-sdk-sts' module DVLA module Kaping From b1363c5af6afc4c1c935d6d6594d9b3b7589fb6e Mon Sep 17 00:00:00 2001 From: Kevin Upstill Date: Thu, 4 Sep 2025 07:47:09 +0100 Subject: [PATCH 2/2] bumped version, updated changelog --- CHANGELOG.md | 7 ++++++- lib/dvla/kaping/version.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d5712f..6e0d067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## [Unreleased] -## [0.1.0] - 2024-11-07 +## [1.0.2] - 2024-11-07 - Initial release + +## [1.0.3] - 2025-09-03 + +- Moved runtime dependencies to the gemspec + diff --git a/lib/dvla/kaping/version.rb b/lib/dvla/kaping/version.rb index 8f65f88..7a091db 100644 --- a/lib/dvla/kaping/version.rb +++ b/lib/dvla/kaping/version.rb @@ -2,6 +2,6 @@ module DVLA module Kaping - VERSION = '1.0.2' + VERSION = '1.0.3' end end