minidusen 0.10 → 0.11.0

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: ae10acf35f7691ee887031d0dcccc455925315768b876a7eea142b4c84bc423b
4
- data.tar.gz: '061389e69fadb5cc996ca2e35ccf891c9bc31a8abb70296e05f11d9a4cb0a428'
3
+ metadata.gz: 7c888e2567eb8487761a7966fe365baf26f60103cb5379af56c23db46237640e
4
+ data.tar.gz: ab2c7590f65aba3be23549da8b47838d6ed02246a9d09be71949af4cf4fc727a
5
5
  SHA512:
6
- metadata.gz: 5e9f51c132887a664558f78deac9c029395bc7f4078bbba3c3f714fef4ce073963febeab68335235b18a0b97ea0ed39af33b539c9cbaf6dc2ebe2a57adea2b66
7
- data.tar.gz: d9451548713b09f93cf80e97b9cfaa47b519b3763cf1c0442e48a289cef85a81b43f5a7808083abe96577b87f6b4f6740a5b8729b658d812856c43f5e27bd8ea
6
+ metadata.gz: 46d8ae84cad4f3d50845a681fd39ea23e547028cabfe6d2f0d61fafadb3186f303780deca527a5c09eab223cc945cec06fd71bd1ff491ebde5fdddcc817e4faa
7
+ data.tar.gz: f6e80a041d612e8145ec2e5c5ecd489171a73152b7b04bc6074f85000d489b6e625ed632d580ae36ff5dbfe0c00dcfa67ea12c51c5983fae2607d633dfe2a21d
@@ -31,8 +31,10 @@ jobs:
31
31
  gemfile: Gemfile.6.0.mysql2
32
32
  - ruby: 2.5.8
33
33
  gemfile: Gemfile.6.1.mysql2
34
- - ruby: 3.0.0
34
+ - ruby: 3.2.0
35
35
  gemfile: Gemfile.6.1.mysql2
36
+ - ruby: 3.2.0
37
+ gemfile: Gemfile.7.0.mysql2
36
38
  env:
37
39
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
38
40
  steps:
@@ -43,7 +45,6 @@ jobs:
43
45
  ruby-version: "${{ matrix.ruby }}"
44
46
  - name: Setup database
45
47
  run: |
46
- sudo apt-get install -y mysql-client libmariadbclient-dev
47
48
  mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
48
49
  - name: Bundle
49
50
  run: |
@@ -74,8 +75,10 @@ jobs:
74
75
  gemfile: Gemfile.6.0.pg
75
76
  - ruby: 2.5.8
76
77
  gemfile: Gemfile.6.1.pg
77
- - ruby: 3.0.0
78
+ - ruby: 3.2.0
78
79
  gemfile: Gemfile.6.1.pg
80
+ - ruby: 3.2.0
81
+ gemfile: Gemfile.7.0.pg
79
82
  env:
80
83
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
81
84
  steps:
@@ -86,6 +89,7 @@ jobs:
86
89
  ruby-version: "${{ matrix.ruby }}"
87
90
  - name: Setup database
88
91
  run: |
92
+ sudo apt-get update
89
93
  sudo apt-get install -y postgresql-client
90
94
  PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
91
95
  - name: Bundle
data/CHANGELOG.md CHANGED
@@ -8,16 +8,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
8
8
 
9
9
  ### Breaking changes
10
10
 
11
- -
12
-
13
11
  ### Compatible changes
14
12
 
15
-
16
- ## 0.10.0 2021-08-11
13
+ ## 0.11.0 2024-03-18
17
14
 
18
15
  ### Breaking changes
19
16
 
20
- -
17
+ - only parse strings with single colons as fields
18
+
19
+ ## 0.10.1 2022-03-16
20
+
21
+ ### Compatible changes
22
+
23
+ - Add Rails 7.0 and Ruby 3.0 to test matrix
24
+
25
+ ## 0.10.0 2021-08-11
21
26
 
22
27
  ### Compatible changes
23
28
 
@@ -26,10 +31,6 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
26
31
 
27
32
  ## 0.9.0 2019-06-12
28
33
 
29
- ### Breaking changes
30
-
31
- -
32
-
33
34
  ### Compatible changes
34
35
 
35
36
  - CHANGELOG to satisfy [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) format.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -27,9 +27,9 @@ GEM
27
27
  byebug (9.0.5)
28
28
  database_cleaner (1.5.3)
29
29
  diff-lcs (1.2.5)
30
- edge_rider (1.1.0)
30
+ edge_rider (2.1.1)
31
31
  activerecord (>= 3.2)
32
- gemika (0.5.0)
32
+ gemika (0.8.1)
33
33
  i18n (0.7.0)
34
34
  json (1.8.6)
35
35
  minitest (5.9.0)
@@ -48,7 +48,7 @@ GEM
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
49
  rspec-support (~> 3.5.0)
50
50
  rspec-support (3.5.0)
51
- thread_safe (0.3.5)
51
+ thread_safe (0.3.6)
52
52
  tzinfo (1.2.2)
53
53
  thread_safe (~> 0.1)
54
54
 
data/Gemfile.4.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -27,9 +27,9 @@ GEM
27
27
  byebug (9.0.5)
28
28
  database_cleaner (1.5.3)
29
29
  diff-lcs (1.2.5)
30
- edge_rider (1.1.0)
30
+ edge_rider (2.1.1)
31
31
  activerecord (>= 3.2)
32
- gemika (0.5.0)
32
+ gemika (0.8.1)
33
33
  i18n (0.7.0)
34
34
  json (1.8.6)
35
35
  minitest (5.9.0)
@@ -48,7 +48,7 @@ GEM
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
49
  rspec-support (~> 3.5.0)
50
50
  rspec-support (3.5.0)
51
- thread_safe (0.3.5)
51
+ thread_safe (0.3.6)
52
52
  tzinfo (1.2.2)
53
53
  thread_safe (~> 0.1)
54
54
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -25,9 +25,9 @@ GEM
25
25
  concurrent-ruby (1.1.5)
26
26
  database_cleaner (1.7.0)
27
27
  diff-lcs (1.2.5)
28
- edge_rider (1.1.0)
28
+ edge_rider (2.1.1)
29
29
  activerecord (>= 3.2)
30
- gemika (0.5.0)
30
+ gemika (0.8.1)
31
31
  i18n (1.5.1)
32
32
  concurrent-ruby (~> 1.0)
33
33
  minitest (5.11.3)
data/Gemfile.5.2.pg CHANGED
@@ -5,7 +5,7 @@ gem 'activerecord', '~>5.2.3'
5
5
  gem 'pg', '~>0.18.4'
6
6
  gem 'i18n', '<=1.5.1' # Required to support tests for Ruby 2.2.x
7
7
 
8
- # Development dependendcies
8
+ # Development dependencies
9
9
  gem 'rake'
10
10
  gem 'database_cleaner'
11
11
  gem 'rspec', '~>3.5'
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -25,14 +25,14 @@ GEM
25
25
  concurrent-ruby (1.1.5)
26
26
  database_cleaner (1.7.0)
27
27
  diff-lcs (1.2.5)
28
- edge_rider (1.1.0)
28
+ edge_rider (2.1.1)
29
29
  activerecord (>= 3.2)
30
- gemika (0.5.0)
30
+ gemika (0.8.1)
31
31
  i18n (1.5.1)
32
32
  concurrent-ruby (~> 1.0)
33
33
  minitest (5.11.3)
34
34
  pg (0.18.4)
35
- rake (11.3.0)
35
+ rake (13.0.6)
36
36
  rspec (3.5.0)
37
37
  rspec-core (~> 3.5.0)
38
38
  rspec-expectations (~> 3.5.0)
@@ -65,4 +65,4 @@ DEPENDENCIES
65
65
  rspec (~> 3.5)
66
66
 
67
67
  BUNDLED WITH
68
- 2.2.3
68
+ 2.2.28
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -24,9 +24,9 @@ GEM
24
24
  concurrent-ruby (1.1.7)
25
25
  database_cleaner (1.7.0)
26
26
  diff-lcs (1.3)
27
- edge_rider (1.1.0)
27
+ edge_rider (2.1.1)
28
28
  activerecord (>= 3.2)
29
- gemika (0.5.0)
29
+ gemika (0.8.1)
30
30
  i18n (1.8.5)
31
31
  concurrent-ruby (~> 1.0)
32
32
  minitest (5.14.2)
data/Gemfile.6.0.pg CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gem 'activerecord', '~>6.0.0'
5
5
  gem 'pg', '~>0.18.4'
6
6
 
7
- # Development dependendcies
7
+ # Development dependencies
8
8
  gem 'rake'
9
9
  gem 'database_cleaner'
10
10
  gem 'rspec', '~>3.5'
data/Gemfile.6.0.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -24,9 +24,9 @@ GEM
24
24
  concurrent-ruby (1.1.7)
25
25
  database_cleaner (1.7.0)
26
26
  diff-lcs (1.3)
27
- edge_rider (1.1.0)
27
+ edge_rider (2.1.1)
28
28
  activerecord (>= 3.2)
29
- gemika (0.5.0)
29
+ gemika (0.8.1)
30
30
  i18n (1.8.5)
31
31
  concurrent-ruby (~> 1.0)
32
32
  minitest (5.14.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -9,12 +9,12 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (6.1.3)
13
- activesupport (= 6.1.3)
14
- activerecord (6.1.3)
15
- activemodel (= 6.1.3)
16
- activesupport (= 6.1.3)
17
- activesupport (6.1.3)
12
+ activemodel (6.1.7.2)
13
+ activesupport (= 6.1.7.2)
14
+ activerecord (6.1.7.2)
15
+ activemodel (= 6.1.7.2)
16
+ activesupport (= 6.1.7.2)
17
+ activesupport (6.1.7.2)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 1.6, < 2)
20
20
  minitest (>= 5.1)
@@ -29,14 +29,14 @@ GEM
29
29
  database_cleaner-core (~> 2.0.0)
30
30
  database_cleaner-core (2.0.1)
31
31
  diff-lcs (1.4.4)
32
- edge_rider (1.1.0)
32
+ edge_rider (2.1.1)
33
33
  activerecord (>= 3.2)
34
- gemika (0.5.0)
34
+ gemika (0.8.1)
35
35
  i18n (1.8.9)
36
36
  concurrent-ruby (~> 1.0)
37
37
  minitest (5.14.4)
38
- mysql2 (0.5.3)
39
- rake (13.0.3)
38
+ mysql2 (0.5.5)
39
+ rake (13.0.6)
40
40
  rspec (3.10.0)
41
41
  rspec-core (~> 3.10.0)
42
42
  rspec-expectations (~> 3.10.0)
data/Gemfile.6.1.pg CHANGED
@@ -2,9 +2,9 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
4
  gem 'activerecord', '~>6.1.0'
5
- gem 'pg', '~>1.1'
5
+ gem 'pg', '~> 1.4.0'
6
6
 
7
- # Development dependendcies
7
+ # Development dependencies
8
8
  gem 'rake'
9
9
  gem 'database_cleaner'
10
10
  gem 'rspec', '~>3.5'
data/Gemfile.6.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minidusen (0.10)
4
+ minidusen (0.11.0)
5
5
  activerecord (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  edge_rider (>= 0.2.5)
@@ -9,12 +9,12 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (6.1.3)
13
- activesupport (= 6.1.3)
14
- activerecord (6.1.3)
15
- activemodel (= 6.1.3)
16
- activesupport (= 6.1.3)
17
- activesupport (6.1.3)
12
+ activemodel (6.1.7.2)
13
+ activesupport (= 6.1.7.2)
14
+ activerecord (6.1.7.2)
15
+ activemodel (= 6.1.7.2)
16
+ activesupport (= 6.1.7.2)
17
+ activesupport (6.1.7.2)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 1.6, < 2)
20
20
  minitest (>= 5.1)
@@ -29,14 +29,14 @@ GEM
29
29
  database_cleaner-core (~> 2.0.0)
30
30
  database_cleaner-core (2.0.1)
31
31
  diff-lcs (1.4.4)
32
- edge_rider (1.1.0)
32
+ edge_rider (2.1.1)
33
33
  activerecord (>= 3.2)
34
- gemika (0.5.0)
34
+ gemika (0.8.1)
35
35
  i18n (1.8.9)
36
36
  concurrent-ruby (~> 1.0)
37
37
  minitest (5.14.4)
38
- pg (1.2.3)
39
- rake (13.0.3)
38
+ pg (1.4.5)
39
+ rake (13.0.6)
40
40
  rspec (3.10.0)
41
41
  rspec-core (~> 3.10.0)
42
42
  rspec-expectations (~> 3.10.0)
@@ -63,7 +63,7 @@ DEPENDENCIES
63
63
  database_cleaner
64
64
  gemika
65
65
  minidusen!
66
- pg (~> 1.1)
66
+ pg (~> 1.4.0)
67
67
  rake
68
68
  rspec (~> 3.5)
69
69
 
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>7.0.4.2'
5
+ gem 'mysql2', '~>0.5'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.5'
11
+ gem 'byebug'
12
+ gem 'gemika'
13
+
14
+ # Gem under test
15
+ gem 'minidusen', :path => '.'
@@ -0,0 +1,69 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ minidusen (0.11.0)
5
+ activerecord (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ edge_rider (>= 0.2.5)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activemodel (7.0.4.2)
13
+ activesupport (= 7.0.4.2)
14
+ activerecord (7.0.4.2)
15
+ activemodel (= 7.0.4.2)
16
+ activesupport (= 7.0.4.2)
17
+ activesupport (7.0.4.2)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ byebug (11.1.3)
23
+ concurrent-ruby (1.1.9)
24
+ database_cleaner (2.0.1)
25
+ database_cleaner-active_record (~> 2.0.0)
26
+ database_cleaner-active_record (2.0.1)
27
+ activerecord (>= 5.a)
28
+ database_cleaner-core (~> 2.0.0)
29
+ database_cleaner-core (2.0.1)
30
+ diff-lcs (1.5.0)
31
+ edge_rider (2.1.1)
32
+ activerecord (>= 3.2)
33
+ gemika (0.8.1)
34
+ i18n (1.8.11)
35
+ concurrent-ruby (~> 1.0)
36
+ minitest (5.15.0)
37
+ mysql2 (0.5.5)
38
+ rake (13.0.6)
39
+ rspec (3.10.0)
40
+ rspec-core (~> 3.10.0)
41
+ rspec-expectations (~> 3.10.0)
42
+ rspec-mocks (~> 3.10.0)
43
+ rspec-core (3.10.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-expectations (3.10.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-mocks (3.10.2)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-support (3.10.3)
52
+ tzinfo (2.0.4)
53
+ concurrent-ruby (~> 1.0)
54
+
55
+ PLATFORMS
56
+ x86_64-linux
57
+
58
+ DEPENDENCIES
59
+ activerecord (~> 7.0.4.2)
60
+ byebug
61
+ database_cleaner
62
+ gemika
63
+ minidusen!
64
+ mysql2 (~> 0.5)
65
+ rake
66
+ rspec (~> 3.5)
67
+
68
+ BUNDLED WITH
69
+ 2.2.3
data/Gemfile.7.0.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>7.0.4.2'
5
+ gem 'pg', '~> 1.4.0'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.5'
11
+ gem 'byebug'
12
+ gem 'gemika'
13
+
14
+ # Gem under test
15
+ gem 'minidusen', :path => '.'
@@ -0,0 +1,69 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ minidusen (0.11.0)
5
+ activerecord (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ edge_rider (>= 0.2.5)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activemodel (7.0.4.2)
13
+ activesupport (= 7.0.4.2)
14
+ activerecord (7.0.4.2)
15
+ activemodel (= 7.0.4.2)
16
+ activesupport (= 7.0.4.2)
17
+ activesupport (7.0.4.2)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ byebug (11.1.3)
23
+ concurrent-ruby (1.1.9)
24
+ database_cleaner (2.0.1)
25
+ database_cleaner-active_record (~> 2.0.0)
26
+ database_cleaner-active_record (2.0.1)
27
+ activerecord (>= 5.a)
28
+ database_cleaner-core (~> 2.0.0)
29
+ database_cleaner-core (2.0.1)
30
+ diff-lcs (1.5.0)
31
+ edge_rider (2.1.1)
32
+ activerecord (>= 3.2)
33
+ gemika (0.8.1)
34
+ i18n (1.8.11)
35
+ concurrent-ruby (~> 1.0)
36
+ minitest (5.15.0)
37
+ pg (1.4.5)
38
+ rake (13.0.6)
39
+ rspec (3.10.0)
40
+ rspec-core (~> 3.10.0)
41
+ rspec-expectations (~> 3.10.0)
42
+ rspec-mocks (~> 3.10.0)
43
+ rspec-core (3.10.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-expectations (3.10.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-mocks (3.10.2)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-support (3.10.3)
52
+ tzinfo (2.0.4)
53
+ concurrent-ruby (~> 1.0)
54
+
55
+ PLATFORMS
56
+ x86_64-linux
57
+
58
+ DEPENDENCIES
59
+ activerecord (~> 7.0.4.2)
60
+ byebug
61
+ database_cleaner
62
+ gemika
63
+ minidusen!
64
+ pg (~> 1.4.0)
65
+ rake
66
+ rspec (~> 3.5)
67
+
68
+ BUNDLED WITH
69
+ 2.2.3
@@ -3,8 +3,8 @@ module Minidusen
3
3
 
4
4
  class CannotParse < StandardError; end
5
5
 
6
- TEXT_QUERY = /(?:(\-)?"([^"]+)"|(\-)?([\S]+))/
7
- FIELD_QUERY = /(?:\s|^|(\-))(\w+)\:#{TEXT_QUERY}/
6
+ TEXT_QUERY = /(?:(-)?"([^"]+)"|(-)?(\S+))/
7
+ FIELD_QUERY = /(?:\s|^|(-))(\w+):(?!:)#{TEXT_QUERY}/
8
8
 
9
9
  class << self
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Minidusen
2
- VERSION = '0.10'
2
+ VERSION = '0.11.0'
3
3
  end
data/minidusen.gemspec CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.summary = 'Low-tech search for ActiveRecord with MySQL or PostgreSQL'
11
11
  s.description = s.summary
12
12
  s.license = 'MIT'
13
+ s.metadata = { 'rubygems_mfa_required' => 'true' }
13
14
 
14
15
  s.files = `git ls-files`.split("\n").reject { |path| File.lstat(path).symlink? }
15
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject { |path| File.lstat(path).symlink? }
@@ -63,6 +63,15 @@ describe Minidusen::Parser do
63
63
  query[0].exclude.should == true
64
64
  end
65
65
 
66
+ it 'only parses single colons as fields' do
67
+ query = Minidusen::Parser.parse('filetype:docx Namespaced::Klass')
68
+ expect(query.size).to eq(2)
69
+ expect(query[0].field).to eq('filetype')
70
+ expect(query[0].value).to eq('docx')
71
+ expect(query[1].field).to eq('text')
72
+ expect(query[1].value).to eq('Namespaced::Klass')
73
+ end
74
+
66
75
  it 'should ignore invalid utf-8 byte sequences' do
67
76
  term_with_invalid_byte_sequence = "word\255".force_encoding('UTF-8')
68
77
 
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,11 @@ require 'minidusen'
4
4
  require 'byebug'
5
5
  require 'gemika'
6
6
 
7
- ActiveRecord::Base.default_timezone = :local
7
+ if ActiveRecord::VERSION::MAJOR >= 7
8
+ ActiveRecord.default_timezone = :local
9
+ else
10
+ ActiveRecord::Base.default_timezone = :local
11
+ end
8
12
 
9
13
  Dir["#{File.dirname(__FILE__)}/support/*.rb"].sort.each {|f| require f}
10
14
  Dir["#{File.dirname(__FILE__)}/shared_examples/*.rb"].sort.each {|f| require f}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minidusen
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2024-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -79,6 +79,10 @@ files:
79
79
  - Gemfile.6.1.mysql2.lock
80
80
  - Gemfile.6.1.pg
81
81
  - Gemfile.6.1.pg.lock
82
+ - Gemfile.7.0.mysql2
83
+ - Gemfile.7.0.mysql2.lock
84
+ - Gemfile.7.0.pg
85
+ - Gemfile.7.0.pg.lock
82
86
  - LICENSE
83
87
  - README.md
84
88
  - Rakefile
@@ -106,7 +110,8 @@ files:
106
110
  homepage: https://github.com/makandra/minidusen
107
111
  licenses:
108
112
  - MIT
109
- metadata: {}
113
+ metadata:
114
+ rubygems_mfa_required: 'true'
110
115
  post_install_message:
111
116
  rdoc_options: []
112
117
  require_paths:
@@ -122,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
127
  - !ruby/object:Gem::Version
123
128
  version: '0'
124
129
  requirements: []
125
- rubygems_version: 3.2.3
130
+ rubygems_version: 3.2.21
126
131
  signing_key:
127
132
  specification_version: 4
128
133
  summary: Low-tech search for ActiveRecord with MySQL or PostgreSQL