Skip to content

Commit 52c97e5

Browse files
committed
Merge branch 'develop'
2 parents 8f48275 + c4bc449 commit 52c97e5

39 files changed

+417
-339
lines changed

.travis.yml

+19-5
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,40 @@ php:
1212
- 7.0
1313
- 7.1
1414
- 7.2
15+
- 7.3
1516

1617
env:
1718
- WP_VERSION=latest WP_MULTISITE=0
1819
- WP_VERSION=latest WP_MULTISITE=1
20+
- WP_VERSION=nightly
21+
22+
cache:
23+
apt: true
24+
directories:
25+
- node_modules
26+
- vendor
27+
- $HOME/.composer/cache
28+
29+
matrix:
30+
fast_finish: true
31+
allow_failures:
32+
- php 7.3
1933

2034
before_script:
2135
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
22-
- export PATH="$HOME/.config/composer/vendor:$PATH"
23-
- phpunit --version
36+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
2437
- |
2538
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
2639
composer global require "phpunit/phpunit:^6"
2740
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
2841
composer global require "phpunit/phpunit:^4"
2942
fi
30-
- $HOME/.config/composer/vendor/phpunit/phpunit/phpunit --version
43+
- $HOME/.composer/vendor/bin/phpunit --version
44+
- phpunit --version
3145

3246
script:
33-
- phpenv config-rm xdebug.ini
34-
- $HOME/.config/composer/vendor/phpunit/phpunit/phpunit
47+
- phpenv config-rm xdebug.ini || echo "xdebug.ini does not exist"
48+
- phpunit
3549

3650
before_deploy:
3751
- git archive -o /tmp/github-updater-${TRAVIS_TAG}.zip --prefix=github-updater/ ${TRAVIS_COMMIT}

CHANGES.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#### [unreleased]
22

3+
#### 8.6.1 / 2019-01-11
4+
* remove `tmp-readme.txt` after parsing, fixes [#754](https://github.com/afragen/github-updater/issues/754)
5+
* directly call `wp_cron()` after refreshing cache
6+
* update POT via `composer.json` and wp-cli
7+
* moved `get_file_headers()` to `trait GHU_Trait`
8+
* cleanup extra header key/value pairs
9+
* add endpoint to Bitbucket to get more than default number of tags, branches, or release assets. Fixes [#752](https://github.com/afragen/github-updater/issues/752) thanks @idpaterson
10+
311
#### 8.6.0 / 2018-12-28 🎂
412
* add action hook `github_updater_post_rest_process_request` for @Raruto
513
* add filter hook `github_updater_set_rollback_package` for @sc0ttclark and @moderntribe

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Tags: plugin, theme, update, updater, github, bitbucket, gitlab, remote install
99
* Requires at least: 4.6
1010
* Requires PHP: 5.6
11-
* Tested up to: 5.0
11+
* Tested up to: 5.1
1212
* Stable tag: [master](https://github.com/afragen/github-updater/releases/latest)
1313
* Donate link: <https://thefragens.com/github-updater-donate>
1414
* License: GPLv2 or later

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@
3939
"psr-4": {
4040
"Fragen\\GitHub_Updater\\": "src/GitHub_Updater/"
4141
}
42+
},
43+
"scripts": {
44+
"post-update-cmd": [
45+
"wp i18n make-pot . languages/github-updater.pot"
46+
]
4247
}
4348
}

composer.lock

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

github-updater.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin Name: GitHub Updater
1313
* Plugin URI: https://github.com/afragen/github-updater
1414
* Description: A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs. It also allows for remote installation of plugins or themes into WordPress.
15-
* Version: 8.6.0
15+
* Version: 8.6.1
1616
* Author: Andy Fragen
1717
* License: GNU General Public License v2
1818
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -25,6 +25,8 @@
2525
* Requires PHP: 5.6
2626
*/
2727

28+
namespace Fragen\GitHub_Updater;
29+
2830
/*
2931
* Exit if called directly.
3032
* PHP version check and exit.
@@ -46,8 +48,6 @@
4648
return false;
4749
}
4850

49-
define( 'GITHUB_UPDATER_FILE', __FILE__ );
50-
define( 'GITHUB_UPDATER_DIR', __DIR__ );
51-
5251
// Setup plugin loading.
5352
require_once __DIR__ . '/src/GitHub_Updater/Bootstrap.php';
53+
( new Bootstrap( __FILE__ ) )->run();

languages/github-updater.pot

+40-39
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Copyright (C) 2018 Andy Fragen
1+
# Copyright (C) 2019 Andy Fragen
22
# This file is distributed under the same license as the GitHub Updater plugin.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: GitHub Updater 8.6.0\n"
5+
"Project-Id-Version: GitHub Updater 8.6.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/github-updater\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2018-12-27T23:59:31+00:00\n"
12+
"POT-Creation-Date: 2019-01-11T17:52:58+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.1.0\n"
1515
"X-Domain: github-updater\n"
@@ -33,12 +33,12 @@ msgstr ""
3333
msgid "Andy Fragen"
3434
msgstr ""
3535

36-
#: mu/ghu-loader.php:66
36+
#: mu/ghu-loader.php:65
3737
msgid "Activated as mu-plugin"
3838
msgstr ""
3939

4040
#. translators: 1: minimum PHP version required, 2: Upgrade PHP URL
41-
#: github-updater.php:40
41+
#: github-updater.php:42
4242
msgid "GitHub Updater cannot run on PHP versions older than %1$s. <a href=\"%2$s\">Learn about upgrading your PHP.</a>"
4343
msgstr ""
4444

@@ -157,65 +157,65 @@ msgstr ""
157157
msgid "Installed Plugins and Themes"
158158
msgstr ""
159159

160-
#: src/GitHub_Updater/Plugin.php:326
160+
#: src/GitHub_Updater/Plugin.php:322
161161
msgid "View details"
162162
msgstr ""
163163

164164
#. translators: %s: theme name
165-
#: src/GitHub_Updater/Theme.php:337
166-
#: src/GitHub_Updater/Theme.php:533
165+
#: src/GitHub_Updater/Theme.php:335
166+
#: src/GitHub_Updater/Theme.php:531
167167
msgid "There is a new version of %s available."
168168
msgstr ""
169169

170170
#. translators: %s: theme version
171-
#: src/GitHub_Updater/Theme.php:349
171+
#: src/GitHub_Updater/Theme.php:347
172172
msgid "View version %s details."
173173
msgstr ""
174174

175-
#: src/GitHub_Updater/Theme.php:353
175+
#: src/GitHub_Updater/Theme.php:351
176176
msgid "Automatic update is unavailable for this theme."
177177
msgstr ""
178178

179179
#. translators: 1: version number, 2: closing anchor tag, 3: update URL
180-
#: src/GitHub_Updater/Theme.php:358
181-
#: src/GitHub_Updater/Theme.php:543
180+
#: src/GitHub_Updater/Theme.php:356
181+
#: src/GitHub_Updater/Theme.php:541
182182
msgid "View version %1$s details%2$s or %3$supdate now%2$s."
183183
msgstr ""
184184

185185
#. translators: %s: theme name
186-
#: src/GitHub_Updater/Theme.php:363
187-
#: src/GitHub_Updater/Theme.php:548
186+
#: src/GitHub_Updater/Theme.php:361
187+
#: src/GitHub_Updater/Theme.php:546
188188
msgid "Update %s now"
189189
msgstr ""
190190

191191
#. translators: 1: branch name, 2: jQuery dropdown, 3: closing tag
192-
#: src/GitHub_Updater/Theme.php:585
193-
#: src/GitHub_Updater/Base.php:896
192+
#: src/GitHub_Updater/Theme.php:583
193+
#: src/GitHub_Updater/Base.php:895
194194
msgid "Current branch is `%1$s`, try %2$sanother version%3$s"
195195
msgstr ""
196196

197-
#: src/GitHub_Updater/Theme.php:593
197+
#: src/GitHub_Updater/Theme.php:591
198198
msgid "Choose a Version"
199199
msgstr ""
200200

201-
#: src/GitHub_Updater/Theme.php:611
202-
#: src/GitHub_Updater/Base.php:931
201+
#: src/GitHub_Updater/Theme.php:609
202+
#: src/GitHub_Updater/Base.php:930
203203
msgid "No previous tags to rollback to."
204204
msgstr ""
205205

206-
#: src/GitHub_Updater/Theme.php:615
206+
#: src/GitHub_Updater/Theme.php:613
207207
msgid "Install"
208208
msgstr ""
209209

210-
#: src/GitHub_Updater/Base.php:449
210+
#: src/GitHub_Updater/Base.php:448
211211
msgid "There may be a problem with WP-Cron. A GitHub Updater WP-Cron event is overdue."
212212
msgstr ""
213213

214-
#: src/GitHub_Updater/Base.php:907
214+
#: src/GitHub_Updater/Base.php:906
215215
msgid "Switch to branch "
216216
msgstr ""
217217

218-
#: src/GitHub_Updater/Base.php:923
218+
#: src/GitHub_Updater/Base.php:922
219219
msgid "Switch to release "
220220
msgstr ""
221221

@@ -228,57 +228,58 @@ msgstr ""
228228
msgid "Reset RESTful key"
229229
msgstr ""
230230

231-
#: src/GitHub_Updater/Remote_Management.php:231
232-
msgid "Please refer to README for complete list of attributes. RESTful endpoints begin at:"
231+
#. translators: %s: Link to wiki
232+
#: src/GitHub_Updater/Remote_Management.php:235
233+
msgid "Please refer to the <a href=\"%s\">wiki</a> for complete list of attributes. RESTful endpoints begin at:"
233234
msgstr ""
234235

235-
#: src/GitHub_Updater/Remote_Management.php:235
236+
#: src/GitHub_Updater/Remote_Management.php:243
236237
msgid "Use of Remote Management services may result increase some page load speeds only for `admin` level users in the dashboard."
237238
msgstr ""
238239

239-
#: src/GitHub_Updater/API/Bitbucket_API.php:326
240+
#: src/GitHub_Updater/API/Bitbucket_API.php:351
240241
msgid "Bitbucket Private Settings"
241242
msgstr ""
242243

243-
#: src/GitHub_Updater/API/Bitbucket_API.php:333
244-
#: src/GitHub_Updater/API/Bitbucket_API.php:421
244+
#: src/GitHub_Updater/API/Bitbucket_API.php:358
245+
#: src/GitHub_Updater/API/Bitbucket_API.php:446
245246
msgid "Bitbucket Username"
246247
msgstr ""
247248

248-
#: src/GitHub_Updater/API/Bitbucket_API.php:342
249-
#: src/GitHub_Updater/API/Bitbucket_API.php:429
249+
#: src/GitHub_Updater/API/Bitbucket_API.php:367
250+
#: src/GitHub_Updater/API/Bitbucket_API.php:454
250251
msgid "Bitbucket Password"
251252
msgstr ""
252253

253-
#: src/GitHub_Updater/API/Bitbucket_API.php:358
254+
#: src/GitHub_Updater/API/Bitbucket_API.php:383
254255
msgid "Bitbucket Private Repositories"
255256
msgstr ""
256257

257-
#: src/GitHub_Updater/API/Bitbucket_API.php:388
258+
#: src/GitHub_Updater/API/Bitbucket_API.php:413
258259
msgid "Bitbucket"
259260
msgstr ""
260261

261-
#: src/GitHub_Updater/API/Bitbucket_API.php:397
262+
#: src/GitHub_Updater/API/Bitbucket_API.php:422
262263
msgid "Check box if private repository. Leave unchecked for public repositories."
263264
msgstr ""
264265

265-
#: src/GitHub_Updater/API/Bitbucket_API.php:404
266+
#: src/GitHub_Updater/API/Bitbucket_API.php:429
266267
msgid "Enter your personal Bitbucket username and password."
267268
msgstr ""
268269

269-
#: src/GitHub_Updater/API/Bitbucket_API.php:438
270+
#: src/GitHub_Updater/API/Bitbucket_API.php:463
270271
msgid "Private Bitbucket Repository"
271272
msgstr ""
272273

273-
#: src/GitHub_Updater/API/Bitbucket_API.php:454
274+
#: src/GitHub_Updater/API/Bitbucket_API.php:479
274275
msgid "Check for private Bitbucket repositories."
275276
msgstr ""
276277

277-
#: src/GitHub_Updater/API/Bitbucket_API.php:469
278+
#: src/GitHub_Updater/API/Bitbucket_API.php:494
278279
msgid "Enter Bitbucket username."
279280
msgstr ""
280281

281-
#: src/GitHub_Updater/API/Bitbucket_API.php:484
282+
#: src/GitHub_Updater/API/Bitbucket_API.php:509
282283
msgid "Enter Bitbucket password."
283284
msgstr ""
284285

0 commit comments

Comments
 (0)