Skip to content

Commit e04ec97

Browse files
authored
Merge pull request #182 from splitio/develop
7.1.1
2 parents b1e8df4 + b7dc0f4 commit e04ec97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+614
-2070
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto
2+
3+
/doc export-ignore
4+
/tests export-ignore
5+
/.github export-ignore
6+
.gitattributes export-ignore
7+
.gitignore export-ignore
8+
phpunit.xml.dist export-ignore
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Update License Year
2+
3+
on:
4+
schedule:
5+
- cron: "0 3 1 1 *" # 03:00 AM on January 1
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set Current year
21+
run: "echo CURRENT=$(date +%Y) >> $GITHUB_ENV"
22+
23+
- name: Set Previous Year
24+
run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV"
25+
26+
- name: Update LICENSE
27+
uses: jacobtomlinson/gha-find-replace@v2
28+
with:
29+
find: ${{ env.PREVIOUS }}
30+
replace: ${{ env.CURRENT }}
31+
include: "LICENSE"
32+
regex: false
33+
34+
- name: Commit files
35+
run: |
36+
git config user.name 'github-actions[bot]'
37+
git config user.email 'github-actions[bot]@users.noreply.github.com'
38+
git commit -m "Updated License Year" -a
39+
40+
- name: Create Pull Request
41+
uses: peter-evans/create-pull-request@v3
42+
with:
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
title: Update License Year
45+
branch: update-license

CHANGES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
7.1.1 (March 28, 2022)
2+
- Removed unused logic for HTTP and requests dependency.
3+
- Removed all producer logic for Storages.
4+
- Added SafeRedisWrapper for handling exception in Redis.
5+
- Added `.gitattributes` for excluding `tests/.` and other files for composer package.
6+
- Fixed typos in `Splitter.php` and CONTRIBUTORS-GUIDE.
7+
18
7.1.0 (Dec 3, 2021)
29
- Added a new option to use when running Redis in cluster mode called `keyHashTags` which receives a list of hashtags from which the SDK will randomly pick one to use on the generated instance.
310

CONTRIBUTORS-GUIDE.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@ Split SDK is an open source project and we welcome feedback and contribution. Th
66

77
### Development process
88

9-
1. Fork the repository and create a topic branch from `development` branch. Please use a descriptive name for your branch.
9+
1. Fork the repository and create a topic branch from `develop` branch. Please use a descriptive name for your branch.
1010
2. While developing, use descriptive messages in your commits. Avoid short or meaningless sentences like "fix bug".
1111
3. Make sure to add tests for both positive and negative cases.
1212
4. Run the build script and make sure it runs with no errors.
1313
5. Run all tests and make sure there are no failures.
1414
6. `git push` your changes to GitHub within your topic branch.
15-
7. Open a Pull Request(PR) from your forked repo and into the `development` branch of the original repository.
15+
7. Open a Pull Request(PR) from your forked repo and into the `develop` branch of the original repository.
1616
8. When creating your PR, please fill out all the fields of the PR template, as applicable, for the project.
17-
9. Check for conflicts once the pull request is created to make sure your PR can be merged cleanly into `development`.
17+
9. Check for conflicts once the pull request is created to make sure your PR can be merged cleanly into `develop`.
1818
10. Keep an eye out for any feedback or comments from Split's SDK team.
1919

2020
### Building the SDK
21+
2122
- `composer install`
2223

2324
### Running tests
25+
2426
- `vendor/bin/phpunit -c phpunit.xml.dist --testsuite integration`
2527

2628
### Linting and other useful checks
29+
2730
- `vendor/bin/phpcs --ignore=functions.php --standard=PSR2 src/`
2831

29-
# Contact
32+
## Contact
3033

3134
If you have any other questions or need to contact us directly in a private manner send us a note at sdks@split.io

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2021 Split Software, Inc.
1+
Copyright © 2022 Split Software, Inc.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"php": ">=7.3",
2626
"psr/log": "~1.0",
2727
"predis/predis": "^1.1.9",
28-
"rmccue/requests": "^1.8.1",
2928
"symfony/yaml": ">=5.3"
3029
},
3130

phpunit.xml.dist

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,61 @@
55
<php>
66
<const name="REDIS_HOST" value="localhost"/>
77
<const name="REDIS_PORT" value="6379"/>
8+
<const name="TEST_PREFIX" value="SPLITIO_TEST:."/>
89
</php>
910

1011
<testsuites>
1112
<testsuite name="splitio">
1213
<directory suffix="Test.php">tests/</directory>
1314
</testsuite>
14-
<testsuite name="redis-adapter">
15-
<file>tests/Suite/Redis/CacheInterfacesTest.php</file>
15+
<testsuite name="adapter">
16+
<directory suffix="Test.php">tests/Suite/Adapter</directory>
17+
</testsuite>
18+
<testsuite name="attributes">
19+
<directory suffix="Test.php">tests/Suite/Attributes/</directory>
1620
</testsuite>
1721
<testsuite name="common">
1822
<directory suffix="Test.php">tests/Suite/Common/</directory>
1923
</testsuite>
2024
<testsuite name="component">
2125
<directory suffix="Test.php">tests/Suite/Component/</directory>
26+
</testsuite>
27+
<testsuite name="dynamic_configurations">
28+
<directory suffix="Test.php">tests/Suite/DynamicConfigurations/</directory>
2229
</testsuite>
2330
<testsuite name="engine">
2431
<directory suffix="Test.php">tests/Suite/Engine/</directory>
2532
</testsuite>
33+
<testsuite name="input_validation">
34+
<directory suffix="Test.php">tests/Suite/InputValidation/</directory>
35+
</testsuite>
2636
<testsuite name="matchers">
2737
<directory suffix="Test.php">tests/Suite/Matchers/</directory>
2838
</testsuite>
2939
<testsuite name="metrics">
3040
<directory suffix="Test.php">tests/Suite/Metrics/</directory>
3141
</testsuite>
42+
<testsuite name="redis">
43+
<directory suffix="Test.php">tests/Suite/Redis/</directory>
44+
</testsuite>
3245
<testsuite name="sdk">
3346
<directory suffix="Test.php">tests/Suite/Sdk/</directory>
3447
</testsuite>
35-
<testsuite name="attributes">
36-
<directory suffix="Test.php">tests/Suite/Attributes/</directory>
37-
</testsuite>
38-
<testsuite name="input_validation">
39-
<directory suffix="Test.php">tests/Suite/InputValidation/</directory>
40-
</testsuite>
4148

4249

4350

4451
<testsuite name="integration">
52+
<directory suffix="Test.php">tests/Suite/Adapter/</directory>
53+
<directory suffix="Test.php">tests/Suite/Attributes/</directory>
4554
<directory suffix="Test.php">tests/Suite/Common/</directory>
4655
<directory suffix="Test.php">tests/Suite/Component/</directory>
56+
<directory suffix="Test.php">tests/Suite/DynamicConfigurations/</directory>
4757
<directory suffix="Test.php">tests/Suite/Engine/</directory>
58+
<directory suffix="Test.php">tests/Suite/InputValidation/</directory>
4859
<directory suffix="Test.php">tests/Suite/Matchers/</directory>
4960
<directory suffix="Test.php">tests/Suite/Metrics/</directory>
61+
<directory suffix="Test.php">tests/Suite/Redis/</directory>
5062
<directory suffix="Test.php">tests/Suite/Sdk/</directory>
51-
<directory suffix="Test.php">tests/Suite/Adapter/</directory>
52-
<directory suffix="Test.php">tests/Suite/Attributes/</directory>
53-
<directory suffix="Test.php">tests/Suite/InputValidation/</directory>
54-
<directory suffix="Test.php">tests/Suite/DynamicConfigurations/</directory>
5563
</testsuite>
5664
</testsuites>
5765

src/SplitIO/Component/Cache/Item.php

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

0 commit comments

Comments
 (0)