Skip to content

Commit

Permalink
Merge develop: Added version config
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnylot committed Dec 10, 2019
2 parents 82fcd27 + 21dfa69 commit b7a6c63
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .bump-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
'master_branch' => 'master',
'develop_branch' => 'develop',
'version_file' => __DIR__ . '/VERSION',
// 'define_version_file' => __DIR__ . '/app/version.php', // you can add a 'PHP accessible' define with the current version
// 'define_version_name' => 'APP_VERSION', // the define name
// 'changelog_file' => __DIR__ . '/CHANGELOG', // A basic CHANGELOG
'release_branches' => ['hotfix' => 'hotfix-*', 'release' => 'release-*'], // The branches you should release on
'define_version_file' => __DIR__ . '/src/version.php', // you can add a 'PHP accessible' define with the current version
'define_version_name' => 'CRUD_SUGAR_VERSION', // the define name
'changelog_file' => __DIR__ . '/CHANGELOG', // A basic CHANGELOG
'release_branches' => ['hotfix' => 'hotfix-*', 'release' => 'release-*', 'develop' => 'develop'], // The branches you should release on
];
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1: Added version config
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1
4 changes: 3 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
use Illuminate\Translation\Translator;
use Illuminate\Validation\Factory;

require_once('version.php');

class Client {

use HasStaticInstances;
Expand Down Expand Up @@ -154,7 +156,7 @@ public function setAuthHeaders(array $headers) {
}

public function getUserAgent(): string {
return 'crud-sugar-sdk/1.0.0';
return 'crud-sugar-sdk/'.CRUD_SUGAR_VERSION;
}

public function generateResponseFromRequestException(RequestException $e) {
Expand Down
5 changes: 5 additions & 0 deletions src/version.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
// GENERATED by bump_version
// DO NOT EDIT
define('CRUD_SUGAR_VERSION', '1.1.1');

0 comments on commit b7a6c63

Please sign in to comment.