Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit fb040e2

Browse files
committed
Merge branch 'release/v0.0.4'
* release/v0.0.4: (55 commits) Update changelog Drop Laravel 5.5 support Update composer packages Update composer packages Drop useless seeder helper Move HasHashables trait to rinvex/fort Update minimum required PHP version Add Laravel v5.6 support Return only first translation of translatable attributes Apply fixes from StyleCI Fix redirection JSON response Fix turbolinks redirect header Fix turbolinks redirects header Typehint method returns Typehint void method returns Fix redirection turbolinks issues Tweak composer file Require PHP 7.1.0 at least Add composer dependency roave/security-advisories Add PHPUnitPrettyResultPrinter ...
2 parents c141df4 + ba5bdd3 commit fb040e2

File tree

15 files changed

+252
-154
lines changed

15 files changed

+252
-154
lines changed

.gitattributes

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
* text=auto
2+
*.js linguist-vendored
23
*.css linguist-vendored
34
*.scss linguist-vendored
45

5-
phpunit.* export-ignore
6-
phpcs.* export-ignore
7-
tests export-ignore
8-
.* export-ignore
6+
/phpunit.* export-ignore
7+
/phpcs.* export-ignore
8+
/tests export-ignore
9+
/.* export-ignore

.styleci.yml

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1-
preset: recommended
1+
php:
2+
preset: recommended
23

3-
enabled:
4-
- dir_constant
5-
- ereg_to_preg
6-
- mb_str_functions
7-
- no_short_echo_tag
8-
- strict_comparison
9-
- phpdoc_link_to_see
10-
- no_php4_constructor
11-
- declare_strict_types
12-
- unalign_double_arrow
13-
- length_ordered_imports
14-
- modernize_types_casting
15-
- return_type_declaration
16-
- not_operator_with_successor_space
4+
enabled:
5+
- dir_constant
6+
- ereg_to_preg
7+
- mb_str_functions
8+
- no_short_echo_tag
9+
- strict_comparison
10+
- phpdoc_link_to_see
11+
- no_php4_constructor
12+
- declare_strict_types
13+
- unalign_double_arrow
14+
- length_ordered_imports
15+
- modernize_types_casting
16+
- return_type_declaration
17+
- not_operator_with_successor_space
1718

18-
disabled:
19-
- align_double_arrow
20-
- alpha_ordered_imports
19+
disabled:
20+
- align_double_arrow
21+
- alpha_ordered_imports
22+
23+
js:
24+
tab-width: 4
25+
print-width: 120
26+
27+
ts:
28+
tab-width: 4
29+
print-width: 120
30+
31+
css:
32+
tab-width: 4
33+
print-width: 120

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ after_script:
2121
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
2222

2323
notifications:
24+
email: false
2425
slack:
2526
rooms:
2627
- secure: iRG+Fw/TZ2oxWg8VYCAr2QsEJQaHGAsT88D0kztcyVBPrBCVntwgyzdUhAgZOdsyCLSsTT03M8gOzaU+W15IB6Iq57xzsC/rF/fUwfiLQVj1T4PPQwZcpclfJIohCI1caEK/18z+7PFlTLxAiKigna9RiTr0hpYEpvNJo4gY/VR9xeHFPX7crsjYJTDb8LMgP7j+ng7k3ZYb8L0ExSkLd7Vk7hY52GdUZOBWpWfuvDP8KDidAQtsTLAIw6ssFJVKDmIpKiG8522rWe9B1LMRafBvKRBlxYgTlBFO0v6uzFA+UHEo9FrhkDzIbjoEsclLGQIgzia0VPk0MFPvbNUiZM462JOe8lC1UaOUGc4bXafTS0HA1mIIGzcuZ7ExDiktwYxzF/yOY2MqYT1ZMsRLFfGMUTA4bNVo2rCoudRgfhXwqxUpKm47K6voSWAIoZkJuz3Ga/2xV25gpbqDTt/W2hWlmZv9Esv+wFqFKhv0wu2jzqA/flh/ee5IXlDIdstM4zM7bYoEf/A4Lfx12q3Q673VJznhu8n0+g4BPxAdc2Bbpi55QjrV7Ri4KsG/YuwyucKYO+7gT7rC7W3SBV0Gsm0n6zjwVPTaJ3Y/u5hZP+YMZSyUd/F3YNDr8cmeUL3Gl1JpCXFT5CnvL73gHSY0asf5pRF/LRa3iQDtD6YPedI=

CHANGELOG.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,43 @@ All notable changes to this project will be documented in this file.
55
This project adheres to [Semantic Versioning](CONTRIBUTING.md).
66

77

8-
## [v1.0.3] - 2017-03-14
8+
## [v0.0.4] - 2018-02-18
9+
- Remove duplicate and wrong Asia/Kathmandu timezone
10+
- Add domain helper to get simplify domain host string
11+
- Remove redundant functionality, replaced by default Laravel 5.4 middleware
12+
- Use global helpers for response instead of the namepsaced class
13+
- Remove useless service provider override
14+
- Handle default translation if no locale supplied
15+
- Update composer dependencies
16+
- Enhance redirection method
17+
- Update supplementary files
18+
- Auto generate slugs on validating
19+
- Fix HTTP response code condition
20+
- Remove FormRequest override in favor for native prepareForValidation feature
21+
- Add PHPUnitPrettyResultPrinter
22+
- Fix redirection turbolinks issues
23+
- Typehint method returns
24+
- Fix redirection JSON response
25+
- Return only first translation of translatable attributes
26+
- Add Laravel v5.6 support
27+
- Drop Laravel 5.5 support
28+
29+
## [v0.0.3] - 2017-03-14
930
- Update readme and composer dependencies
1031
- Update StyleCI fixers and other supplementary files
1132
- Enforce strict type declaration
1233
- Fix stupid gitattributes export-ignore issues
1334

14-
## [v1.0.2] - 2016-12-27
35+
## [v0.0.2] - 2016-12-27
1536
- Fix readme typo
1637
- Enforce strict mode
1738
- Fix installation typo
1839
- Trim and filter request inputs recursively
1940
- Add two new functions for array trim recursive and array filter recursive
2041

21-
## [v1.0.1] - 2016-12-20
22-
- Add support for url redirections
23-
- Enforce consistency
42+
## v0.0.1 - 2016-12-20
43+
- Tag first release
2444

25-
## v1.0.0 - 2016-12-18
26-
- Commit first draft
27-
28-
[v1.0.3]: https://github.com/rinvex/support/compare/v1.0.2...v1.0.3
29-
[v1.0.1]: https://github.com/rinvex/support/compare/v1.0.1...v1.0.2
30-
[v1.0.1]: https://github.com/rinvex/support/compare/v1.0.0...v1.0.1
45+
[v0.0.4]: https://github.com/rinvex/support/compare/v0.0.3...v0.0.4
46+
[v0.0.3]: https://github.com/rinvex/support/compare/v0.0.2...v0.0.3
47+
[v0.0.2]: https://github.com/rinvex/support/compare/v0.0.1...v0.0.2

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2017, Rinvex LLC,
3+
Copyright (c) 2016-2018, Rinvex LLC,
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
**Rinvex common** support helpers, contracts, and traits required by various Rinvex packages. Validator functionality, and basic controller included out-of-the-box.
44

55
[![Packagist](https://img.shields.io/packagist/v/rinvex/support.svg?label=Packagist&style=flat-square)](https://packagist.org/packages/rinvex/support)
6-
[![VersionEye Dependencies](https://img.shields.io/versioneye/d/php/rinvex:support.svg?label=Dependencies&style=flat-square)](https://www.versioneye.com/php/rinvex:support/)
76
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/rinvex/support.svg?label=Scrutinizer&style=flat-square)](https://scrutinizer-ci.com/g/rinvex/support/)
87
[![Code Climate](https://img.shields.io/codeclimate/github/rinvex/support.svg?label=CodeClimate&style=flat-square)](https://codeclimate.com/github/rinvex/support)
98
[![Travis](https://img.shields.io/travis/rinvex/support.svg?label=TravisCI&style=flat-square)](https://travis-ci.org/rinvex/support)
10-
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/21b922e5-faa9-4773-ac8e-5ab55229d36c.svg?label=SensioLabs&style=flat-square)](https://insight.sensiolabs.com/projects/21b922e5-faa9-4773-ac8e-5ab55229d36c)
119
[![StyleCI](https://styleci.io/repos/60968880/shield)](https://styleci.io/repos/60968880)
1210
[![License](https://img.shields.io/packagist/l/rinvex/support.svg?label=License&style=flat-square)](https://github.com/rinvex/support/blob/develop/LICENSE)
1311

@@ -94,7 +92,7 @@ Bug reports, feature requests, and pull requests are very welcome.
9492

9593
## Security Vulnerabilities
9694

97-
If you discover a security vulnerability within this project, please send an e-mail to [security@rinvex.com](security@rinvex.com). All security vulnerabilities will be promptly addressed.
95+
If you discover a security vulnerability within this project, please send an e-mail to [help@rinvex.com](help@rinvex.com). All security vulnerabilities will be promptly addressed.
9896

9997

10098
## About Rinvex
@@ -106,4 +104,4 @@ Rinvex is a software solutions startup, specialized in integrated enterprise sol
106104

107105
This software is released under [The MIT License (MIT)](LICENSE).
108106

109-
(c) 2016-2017 Rinvex LLC, Some rights reserved.
107+
(c) 2016-2018 Rinvex LLC, Some rights reserved.

composer.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@
3838
}
3939
],
4040
"require": {
41-
"php": "^7.0.0",
42-
"illuminate/bus": "~5.1.0|~5.2.0|~5.3.0|~5.4.0",
43-
"illuminate/http": "~5.1.0|~5.2.0|~5.3.0|~5.4.0",
44-
"illuminate/support": "~5.1.0|~5.2.0|~5.3.0|~5.4.0",
45-
"illuminate/contracts": "~5.1.0|~5.2.0|~5.3.0|~5.4.0",
46-
"illuminate/validation": "~5.1.0|~5.2.0|~5.3.0|~5.4.0",
47-
"illuminate/routing": "~5.1.0|~5.2.0|~5.3.0|~5.4.0",
48-
"illuminate/auth": "~5.1.0|~5.2.0|~5.3.0|~5.4.0"
41+
"php": "^7.1.3",
42+
"illuminate/auth": "~5.6.0",
43+
"illuminate/bus": "~5.6.0",
44+
"illuminate/contracts": "~5.6.0",
45+
"illuminate/http": "~5.6.0",
46+
"illuminate/routing": "~5.6.0",
47+
"illuminate/support": "~5.6.0",
48+
"illuminate/validation": "~5.6.0"
49+
},
50+
"require-dev": {
51+
"codedungeon/phpunit-result-printer": "^0.6.0",
52+
"phpunit/phpunit": "^7.0.0"
4953
},
5054
"autoload": {
5155
"files": [
@@ -55,6 +59,11 @@
5559
"Rinvex\\Support\\": "src/"
5660
}
5761
},
62+
"config": {
63+
"sort-packages": true,
64+
"preferred-install": "dist",
65+
"optimize-autoloader": true
66+
},
5867
"extra": {
5968
"branch-alias": {
6069
"dev-master": "1.0-dev"

phpunit.xml.dist

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
stopOnFailure="false"
1212
beStrictAboutTestsThatDoNotTestAnything="true"
1313
beStrictAboutChangesToGlobalState="true"
14-
beStrictAboutCoversAnnotation="true">
14+
beStrictAboutCoversAnnotation="true"
15+
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
1516
<testsuites>
1617
<testsuite name="Rinvex Support Unit Test Suite">
1718
<directory>tests</directory>
@@ -23,10 +24,10 @@
2324
</whitelist>
2425
</filter>
2526
<logging>
26-
<log type="tap" target="build/report.tap"/>
27-
<log type="junit" target="build/report.junit.xml"/>
28-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
29-
<log type="coverage-text" target="build/coverage.txt"/>
30-
<log type="coverage-clover" target="build/logs/clover.xml"/>
27+
<log type="tap" target="build/report.tap" />
28+
<log type="junit" target="build/report.junit.xml" />
29+
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true" />
30+
<log type="coverage-text" target="build/coverage.txt" />
31+
<log type="coverage-clover" target="build/logs/clover.xml" />
3132
</logging>
3233
</phpunit>

resources/data/timezones.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Http/Requests/FormRequest.php

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)