minidusen 0.8.3 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +0 -1
- data/.travis.yml +35 -7
- data/CHANGELOG.md +20 -2
- data/{gemfiles/Gemfile.3.2.mysql2 → Gemfile.3.2.mysql2} +1 -1
- data/{gemfiles/Gemfile.3.2.mysql2.lock → Gemfile.3.2.mysql2.lock} +4 -4
- data/{gemfiles/Gemfile.4.2.mysql2 → Gemfile.4.2.mysql2} +1 -1
- data/{gemfiles/Gemfile.4.2.mysql2.lock → Gemfile.4.2.mysql2.lock} +4 -4
- data/{gemfiles/Gemfile.4.2.pg → Gemfile.4.2.pg} +1 -1
- data/{gemfiles/Gemfile.4.2.pg.lock → Gemfile.4.2.pg.lock} +4 -4
- data/Gemfile.5.2.mysql2 +16 -0
- data/{gemfiles/Gemfile.5.0.mysql2.lock → Gemfile.5.2.mysql2.lock} +22 -20
- data/Gemfile.5.2.pg +16 -0
- data/{gemfiles/Gemfile.5.0.pg.lock → Gemfile.5.2.pg.lock} +22 -20
- data/{gemfiles/Gemfile.5.0.mysql2 → Gemfile.6.0.mysql2} +2 -2
- data/Gemfile.6.0.mysql2.lock +67 -0
- data/{gemfiles/Gemfile.5.0.pg → Gemfile.6.0.pg} +2 -2
- data/Gemfile.6.0.pg.lock +67 -0
- data/README.md +4 -3
- data/lib/minidusen/version.rb +1 -1
- data/spec/minidusen/filter_spec.rb +3 -1
- metadata +17 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df0d16794c6dcdd8839d57a82992b650b0c2a78480ca33d90f597d5612a516e2
|
4
|
+
data.tar.gz: a8c51d1351e1f1debe8696de98154dabd0bdfd5374fc6a6f7d376c66c3a84c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15bcb4c874b0c9901a4cfe6411b94ed4fc11c266b357fca24bc754556dad2090b3eb8bc3e91b67b4c95eb932945747a2b2636f476a2b5d59865355ad40a17854
|
7
|
+
data.tar.gz: 39d4ebed636e377090d6edef268f5caa8b5e17d8f6847be5ee03f60df3ba1b69fcdc689cea08700576529a16cfcd70e8e8bceeb6b987a2cb24e34e7cf4a626ba
|
data/.ruby-version
CHANGED
data/.travis.yml
CHANGED
@@ -4,13 +4,16 @@ rvm:
|
|
4
4
|
- 2.1.8
|
5
5
|
- 2.2.4
|
6
6
|
- 2.3.1
|
7
|
+
- 2.5.3
|
7
8
|
|
8
9
|
gemfile:
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
10
|
+
- Gemfile.3.2.mysql2
|
11
|
+
- Gemfile.4.2.mysql2
|
12
|
+
- Gemfile.4.2.pg
|
13
|
+
- Gemfile.5.2.mysql2
|
14
|
+
- Gemfile.5.2.pg
|
15
|
+
- Gemfile.6.0.mysql2
|
16
|
+
- Gemfile.6.0.pg
|
14
17
|
|
15
18
|
before_script:
|
16
19
|
- psql -c 'create database minidusen_test;' -U postgres
|
@@ -31,9 +34,34 @@ install:
|
|
31
34
|
# explode when lockfile doesn't match recently bumped version
|
32
35
|
- bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
33
36
|
|
37
|
+
addons:
|
38
|
+
postgresql: 9.3
|
39
|
+
|
34
40
|
matrix:
|
35
41
|
exclude:
|
42
|
+
# Rails 3.2
|
43
|
+
- rvm: 2.5.3
|
44
|
+
gemfile: Gemfile.3.2.mysql2
|
45
|
+
# Rails 4.2
|
46
|
+
- rvm: 2.5.3
|
47
|
+
gemfile: Gemfile.4.2.mysql2
|
48
|
+
- rvm: 2.5.3
|
49
|
+
gemfile: Gemfile.4.2.pg
|
50
|
+
# Rails 5.2
|
51
|
+
- rvm: 2.1.8
|
52
|
+
gemfile: Gemfile.5.2.mysql2
|
53
|
+
- rvm: 2.1.8
|
54
|
+
gemfile: Gemfile.5.2.pg
|
55
|
+
# Rails 6.0
|
36
56
|
- rvm: 2.1.8
|
37
|
-
gemfile:
|
57
|
+
gemfile: Gemfile.6.0.mysql2
|
38
58
|
- rvm: 2.1.8
|
39
|
-
gemfile:
|
59
|
+
gemfile: Gemfile.6.0.pg
|
60
|
+
- rvm: 2.2.4
|
61
|
+
gemfile: Gemfile.6.0.mysql2
|
62
|
+
- rvm: 2.2.4
|
63
|
+
gemfile: Gemfile.6.0.pg
|
64
|
+
- rvm: 2.3.1
|
65
|
+
gemfile: Gemfile.6.0.mysql2
|
66
|
+
- rvm: 2.3.1
|
67
|
+
gemfile: Gemfile.6.0.pg
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
2
3
|
|
3
|
-
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
4
5
|
|
6
|
+
|
7
|
+
## Unreleased
|
8
|
+
|
9
|
+
### Breaking changes
|
10
|
+
|
11
|
+
-
|
12
|
+
|
13
|
+
### Compatible changes
|
14
|
+
|
15
|
+
- CHANGELOG to satisfy [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) format.
|
16
|
+
- Use Rails 5.2 for tests instead of Rails 5.0
|
17
|
+
- Added Ruby 2.5.3 to test matrix
|
18
|
+
- Added support for Rails 6 RC1
|
19
|
+
|
20
|
+
## 0.8.0 2017-08-21
|
21
|
+
|
22
|
+
### Added
|
5
23
|
- Filters are now run in the context of the filter instance, not the filter class. This allows using private methods or instance variables.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
minidusen (0.
|
4
|
+
minidusen (0.9)
|
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.
|
28
|
+
edge_rider (1.0.0)
|
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.17.3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
minidusen (0.
|
4
|
+
minidusen (0.9)
|
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.
|
30
|
+
edge_rider (1.0.0)
|
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.17.3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
minidusen (0.
|
4
|
+
minidusen (0.9)
|
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.
|
30
|
+
edge_rider (1.0.0)
|
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.17.3
|
data/Gemfile.5.2.mysql2
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Runtime dependencies
|
4
|
+
gem 'activerecord', '~>5.2.3'
|
5
|
+
gem 'mysql2', '~>0.4.4'
|
6
|
+
gem 'i18n', '<=1.5.1' # Required to support tests for Ruby 2.2.x
|
7
|
+
|
8
|
+
# Development dependencies
|
9
|
+
gem 'rake'
|
10
|
+
gem 'database_cleaner'
|
11
|
+
gem 'rspec', '~>3.5'
|
12
|
+
gem 'byebug'
|
13
|
+
gem 'gemika'
|
14
|
+
|
15
|
+
# Gem under test
|
16
|
+
gem 'minidusen', :path => '.'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
minidusen (0.
|
4
|
+
minidusen (0.9)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
activesupport (>= 3.2)
|
7
7
|
edge_rider (>= 0.2.5)
|
@@ -9,27 +9,28 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (5.
|
13
|
-
activesupport (= 5.
|
14
|
-
activerecord (5.
|
15
|
-
activemodel (= 5.
|
16
|
-
activesupport (= 5.
|
17
|
-
arel (
|
18
|
-
activesupport (5.
|
12
|
+
activemodel (5.2.3)
|
13
|
+
activesupport (= 5.2.3)
|
14
|
+
activerecord (5.2.3)
|
15
|
+
activemodel (= 5.2.3)
|
16
|
+
activesupport (= 5.2.3)
|
17
|
+
arel (>= 9.0)
|
18
|
+
activesupport (5.2.3)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
-
i18n (
|
20
|
+
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
tzinfo (~> 1.1)
|
23
|
-
arel (
|
23
|
+
arel (9.0.0)
|
24
24
|
byebug (9.0.5)
|
25
|
-
concurrent-ruby (1.
|
26
|
-
database_cleaner (1.
|
25
|
+
concurrent-ruby (1.1.5)
|
26
|
+
database_cleaner (1.7.0)
|
27
27
|
diff-lcs (1.2.5)
|
28
|
-
edge_rider (0.
|
28
|
+
edge_rider (1.0.0)
|
29
29
|
activerecord
|
30
30
|
gemika (0.3.2)
|
31
|
-
i18n (
|
32
|
-
|
31
|
+
i18n (1.5.1)
|
32
|
+
concurrent-ruby (~> 1.0)
|
33
|
+
minitest (5.11.3)
|
33
34
|
mysql2 (0.4.4)
|
34
35
|
rake (11.3.0)
|
35
36
|
rspec (3.5.0)
|
@@ -45,22 +46,23 @@ GEM
|
|
45
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
47
|
rspec-support (~> 3.5.0)
|
47
48
|
rspec-support (3.5.0)
|
48
|
-
thread_safe (0.3.
|
49
|
-
tzinfo (1.2.
|
49
|
+
thread_safe (0.3.6)
|
50
|
+
tzinfo (1.2.5)
|
50
51
|
thread_safe (~> 0.1)
|
51
52
|
|
52
53
|
PLATFORMS
|
53
54
|
ruby
|
54
55
|
|
55
56
|
DEPENDENCIES
|
56
|
-
activerecord (~> 5.
|
57
|
+
activerecord (~> 5.2.3)
|
57
58
|
byebug
|
58
59
|
database_cleaner
|
59
60
|
gemika
|
61
|
+
i18n (<= 1.5.1)
|
60
62
|
minidusen!
|
61
63
|
mysql2 (~> 0.4.4)
|
62
64
|
rake
|
63
65
|
rspec (~> 3.5)
|
64
66
|
|
65
67
|
BUNDLED WITH
|
66
|
-
1.
|
68
|
+
1.17.3
|
data/Gemfile.5.2.pg
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Runtime dependencies
|
4
|
+
gem 'activerecord', '~>5.2.3'
|
5
|
+
gem 'pg', '~>0.18.4'
|
6
|
+
gem 'i18n', '<=1.5.1' # Required to support tests for Ruby 2.2.x
|
7
|
+
|
8
|
+
# Development dependendcies
|
9
|
+
gem 'rake'
|
10
|
+
gem 'database_cleaner'
|
11
|
+
gem 'rspec', '~>3.5'
|
12
|
+
gem 'byebug'
|
13
|
+
gem 'gemika'
|
14
|
+
|
15
|
+
# Gem under test
|
16
|
+
gem 'minidusen', :path => '.'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
minidusen (0.
|
4
|
+
minidusen (0.9)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
activesupport (>= 3.2)
|
7
7
|
edge_rider (>= 0.2.5)
|
@@ -9,27 +9,28 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (5.
|
13
|
-
activesupport (= 5.
|
14
|
-
activerecord (5.
|
15
|
-
activemodel (= 5.
|
16
|
-
activesupport (= 5.
|
17
|
-
arel (
|
18
|
-
activesupport (5.
|
12
|
+
activemodel (5.2.3)
|
13
|
+
activesupport (= 5.2.3)
|
14
|
+
activerecord (5.2.3)
|
15
|
+
activemodel (= 5.2.3)
|
16
|
+
activesupport (= 5.2.3)
|
17
|
+
arel (>= 9.0)
|
18
|
+
activesupport (5.2.3)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
-
i18n (
|
20
|
+
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
tzinfo (~> 1.1)
|
23
|
-
arel (
|
23
|
+
arel (9.0.0)
|
24
24
|
byebug (9.0.5)
|
25
|
-
concurrent-ruby (1.
|
26
|
-
database_cleaner (1.
|
25
|
+
concurrent-ruby (1.1.5)
|
26
|
+
database_cleaner (1.7.0)
|
27
27
|
diff-lcs (1.2.5)
|
28
|
-
edge_rider (0.
|
28
|
+
edge_rider (1.0.0)
|
29
29
|
activerecord
|
30
30
|
gemika (0.3.2)
|
31
|
-
i18n (
|
32
|
-
|
31
|
+
i18n (1.5.1)
|
32
|
+
concurrent-ruby (~> 1.0)
|
33
|
+
minitest (5.11.3)
|
33
34
|
pg (0.18.4)
|
34
35
|
rake (11.3.0)
|
35
36
|
rspec (3.5.0)
|
@@ -45,22 +46,23 @@ GEM
|
|
45
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
47
|
rspec-support (~> 3.5.0)
|
47
48
|
rspec-support (3.5.0)
|
48
|
-
thread_safe (0.3.
|
49
|
-
tzinfo (1.2.
|
49
|
+
thread_safe (0.3.6)
|
50
|
+
tzinfo (1.2.5)
|
50
51
|
thread_safe (~> 0.1)
|
51
52
|
|
52
53
|
PLATFORMS
|
53
54
|
ruby
|
54
55
|
|
55
56
|
DEPENDENCIES
|
56
|
-
activerecord (~> 5.
|
57
|
+
activerecord (~> 5.2.3)
|
57
58
|
byebug
|
58
59
|
database_cleaner
|
59
60
|
gemika
|
61
|
+
i18n (<= 1.5.1)
|
60
62
|
minidusen!
|
61
63
|
pg (~> 0.18.4)
|
62
64
|
rake
|
63
65
|
rspec (~> 3.5)
|
64
66
|
|
65
67
|
BUNDLED WITH
|
66
|
-
1.
|
68
|
+
1.17.3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
# Runtime dependencies
|
4
|
-
gem 'activerecord', '~>
|
4
|
+
gem 'activerecord', '~>6.0.0.rc1'
|
5
5
|
gem 'mysql2', '~>0.4.4'
|
6
6
|
|
7
7
|
# Development dependencies
|
@@ -12,4 +12,4 @@ gem 'byebug'
|
|
12
12
|
gem 'gemika'
|
13
13
|
|
14
14
|
# Gem under test
|
15
|
-
gem 'minidusen', :path => '
|
15
|
+
gem 'minidusen', :path => '.'
|
@@ -0,0 +1,67 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minidusen (0.9)
|
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 (6.0.0.rc1)
|
13
|
+
activesupport (= 6.0.0.rc1)
|
14
|
+
activerecord (6.0.0.rc1)
|
15
|
+
activemodel (= 6.0.0.rc1)
|
16
|
+
activesupport (= 6.0.0.rc1)
|
17
|
+
activesupport (6.0.0.rc1)
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
+
i18n (>= 0.7, < 2)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
tzinfo (~> 1.1)
|
22
|
+
zeitwerk (~> 2.1, >= 2.1.4)
|
23
|
+
byebug (11.0.1)
|
24
|
+
concurrent-ruby (1.1.5)
|
25
|
+
database_cleaner (1.7.0)
|
26
|
+
diff-lcs (1.3)
|
27
|
+
edge_rider (1.0.0)
|
28
|
+
activerecord
|
29
|
+
gemika (0.3.4)
|
30
|
+
i18n (1.6.0)
|
31
|
+
concurrent-ruby (~> 1.0)
|
32
|
+
minitest (5.11.3)
|
33
|
+
mysql2 (0.4.10)
|
34
|
+
rake (12.3.2)
|
35
|
+
rspec (3.8.0)
|
36
|
+
rspec-core (~> 3.8.0)
|
37
|
+
rspec-expectations (~> 3.8.0)
|
38
|
+
rspec-mocks (~> 3.8.0)
|
39
|
+
rspec-core (3.8.0)
|
40
|
+
rspec-support (~> 3.8.0)
|
41
|
+
rspec-expectations (3.8.2)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.8.0)
|
44
|
+
rspec-mocks (3.8.0)
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
+
rspec-support (~> 3.8.0)
|
47
|
+
rspec-support (3.8.0)
|
48
|
+
thread_safe (0.3.6)
|
49
|
+
tzinfo (1.2.5)
|
50
|
+
thread_safe (~> 0.1)
|
51
|
+
zeitwerk (2.1.6)
|
52
|
+
|
53
|
+
PLATFORMS
|
54
|
+
ruby
|
55
|
+
|
56
|
+
DEPENDENCIES
|
57
|
+
activerecord (~> 6.0.0.rc1)
|
58
|
+
byebug
|
59
|
+
database_cleaner
|
60
|
+
gemika
|
61
|
+
minidusen!
|
62
|
+
mysql2 (~> 0.4.4)
|
63
|
+
rake
|
64
|
+
rspec (~> 3.5)
|
65
|
+
|
66
|
+
BUNDLED WITH
|
67
|
+
1.17.3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
# Runtime dependencies
|
4
|
-
gem 'activerecord', '~>
|
4
|
+
gem 'activerecord', '~>6.0.0.rc1'
|
5
5
|
gem 'pg', '~>0.18.4'
|
6
6
|
|
7
7
|
# Development dependendcies
|
@@ -12,4 +12,4 @@ gem 'byebug'
|
|
12
12
|
gem 'gemika'
|
13
13
|
|
14
14
|
# Gem under test
|
15
|
-
gem 'minidusen', :path => '
|
15
|
+
gem 'minidusen', :path => '.'
|
data/Gemfile.6.0.pg.lock
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minidusen (0.9)
|
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 (6.0.0.rc1)
|
13
|
+
activesupport (= 6.0.0.rc1)
|
14
|
+
activerecord (6.0.0.rc1)
|
15
|
+
activemodel (= 6.0.0.rc1)
|
16
|
+
activesupport (= 6.0.0.rc1)
|
17
|
+
activesupport (6.0.0.rc1)
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
+
i18n (>= 0.7, < 2)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
tzinfo (~> 1.1)
|
22
|
+
zeitwerk (~> 2.1, >= 2.1.4)
|
23
|
+
byebug (11.0.1)
|
24
|
+
concurrent-ruby (1.1.5)
|
25
|
+
database_cleaner (1.7.0)
|
26
|
+
diff-lcs (1.3)
|
27
|
+
edge_rider (1.0.0)
|
28
|
+
activerecord
|
29
|
+
gemika (0.3.4)
|
30
|
+
i18n (1.6.0)
|
31
|
+
concurrent-ruby (~> 1.0)
|
32
|
+
minitest (5.11.3)
|
33
|
+
pg (0.18.4)
|
34
|
+
rake (12.3.2)
|
35
|
+
rspec (3.8.0)
|
36
|
+
rspec-core (~> 3.8.0)
|
37
|
+
rspec-expectations (~> 3.8.0)
|
38
|
+
rspec-mocks (~> 3.8.0)
|
39
|
+
rspec-core (3.8.0)
|
40
|
+
rspec-support (~> 3.8.0)
|
41
|
+
rspec-expectations (3.8.2)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.8.0)
|
44
|
+
rspec-mocks (3.8.0)
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
+
rspec-support (~> 3.8.0)
|
47
|
+
rspec-support (3.8.0)
|
48
|
+
thread_safe (0.3.6)
|
49
|
+
tzinfo (1.2.5)
|
50
|
+
thread_safe (~> 0.1)
|
51
|
+
zeitwerk (2.1.6)
|
52
|
+
|
53
|
+
PLATFORMS
|
54
|
+
ruby
|
55
|
+
|
56
|
+
DEPENDENCIES
|
57
|
+
activerecord (~> 6.0.0.rc1)
|
58
|
+
byebug
|
59
|
+
database_cleaner
|
60
|
+
gemika
|
61
|
+
minidusen!
|
62
|
+
pg (~> 0.18.4)
|
63
|
+
rake
|
64
|
+
rspec (~> 3.5)
|
65
|
+
|
66
|
+
BUNDLED WITH
|
67
|
+
1.17.3
|
data/README.md
CHANGED
@@ -151,7 +151,7 @@ class ContactFilter
|
|
151
151
|
include Minidusen::Filter
|
152
152
|
|
153
153
|
filter :email do |scope, email|
|
154
|
-
scope.where(
|
154
|
+
scope.where(email: email)
|
155
155
|
end
|
156
156
|
|
157
157
|
filter :text do |scope, phrases|
|
@@ -185,7 +185,8 @@ Minidusen is tested on:
|
|
185
185
|
|
186
186
|
- Rails 3.2
|
187
187
|
- Rails 4.2
|
188
|
-
- Rails 5.
|
188
|
+
- Rails 5.2
|
189
|
+
- Rails 6.0
|
189
190
|
- MySQL 5.6
|
190
191
|
- PostgreSQL
|
191
192
|
|
@@ -199,7 +200,7 @@ Development
|
|
199
200
|
- We currently develop using Ruby 2.2.4 (see `.ruby-version`) since that version works for all versions of ActiveRecord that we support. Travis CI will test additional Ruby versions (2.1.8 and 2.3.1).
|
200
201
|
- Put your database credentials into `spec/support/database.yml`. There's a `database.sample.yml` you can use as a template.
|
201
202
|
- Create a database `minidusen_test` in both MySQL and PostgreSQL.
|
202
|
-
- There are gem bundles in
|
203
|
+
- There are gem bundles in the project root for each combination of ActiveRecord version and database type that we support.
|
203
204
|
- You can bundle all test applications by saying `bundle exec rake matrix:install`
|
204
205
|
- You can run specs from the project root by saying `bundle exec rake matrix:spec`. This will run all gemfiles compatible with your current Ruby.
|
205
206
|
|
data/lib/minidusen/version.rb
CHANGED
@@ -25,7 +25,9 @@ describe Minidusen::Filter do
|
|
25
25
|
it 'should not find stale text after fields were updated (bugfix)' do
|
26
26
|
match = User.create!(:name => 'Abraham')
|
27
27
|
no_match = User.create!(:name => 'Elizabath')
|
28
|
-
match.
|
28
|
+
match.name = 'Johnny'
|
29
|
+
match.save!
|
30
|
+
|
29
31
|
user_filter.filter(User, 'Abraham').to_a.should be_empty
|
30
32
|
user_filter.filter(User, 'Johnny').to_a.should == [match]
|
31
33
|
end
|
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.
|
4
|
+
version: '0.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -63,20 +63,24 @@ files:
|
|
63
63
|
- ".ruby-version"
|
64
64
|
- ".travis.yml"
|
65
65
|
- CHANGELOG.md
|
66
|
+
- Gemfile.3.2.mysql2
|
67
|
+
- Gemfile.3.2.mysql2.lock
|
68
|
+
- Gemfile.4.2.mysql2
|
69
|
+
- Gemfile.4.2.mysql2.lock
|
70
|
+
- Gemfile.4.2.pg
|
71
|
+
- Gemfile.4.2.pg.lock
|
72
|
+
- Gemfile.5.2.mysql2
|
73
|
+
- Gemfile.5.2.mysql2.lock
|
74
|
+
- Gemfile.5.2.pg
|
75
|
+
- Gemfile.5.2.pg.lock
|
76
|
+
- Gemfile.6.0.mysql2
|
77
|
+
- Gemfile.6.0.mysql2.lock
|
78
|
+
- Gemfile.6.0.pg
|
79
|
+
- Gemfile.6.0.pg.lock
|
66
80
|
- LICENSE
|
67
81
|
- README.md
|
68
82
|
- Rakefile
|
69
83
|
- doc/filtered_index_view.cropped.png
|
70
|
-
- gemfiles/Gemfile.3.2.mysql2
|
71
|
-
- gemfiles/Gemfile.3.2.mysql2.lock
|
72
|
-
- gemfiles/Gemfile.4.2.mysql2
|
73
|
-
- gemfiles/Gemfile.4.2.mysql2.lock
|
74
|
-
- gemfiles/Gemfile.4.2.pg
|
75
|
-
- gemfiles/Gemfile.4.2.pg.lock
|
76
|
-
- gemfiles/Gemfile.5.0.mysql2
|
77
|
-
- gemfiles/Gemfile.5.0.mysql2.lock
|
78
|
-
- gemfiles/Gemfile.5.0.pg
|
79
|
-
- gemfiles/Gemfile.5.0.pg.lock
|
80
84
|
- lib/minidusen.rb
|
81
85
|
- lib/minidusen/active_record_ext.rb
|
82
86
|
- lib/minidusen/filter.rb
|
@@ -116,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
120
|
- !ruby/object:Gem::Version
|
117
121
|
version: '0'
|
118
122
|
requirements: []
|
119
|
-
|
120
|
-
rubygems_version: 2.7.6
|
123
|
+
rubygems_version: 3.0.3
|
121
124
|
signing_key:
|
122
125
|
specification_version: 4
|
123
126
|
summary: Low-tech search for ActiveRecord with MySQL or PostgreSQL
|