File tree Expand file tree Collapse file tree 7 files changed +65
-31
lines changed Expand file tree Collapse file tree 7 files changed +65
-31
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - 5.6
5
- - 7.0
6
4
- 7.1
5
+ - 7.2
7
6
8
7
env :
9
8
matrix :
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## [ Unreleased]
3
+ ## [ 2.0.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v2.0.0 ) - 2018-02-09
4
+
5
+ ### Changed
6
+
7
+ - Switched to Scout 4 (Laravel 5.6) and PHPUnit 7
4
8
5
9
## [ 1.0.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v1.0.0 ) - 2017-09-03
10
+
6
11
### Added
12
+
7
13
- Added Laravel 5.5 support including package auto discovery.
8
14
9
15
## [ 0.5.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.5.0 ) - 2017-01-30
16
+
10
17
### Changed
18
+
11
19
- Updated dependencies to support Laravel 5.4 and Scout 3.0
12
20
13
21
### Fixed
22
+
14
23
- Fall back to phpunit 4.8.
15
24
16
25
## [ 0.4.1] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.4.1 ) - 2017-01-22
26
+
17
27
### Fixed
28
+
18
29
- Fixed #7 . No longer uses ` resolve() ` helper to better support Laravel Lumen.
19
30
20
31
## [ 0.4.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.4.0 ) - 2017-01-16
32
+
21
33
### Added
34
+
22
35
- Made it possible to specify PostgreSQL search config both globally in scout.php or on per model basis.
23
36
24
37
### Changed
38
+
25
39
- Fixed #6 . Check for models that no longer exist but still present in the index (i.e. soft-deleted models).
26
40
27
41
## [ 0.3.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.3.0 ) - 2017-01-04
42
+
28
43
### Changed
44
+
29
45
- Updated to scout 2.0.
30
46
- Fixed an issue with order by clause when performing a search.
31
47
32
48
## [ 0.2.1] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.2.1 ) - 2016-12-23
49
+
33
50
### Changed
51
+
34
52
- Fixed #2 . Cast nulls to empty strings in ` toVector() ` .
35
53
36
54
## [ 0.2.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.2.0 ) - 2016-10-07
55
+
37
56
### Added
57
+
38
58
- Implemented ` getTotalCount() ` method to support length aware pagination.
39
59
40
60
### Changed
61
+
41
62
- Updated README.md.
42
63
43
64
## [ 0.1.1] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.1.1 ) - 2016-10-07
65
+
44
66
### Changed
67
+
45
68
- Updated composer dependencies.
46
69
47
70
## [ 0.1.0] ( https://github.com/pmatseykanets/laravel-scout-postgres/releases/tag/v0.1.0 ) - 2016-09-02
71
+
48
72
Experimental release.
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ This package makes it easy to use native PostgreSQL Full Text Search capabilitie
14
14
## Contents
15
15
16
16
- [ Installation] ( #installation )
17
- - [ Scout 1 .x] ( #scout-1x )
17
+ - [ Scout 4 .x] ( #scout-4x )
18
18
- [ Scout 2.x, 3.x] ( #scout-2x-3x )
19
+ - [ Scout 1.x] ( #scout-1x )
19
20
- [ Laravel] ( #laravel )
20
21
- [ Lumen] ( #lumen )
21
22
- [ Configuration] ( #configuration )
@@ -36,16 +37,22 @@ This package makes it easy to use native PostgreSQL Full Text Search capabilitie
36
37
37
38
You can install the package via composer:
38
39
39
- ### Scout 1.x
40
+ ### Scout 4.x (Laravel 5.6)
40
41
``` bash
41
- composer require pmatseykanets/laravel-scout-postgres:0.2.1
42
+ composer require pmatseykanets/laravel-scout-postgres
42
43
```
43
44
44
45
### Scout 2.x, 3.x
45
46
``` bash
46
- composer require pmatseykanets/laravel-scout-postgres
47
+ composer require pmatseykanets/laravel-scout-postgres:1.0.0
47
48
```
48
49
50
+ ### Scout 1.x
51
+ ``` bash
52
+ composer require pmatseykanets/laravel-scout-postgres:0.2.1
53
+ ```
54
+
55
+
49
56
### Laravel
50
57
If you're using Laravel < 5.5 or if you have package auto-discovery turned off you have to manually register the service provider:
51
58
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"require" : {
23
- "php" : " >=5.6.4 " ,
24
- "illuminate/contracts" : " 5.3.*|5.4.*|5.5 .*" ,
25
- "illuminate/database" : " 5.3.*|5.4.*|5.5 .*" ,
26
- "illuminate/support" : " 5.3.*|5.4.*|5.5 .*" ,
27
- "laravel/scout" : " 2.*|3 .*"
23
+ "php" : " >=7.1.3 " ,
24
+ "illuminate/contracts" : " 5.6 .*" ,
25
+ "illuminate/database" : " 5.6 .*" ,
26
+ "illuminate/support" : " 5.6 .*" ,
27
+ "laravel/scout" : " 4 .*"
28
28
},
29
29
"require-dev" : {
30
- "phpunit/phpunit" : " ^4.8 " ,
31
- "mockery/mockery" : " ^0.9.5 "
30
+ "phpunit/phpunit" : " ~7.0 " ,
31
+ "mockery/mockery" : " ~1.0 "
32
32
},
33
33
"autoload" : {
34
34
"psr-4" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
use Illuminate \Database \Eloquent \SoftDeletes ;
12
12
use Illuminate \Database \ConnectionResolverInterface ;
13
13
14
- class PostgresEngineTest extends AbstractTestCase
14
+ class PostgresEngineTest extends TestCase
15
15
{
16
16
public function test_it_can_be_instantiated ()
17
17
{
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace ScoutEngines \Postgres \Test ;
4
+
5
+ use Mockery ;
6
+ use PHPUnit \Framework \TestCase as BaseTestCase ;
7
+
8
+ abstract class TestCase extends BaseTestCase
9
+ {
10
+ public function tearDown ()
11
+ {
12
+ // Prevent PHPUnit complaining about risky tests
13
+ // because Mockery expectations are not counted towards assertions
14
+ if ($ container = Mockery::getContainer ()) {
15
+ $ this ->addToAssertionCount ($ container ->mockery_getExpectationCount ());
16
+ }
17
+
18
+ Mockery::close ();
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments