Skip to content

Commit

Permalink
Update plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Jun 22, 2017
1 parent 411df51 commit 48aed34
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 26 deletions.
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
{
"type": "pre-macro",
"name": "pre/trailing-commas",
"license": "MIT",
"require": {
"pre/plugin": "^0.6"
"pre/plugin": "^0.7.3"
},
"autoload": {
"files": [
"src/bootstrap.php",
"src/parsers.php"
]
},
"require-dev": {
"phpunit/phpunit": "^5.0"
"phpunit/phpunit": "^5.0|^6.0"
},
"autoload-dev": {
"psr-4": {
"Pre\\TrailingCommas\\": "tests"
}
},
"extra": {
"macros": [
"src/macros.yay"
]
}
}
10 changes: 2 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Pre Trailing Commas
# Trailing Commas

Documentation can be found at [preprocess.io](https://preprocess.io/docs#trailing-commas).

## Versioning

This library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.
Documentation can be found at [preprocess.io](https://preprocess.io#trailing-commas).
3 changes: 0 additions & 3 deletions src/bootstrap.php

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions tests/SpecTest.php → tests/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Pre\TrailingCommas;

use Pre\Testing\Runner;
use Pre\Plugin\Testing\Runner;

class SpecTest extends Runner
class MacroTest extends Runner
{
protected function path(): string
{
Expand Down
13 changes: 3 additions & 10 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
<?php

namespace Yay;

// let's use a namespace trick, to make non-colliding variables predictable.

function md5($value)
{
return $value;
}
require __DIR__ . "/../vendor/autoload.php";

putenv("PRE_BASE_DIR=" . __DIR__ . "/..");
putenv("PRE_BASE_DIR=" . __DIR__ . "/../");

require __DIR__ . "/../vendor/autoload.php";
Pre\Plugin\addMacroPath(__DIR__ . "/../src/macros.yay");

0 comments on commit 48aed34

Please sign in to comment.