diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 1dd1971..0000000 --- a/.drone.yml +++ /dev/null @@ -1,122 +0,0 @@ ---- -kind: pipeline -name: audit, lint & test - -platform: - os: linux - arch: amd64 - -trigger: - event: - - push - -drone_cache_image: &drone_cache_image - image: 448934085854.dkr.ecr.eu-west-2.amazonaws.com/ce/drone-cache - pull: if-not-exists - -drone_cache_settings: &drone_cache_settings - bucket: dvla-drone1-cache-448934085854 - region: eu-west-2 - encryption: AES256 - endpoint: https://s3.eu-west-2.amazonaws.com - -gem_cache_mount: &gem_cache_mount - mount: - - vendor/bundle - -ruby_image: &ruby_image - image: 448934085854.dkr.ecr.eu-west-2.amazonaws.com/base-images/qe-ruby:3 - -sonar_image: &sonar_image - image: 448934085854.dkr.ecr.eu-west-2.amazonaws.com/utilities-ci-tools/ci-drone-sonar-scanner - pull: if-not-exists - -steps: - - name: Restore gems from cache - <<: *drone_cache_image - settings: - <<: *drone_cache_settings - <<: *gem_cache_mount - restore: true - cache_key: '{{ checksum "./README.md" }}' # Override the README to force a rebuild - - - name: Unit tests - <<: *ruby_image - depends_on: - - Restore gems from cache - commands: - - bundle install - - bundle exec rspec - environment: - BUNDLE_PATH: vendor/bundle - - - name: Gem audit - <<: *ruby_image - depends_on: - - Restore gems from cache - commands: - - bundle install - - bundle exec bundle-audit - environment: - BUNDLE_PATH: vendor/bundle - - - name: Lint - <<: *ruby_image - depends_on: - - Restore gems from cache - commands: - - bundle install - - bundle exec rubocop - environment: - BUNDLE_PATH: vendor/bundle - - - name: SonarQube - <<: *sonar_image - depends_on: - - Unit tests - - - name: Build and deploy (dry-run) - image: 448934085854.dkr.ecr.eu-west-2.amazonaws.com/utilities-ci-tools/ci-qe-deploy-gem:latest - commands: - - git fetch origin main - - app - environment: - DRYRUN: true - VERBOSE: false - - - name: Rebuild gem cache - <<: *drone_cache_image - depends_on: - - Gem audit - settings: - <<: *drone_cache_settings - <<: *gem_cache_mount - rebuild: true - cache_key: '{{ checksum "./README.md" }}' - ---- -kind: pipeline -name: deploy -depends_on: - - audit, lint & test - -platform: - os: linux - arch: amd64 - -trigger: - event: - - push - branch: - - main - -steps: - - name: Build and deploy - image: 448934085854.dkr.ecr.eu-west-2.amazonaws.com/utilities-ci-tools/ci-qe-deploy-gem:latest - commands: - - git fetch origin main - - app - environment: - DRYRUN: false - VERBOSE: false - diff --git a/.github/workflows/gem-build.yml b/.github/workflows/gem-build.yml index 3c31947..a8e067f 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.0', '3.1', '3.2', '3.3', '3.4' ] + ruby-version: [ '3.1', '3.2', '3.4' ] steps: - uses: actions/checkout@v4 diff --git a/.gitignore b/.gitignore index 4bb270f..d926781 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /tmp/ /.idea/ .idea +.drone.yml */.idea # rspec failure tracking diff --git a/README.md b/README.md index 8edbdd5..099235b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ 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. + +Using Ruby dot notation with intuitive search terms and operations, it's easier to construct human-readable search definitions +without needing a deep understanding of the Query DSL syntax + + ## OpenSearch Query DSL https://opensearch.org/docs/latest/query-dsl/ diff --git a/lib/dvla/kaping/version.rb b/lib/dvla/kaping/version.rb index 575b2e2..8f65f88 100644 --- a/lib/dvla/kaping/version.rb +++ b/lib/dvla/kaping/version.rb @@ -2,6 +2,6 @@ module DVLA module Kaping - VERSION = '1.0.1' + VERSION = '1.0.2' end end