Skip to content

Commit

Permalink
Preparing 1.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsizemore committed Dec 28, 2023
1 parent c2b789e commit 51b57c6
Show file tree
Hide file tree
Showing 16 changed files with 2,265 additions and 73 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf

# Ignore all test and documentation with "export-ignore".
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
/composer.lock export-ignore
/mkdocs.yml export-ignore
/phpstan.neon export-ignore
/phpunit.xml export-ignore
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@
A not so exhaustive list of changes for each release.

For a more detailed listing of changes between each version,
you can use the following url: https://github.com/ericsizemore/librariesio/compare/v1.0.0...v1.0.1.
you can use the following url: https://github.com/ericsizemore/librariesio/compare/v1.0.0...v1.1.0.

Simply replace the version numbers depending on which set of changes you wish to see.

### 1.1.0 (2023-12-29)

* Added `subscription()` to handle adding, updating, checking and removing a subscription to a project.
* Updated `makeRequest()` with a `$method` parameter to handle post, put, and delete requests in addition to get.
* Visibility changed to `protected` for:
* endpointParameters()
* processEndpointFormat()
* verifyEndpointOptions()
* Converted line endings to linux, some files snuck through with Windows line endings
* Documentation updated

### 1.0.0 (2023-12-25)

* Initial release
1 change: 0 additions & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Contributor Covenant Code of Conduct

## Our Pledge
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
This project was born from the desire to expand my knowledge of API's and GuzzleHttp. My implementation is far from perfect, so I am open to any and all feedback that one may wish to provide.

* The Libraries.io API has the ability for pagination, however it is not yet fully implemented in this library.
* The `subscriptions` endpoint (adding, updating, or deleting subscriptions) is not yet implemented.

## Installation

Expand Down Expand Up @@ -72,6 +71,13 @@ LibrariesIO splits the different endpoints based on their "component":
* repository_contributions
* subscriptions
* user
* Esi\LibrariesIO\LibrariesIO::subscription()
* takes an 'endpoint' parameter to specify which subset you are looking for.
* Current endpoints are:
* subscribe
* check
* update
* unsubscribe

Each 'subset' has their own required options. Check the documentation (currently WIP) for more information.

Expand Down Expand Up @@ -123,7 +129,7 @@ No actual calls are made to the libraries.io API while performing tests. Instead

## Documentation

The [docs](docs/) folder or online [here](https://www.secondversion.com/docs/librariesio/).
The `docs/` folder or online [here](https://www.secondversion.com/docs/librariesio/).

## About

Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Version | Supported |
|---------|--------------------|
| 1.1.x | :white_check_mark: |
| 1.0.x | :white_check_mark: |

## Reporting a Vulnerability
Expand Down
34 changes: 18 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "esi/librariesio",
"description": "LibrariesIO - A simple API wrapper/client for the Libraries.io API.",
"type": "library",
"license": "MIT",
"type": "library",
"keywords": [
"api",
"api-client",
Expand All @@ -18,40 +18,42 @@
"homepage": "https://www.secondversion.com/"
}
],
"support": {
"issues": "https://github.com/ericsizemore/librariesio/issues",
"forum": "https://github.com/ericsizemore/librariesio/discussions",
"source": "https://github.com/ericsizemore/librariesio/tree/master",
"security": "https://github.com/ericsizemore/librariesio/security/policy"
},
"require": {
"php": "^8.2 <8.5",
"guzzlehttp/guzzle": "^7.0 <8.0",
"kevinrob/guzzle-cache-middleware": "^5.1 <6.0",
"symfony/cache": "^7.0"
},
"require-dev": {
"phpstan/phpstan": "^1.11",
"phpstan/phpstan": "^1.11 <2.0",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6",
"phpunit/phpunit": "^10.5",
"phpstan/phpstan-phpunit": "^1.4"
"phpunit/phpunit": "^10.5"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": { "Esi\\LibrariesIO\\": "src/" }
"psr-4": {
"Esi\\LibrariesIO\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Esi\\LibrariesIO\\Tests\\": "tests/src/"
}
},
"support": {
"issues": "https://github.com/ericsizemore/librariesio/issues",
"forum": "https://github.com/ericsizemore/librariesio/discussions",
"source": "https://github.com/ericsizemore/librariesio/tree/master",
"security": "https://github.com/ericsizemore/librariesio/security/policy"
},
"scripts": {
"test": "vendor/bin/phpunit --coverage-clover=build/logs/clover.xml --coverage-html=build/logs/coverage --display-deprecations --display-warnings --globals-backup",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon"
},
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"scripts": {
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon",
"test": "vendor/bin/phpunit --coverage-clover=build/logs/clover.xml --coverage-html=build/logs/coverage --display-deprecations --display-warnings --globals-backup"
}
}
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@
A not so exhaustive list of changes for each release.

For a more detailed listing of changes between each version,
you can use the following url: https://github.com/ericsizemore/librariesio/compare/v1.0.0...v1.0.1.
you can use the following url: https://github.com/ericsizemore/librariesio/compare/v1.0.0...v1.1.0.

Simply replace the version numbers depending on which set of changes you wish to see.

### 1.1.0 (2023-12-29)

* Added `subscription()` to handle adding, updating, checking and removing a subscription to a project.
* Updated `makeRequest()` with a `$method` parameter to handle post, put, and delete requests in addition to get.
* Visibility changed to `protected` for:
* endpointParameters()
* processEndpointFormat()
* verifyEndpointOptions()
* Converted line endings to linux, some files snuck through with Windows line endings
* Documentation updated

### 1.0.0 (2023-12-25)

* Initial release
1 change: 0 additions & 1 deletion docs/code-of-conduct.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Contributor Covenant Code of Conduct

## Our Pledge
Expand Down
8 changes: 7 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
This project was born from the desire to expand my knowledge of API's and GuzzleHttp. My implementation is far from perfect, so I am open to any and all feedback that one may wish to provide.

* The Libraries.io API has the ability for pagination, however it is not yet fully implemented in this library.
* The `subscriptions` endpoint (adding, updating, or deleting subscriptions) is not yet implemented.

## Installation

Expand Down Expand Up @@ -72,6 +71,13 @@ LibrariesIO splits the different endpoints based on their "component":
* repository_contributions
* subscriptions
* user
* Esi\LibrariesIO\LibrariesIO::subscription()
* takes an 'endpoint' parameter to specify which subset you are looking for.
* Current endpoints are:
* subscribe
* check
* update
* unsubscribe

Each 'subset' has their own required options. Check the documentation (currently WIP) for more information.

Expand Down
1 change: 1 addition & 0 deletions docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Version | Supported |
|---------|--------------------|
| 1.1.x | :white_check_mark: |
| 1.0.x | :white_check_mark: |

## Reporting a Vulnerability
Expand Down
Loading

0 comments on commit 51b57c6

Please sign in to comment.