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

Commit 13b912e

Browse files
committed
Merge branch 'release-0.3.4'
2 parents 5afedb2 + 4307213 commit 13b912e

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
22

3+
PL-v0.3.4
4+
- FIX: Generator class renamed because it's a reserved name in PHP 5.5
5+
- THX: thanks to @faustgertz for the heads up
6+
37
PL-v0.3.3
48
- FIX: links created with {{ link.pattern }} now have the correct path
59
- FIX: links within a pattern now properly update the history

builder/builder.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Builder CLI - v0.3.3
4+
* Pattern Lab Builder CLI - v0.3.4
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license
@@ -36,7 +36,7 @@
3636
// initiate the g (generate) switch
3737

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

@@ -45,12 +45,12 @@
4545
// initiate the w (watch) switch
4646

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

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

builder/lib/builder.lib.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Builder Class - v0.3.3
4+
* Pattern Lab Builder Class - v0.3.4
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license
@@ -10,7 +10,7 @@
1010
*
1111
*/
1212

13-
class Builder {
13+
class Buildr {
1414

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

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

132132
// render the "view all" pages
133133
$this->generateViewAllPages();

builder/lib/generator.lib.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Generator Class - v0.3.3
4+
* Pattern Lab Generator Class - v0.3.4
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license
@@ -11,7 +11,7 @@
1111
*
1212
*/
1313

14-
class Generator extends Builder {
14+
class Generatr extends Buildr {
1515

1616
/**
1717
* Use the Builder __construct to gather the config variables

builder/lib/watcher.lib.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Watcher Class - v0.3.3
4+
* Pattern Lab Watcher Class - v0.3.4
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license
@@ -14,7 +14,7 @@
1414
*
1515
*/
1616

17-
class Watcher extends Builder {
17+
class Watchr extends Buildr {
1818

1919
/**
2020
* Use the Builder __construct to gather the config variables

0 commit comments

Comments
 (0)