Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release-0.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolsen committed Oct 2, 2013
2 parents 5afedb2 + 4307213 commit 13b912e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.

PL-v0.3.4
- FIX: Generator class renamed because it's a reserved name in PHP 5.5
- THX: thanks to @faustgertz for the heads up

PL-v0.3.3
- FIX: links created with {{ link.pattern }} now have the correct path
- FIX: links within a pattern now properly update the history
Expand Down
8 changes: 4 additions & 4 deletions builder/builder.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Builder CLI - v0.3.3
* Pattern Lab Builder CLI - v0.3.4
*
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand Down Expand Up @@ -36,7 +36,7 @@
// initiate the g (generate) switch

// iterate over the source directory and generate the site
$g = new Generator();
$g = new Generatr();
$g->generate();
print "your site has been generated...\n";

Expand All @@ -45,12 +45,12 @@
// initiate the w (watch) switch

// iterate over the source directory and generate the site
$g = new Generator();
$g = new Generatr();
$g->generate();
print "your site has been generated...\n";

// watch the source directory and regenerate any changed files
$w = new Watcher();
$w = new Watchr();
print "watching your site for changes...\n";
$w->watch();

Expand Down
8 changes: 4 additions & 4 deletions builder/lib/builder.lib.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Builder Class - v0.3.3
* Pattern Lab Builder Class - v0.3.4
*
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand All @@ -10,7 +10,7 @@
*
*/

class Builder {
class Buildr {

// i was lazy when i started this project & kept (mainly) to two letter vars. sorry.
protected $mpl; // mustache pattern loader instance
Expand Down Expand Up @@ -51,7 +51,7 @@ public function __construct() {
// if the variables are array-like make sure the properties are validated/trimmed/lowercased before saving
if (($key == "ie") || ($key == "id")) {
$values = explode(",",$value);
array_walk($values,'Builder::trim');
array_walk($values,'Buildr::trim');
$this->$key = $values;
} else {
$this->$key = $value;
Expand Down Expand Up @@ -127,7 +127,7 @@ protected function generateMainPages() {
$sd = $this->gatherPartials();

// sort partials by patternLink
usort($sd['partials'], "Builder::sortPartials");
usort($sd['partials'], "Buildr::sortPartials");

// render the "view all" pages
$this->generateViewAllPages();
Expand Down
4 changes: 2 additions & 2 deletions builder/lib/generator.lib.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Generator Class - v0.3.3
* Pattern Lab Generator Class - v0.3.4
*
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand All @@ -11,7 +11,7 @@
*
*/

class Generator extends Builder {
class Generatr extends Buildr {

/**
* Use the Builder __construct to gather the config variables
Expand Down
4 changes: 2 additions & 2 deletions builder/lib/watcher.lib.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Watcher Class - v0.3.3
* Pattern Lab Watcher Class - v0.3.4
*
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand All @@ -14,7 +14,7 @@
*
*/

class Watcher extends Builder {
class Watchr extends Buildr {

/**
* Use the Builder __construct to gather the config variables
Expand Down

0 comments on commit 13b912e

Please sign in to comment.