Skip to content

Commit

Permalink
Support the latest LINE Messaging API
Browse files Browse the repository at this point in the history
  • Loading branch information
moznion committed Sep 29, 2016
1 parent b10bf76 commit e16d9ca
Show file tree
Hide file tree
Showing 153 changed files with 6,115 additions and 3,717 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.idea/
/vendor/
/composer.lock
/composer.phar
composer.lock
composer.phar
/tests/Private
/,/
/docs/
*.iml
vendor/
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
language: php

matrix:
include:
- php: '5.4'
before_script: composer require 'indigophp/hash-compat:^1.1'
- php: '5.5'
before_script: composer require 'indigophp/hash-compat:^1.1'
- php: '5.6'
- php: '7.0'
php:
- '5.6'
- '7.0'
install: composer update
script: ./vendor/bin/phpunit ./tests
sudo: false
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
First of all, thank you so much for taking your time to contribute! LINE Bot SDK for PHP is not very different from any other open
source projects you are aware of. It will be amazing if you could help us by doing any of the following:

- File an issue in [the issue tracker](https://github.com/line/line-bot-sdk-php/issues) to report bugs and propose new features and
- File an issue in [the issue tracker](https://github.com/line/line-bot-sdk-php-v2/issues) to report bugs and propose new features and
improvements.
- Ask a question using [the issue tracker](https://github.com/line/line-bot-sdk-php/issues) (__Please ask only about this SDK__).
- Contribute your work by sending [a pull request](https://github.com/line/line-bot-sdk-php/pulls).
- Ask a question using [the issue tracker](https://github.com/line/line-bot-sdk-php-v2/issues) (__Please ask only about this SDK__).
- Contribute your work by sending [a pull request](https://github.com/line/line-bot-sdk-php-v2/pulls).

### Contributor license agreement

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
https://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Expand Down Expand Up @@ -192,7 +192,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
COMPOSER_BIN = ./vendor/bin

.PHONY: default test doc phpcs phpmd check

default: check

test:
$(COMPOSER_BIN)/phpunit ./tests

doc:
yes yes | $(COMPOSER_BIN)/apigen generate --source=./src --destination=./docs --title line-bot-sdk-php

phpcs:
$(COMPOSER_BIN)/phpcs --standard=PSR2 src/ examples/SendingSample/ examples/EchoBot/src examples/EchoBot/public
$(COMPOSER_BIN)/phpcs --standard=PSR2 src/ tests/ examples/EchoBot/src examples/EchoBot/public examples/KitchenSink/src examples/KitchenSink/public

phpmd:
$(COMPOSER_BIN)/phpmd ./src text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
$(COMPOSER_BIN)/phpmd ./examples/SendingSample text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
$(COMPOSER_BIN)/phpmd ./tests text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
$(COMPOSER_BIN)/phpmd ./examples/EchoBot/src text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
$(COMPOSER_BIN)/phpmd ./examples/EchoBot/public text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
$(COMPOSER_BIN)/phpmd ./examples/KitchenSink/src text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
$(COMPOSER_BIN)/phpmd ./examples/KitchenSink/public text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'

copyright:
bash ./devtool/check_copyright.sh

check: test phpcs phpmd
check: test copyright phpcs phpmd

Loading

0 comments on commit e16d9ca

Please sign in to comment.