Updated raven-php to v0.12.1
This commit is contained in:
parent
7bb917e637
commit
7ef5cbfb96
10
composer.lock
generated
10
composer.lock
generated
@ -201,16 +201,16 @@
|
||||
},
|
||||
{
|
||||
"name": "raven/raven",
|
||||
"version": "0.12.0",
|
||||
"version": "0.12.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/getsentry/raven-php.git",
|
||||
"reference": "bd247ca2a8fd9ccfb99b60285c9b31286384a92b"
|
||||
"reference": "b325984c792ff89f985b73da9a3ad8ed8b520bca"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/getsentry/raven-php/zipball/bd247ca2a8fd9ccfb99b60285c9b31286384a92b",
|
||||
"reference": "bd247ca2a8fd9ccfb99b60285c9b31286384a92b",
|
||||
"url": "https://api.github.com/repos/getsentry/raven-php/zipball/b325984c792ff89f985b73da9a3ad8ed8b520bca",
|
||||
"reference": "b325984c792ff89f985b73da9a3ad8ed8b520bca",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -251,7 +251,7 @@
|
||||
"log",
|
||||
"logging"
|
||||
],
|
||||
"time": "2015-05-19 20:20:08"
|
||||
"time": "2015-08-25 22:38:46"
|
||||
},
|
||||
{
|
||||
"name": "restler/framework",
|
||||
|
||||
1
htdocs/includes/bin/raven
Symbolic link
1
htdocs/includes/bin/raven
Symbolic link
@ -0,0 +1 @@
|
||||
../raven/raven/bin/raven
|
||||
21
htdocs/includes/composer/LICENSE
Normal file
21
htdocs/includes/composer/LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
Copyright (c) 2015 Nils Adermann, Jordi Boggiano
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
@ -343,17 +343,17 @@
|
||||
},
|
||||
{
|
||||
"name": "raven/raven",
|
||||
"version": "0.12.0",
|
||||
"version_normalized": "0.12.0.0",
|
||||
"version": "0.12.1",
|
||||
"version_normalized": "0.12.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/getsentry/raven-php.git",
|
||||
"reference": "bd247ca2a8fd9ccfb99b60285c9b31286384a92b"
|
||||
"reference": "b325984c792ff89f985b73da9a3ad8ed8b520bca"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/getsentry/raven-php/zipball/bd247ca2a8fd9ccfb99b60285c9b31286384a92b",
|
||||
"reference": "bd247ca2a8fd9ccfb99b60285c9b31286384a92b",
|
||||
"url": "https://api.github.com/repos/getsentry/raven-php/zipball/b325984c792ff89f985b73da9a3ad8ed8b520bca",
|
||||
"reference": "b325984c792ff89f985b73da9a3ad8ed8b520bca",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -364,7 +364,7 @@
|
||||
"fabpot/php-cs-fixer": "^1.8.0",
|
||||
"phpunit/phpunit": "^4.6.6"
|
||||
},
|
||||
"time": "2015-05-19 20:20:08",
|
||||
"time": "2015-08-25 22:38:46",
|
||||
"bin": [
|
||||
"bin/raven"
|
||||
],
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
0.12.1
|
||||
------
|
||||
|
||||
- Dont send empty values for various context.
|
||||
|
||||
|
||||
0.12.0
|
||||
------
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
class Raven_Client
|
||||
{
|
||||
const VERSION = '0.12.0';
|
||||
const VERSION = '0.12.1';
|
||||
const PROTOCOL = '6';
|
||||
|
||||
const DEBUG = 'debug';
|
||||
@ -449,6 +449,12 @@ class Raven_Client
|
||||
$this->context->extra,
|
||||
$data['extra']);
|
||||
|
||||
// avoid empty arrays (which dont convert to dicts)
|
||||
if (empty($data['extra']))
|
||||
unset($data['extra']);
|
||||
if (empty($data['tags']))
|
||||
unset($data['tags']);
|
||||
|
||||
if ((!$stack && $this->auto_log_stacks) || $stack === true) {
|
||||
$stack = debug_backtrace();
|
||||
|
||||
|
||||
@ -209,6 +209,17 @@ class Raven_Tests_ClientTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($event['extra']['foo'], 'bar');
|
||||
}
|
||||
|
||||
public function testEmptyExtraData()
|
||||
{
|
||||
$client = new Dummy_Raven_Client(array('extra' => array()));
|
||||
|
||||
$client->captureMessage('Test Message %s', array('foo'));
|
||||
$events = $client->getSentEvents();
|
||||
$this->assertEquals(count($events), 1);
|
||||
$event = array_pop($events);
|
||||
$this->assertEquals(array_key_exists('extra', $event), false);
|
||||
}
|
||||
|
||||
public function testCaptureMessageDoesHandleUninterpolatedMessage()
|
||||
{
|
||||
$client = new Dummy_Raven_Client();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user