Skip to content

Commit 41c305f

Browse files
author
Daniel Kinzler
committed
Merge pull request #22 from DataValues/030
Prepare 0.3.0 release
2 parents 032e015 + 4c4ac56 commit 41c305f

File tree

7 files changed

+13
-32
lines changed

7 files changed

+13
-32
lines changed

Common.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@
1010
* @author Jeroen De Dauw < [email protected] >
1111
*/
1212

13-
if ( defined( 'DataValuesCommon_VERSION' ) ) {
13+
if ( defined( 'DATAVALUES_COMMON_VERSION' ) ) {
1414
// Do not initialize more than once.
1515
return 1;
1616
}
1717

18-
define( 'DATAVALUES_COMMON_VERSION', '0.3.0 alpha' );
19-
20-
/**
21-
* @deprecated
22-
*/
23-
define( 'DataValuesCommon_VERSION', DATAVALUES_COMMON_VERSION );
18+
define( 'DATAVALUES_COMMON_VERSION', '0.3.0' );
2419

2520
if ( defined( 'MEDIAWIKI' ) ) {
2621
$GLOBALS['wgExtensionCredits']['datavalues'][] = array(

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ The recommended way to use this library is via [Composer](http://getcomposer.org
2222
To add this package as a local, per-project dependency to your project, simply add a
2323
dependency on `data-values/common` to your project's `composer.json` file.
2424
Here is a minimal example of a `composer.json` file that just defines a dependency on
25-
version 1.0 of this package:
25+
version 0.3 of this package:
2626

2727
{
2828
"require": {
29-
"data-values/common": "1.0.*"
29+
"data-values/common": "0.3.*"
3030
}
3131
}
3232

@@ -49,11 +49,15 @@ DataValues Common has been written by the Wikidata team, as [Wikimedia Germany]
4949

5050
## Release notes
5151

52-
### 1.0.0 (alpha)
52+
### 0.3.0 (2015-08-11)
5353

5454
* Added `DispatchingValueParser`
55+
* Dropped deprecated constant `DataValuesCommon_VERSION`, use `DATAVALUES_COMMON_VERSION` instead
5556
* Dropped `ValueParserTestBase::getParserClass`
57+
* Dropped `ValueParserTestBase::newParserOptions`
5658
* Made `ValueParserTestBase::getInstance` abstract
59+
* Made `ValueParserTestBase::invalidInputProvider` abstract
60+
* Lowered visibility of all class fields to private
5761

5862
### 0.2.3 (2014-10-09)
5963

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"php": ">=5.3.0",
2727
"data-values/data-values": "~1.0|~0.1",
28-
"data-values/interfaces": "~0.1.4"
28+
"data-values/interfaces": "~0.2.0"
2929
},
3030
"extra": {
3131
"branch-alias": {

src/ValueParsers/DispatchingValueParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* A generic value parser that forwards parsing to a list of other value parsers and returns the
99
* result of the first parse attempt that succeeded.
1010
*
11-
* @since 1.0
11+
* @since 0.3
1212
*
1313
* @licence GNU GPL v2+
1414
* @author Thiemo Mättig

src/ValueParsers/StringValueParser.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ public function parse( $value ) {
6161
protected abstract function stringParse( $value );
6262

6363
/**
64-
* @see ValueParser::setOptions
65-
*
6664
* @since 0.1
6765
*
6866
* @param ParserOptions $options
@@ -72,8 +70,6 @@ public function setOptions( ParserOptions $options ) {
7270
}
7371

7472
/**
75-
* @see ValueParser::getOptions
76-
*
7773
* @since 0.1
7874
*
7975
* @return ParserOptions
@@ -99,6 +95,8 @@ protected final function getOption( $option ) {
9995
/**
10096
* Shortcut to $this->options->requireOption.
10197
*
98+
* @since 0.1
99+
*
102100
* @param string $option
103101
*
104102
* @throws RuntimeException

tests/ValueFormatters/StringFormatterTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
*/
1818
class StringFormatterTest extends ValueFormatterTestBase {
1919

20-
/**
21-
* @deprecated since 0.2, just use getInstance.
22-
*/
23-
protected function getFormatterClass() {
24-
throw new \LogicException( 'Should not be called, use getInstance' );
25-
}
26-
2720
/**
2821
* @see ValueFormatterTestBase::getInstance
2922
*

tests/ValueParsers/ValueParserTestBase.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,4 @@ protected function requireDataValue() {
106106
return true;
107107
}
108108

109-
/**
110-
* @deprecated since 0.3, just use a new ParserOptions() object or null.
111-
*
112-
* @return ParserOptions
113-
*/
114-
protected function newParserOptions() {
115-
return new ParserOptions();
116-
}
117-
118109
}

0 commit comments

Comments
 (0)