Skip to content

Commit a1e2e6e

Browse files
committed
remove Enum from enum names, version bump
we're now 0.9.0 as we get near 1.0
1 parent ef0d885 commit a1e2e6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+245
-180
lines changed

API-0.1.2 renamed to API-0.9.0

File renamed without changes.

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Changelog
22
All notable changes to `:vips` will be documented in this file.
33

4+
## 0.9.0 - 2016-10-22
5+
6+
### Added
7+
- logging with PSR-3 Logger Interface [Kleis Auke Wolthuizen]
8+
- switch to PSR2 formatting [Kleis Auke Wolthuizen]
9+
10+
### Deprecated
11+
- removed `\Enum` from enum names
12+
13+
### Fixed
14+
- Nothing
15+
16+
### Remove
17+
- Nothing
18+
19+
### Security
20+
- Nothing
21+
422
## 0.1.2 - 2016-10-02
523

624
### Added
File renamed without changes.

composer.lock

+98-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/generate_phpdoc.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def generate_class(file, gtype)
244244
* @author John Cupitt <jcupitt@gmail.com>
245245
* @copyright 2016 John Cupitt
246246
* @license https://opensource.org/licenses/MIT MIT
247-
* @version Release:0.1.2
247+
* @version Release:0.9.0
248248
* @link https://github.com/jcupitt/php-vips
249249
EOF
250250

@@ -257,7 +257,7 @@ def generate_class(file, gtype)
257257
file << "\n"
258258

259259
$enums.each do |name|
260-
file << "use Jcupitt\\Vips\\Enum\\#{name};\n"
260+
file << "use Jcupitt\\Vips\\#{name};\n"
261261
end
262262

263263
file << "\n"
@@ -296,14 +296,13 @@ def generate_class(file, gtype)
296296
end
297297

298298
# generate all the enums
299-
Dir.mkdir "Enum" if not File.exists? "Enum"
300299
$enums.each do |name|
301300
const = Vips.const_get name
302-
puts "Generating Enum/#{name}.php ..."
303-
File.open("Enum/#{name}.php", "w") do |file|
301+
puts "Generating #{name}.php ..."
302+
File.open("#{name}.php", "w") do |file|
304303
file << preamble
305304
file << "\n"
306-
file << "namespace Jcupitt\\Vips\\Enum;\n"
305+
file << "namespace Jcupitt\\Vips;\n"
307306
file << "\n"
308307
file << "/**\n"
309308
file << " * The #{name} enum.\n"

examples/vips_bench.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
use Jcupitt\Vips;
77

8-
$im = Vips\Image::newFromFile($argv[1], ["access" => Vips\Enum\Access::SEQUENTIAL]);
8+
$im = Vips\Image::newFromFile($argv[1], ["access" => Vips\Access::SEQUENTIAL]);
99

1010
$im = $im->crop(100, 100, $im->width - 200, $im->height - 200);
1111

12-
$im = $im->reduce(1.0 / 0.9, 1.0 / 0.9, ["kernel" => Vips\Enum\Kernel::LINEAR]);
12+
$im = $im->reduce(1.0 / 0.9, 1.0 / 0.9, ["kernel" => Vips\Kernel::LINEAR]);
1313

1414
$mask = Vips\Image::newFromArray([
1515
[-1, -1, -1],
@@ -18,4 +18,4 @@
1818
], 8);
1919
$im = $im->conv($mask);
2020

21-
$im->writeToFile($argv[2]);
21+
$im->writeToFile($argv[2]);

src/Enum/Access.php renamed to src/Access.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The Access enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class Access

src/Enum/Align.php renamed to src/Align.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The Align enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class Align

src/Enum/Angle.php renamed to src/Angle.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The Angle enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class Angle

src/Enum/Angle45.php renamed to src/Angle45.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The Angle45 enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class Angle45

src/Enum/BandFormat.php renamed to src/BandFormat.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The BandFormat enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class BandFormat

src/Enum/Coding.php renamed to src/Coding.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The Coding enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class Coding

src/Enum/Combine.php renamed to src/Combine.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The Combine enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class Combine

src/Enum/CombineMode.php renamed to src/CombineMode.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @link https://github.com/jcupitt/php-vips
3838
*/
3939

40-
namespace Jcupitt\Vips\Enum;
40+
namespace Jcupitt\Vips;
4141

4242
/**
4343
* The CombineMode enum.
@@ -46,7 +46,7 @@
4646
* @author John Cupitt <jcupitt@gmail.com>
4747
* @copyright 2016 John Cupitt
4848
* @license https://opensource.org/licenses/MIT MIT
49-
* @version Release:0.1.2
49+
* @version Release:0.9.0
5050
* @link https://github.com/jcupitt/php-vips
5151
*/
5252
abstract class CombineMode

0 commit comments

Comments
 (0)