From f8f97174c2d283c749fc05c0ebc245b2fc322f64 Mon Sep 17 00:00:00 2001 From: Haoran Un Date: Thu, 26 Nov 2015 16:31:24 +1100 Subject: [PATCH 1/8] Fix typo --- src/Httpful/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index b9b03e6..fecfea9 100644 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -13,7 +13,7 @@ * itself very nicely to "chaining". You will see several "alias" * methods: more readable method definitions that wrap * their more concise counterparts. You will also notice - * no public constructor. This two adds to the readability + * no public constructor. This too adds to the readability * and "chainabilty" of the library. * * @author Nate Good From 0e9f4023b151e1af29ae76caec85a31decd10dfb Mon Sep 17 00:00:00 2001 From: Haoran Un Date: Thu, 26 Nov 2015 16:35:40 +1100 Subject: [PATCH 2/8] Change specific named references to Request class to static (which gets bound late). --- src/Httpful/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index fecfea9..954e2b5 100644 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -760,7 +760,7 @@ private static function _initializeDefaults() // recusion. Do not use this syntax elsewhere. // It goes against the whole readability // and transparency idea. - self::$_template = new Request(array('method' => Http::GET)); + self::$_template = new static(array('method' => Http::GET)); // This is more like it... self::$_template @@ -811,7 +811,7 @@ public static function init($method = null, $mime = null) if (!isset(self::$_template)) self::_initializeDefaults(); - $request = new Request(); + $request = new static(); return $request ->_setDefaults() ->method($method) From d58c12ad7eb38775f9998f5a94bd23d772abcba9 Mon Sep 17 00:00:00 2001 From: Haoran Un Date: Wed, 2 Nov 2016 10:40:59 +1100 Subject: [PATCH 3/8] Version bump. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index dd7a549..d9cfde1 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "homepage": "http://github.com/nategood/httpful", "license": "MIT", "keywords": ["http", "curl", "rest", "restful", "api", "requests"], - "version": "0.2.20", + "version": "0.2.21-alpha", "authors": [ { "name": "Nate Good", From fdbbf552fe9b6e5096d1133bce6cb7ff1e0b170e Mon Sep 17 00:00:00 2001 From: Haoran Un Date: Wed, 2 Nov 2016 10:47:58 +1100 Subject: [PATCH 4/8] Change package name. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d9cfde1..b83031d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "nategood/httpful", - "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", + "name": "bluehaoran/httpful", + "description": "A Readable, Chainable, REST friendly, PHP HTTP Client, forked from NateGood", "homepage": "http://github.com/nategood/httpful", "license": "MIT", "keywords": ["http", "curl", "rest", "restful", "api", "requests"], From ca002a59fddf17b4b8d1743974f221811367b4be Mon Sep 17 00:00:00 2001 From: Haoran Date: Fri, 16 Dec 2016 11:59:51 +1100 Subject: [PATCH 5/8] rollback composer.json for merge --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b83031d..8b6c721 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { "name": "bluehaoran/httpful", - "description": "A Readable, Chainable, REST friendly, PHP HTTP Client, forked from NateGood", + "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", "homepage": "http://github.com/nategood/httpful", "license": "MIT", "keywords": ["http", "curl", "rest", "restful", "api", "requests"], - "version": "0.2.21-alpha", + "version": "0.2.20", "authors": [ { "name": "Nate Good", From 0f2bd46a22da12df88647c7ed686247cb20a4532 Mon Sep 17 00:00:00 2001 From: Haoran Date: Fri, 16 Dec 2016 12:00:15 +1100 Subject: [PATCH 6/8] Rollback composer.json for pull request --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8b6c721..dd7a549 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "bluehaoran/httpful", + "name": "nategood/httpful", "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", "homepage": "http://github.com/nategood/httpful", "license": "MIT", From 4e7d3737089eddbda4e3d4cb0a1d12813337805d Mon Sep 17 00:00:00 2001 From: Haoran Date: Mon, 29 May 2017 16:22:35 +1000 Subject: [PATCH 7/8] Revert the last few changes so this repo can exist independantly --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index dd7a549..bca83fb 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { - "name": "nategood/httpful", + "name": "bluehaoran/httpful", "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", "homepage": "http://github.com/nategood/httpful", "license": "MIT", "keywords": ["http", "curl", "rest", "restful", "api", "requests"], - "version": "0.2.20", + "version": "0.2.21-alpha", "authors": [ { "name": "Nate Good", From 0e6f28d6eb7a14623674e30bfc9402b1974157a0 Mon Sep 17 00:00:00 2001 From: Haoran Un Date: Tue, 17 Oct 2017 12:35:27 +1100 Subject: [PATCH 8/8] Revert libary name. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index bca83fb..dd7a549 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { - "name": "bluehaoran/httpful", + "name": "nategood/httpful", "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", "homepage": "http://github.com/nategood/httpful", "license": "MIT", "keywords": ["http", "curl", "rest", "restful", "api", "requests"], - "version": "0.2.21-alpha", + "version": "0.2.20", "authors": [ { "name": "Nate Good",