Skip to content

Commit

Permalink
fixed adding Under development tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jun 6, 2015
1 parent 3091450 commit 75326d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .hidev/commits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ hiqdev/hidev commits history

## 0.0.6 Under development

- GREAT RENAMING OF CLASSES
- 3091450 2015-06-06 GREAT RENAMING OF CLASSES (sol@hiqdev.com)
- cool CHANGELOG.md generation
- b7f0f9f 2015-06-05 improved skip minor (sol@hiqdev.com)
- 3475a27 2015-06-05 rendering commits fixed (sol@hiqdev.com)
Expand Down
3 changes: 2 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ ROADMAP
-------

Nearest - 0.1.0 release:
- great renaming of classes
- plugin architecture
- php-cs-fixer plugin
- phpunit plugin
Expand All @@ -13,6 +12,8 @@ Nearest - 0.1.0 release:
- travis
- scrutinizer

Refactoring:
- Redo CommitsHandler to History component
- rewrite without yii?

GENERAL:
Expand Down
2 changes: 1 addition & 1 deletion handlers/ChangelogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
class ChangelogHandler extends BaseHandler
{
public function parse($text)
public function parsePath($text)
{
return ['history' => $this->goal->config->commits->history];
}
Expand Down
6 changes: 4 additions & 2 deletions handlers/CommitsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ public function hasCommit($hash)

public function parsePath($path)
{
$this->_history = [];
$this->tag = static::getVcs()->lastTag;
$this->_history = [
$this->tag => []
];
$lines = is_file($path) ? $this->readArray($path) : [];
foreach ($lines as $str) {
$str = rtrim($str);
Expand Down Expand Up @@ -145,7 +147,7 @@ public function render($data)
{
$res = static::renderHeader('commits history');

foreach ($this->goal->vcs->commits as $hash => $commit) {
foreach (static::getVcs()->commits as $hash => $commit) {
if ($this->hasCommit($hash)) {
continue;
}
Expand Down

0 comments on commit 75326d1

Please sign in to comment.