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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 22721ff1a24bd3c0c1bcf0df5e3917f0c9b0ca35
4
- data.tar.gz: 3781308c4bd9c6614e14750f0c676ac06a749cb8
2
+ SHA256:
3
+ metadata.gz: 5d7d52395ab8c47d649db4a1bd64ff1d9856df7149e45c552c6f4654531602e3
4
+ data.tar.gz: 9522fcd64d36f200cd6b5531feb874326e067f7f29db31ed85db8d20dd6f6bc5
5
5
  SHA512:
6
- metadata.gz: ae988bf28bbe784d4665ff22fcd70d5d7965786355a36f900b38aab3ea61500d8ee9f856e1d4c383ca7fdbeb07632bfc2c49f00df0d1c25fdead7bc466718224
7
- data.tar.gz: 6512014a63c286dcba862579e7a931e31d2bd261dcf1b5f960acec9ccc677294f3b4c140f0fb0ca6a38f3ee0cf17e311848a975f4cc5a59a67d2a52829eb296c
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.0)
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.1)
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.12.5
65
+ 1.16.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minidusen (0.8.0)
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.1)
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.12.5
69
+ 1.16.2
@@ -1,9 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- edge_rider (0.3.1)
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.12.5
69
+ 1.16.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minidusen (0.8.0)
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.1)
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.12.5
66
+ 1.16.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minidusen (0.8.0)
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.1)
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.12.5
66
+ 1.16.2
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Minidusen
2
- VERSION = '0.8.2'
2
+ VERSION = '0.8.3'
3
3
  end
@@ -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.2
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-02-01 00:00:00.000000000 Z
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.13
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