Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/13' into develop
Browse files Browse the repository at this point in the history
Close #13
  • Loading branch information
weierophinney committed May 8, 2018
2 parents 0acf18a + 05aeab8 commit 9dfd6cc
Show file tree
Hide file tree
Showing 23 changed files with 2,458 additions and 199 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
@@ -0,0 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
9 changes: 9 additions & 0 deletions .gitattributes
@@ -0,0 +1,9 @@
/.coveralls.yml export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/composer.lock export-ignore
/docs/ export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/test/ export-ignore
7 changes: 4 additions & 3 deletions .gitignore
@@ -1,3 +1,4 @@
vendor/
composer.lock
phpunit.xml
/clover.xml
/coveralls-upload.json
/phpunit.xml
/vendor/
68 changes: 55 additions & 13 deletions .travis.yml
Expand Up @@ -5,30 +5,72 @@ language: php
cache:
directories:
- $HOME/.composer/cache
- vendor

env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"

matrix:
fast_finish: true
include:
- php: 5.6
env:
- EXECUTE_CS_CHECK=true
- php: 7.0
- DEPS=lowest
- php: 5.6
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 5.6
env:
- DEPS=latest
- php: 7
env:
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 7
env:
- DEPS=latest
- php: 7.1
- php: hhvm
allow_failures:
- php: hhvm
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- CS_CHECK=true
- TEST_COVERAGE=true
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=locked
- php: 7.2
env:
- DEPS=latest

before_install:
- composer self-update
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi

install:
- travis_retry composer install --no-interaction --prefer-source
- composer info -i
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show

script:
- ./vendor/bin/phpunit
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi

notifications:
email: true
email: false
22 changes: 4 additions & 18 deletions CHANGELOG.md
Expand Up @@ -2,27 +2,13 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 3.1.0 - TBD
## 3.1.0 - 2018-05-08

### Added

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

## 3.0.1 - TBD
- [#13](https://github.com/zendframework/ZendService_ReCaptcha/pull/13) adds support for PHP 7.1 and 7.2.

### Added
### Changed

- Nothing.

Expand All @@ -32,7 +18,7 @@ All notable changes to this project will be documented in this file, in reverse

### Removed

- Nothing.
- [#13](https://github.com/zendframework/ZendService_ReCaptcha/pull/13) removes support for HHVM.

### Fixed

Expand Down
27 changes: 21 additions & 6 deletions LICENSE.md
@@ -1,12 +1,27 @@
Copyright (c) 2015, Zend Technologies USA, Inc.
Copyright (c) 2015-2018, Zend Technologies USA, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

- Neither the name of Zend Technologies USA, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- Neither the name of Zend Technologies USA, Inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 changes: 4 additions & 3 deletions README.md
@@ -1,5 +1,9 @@
# ZendService\ReCaptcha component

[![Build Status](https://secure.travis-ci.org/zendframework/ZendService_ReCaptcha.svg?branch=master)](https://secure.travis-ci.org/zendframework/ZendService_ReCaptcha)
Missing Coverage badge in README.md; please add:
[![Coverage Status](https://coveralls.io/repos/github/zendframework/ZendService_ReCaptcha/badge.svg?branch=master)](https://coveralls.io/github/zendframework/ZendService_ReCaptcha?branch=master)

## Install

You can install using [Composer][1]:
Expand All @@ -8,9 +12,6 @@ You can install using [Composer][1]:
composer require zendframework/zendservice-recaptcha
```

At that point, follow the instructions in the documentation folder for actual
usage of the component.

## Documentation

Documentation is on the Zend Framework website:
Expand Down
51 changes: 35 additions & 16 deletions composer.json
@@ -1,41 +1,60 @@
{
"name": "zendframework/zendservice-recaptcha",
"description": "OOP wrapper for the ReCaptcha web service",
"type": "library",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"zf",
"zendframework",
"recaptcha"
],
"homepage": "http://packages.zendframework.com/",
"license": "BSD-3-Clause",
"autoload": {
"psr-4": {
"ZendService\\ReCaptcha\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ZendServiceTest\\ReCaptcha\\": "test/"
}
"support": {
"issues": "https://github.com/zendframework/ZendService_ReCaptcha/issues",
"source": "https://github.com/zendframework/ZendService_ReCaptcha",
"rss": "https://github.com/zendframework/ZendService_ReCaptcha/releases.atom",
"chat": "https://zendframework-slack.herokuapp.com",
"forum": "https://discourse.zendframework.com/c/questions/components"
},
"require": {
"php": "^5.6 || ^7.0",
"zendframework/zend-http": "^2.5.4",
"zendframework/zend-json": "^2.6.1 || ^3.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^6.0",
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-config": "^2.0",
"zendframework/zend-validator": "^2.8.2"
},
"suggest": {
"zendframework/zend-validator": "~2.0, if using ReCaptcha's Mailhide API"
},
"autoload": {
"psr-4": {
"ZendService\\ReCaptcha\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ZendServiceTest\\ReCaptcha\\": "test/"
}
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev",
"dev-develop": "3.1-dev"
"dev-master": "3.1.x-dev",
"dev-develop": "3.2.x-dev"
}
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}

0 comments on commit 9dfd6cc

Please sign in to comment.