Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit 64aeb87

Browse files
committed
Updating Amend to use the Phar Update library.
1 parent 54bed29 commit 64aeb87

21 files changed

+1083
-1283
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.*
22
!.gitignore
33
!.travis.yml
4+
composer.lock
5+
bin/
46
coverage/
5-
src/vendors
7+
src/vendors/

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ php:
55
- 5.4
66

77
before_script:
8-
- git clone git://github.com/zenovich/runkit.git && cd runkit && phpize && ./configure && make && make install && cd ..
9-
- echo "extension=runkit.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
10-
- echo "runkit.internal_override=1" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
11-
- composer install --dev
8+
- composer self-update
9+
- composer install --dev

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012 Kevin Herrera
1+
Copyright (c) 2013 Kevin Herrera
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,43 @@
1-
# Amend
1+
Amend
2+
=====
23

34
[![Build Status](https://secure.travis-ci.org/kherge/Amend.png?branch=master)](http://travis-ci.org/kherge/Amend)
45

5-
A Symfony Console component helper and command set for updating and upgrading PHAR-based console applications.
6+
Integrates [Phar Update](https://github.com/herrera-io/php-phar-update) to [Symfony Console](https://github.com/symfony/Console).
67

7-
## Installing
8+
Summary
9+
-------
810

9-
To install Amend, you must add it to the list of dependencies in your [`composer.json`][Composer] file.
11+
Uses the Phar Update library to:
1012

11-
$ php composer.phar require kherge/amend=2.*
13+
1. check for newer versions of the Phar
14+
1. download the Phar
15+
- verify download by SHA1 checksum, and public key if available
16+
1. replace running Phar with downloaded update
1217

13-
If you are not using Composer to manage your dependencies, you may use any [PSR-0][PSR-0] class loader to load Wisdom.
18+
Installation
19+
------------
1420

15-
## Usage
21+
Add it to your list of Composer dependencies:
1622

17-
Please see [the wiki][wiki] for detail usage information.
23+
```sh
24+
$ composer require kherge/amend=3.*
25+
```
1826

19-
[Composer]: http://getcomposer.org/
20-
[PSR-0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
21-
[wiki]: https://github.com/kherge/Amend/wiki
27+
Usage
28+
-----
29+
30+
```php
31+
<?php
32+
33+
use KevinGH\Amend\Command;
34+
use KevinGH\Amend\Helper;
35+
use Symfony\Component\Console\Application;
36+
37+
$command = new Command('update');
38+
$command->setManifestUri('http://box-project.org/manifest.json');
39+
40+
$app = new Application();
41+
$app->getHelperSet()->set(new Helper());
42+
$app->add($command);
43+
```

composer.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
{
2-
"type": "library",
32
"name": "kherge/amend",
4-
"description": "A Symfony Console component helper and command set for updating and upgrading applications.",
5-
"homepage": "http://github.com/kherge/Amend",
3+
"description": "Integrates Phar Update to Symfony Console.",
4+
"keywords": ["phar", "update", "console"],
5+
"homepage": "http://kherge.github.com/Amend",
66
"license": "MIT",
77
"authors": [
88
{
99
"name": "Kevin Herrera",
10-
"email": "[email protected]"
10+
"email": "[email protected]",
11+
"homepage": "http://kevin.herrera.io"
1112
}
1213
],
13-
14+
"support": {
15+
"issues": "https://github.com/kherge/Amend/issues"
16+
},
1417
"require": {
1518
"php": ">=5.3.3",
16-
"kherge/version": "1.*"
19+
"herrera-io/phar-update": "~1.0",
20+
"symfony/console": "~2.1"
1721
},
18-
1922
"require-dev": {
20-
"kherge/runkit-test-case": "1.*",
21-
"symfony/console": "2.1.*"
23+
"herrera-io/box": "~1.0",
24+
"herrera-io/phpunit-test-case": "1.*",
25+
"phpunit/phpunit": "3.7.*"
2226
},
23-
2427
"autoload": {
2528
"psr-0": {
26-
"KevinGH\\Amend": "src/lib/"
29+
"KevinGH\\Amend": "src/lib"
2730
}
2831
},
29-
3032
"config": {
33+
"bin-dir": "bin",
3134
"vendor-dir": "src/vendors"
3235
},
33-
3436
"extra": {
3537
"branch-alias": {
36-
"dev-master": "2.0-dev"
38+
"dev-master": "3.0-dev"
3739
}
3840
}
39-
}
41+
}

0 commit comments

Comments
 (0)