minidusen 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/gemfiles/Gemfile.3.2.mysql2.lock +3 -3
- data/gemfiles/Gemfile.4.2.mysql2.lock +3 -3
- data/gemfiles/Gemfile.4.2.pg.lock +4 -4
- data/gemfiles/Gemfile.5.0.mysql2.lock +3 -3
- data/gemfiles/Gemfile.5.0.pg.lock +3 -3
- data/lib/minidusen/parser.rb +1 -0
- data/lib/minidusen/version.rb +1 -1
- data/spec/minidusen/parser_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5d7d52395ab8c47d649db4a1bd64ff1d9856df7149e45c552c6f4654531602e3
|
4
|
+
data.tar.gz: 9522fcd64d36f200cd6b5531feb874326e067f7f29db31ed85db8d20dd6f6bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9401b8a933f12b85ed38079ddbbbcd9f321d10b9203ca122edce8756584eae1f23b8029f0bee451c753eddce785e81493d477631aa7d84335ce840ae797bab6
|
7
|
+
data.tar.gz: 146a2c766b2566905ab8cfb1a9ac2f3033b020469f76bae6327c3b42b09b3a9b785753b5d66e2e70842ff934abf938e881eeb90ea1b2f68b1523c7b7b0f596ee
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minidusen (0.8.
|
4
|
+
minidusen (0.8.3)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
activesupport (>= 3.2)
|
7
7
|
edge_rider (>= 0.2.5)
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
byebug (9.0.5)
|
26
26
|
database_cleaner (1.5.3)
|
27
27
|
diff-lcs (1.2.5)
|
28
|
-
edge_rider (0.3.
|
28
|
+
edge_rider (0.3.2)
|
29
29
|
activerecord
|
30
30
|
gemika (0.3.2)
|
31
31
|
i18n (0.6.11)
|
@@ -62,4 +62,4 @@ DEPENDENCIES
|
|
62
62
|
rspec (~> 3.4)
|
63
63
|
|
64
64
|
BUNDLED WITH
|
65
|
-
1.
|
65
|
+
1.16.2
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minidusen (0.8.
|
4
|
+
minidusen (0.8.3)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
activesupport (>= 3.2)
|
7
7
|
edge_rider (>= 0.2.5)
|
@@ -27,7 +27,7 @@ GEM
|
|
27
27
|
byebug (9.0.5)
|
28
28
|
database_cleaner (1.5.3)
|
29
29
|
diff-lcs (1.2.5)
|
30
|
-
edge_rider (0.3.
|
30
|
+
edge_rider (0.3.2)
|
31
31
|
activerecord
|
32
32
|
gemika (0.3.2)
|
33
33
|
i18n (0.7.0)
|
@@ -66,4 +66,4 @@ DEPENDENCIES
|
|
66
66
|
rspec (~> 3.4)
|
67
67
|
|
68
68
|
BUNDLED WITH
|
69
|
-
1.
|
69
|
+
1.16.2
|
@@ -1,9 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
|
5
|
-
activerecord
|
6
|
-
minidusen (0.8.1)
|
4
|
+
minidusen (0.8.3)
|
7
5
|
activerecord (>= 3.2)
|
8
6
|
activesupport (>= 3.2)
|
9
7
|
edge_rider (>= 0.2.5)
|
@@ -29,6 +27,8 @@ GEM
|
|
29
27
|
byebug (9.0.5)
|
30
28
|
database_cleaner (1.5.3)
|
31
29
|
diff-lcs (1.2.5)
|
30
|
+
edge_rider (0.3.2)
|
31
|
+
activerecord
|
32
32
|
gemika (0.3.2)
|
33
33
|
i18n (0.7.0)
|
34
34
|
json (1.8.3)
|
@@ -66,4 +66,4 @@ DEPENDENCIES
|
|
66
66
|
rspec (~> 3.4)
|
67
67
|
|
68
68
|
BUNDLED WITH
|
69
|
-
1.
|
69
|
+
1.16.2
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minidusen (0.8.
|
4
|
+
minidusen (0.8.3)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
activesupport (>= 3.2)
|
7
7
|
edge_rider (>= 0.2.5)
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
concurrent-ruby (1.0.2)
|
26
26
|
database_cleaner (1.5.3)
|
27
27
|
diff-lcs (1.2.5)
|
28
|
-
edge_rider (0.3.
|
28
|
+
edge_rider (0.3.2)
|
29
29
|
activerecord
|
30
30
|
gemika (0.3.2)
|
31
31
|
i18n (0.7.0)
|
@@ -63,4 +63,4 @@ DEPENDENCIES
|
|
63
63
|
rspec (~> 3.5)
|
64
64
|
|
65
65
|
BUNDLED WITH
|
66
|
-
1.
|
66
|
+
1.16.2
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minidusen (0.8.
|
4
|
+
minidusen (0.8.3)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
activesupport (>= 3.2)
|
7
7
|
edge_rider (>= 0.2.5)
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
concurrent-ruby (1.0.2)
|
26
26
|
database_cleaner (1.5.3)
|
27
27
|
diff-lcs (1.2.5)
|
28
|
-
edge_rider (0.3.
|
28
|
+
edge_rider (0.3.2)
|
29
29
|
activerecord
|
30
30
|
gemika (0.3.2)
|
31
31
|
i18n (0.7.0)
|
@@ -63,4 +63,4 @@ DEPENDENCIES
|
|
63
63
|
rspec (~> 3.5)
|
64
64
|
|
65
65
|
BUNDLED WITH
|
66
|
-
1.
|
66
|
+
1.16.2
|
data/lib/minidusen/parser.rb
CHANGED
@@ -25,6 +25,7 @@ module Minidusen
|
|
25
25
|
|
26
26
|
def parse_string(string)
|
27
27
|
string = string.dup # we are going to delete substrings in-place
|
28
|
+
string = string.encode('UTF-8', invalid: :replace, undef: :replace, replace: '')
|
28
29
|
query = Query.new
|
29
30
|
extract_field_query_tokens(string, query)
|
30
31
|
extract_text_query_tokens(string, query)
|
data/lib/minidusen/version.rb
CHANGED
@@ -63,6 +63,14 @@ describe Minidusen::Parser do
|
|
63
63
|
query[0].exclude.should == true
|
64
64
|
end
|
65
65
|
|
66
|
+
it 'should ignore invalid utf-8 byte sequences' do
|
67
|
+
term_with_invalid_byte_sequence = "word\255".force_encoding('UTF-8')
|
68
|
+
|
69
|
+
query = Minidusen::Parser.parse(term_with_invalid_byte_sequence)
|
70
|
+
query.size.should == 1
|
71
|
+
query[0].value.should == 'word'
|
72
|
+
end
|
73
|
+
|
66
74
|
end
|
67
75
|
|
68
76
|
describe 'when called with a Query' do
|
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.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.6
|
120
|
+
rubygems_version: 2.7.6
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Low-tech search for ActiveRecord with MySQL or PostgreSQL
|