Skip to content

Commit

Permalink
Release version 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
netcarver committed Dec 2, 2017
1 parent bab339f commit 35e2a3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# **Changelog** - [Keep a Changelog]

## [0.10.2]
- Do not display entire Changelog for modules when installing on a site for the first time. Limit height and add the
show more button.
- Improve messages regarding missing, or feature-poor, repository adaptors.

## [0.10.1] - 2017-11-27
- Fix warning message. Thanks @matjazp.

Expand Down Expand Up @@ -167,6 +172,7 @@
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
[Upcoming]: https://github.com/netcarver/ModuleReleaseNotes/compare/0.10.1...HEAD
[0.10.2]: https://github.com/netcarver/ModuleReleaseNotes/compare/0.10.1...0.10.2
[0.10.1]: https://github.com/netcarver/ModuleReleaseNotes/compare/0.10.0...0.10.1
[0.10.0]: https://github.com/netcarver/ModuleReleaseNotes/compare/0.9.2...0.10.0
[0.9.2]: https://github.com/netcarver/ModuleReleaseNotes/compare/0.9.1...0.9.2
Expand Down
8 changes: 5 additions & 3 deletions ModuleReleaseNotes.module
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ModuleReleaseNotes extends Process implements ConfigurableModule {
return [
'title' => __('Module Release Notes'),
'summary' => __("Discovers and shows what has changed with each module version."),
'version' => '0.10.1',
'version' => '0.10.2',
'author' => 'S Dickinson (netcarver)',
'autoload' => 'template=admin',
'singular' => true,
Expand Down Expand Up @@ -689,7 +689,7 @@ class ModuleReleaseNotes extends Process implements ConfigurableModule {

// Slice off, and preserve the first "h2.was-h1" or "# h1 title" element.
$heading_regex = @self::$cut_regexes[$type]['heading'];
if (!empty($heading_regex)) {
if (!empty($heading_regex) && '0.0.0' !== $version) {
$heading_regex = "~$heading_regex~imU";
$parts = preg_split($heading_regex, $changelog, 3, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
if (count($parts) > 1) {
Expand All @@ -699,8 +699,10 @@ class ModuleReleaseNotes extends Process implements ConfigurableModule {
}
}

\TD::barDump("Current Version [$version] -> Latest Version [$latest_version]");

$version_master_regex = @self::$cut_regexes[$type]['version'];
if (!empty($version_master_regex)) {
if (!empty($version_master_regex) && '0.0.0' !== $version) {
// Insert a marker for latest version (if given).
if (is_string($latest_version) && !empty($latest_version)) {
$version_regex = sprintf($version_master_regex, preg_quote(trim($latest_version, ',.')));
Expand Down

0 comments on commit 35e2a3b

Please sign in to comment.