polysearch 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbd94171f65db5d6d0e92c6ad1198716c8fe689c395f82b2f15d59adec6b8ce7
4
- data.tar.gz: 720f9f7ea37e863dff3d05631abc61ff2ff09d0b5b2af2f68b53444cb42eba3c
3
+ metadata.gz: 7d46cc2a6e4a3d8bb8100e611d57722c9576f7b4104770903f821fb8432ac921
4
+ data.tar.gz: 960aff262721eb4e0acc75773aa75169406bde6ce2fda77896dddd8ff96d5ce5
5
5
  SHA512:
6
- metadata.gz: 2dbc836cb1279c2ae3ee5c7d2fc9a1bedb1ea2bbad8f7b2974369d6c48ff646bf7038f409902047b69f782821ca7a6e135ef0670282d732b366dcccb2cf2a37f
7
- data.tar.gz: 8e2b04099b36fc14c9fc4f4247414b44d020c153a8510184114d5607b5fe48b89f165c1f2d098aed4c58dcb67c29e72279c6e0a0233f0b91c3fa5baaf327d67c
6
+ metadata.gz: 78cc5ea29490948ac03a67e226b5d5b6c12335b74a4ac68f329358903d92b64501ef57dba654aac737518c48a347ccf4aac4dfe86b7aa03e4b21e8d4b5c158e5
7
+ data.tar.gz: 2fe8f4139749f14b96b528a3b3aee6609f66f50325ad648c631832fb48715a1e5fe016c8733963c1a521758a7abc67e45f0e0cad6d18be25522ff620200e2994
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polysearch (0.2.0)
4
+ polysearch (0.2.1)
5
5
  rails (>= 6.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -73,10 +73,10 @@ Simplified polymorphic full text + similarity search based on postgres.
73
73
  # find similarity matches, best for misspelled search terms (slower)
74
74
  User.similarity_search("shwn")
75
75
 
76
- # perform a combined full text search and a similarity search
76
+ # perform both a full text search and similarity search
77
77
  User.combined_search("shwn")
78
78
 
79
- # perform a full text search and fall back to similarity (faster than combined_search)
79
+ # perform a full text search and fall back to similarity search (faster than combined_search)
80
80
  User.polysearch("shwn")
81
81
 
82
82
  # calculate counts (explicitly pass :id to omit search rankings)
File without changes
File without changes
data/lib/polysearch.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "polysearch/version"
4
- require_relative "../app/models/record"
5
- require_relative "../app/models/concerns/searchable"
4
+ require_relative "../app/models/polysearch/record"
5
+ require_relative "../app/models/polysearch/searchable"
6
6
 
7
7
  module Polysearch
8
8
  class Engine < Rails::Engine
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Polysearch
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polysearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-23 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -92,8 +92,8 @@ files:
92
92
  - LICENSE.txt
93
93
  - README.md
94
94
  - Rakefile
95
- - app/models/concerns/searchable.rb
96
- - app/models/record.rb
95
+ - app/models/polysearch/record.rb
96
+ - app/models/polysearch/searchable.rb
97
97
  - bin/console
98
98
  - bin/loc
99
99
  - bin/setup