fuzzily_reloaded 1.0.0 → 1.0.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: ccfb4a3ddebd786b36963599dc73afc65feac6968873c5895deccaa3c5dae044
4
- data.tar.gz: f11961215c5c6937c006ac69d03f0b69f362eec24c2e5dd571bae2728dc402ea
3
+ metadata.gz: 53e31d8ae9033e9af2b57782ba9209da67e7e40cf92a1d0e18261cecc5f1b278
4
+ data.tar.gz: ec5dad659d6959dfec74d9a2192883d65a7f2a4deab1803b54ca21a1ae0dd666
5
5
  SHA512:
6
- metadata.gz: 62d203f5c2d84624dbcdb98390eed6b042242b3017e34282289991ec26fd9602626ffc321f41e32260e73b78bdde9dc8bc53b6cbad03c9b6f566ea4fd1e47d51
7
- data.tar.gz: a7ea210ef1db362b1d5abfca1191576d493b2f76f528ba3727eef8fd76f5d543939e476d3d470224796de33aa4244153c768ee4fa19fdeb475b484ff240a771f
6
+ metadata.gz: f2258093c0cc3c7a7eaf1830590908fdf4c7f13464e0db2b4ae0a6d642bba3d25f4801241a3eceb18f1fb12cf1234d28780b7aad0ee5957d79990cf259d85d8c
7
+ data.tar.gz: 61dae4979d5a1e90e1c107d8e00a71fad3dee73f3a90e086da8c1bcbd2bdfac3c14e014d7edef04e5a4043e0abd25d58374fb63fc24033a697c8a061404d541c
data/Gemfile.lock CHANGED
@@ -1,28 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuzzily_reloaded (1.0.0)
4
+ fuzzily_reloaded (1.0.1)
5
5
  activerecord (>= 5.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.0.2.2)
11
- activesupport (= 6.0.2.2)
12
- activerecord (6.0.2.2)
13
- activemodel (= 6.0.2.2)
14
- activesupport (= 6.0.2.2)
15
- activesupport (6.0.2.2)
10
+ activemodel (7.0.3.1)
11
+ activesupport (= 7.0.3.1)
12
+ activerecord (7.0.3.1)
13
+ activemodel (= 7.0.3.1)
14
+ activesupport (= 7.0.3.1)
15
+ activesupport (7.0.3.1)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- zeitwerk (~> 2.2)
21
- concurrent-ruby (1.1.6)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ concurrent-ruby (1.1.10)
22
21
  diff-lcs (1.3)
23
- i18n (1.8.2)
22
+ i18n (1.12.0)
24
23
  concurrent-ruby (~> 1.0)
25
- minitest (5.14.0)
24
+ minitest (5.16.2)
26
25
  mysql2 (0.5.3)
27
26
  pg (1.2.3)
28
27
  rake (13.0.1)
@@ -40,10 +39,8 @@ GEM
40
39
  rspec-support (~> 3.9.0)
41
40
  rspec-support (3.9.2)
42
41
  sqlite3 (1.4.2)
43
- thread_safe (0.3.6)
44
- tzinfo (1.2.6)
45
- thread_safe (~> 0.1)
46
- zeitwerk (2.3.0)
42
+ tzinfo (2.0.5)
43
+ concurrent-ruby (~> 1.0)
47
44
 
48
45
  PLATFORMS
49
46
  ruby
@@ -58,4 +55,4 @@ DEPENDENCIES
58
55
  sqlite3
59
56
 
60
57
  BUNDLED WITH
61
- 2.1.2
58
+ 2.2.17
data/README.md CHANGED
@@ -20,7 +20,7 @@ with the same intent.
20
20
 
21
21
  ## Fork differences
22
22
 
23
- - Added support for Rails 5.1 and 6.0
23
+ - Added support for Rails 5.1, 6, and 7
24
24
  - Removed support for Rails <5.1
25
25
 
26
26
  ### Breaking changes
@@ -5,10 +5,7 @@ module Fuzzily
5
5
  module Searchable
6
6
 
7
7
  def self.included(by)
8
- case ActiveRecord::VERSION::MAJOR
9
- when 5 then by.extend Rails5ClassMethods
10
- when 6 then by.extend Rails6ClassMethods
11
- end
8
+ by.extend ClassMethods
12
9
  end
13
10
 
14
11
  private
@@ -149,12 +146,6 @@ module Fuzzily
149
146
  class_variable_set(:"@@fuzzily_searchable_#{field}", true)
150
147
  self
151
148
  end
152
- end
153
-
154
- module Rails5ClassMethods
155
- include ClassMethods
156
-
157
- private
158
149
 
159
150
  def _add_trigram_association(_o)
160
151
  has_many _o.trigram_association,
@@ -169,9 +160,5 @@ module Fuzzily
169
160
  self.includes(_o.trigram_association)
170
161
  end
171
162
  end
172
-
173
- module Rails6ClassMethods
174
- include Rails5ClassMethods
175
- end
176
163
  end
177
164
  end
@@ -1,3 +1,3 @@
1
1
  module Fuzzily
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuzzily_reloaded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-03 00:00:00.000000000 Z
12
+ date: 2022-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  requirements: []
163
- rubygems_version: 3.1.2
163
+ rubygems_version: 3.1.4
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: A fast, trigram-based, database-backed fuzzy string search/match engine for