Skip to content

Commit

Permalink
Merge branch 'release-1.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
thingsym committed Feb 15, 2021
2 parents a346762 + c051883 commit 5761845
Show file tree
Hide file tree
Showing 13 changed files with 2,852 additions and 128 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: thingsym
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
vendor
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Introducing Multi Device Switcher

[![Build Status](https://travis-ci.org/thingsym/multi-device-switcher.svg?branch=master)](https://travis-ci.org/thingsym/multi-device-switcher)

This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).
This plugin detects if your site is being viewed by UserAgent, and switches to selected theme. The Custom Switcher can add every device.

Expand Down Expand Up @@ -393,7 +391,7 @@ Multi Device Switcher is hosted on the WordPress Plugin Directory.

## Test Matrix

For operation compatibility between PHP version and WordPress version, see below [Travis CI](https://travis-ci.org/thingsym/multi-device-switcher).
For operation compatibility between PHP version and WordPress version, see below [Github Actions](https://github.com/thingsym/multi-device-switcher/actions).

## Contribution

Expand All @@ -409,6 +407,16 @@ Small patches and bug reports can be submitted a issue tracker in Github. Forkin

## Changelog

* Version 1.8.0
* add test case
* add PHPDoc
* update japanese translation
* update pot
* fix composer.json
* add FUNDING.yml
* change donate link
* add sponsor link
* add GitHub actions for CI/CD, remove .travis.yml
* Version 1.7.0
* add test case for cdn
* add multi_device_switcher/detect_device action hook
Expand Down
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@
"license": "GPL2 or later",
"require": {},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"squizlabs/php_codesniffer": "3.*",
"wp-coding-standards/wpcs": "2.*",
"phpmd/phpmd": "2.*",
"phpstan/phpstan": "*",
"phpunit/phpunit": "^6"
"phpunit/phpunit": "7"
},
"scripts": {
"phpcs:config-set": "phpcs --config-set installed_paths /usr/local/share/wp-phpcs",
"makepot:php": "php /usr/local/share/wp-i18n/makepot.php wp-plugin ../multi-device-switcher ../multi-device-switcher/languages/multi-device-switcher.pot",
"makepot:wpcli": "wp i18n make-pot ./ ./languages/multi-device-switcher.pot --exclude=dist,bin,tests,node_modules,vendor",
"msgfmt:ja": "msgfmt languages/multi-device-switcher-ja.po -o languages/multi-device-switcher-ja.mo",
"phpcs:config-set": "phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs",
"phpcs": "phpcs -p -s -v -n ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpcs:warning": "phpcs -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpcbf": "phpcbf -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpmd": "phpmd ./ text ./phpmd.ruleset.xml --suffixes php --exclude /tests,/vendor",
"format:phpcbf": "phpcbf -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpmd": "phpmd ./ text ./phpmd.ruleset.xml --suffixes php --exclude /tests,/vendor,/node_modules",
"phpstan": "phpstan analyse",
"phpunit": "phpunit",
"bats": "bats tests/cli",
"coverage": "phpunit --coverage-html ./tests/report",
"ci": [
"@phpunit",
"@phpcs",
"@phpmd",
"@phpstan"
]
}
Expand Down
Loading

0 comments on commit 5761845

Please sign in to comment.