Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderdekroon committed Aug 18, 2022
2 parents f0e97b5 + b292f81 commit 6c1f699
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.4] - 2022-08-18
### Changed
* Fix updater using release assets
* Fix unaccessible callback method

## [2.0.3] - 2022-08-18
### Changed
* Replaced node-sass with (dart-)sass
Expand Down
2 changes: 1 addition & 1 deletion config/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
return [
'plugin.name' => 'Open Government Publications',
'plugin.slug' => 'open-government-publications',
'plugin.version' => '2.0.3',
'plugin.version' => '2.0.4',
'plugin.file' => dirname(__DIR__) . '/open-government-publications.php',
'plugin.path' => dirname(__DIR__),
'plugin.url' => plugins_url(basename(dirname(__DIR__))),
Expand Down
2 changes: 1 addition & 1 deletion open-government-publications.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Plugin Name: Open Government Publications
* Description: Import and publish Government Publications through the REST API.
* Version: 2.0.3
* Version: 2.0.4
* Author: Súdwest-Fryslân
* Author URI: https://sudwestfryslan.nl/
* Requires at least: 5.1
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: sudwestfryslan, officielebekendmakingen, government publications, owc
Requires at least: 5.1
Tested up to: 6.1
Requires PHP: 7.4
Stable tag: 2.0.3
Stable tag: 2.0.4

Import and publish Government Publications through the REST API.

Expand All @@ -24,6 +24,9 @@ Download this plugin through Github and upload it to the webserver.

== Changelog ==

= 2.0.4 - 18-08-2022 =
* Fix updater using release assets
* Fix unaccessible callback method

= 2.0.3 - 18-08-2022 =
* Replaced node-sass with (dart-)sass
Expand Down
6 changes: 4 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function registerServiceProviders(): void
$this->container->get(Providers\MetaboxProvider::class)->register();
}

protected function activation(): void
public function activation(): void
{
$this->container->get(Services\EventService::class)->schedule();
$this->container->get(Init::class)->importOrganizations();
Expand All @@ -75,11 +75,13 @@ protected function loadTextDomain(): void
protected function checkForUpdate(): void
{
try {
Puc_v4_Factory::buildUpdateChecker(
$updater = Puc_v4_Factory::buildUpdateChecker(
'https://github.com/OpenWebconcept/open-government-publications/',
$this->container->get('plugin.file'),
'open-government-publications'
);

$updater->getVcsApi()->enableReleaseAssets();
} catch (Throwable $e) {
error_log($e->getMessage());
}
Expand Down

0 comments on commit 6c1f699

Please sign in to comment.