From 6947e375cc89308bbbfcd58a81138657d1cb637a Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Thu, 15 Feb 2024 13:36:19 -0500 Subject: [PATCH 1/3] Replace Travis-CI references by GHA. --- README.md | 2 +- RELEASING.md | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aeef35b..3d25370 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Mongoid Search is a simple full text search implementation for Mongoid ORM. It supports Mongoid 3, 4, 5 and 6 and performs well for small data sets. If your searchable model is big (i.e. 1.000.000+ records), [mongoid_fulltext](https://github.com/mongoid/mongoid_fulltext), ElasticSearch, Solr or Sphinx may suit you better. -[![Build Status](https://travis-ci.org/mongoid/mongoid_search.svg?branch=master)](https://travis-ci.org/mongoid/mongoid_search) +[![Test](https://github.com/mongoid/mongoid_search/actions/workflows/test.yml/badge.svg)](https://github.com/mongoid/mongoid_search/actions/workflows/test.yml) ## Installation diff --git a/RELEASING.md b/RELEASING.md index 1f460de..84c21c7 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -12,12 +12,7 @@ bundle install bundle exec rake ``` -Check that the last build succeeded in [Travis CI](https://travis-ci.org/mongoid/mongoid-search) for all supported platforms. - -Increment the version, modify [lib/mongoid/search/version.rb](lib/mongoid/search/version.rb). - -* Increment the third number if the release has bug fixes and/or very minor features, only (eg. change `0.5.1` to `0.5.2`). -* Increment the second number if the release contains major features or breaking API changes (eg. change `0.5.1` to `0.4.0`). +Check that the last build succeeded in [GitHub Actions](https://github.com/mongoid/mongoid_search/actions) for all supported platforms. Change "Next Release" in [CHANGELOG.md](CHANGELOG.md) to the new version. @@ -65,3 +60,5 @@ git add CHANGELOG.md lib/mongoid/search/version.rb git commit -m "Preparing for next release, 0.4.1." git push origin master ``` + +Major version numbers are incremented with the first new feature. From 0dc12304eadfe78727c074ec5c735adec63cdff6 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Thu, 15 Feb 2024 13:39:50 -0500 Subject: [PATCH 2/3] Bundle install to see which version of mongoid is being used. --- .github/workflows/test.yml | 3 +++ README.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b0c072..472d6d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,9 @@ jobs: ruby-version: ${{ matrix.entry.ruby }} bundler-cache: true + - name: Bundle install + run: bundle install + - name: Run tests run: bundle exec rspec diff --git a/README.md b/README.md index 3d25370..a356136 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Mongoid Search -Mongoid Search is a simple full text search implementation for Mongoid ORM. It supports Mongoid 3, 4, 5 and 6 and performs well for small data sets. If your searchable model is big (i.e. 1.000.000+ records), [mongoid_fulltext](https://github.com/mongoid/mongoid_fulltext), ElasticSearch, Solr or Sphinx may suit you better. +Mongoid Search is a simple full text search implementation for Mongoid ORM. It supports Mongoid 3, 4, 5, 6, 7 and 8 and performs well for small data sets. If your searchable model is big (i.e. 1.000.000+ records), [mongoid_fulltext](https://github.com/mongoid/mongoid_fulltext), ElasticSearch, Solr or Sphinx may suit you better. [![Test](https://github.com/mongoid/mongoid_search/actions/workflows/test.yml/badge.svg)](https://github.com/mongoid/mongoid_search/actions/workflows/test.yml) From cd80117339695959e51c2dbe4e89936501d72a72 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Thu, 15 Feb 2024 13:43:22 -0500 Subject: [PATCH 3/3] Correct references to mongoid_search.gemspec for version. --- CHANGELOG.md | 4 ++-- RELEASING.md | 6 +++--- mongoid_search.gemspec | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d23b10..ac76d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ ## 0.5.0 (next) -* Your contribution here. * [#146](https://github.com/mongoid/mongoid_search/pull/146): Update dependencies and switch to Github Actions - [@yads](https://github.com/yads). +* Your contribution here. ## 0.4.0 -* [#138](https://github.com/mongoid/mongoid_search/pull/138): Update mongoid::search::util.normalize_keywords - [@yads](https://github.com/yads). +* [#138](https://github.com/mongoid/mongoid_search/pull/138): Update `Mongoid::Search::Util.normalize_keywords` - [@yads](https://github.com/yads). * [#132](https://github.com/mongoid/mongoid_search/pull/132): Add RELEASING and CONTRIBUTING - [@rtrv](https://github.com/rtrv). ## 0.3.6 diff --git a/RELEASING.md b/RELEASING.md index 84c21c7..87bd333 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -25,7 +25,7 @@ Remove the line with "Your contribution here.", since there will be no more cont Commit your changes. ``` -git add CHANGELOG.md lib/mongoid/search/version.rb +git add CHANGELOG.md git commit -m "Preparing for release, 0.4.0." git push origin master ``` @@ -51,12 +51,12 @@ Add the next release to [CHANGELOG.md](CHANGELOG.md). * Your contribution here. ``` -Increment the minor version, modify [lib/mongoid/search/version.rb](lib/mongoid/search/version.rb). +Increment the minor version, modify [mongoid_search.gemspec](mongoid_search.gemspec). Commit your changes. ``` -git add CHANGELOG.md lib/mongoid/search/version.rb +git add CHANGELOG.md mongoid_search.gemspec git commit -m "Preparing for next release, 0.4.1." git push origin master ``` diff --git a/mongoid_search.gemspec b/mongoid_search.gemspec index 7f5e965..5c9fc9e 100644 --- a/mongoid_search.gemspec +++ b/mongoid_search.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib) Gem::Specification.new do |s| s.name = 'mongoid_search' - s.version = '0.4.0' + s.version = '0.5.0' s.authors = ['Mauricio Zaffari'] s.email = ['mauricio@papodenerd.net'] s.homepage = 'https://github.com/mongoid/mongoid_search'