diff --git a/CHANGELOG.md b/CHANGELOG.md index dd808cd..f86c59d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,24 @@ # Changelog All Notable changes to `jobs-govt` will be documented in this file +## 0.5.0 - 2015-08-14 + +### Added +- Nothing + +### Deprecated +- Nothing + +### Fixed +- Updated to v1.0.3 of jobs-common + +### Removed +- Query setters for city/state/location as the API doesn't officially support them +- getParameters and parseLocation methods + +### Security +- Nothing + ## 0.4.3 - 2015-07-25 ### Added diff --git a/README.md b/README.md index 1c69b90..c74cf3c 100644 --- a/README.md +++ b/README.md @@ -27,15 +27,22 @@ as the provider. $client = new JobBrander\Jobs\Client\Provider\Govt(); // Search for 200 job listings for 'project manager' in Chicago, IL -$jobs = $client->setKeyword('project manager') - ->setCity('Chicago') - ->setState('IL') +$jobs = $client->setKeyword('project manager')\ ->setCount(200) ->getJobs(); ``` The `getJobs` method will return a [Collection](https://github.com/JobBrander/jobs-common/blob/master/src/Collection.php) of [Job](https://github.com/JobBrander/jobs-common/blob/master/src/Job.php) objects. +### Location Queries + +Because this API does not support location-based queries, you will need to add the location +to your setKeyword() method call. For example: + +``` +$jobs = $client->setKeyword('project manager in chicago, il')->getJobs(); +``` + ## Testing ``` bash diff --git a/tests/src/GovtTest.php b/tests/src/GovtTest.php index e9a0656..abde217 100644 --- a/tests/src/GovtTest.php +++ b/tests/src/GovtTest.php @@ -54,37 +54,6 @@ public function testUrlIncludesKeywordWhenKeywordProvided() $this->assertContains($param, $url); } - public function testUrlIncludesKeywordWhenCityAndStateProvided() - { - $city = uniqid(); - $state = uniqid(); - $param = 'query='.urlencode(' in '.$city.', '.$state); - - $url = $this->client->setCity($city)->setState($state)->getUrl(); - - $this->assertContains($param, $url); - } - - public function testUrlIncludesKeywordWhenCityProvided() - { - $city = uniqid(); - $param = 'query='.urlencode(' in '.$city); - - $url = $this->client->setCity($city)->getUrl(); - - $this->assertContains($param, $url); - } - - public function testUrlIncludesKeywordWhenStateProvided() - { - $state = uniqid(); - $param = 'query='.urlencode(' in '.$state); - - $url = $this->client->setState($state)->getUrl(); - - $this->assertContains($param, $url); - } - public function testUrlNotIncludesKeywordWhenNotProvided() { $param = 'query=';