From cc1d5db3c8d56fbd1c43ea105bf90aa0c4f446c5 Mon Sep 17 00:00:00 2001 From: Yuya Takeyama Date: Wed, 14 Jan 2015 19:53:51 +0900 Subject: [PATCH 1/4] Update testset --- woothee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woothee b/woothee index b909b33..61766c8 160000 --- a/woothee +++ b/woothee @@ -1 +1 @@ -Subproject commit b909b339082a91b402e905fb4cdb0f7dc3b7b621 +Subproject commit 61766c87f52a1fd866509b06a55b93186b5c4921 From 0798e45c3e67913f969d2e8fe8c8022e3e92ac71 Mon Sep 17 00:00:00 2001 From: Yuya Takeyama Date: Wed, 14 Jan 2015 19:58:50 +0900 Subject: [PATCH 2/4] Fix MSIE11 support woothee/woothee#12 --- src/AgentCategory/Browser/Msie.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AgentCategory/Browser/Msie.php b/src/AgentCategory/Browser/Msie.php index e55e974..22c8858 100644 --- a/src/AgentCategory/Browser/Msie.php +++ b/src/AgentCategory/Browser/Msie.php @@ -13,8 +13,8 @@ public static function challenge($ua, &$result) if (preg_match('/MSIE ([.0-9]+);/', $ua, $matches) === 1) { $version = $matches[1]; - } elseif (preg_match('/Trident\/([.0-9]+);(?: BOIE[0-9]+;[A-Z]+;)? rv:([.0-9]+)/', $ua, $matches) === 1) { - $version = $matches[2]; + } elseif (preg_match('/Trident\/([.0-9]+);/', $ua) === 1 && preg_match('/rv:([.0-9]+)/', $ua, $matches) === 1) { + $version = $matches[1]; } elseif (preg_match('/IEMobile\/([.0-9]+);/', $ua, $matches) === 1) { $version = $matches[1]; } From e525446dab5aa44b39bb7be0c1c67f8b843a04e8 Mon Sep 17 00:00:00 2001 From: Yuya Takeyama Date: Wed, 14 Jan 2015 20:09:51 +0900 Subject: [PATCH 3/4] Bump --- src/Classifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classifier.php b/src/Classifier.php index bf8a933..41469c4 100644 --- a/src/Classifier.php +++ b/src/Classifier.php @@ -31,7 +31,7 @@ class Classifier { - const VERSION = '1.0.0'; + const VERSION = '1.0.1'; public function isCrawler($ua) { From eb72cee84dcf8c0a4d30d94cee71117463521aab Mon Sep 17 00:00:00 2001 From: Yuya Takeyama Date: Wed, 14 Jan 2015 20:12:09 +0900 Subject: [PATCH 4/4] Versionless specification This installs latest version http://blog.doh.ms/2014/10/13/installing-composer-packages/ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 81620b7..5d42870 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Install this library using [Composer](https://getcomposer.org/). Run below command in your project directory. ``` -$ composer require 'woothee/woothee:*' +$ composer require woothee/woothee ``` Or add this library in your `composer.json`'s `require` section manually.