Skip to content

Commit c2265c9

Browse files
committed
renamed everything to Gumlet
1 parent 405eeef commit c2265c9

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

Licence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Aditya Patadia
3+
Copyright (c) 2018 Turing Analytics LLP
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ php-image-resize
33

44
PHP library to resize, scale and crop images.
55

6-
[![Build Status](https://travis-ci.org/eventviva/php-image-resize.svg?branch=master)](https://travis-ci.org/eventviva/php-image-resize) [![Latest Stable Version](https://poser.pugx.org/eventviva/php-image-resize/v/stable)](https://packagist.org/packages/eventviva/php-image-resize) [![Monthly Downloads](https://poser.pugx.org/eventviva/php-image-resize/d/monthly)](https://packagist.org/packages/eventviva/php-image-resize)
6+
[![Build Status](https://travis-ci.org/gumlet/php-image-resize.svg?branch=master)](https://travis-ci.org/gumlet/php-image-resize) [![Latest Stable Version](https://poser.pugx.org/gumlet/php-image-resize/v/stable)](https://packagist.org/packages/gumlet/php-image-resize) [![Monthly Downloads](https://poser.pugx.org/gumlet/php-image-resize/d/monthly)](https://packagist.org/packages/gumlet/php-image-resize)
77

88
Hosted Solution
99
---------------
@@ -22,7 +22,7 @@ If using [Composer](https://getcomposer.org/), in your `composer.json` file add:
2222
```json
2323
{
2424
"require": {
25-
"eventviva/php-image-resize": "1.6.*"
25+
"gumlet/php-image-resize": "1.6.*"
2626
}
2727
}
2828
```
@@ -36,14 +36,14 @@ include '/path/to/ImageResize.php';
3636
Because this class uses namespacing, when instantiating the object, you need to either use the fully qualified namespace:
3737

3838
```php
39-
$image = new \Eventviva\ImageResize();
39+
$image = new \Gumlet\ImageResize();
4040
```
4141

4242
Or alias it:
4343

4444
```php
4545

46-
use \Eventviva\ImageResize;
46+
use \Gumlet\ImageResize;
4747

4848
$image = new ImageResize();
4949
```
@@ -312,7 +312,7 @@ try{
312312
API Doc
313313
-------
314314

315-
https://eventviva.github.io/php-image-resize/class-Eventviva.ImageResize.html
315+
https://gumlet.github.io/php-image-resize/class-Gumlet.ImageResize.html
316316

317317
------------------
318318

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "eventviva/php-image-resize",
2+
"name": "gumlet/php-image-resize",
33
"description": "PHP class to re-size and scale images",
44
"keywords": ["php", "image", "resize","scale"],
55
"type": "library",
6-
"homepage": "https://github.com/eventviva/php-image-resize",
6+
"homepage": "https://github.com/gumlet/php-image-resize",
77
"license": "MIT",
88
"authors": [
99
{

lib/ImageResize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Eventviva;
3+
namespace Gumlet;
44

55
/**
66
* PHP class to resize and scale images

test/Test.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
include __DIR__.'/../lib/ImageResize.php';
44

5-
use \Eventviva\ImageResize;
6-
use \Eventviva\ImageResizeException;
5+
use \Gumlet\ImageResize;
6+
use \Gumlet\ImageResizeException;
77

88
if (version_compare(PHP_VERSION, '7.0.0') >= 0 && !class_exists('PHPUnit_Framework_TestCase')) {
99
class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
@@ -32,7 +32,7 @@ public function testLoadGif()
3232
$resize = new ImageResize($image);
3333

3434
$this->assertEquals(IMAGETYPE_GIF, $resize->source_type);
35-
$this->assertInstanceOf('\Eventviva\ImageResize', $resize);
35+
$this->assertInstanceOf('\Gumlet\ImageResize', $resize);
3636
}
3737

3838
public function testLoadJpg()
@@ -41,7 +41,7 @@ public function testLoadJpg()
4141
$resize = new ImageResize($image);
4242

4343
$this->assertEquals(IMAGETYPE_JPEG, $resize->source_type);
44-
$this->assertInstanceOf('\Eventviva\ImageResize', $resize);
44+
$this->assertInstanceOf('\Gumlet\ImageResize', $resize);
4545
}
4646

4747
public function testLoadIgnoreXmpExifJpg()
@@ -50,7 +50,7 @@ public function testLoadIgnoreXmpExifJpg()
5050
$resize = new ImageResize($image);
5151

5252
$this->assertEquals(IMAGETYPE_JPEG, $resize->source_type);
53-
$this->assertInstanceOf('\Eventviva\ImageResize', $resize);
53+
$this->assertInstanceOf('\Gumlet\ImageResize', $resize);
5454
}
5555

5656
public function testLoadPng()
@@ -59,23 +59,23 @@ public function testLoadPng()
5959
$resize = new ImageResize($image);
6060

6161
$this->assertEquals(IMAGETYPE_PNG, $resize->source_type);
62-
$this->assertInstanceOf('\Eventviva\ImageResize', $resize);
62+
$this->assertInstanceOf('\Gumlet\ImageResize', $resize);
6363
}
6464

6565
public function testLoadString()
6666
{
6767
$resize = ImageResize::createFromString(base64_decode($this->image_string));
6868

6969
$this->assertEquals(IMAGETYPE_GIF, $resize->source_type);
70-
$this->assertInstanceOf('\Eventviva\ImageResize', $resize);
70+
$this->assertInstanceOf('\Gumlet\ImageResize', $resize);
7171
}
7272

7373
/**
7474
* Bad load tests
7575
*/
7676

7777
/**
78-
* @expectedException \Eventviva\ImageResizeException
78+
* @expectedException \Gumlet\ImageResizeException
7979
* @expectedExceptionMessage File does not exist
8080
*/
8181
public function testLoadNoFile()
@@ -84,7 +84,7 @@ public function testLoadNoFile()
8484
}
8585

8686
/**
87-
* @expectedException \Eventviva\ImageResizeException
87+
* @expectedException \Gumlet\ImageResizeException
8888
* @expectedExceptionMessage Unsupported file type
8989
*/
9090
public function testLoadUnsupportedFile()
@@ -93,7 +93,7 @@ public function testLoadUnsupportedFile()
9393
}
9494

9595
/**
96-
* @expectedException \Eventviva\ImageResizeException
96+
* @expectedException \Gumlet\ImageResizeException
9797
* @expectedExceptionMessage image_data must not be empty
9898
*/
9999
public function testLoadUnsupportedFileString()
@@ -102,7 +102,7 @@ public function testLoadUnsupportedFileString()
102102
}
103103

104104
/**
105-
* @expectedException \Eventviva\ImageResizeException
105+
* @expectedException \Gumlet\ImageResizeException
106106
* @expectedExceptionMessage Unsupported image type
107107
*/
108108
public function testLoadUnsupportedImage()
@@ -117,7 +117,7 @@ public function testLoadUnsupportedImage()
117117
}
118118

119119
/**
120-
* @expectedException \Eventviva\ImageResizeException
120+
* @expectedException \Gumlet\ImageResizeException
121121
* @expectedExceptionMessage Unsupported image type
122122
*/
123123
public function testInvalidString()
@@ -284,7 +284,7 @@ public function testCropPosition()
284284

285285
$resize->crop(50, 50, false, $resize::CROPRIGHT);
286286

287-
$reflection_class = new ReflectionClass('\Eventviva\ImageResize');
287+
$reflection_class = new ReflectionClass('\Gumlet\ImageResize');
288288
$source_x = $reflection_class->getProperty('source_x');
289289
$source_x->setAccessible(true);
290290

@@ -478,15 +478,15 @@ public function testExceptionEmpty()
478478
$e = new ImageResizeException();
479479

480480
$this->assertEquals("", $e->getMessage());
481-
$this->assertInstanceOf('\Eventviva\ImageResizeException', $e);
481+
$this->assertInstanceOf('\Gumlet\ImageResizeException', $e);
482482
}
483483

484484
public function testExceptionMessage()
485485
{
486486
$e = new ImageResizeException("General error");
487487

488488
$this->assertEquals("General error", $e->getMessage());
489-
$this->assertInstanceOf('\Eventviva\ImageResizeException', $e);
489+
$this->assertInstanceOf('\Gumlet\ImageResizeException', $e);
490490
}
491491

492492
public function testExceptionExtending()
@@ -502,7 +502,7 @@ public function testExceptionThrown()
502502
throw new ImageResizeException("General error");
503503
} catch (\Exception $e) {
504504
$this->assertEquals("General error", $e->getMessage());
505-
$this->assertInstanceOf('\Eventviva\ImageResizeException', $e);
505+
$this->assertInstanceOf('\Gumlet\ImageResizeException', $e);
506506
return;
507507
}
508508
$this->fail();

0 commit comments

Comments
 (0)