Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gem-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gem-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions dvla-kaping.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/dvla/kaping/aws_client.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/dvla/kaping/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module DVLA
module Kaping
VERSION = '1.0.2'
VERSION = '1.0.3'
end
end