Skip to content

Commit

Permalink
Merge branch 'release/1.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jun 14, 2023
2 parents e0a2111 + 6e8ea2c commit f73bec6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.7.1
## 06/14/2023

1. [](#improved)
* Removed platform-config [#81](https://github.com/getgrav/grav-plugin-devtools/pull/81)

# v1.7.0
## 02/15/2023

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: DevTools
slug: devtools
type: plugin
version: 1.7.0
version: 1.7.1
description: Plugin and Theme scaffolding utilities
icon: cogs
author:
Expand Down
7 changes: 6 additions & 1 deletion classes/DevToolsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,16 @@ protected function validate(string $type, $value)
{
switch ($type) {
case 'name':
// Check If name
// Check if name is empty
if ($value === null || trim($value) === '') {
throw new \RuntimeException('Name cannot be empty');
}

// Check if name starts with a numeric character
if (is_numeric($value[0])) {
throw new \RuntimeException('Name must start with an alphabetic character (A-Z, a-z)');
}

if (!$this->options['offline']) {
// Check for name collision with online gpm.
if (false !== $this->gpm->findPackage($value)) {
Expand Down
5 changes: 0 additions & 5 deletions components/plugin/blank/composer.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@
"Grav\\Plugin\\{{ component.name|camelize }}\\": "classes/"
},
"classmap": ["{{ component.name|hyphenize }}.php"]
},
"config": {
"platform": {
"php": "7.1.3"
}
}
}
5 changes: 0 additions & 5 deletions components/plugin/flex/composer.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@
"Grav\\Plugin\\{{ component.name|camelize }}\\": "classes/"
},
"classmap": ["{{ component.name|hyphenize }}.php"]
},
"config": {
"platform": {
"php": "7.1.3"
}
}
}

0 comments on commit f73bec6

Please sign in to comment.