Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed May 21, 2021
2 parents a16e85d + 1ac34f6 commit 7504e5e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[unreleased]
* update readme

#### 1.0.1 / 2021-05-21
* add language pack updating

#### 1.0.0 / 2021-05-11
* update logo branding
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
* Donate link: <https://thefragens.com/git-updater-donate>
* License: MIT

This plugin allows GitHub Gist functionality for the [GitHub Updater/Git Updater](https://github.com/afragen/git-updater) plugin.
This plugin allows GitHub Gist functionality for the [Git Updater](https://github.com/afragen/git-updater) plugin.

## Description

As of Git Updater v10 or greater most of the git host API classes have been extracted to their own individual plugins. This is one such plugin. The goal was to streamline the base Git Updater plugin and only add git hosts as needed.

[Comprehensive information regarding Git Updater is available on the wiki.](https://github.com/afragen/git-updater/wiki)
[Comprehensive information regarding Git Updater is available in the Knowledge Base.](https://git-updater.com/knowledge-base)

### Headers

Expand Down
3 changes: 2 additions & 1 deletion git-updater-gist.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
* Plugin Name: Git Updater - Gist
* Plugin URI: https://github.com/afragen/git-updater-gist
* Description: Add GitHub Gist hosted repositories to the Git Updater plugin.
* Version: 1.0.0
* Version: 1.0.1
* Author: Andy Fragen
* License: MIT
* Network: true
* Domain Path: /languages
* Text Domain: git-updater-gist
* GitHub Plugin URI: https://github.com/afragen/git-updater-gist
* GitHub Languages: https://github.com/afragen/git-updater-gist-translations
* Primary Branch: main
* Requires at least: 5.2
* Requires PHP: 7.0
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* Donate link: <https://thefragens.com/git-updater-donate>
* License: MIT

This plugin allows GitLab functionality for the [GitHub Updater/Git Updater](https://github.com/afragen/git-updater) plugin.
This plugin allows GitLab functionality for the [Git Updater](https://github.com/afragen/git-updater) plugin.

## Description

As of Git Updater v10 or greater most of the git host API classes have been extracted to their own individual plugins. This is one such plugin. The goal was to streamline the base Git Updater plugin and only add git hosts as needed.

[Comprehensive information regarding Git Updater is available on the wiki.](https://github.com/afragen/git-updater/wiki)
[Comprehensive information regarding Git Updater is available in the Knowledge Base.](https://git-updater.com/knowledge-base)

### Headers

Expand Down
5 changes: 3 additions & 2 deletions src/Gist/Gist_API.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function get_remote_branches() {
public function get_release_asset() {
// phpcs:ignore
// return $this->get_api_release_asset( 'gist', '/repos/:owner/:repo/releases/latest' );
return [];
}

/**
Expand All @@ -121,7 +122,7 @@ public function get_release_asset() {
* @return string $endpoint
*/
public function construct_download_link( $branch_switch = false ) {
if ( ! isset( $this->response['meta'] ) ) {
if ( ! isset( $this->response['meta'] ) || ! is_array( $this->response['meta'] ) ) {
return;
}

Expand Down Expand Up @@ -325,7 +326,7 @@ public function add_repo_setting_field() {
* Print the GitHub text.
*/
public function print_section_gist_info() {
esc_html_e( 'Enter your GitHub Access Token. Leave empty for public repositories.', 'git-updater-gist' );
esc_html_e( 'Enter your GitHub Access Token. Leave empty for public repositories.', 'git-updater-gist' );
}

/**
Expand Down

0 comments on commit 7504e5e

Please sign in to comment.