Skip to content

Commit 4b5666b

Browse files
committed
Version 1.0.3
1 parent d04b129 commit 4b5666b

File tree

3 files changed

+3
-65
lines changed

3 files changed

+3
-65
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.3-dev
1+
1.0.3

src/class-dependency-manager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ public function load_resource_string($str)
136136

137137
public function get_git($grp, $nam, $ver, $typ = 'phar', $url = '')
138138
{
139-
if ($this->dynmaicVersioning())
140-
$ver = $this->resolveGitVersion($grp, $name, $ver, $url);
139+
if ($this->dynmaicVersioning()) $ver = $this->resolveGitVersion($grp, $nam, $ver, $url);
141140
$resourceFile = $this->local_file_name($grp, $nam, $ver, $typ);
142141
if ($url == null) $url = "https://github.com/$grp/$nam/releases/download/$ver/$nam.$typ";
143142
if (!file_exists($resourceFile)) $this->fetch_dependency($url, $resourceFile);
@@ -275,7 +274,7 @@ public function gitVersionList($owner, $repo)
275274
$ch = curl_init();
276275
curl_setopt($ch, CURLOPT_URL, $releaseUrl);
277276
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
278-
if (self::$gitAuth != null) curl_setopt($ch, CURLOPT_USERPWD, self::$gitAuth);
277+
if ($this->gitAuth != null) curl_setopt($ch, CURLOPT_USERPWD, $this->gitAuth);
279278
curl_setopt($ch, CURLOPT_USERAGENT, "bhoogter");
280279
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
281280
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

tests/git-versioning-test.phpx

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)