Skip to content

Commit

Permalink
1.1.0 release (#45)
Browse files Browse the repository at this point in the history
* Update RELEASE-NOTES.md
** Provides information about the 1.1.0 release
* Update README.md
** Update for the 1.1.0 release
* Update composer.json
** Since we are not absolutely sure if breaking changes will appear in SMW 3.0
* Update SemanticScribunto.php
** Bumps version
** Tweaks sysop notifications
  • Loading branch information
kghbln authored Jan 13, 2018
1 parent 5407a55 commit 723cb7d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ Semantic Scribunto (a.k.a. SSC) is a [Semantic Mediawiki][smw] extension to prov

## Installation

The recommended way to install Semantic Scribunto is by using [Composer][composer] with:
The recommended way to install Semantic Scribunto is by using [Composer][composer] with an entry in MediaWiki's "composer.json" or preferably "composer.local.json" file:

```json
{
"require": {
"mediawiki/semantic-scribunto": "~1.0"
"mediawiki/semantic-scribunto": "~1.1"
}
}
```
1. From your MediaWiki installation directory, execute
`composer require mediawiki/semantic-scribunto:~1.0`
`composer require mediawiki/semantic-scribunto:~1.1`
2. Navigate to _Special:Version_ on your wiki and verify that the package
have been successfully installed.

Expand Down
18 changes: 14 additions & 4 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
This file contains the RELEASE-NOTES of the Semantic Scribunto (a.k.a. SSC) extension.

### 1.1.0

Released on January 13, 2018.

* Minimum requirement for MediaWiki changed to version 1.27 and later
* Minimum requirement for Semantic MediaWiki changed to version 2.4 and later
* #43 Fixes issue with `mw.smw.ask` returning always "false" on printouts for category membership (by Tobias Oetterer)
* Adds `Query::PROC_CONTEXT` (by James Hong Kong)
* Localization updates from https://translatewiki.net

### 1.0.0

Released on January 23, 2017.

* Initial release
* Added the `mw.smw.lua` library with support for:
* `smw.ask` to execute `#ask` queries (Tobias Oetterer)
* `smw.ask` to execute `#ask` queries (by Tobias Oetterer)
* `smw.getQueryResult` to execute `#ask` queries
* `smw.getPropertyType` to get the type of a property
* `smw.info` to output tooltips equivalent to `#info` (Tobias Oetterer)
* `smw.set` to store data to the SMW store equivalent to `#set` (Tobias Oetterer)
* `smw.subobject` to store data to the SMW store equivalent to `#subobject` (Tobias Oetterer)
* `smw.info` to output tooltips equivalent to `#info` (by Tobias Oetterer)
* `smw.set` to store data to the SMW store equivalent to `#set` (by Tobias Oetterer)
* `smw.subobject` to store data to the SMW store equivalent to `#subobject` (by Tobias Oetterer)
10 changes: 5 additions & 5 deletions SemanticScribunto.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @defgroup SemanticScribunto Semantic Scribunto
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is part of the Semantic Scribunto extension, it is not a valid entry point.' );
die( 'This file is part of the Semantic Scribunto extension. It is not a valid entry point.' );
}

if ( defined( 'SMW_SCRIBUNTO_VERSION' ) ) {
Expand Down Expand Up @@ -50,7 +50,7 @@ public static function load() {
*/
public static function initExtension() {

define( 'SMW_SCRIBUNTO_VERSION', '1.1.0-alpha' );
define( 'SMW_SCRIBUNTO_VERSION', '1.1.0' );

// Register extension info
$GLOBALS['wgExtensionCredits']['semantic'][] = [
Expand All @@ -63,7 +63,7 @@ public static function initExtension() {
'url' => 'https://github.com/SemanticMediaWiki/SemanticScribunto/',
'descriptionmsg' => 'smw-scribunto-desc',
'version' => SMW_SCRIBUNTO_VERSION,
'license-name' => 'GPL-2.0-or-later',
'license-name' => 'GPL-2.0-or-later'
];

// Register message files
Expand All @@ -81,11 +81,11 @@ public static function doCheckRequirements() {

// Using the constant as indicator to avoid class_exists
if ( !defined( 'CONTENT_MODEL_SCRIBUNTO' ) ) {
die( '<b>Error:</b> <a href="https://github.com/SemanticMediaWiki/SemanticScribunto/">Semantic Scribunto</a> requires <a href="https://www.mediawiki.org/wiki/Extension:Scribunto">Scribunto</a>, please enable or install the extension first.' );
die( '<b>Error:</b> <a href="https://github.com/SemanticMediaWiki/SemanticScribunto/">Semantic Scribunto</a> requires <a href="https://www.mediawiki.org/wiki/Extension:Scribunto">Scribunto</a>. Please enable or install the extension first.' );
}

if ( !defined( 'SMW_VERSION' ) ) {
die( '<b>Error:</b> <a href="https://github.com/SemanticMediaWiki/SemanticScribunto/">Semantic Scribunto</a> requires <a href="https://github.com/SemanticMediaWiki/SemanticMediaWiki/">Semantic MediaWiki</a>, please enable or install the extension first.' );
die( '<b>Error:</b> <a href="https://github.com/SemanticMediaWiki/SemanticScribunto/">Semantic Scribunto</a> requires <a href="https://github.com/SemanticMediaWiki/SemanticMediaWiki/">Semantic MediaWiki</a>. Please enable or install the extension first.' );
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"require": {
"php": ">=5.5",
"composer/installers": "1.*,>=1.0.1",
"mediawiki/semantic-media-wiki": "~2.4|~3.0"
"mediawiki/semantic-media-wiki": "~2.4"
},
"require-dev": {
"mediawiki/semantic-media-wiki": "@dev",
Expand Down

0 comments on commit 723cb7d

Please sign in to comment.