From b486d431ed49834c0b3a8474b36bb0b5d994ba4b Mon Sep 17 00:00:00 2001 From: Oguzhan Unlu Date: Thu, 23 May 2019 20:17:21 +0300 Subject: [PATCH] Prepared for release --- CHANGELOG | 12 ++++++++++++ README.md | 21 +++++++++++---------- src/Constants.php | 2 +- tests/tests/ClassInitTests/TrackerTest.php | 2 +- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ca3400e..4a62c63 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +Version 0.3.0 (2019-05-24) +-------------------------- +Fix coverall setup (#79) +Add setPageUrl & setRefr to Subject (#78) +Remove VersionEye from README (#77) +Add License button to README (#45) +Update copyright notices to 2014-2019 (#37) +Fix typo POST_REQ_SCEHMA (#34) +Fix markdown alignment in README (#76) +Flesh out predicates in Mountebank stubs (#66) +Bump PHP version to 7.2 & update dependencies (#74) + Version 0.2.1 (2015-02-09) -------------------------- Fixed uniqid not generating valid UUID, thanks @mlively! (#39) diff --git a/README.md b/README.md index 3556db4..d579059 100644 --- a/README.md +++ b/README.md @@ -12,24 +12,25 @@ Add analytics into your PHP apps and scripts with the **[Snowplow][1]** event tr With this tracker you can collect event data from your PHP based applications, games and frameworks. +## Quickstart & Testing +Make sure `docker` & `docker-compose` are installed. + +* `git clone git@github.com:snowplow/snowplow-php-tracker.git` +* `cd snowplow-php-tracker` +* `docker-compose run --rm snowplow composer.phar install` +* `docker-compose run --rm snowplow script/tests.sh` + ## Find out more | **[Technical Docs][techdocs]** | **[Setup Guide][setup]** | **[Roadmap][roadmap]** | **[Contributing][contributing]** | |:------------------------------:|:------------------------:|:----------------------:|:--------------------------------:| | ![i1][techdocs-image] | ![i2][setup-image] | ![i3][roadmap-image] | ![i4][contributing-image] | -## Run tests - -* Clone this repo -* run `cd ` -* run `docker-compose run --rm snowplow composer.phar install` -* run `docker-compose run --rm snowplow script/tests.sh` - ## Copyright and license The Snowplow PHP Tracker is copyright 2014-2019 Snowplow Analytics Ltd. -Licensed under the **[Apache License, Version 2.0] [license]** (the "License"); +Licensed under the **[Apache License, Version 2.0][license]** (the "License"); you may not use this software except in compliance with the License. Unless required by applicable law or agreed to in writing, software @@ -43,8 +44,8 @@ limitations under the License. [travis]: https://travis-ci.org/snowplow/snowplow-php-tracker [travis-image]: https://travis-ci.org/snowplow/snowplow-php-tracker.svg?branch=master -[coveralls]: https://coveralls.io/r/snowplow/snowplow-php-tracker?branch=master -[coveralls-image]: https://coveralls.io/repos/snowplow/snowplow-php-tracker/badge.png?branch=master +[coveralls]: https://coveralls.io/github/snowplow/snowplow-php-tracker?branch=master +[coveralls-image]: https://coveralls.io/repos/github/snowplow/snowplow-php-tracker/badge.svg?branch=master [packagist-1]: https://packagist.org/packages/snowplow/snowplow-tracker [packagist-image-1]: https://poser.pugx.org/snowplow/snowplow-tracker/v/stable.png diff --git a/src/Constants.php b/src/Constants.php index ce0394f..79125d4 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -46,7 +46,7 @@ class Constants { * - SSL: the default for whether or not to use SSL Encryption * - Type: the default for what type of request the emitter will be making (POST or GET) */ - const TRACKER_VERSION = "php-0.2.1"; + const TRACKER_VERSION = "php-0.3.0"; const DEFAULT_BASE_64 = true; const DEBUG_LOG_FILES = true; const CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-1"; diff --git a/tests/tests/ClassInitTests/TrackerTest.php b/tests/tests/ClassInitTests/TrackerTest.php index 337ba8e..ab204c9 100644 --- a/tests/tests/ClassInitTests/TrackerTest.php +++ b/tests/tests/ClassInitTests/TrackerTest.php @@ -67,7 +67,7 @@ public function testTrackerInit() { // Asserts $this->assertEquals($this->s1, $tracker->returnSubject()); $this->assertEquals(false, $tracker->returnEncodeBase64()); - $this->assertEquals(array("tv" => "php-0.2.1", "tna" => "namespace", "aid" => "app_id"), $tracker->returnStdNvPairs()); + $this->assertEquals(array("tv" => "php-0.3.0", "tna" => "namespace", "aid" => "app_id"), $tracker->returnStdNvPairs()); $tracker->turnOffDebug(true); }