Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1d1a275
implements ArrayAccess, Iterator for config container.
c9s Apr 19, 2012
752a880
Update testing sample package.ini
c9s Apr 19, 2012
086fe31
Update test config
c9s Apr 19, 2012
b6f00a0
Add new INIParser class.
c9s Apr 19, 2012
fe71f60
ant-build CI config files
c9s May 23, 2012
18c0930
Merge branch 'master' into develop
c9s May 23, 2012
f48cc3f
Fix LibraryInstaller
c9s May 23, 2012
235798a
Fix package.ini style
c9s May 23, 2012
4bed0b9
Rename packages
c9s Jun 9, 2012
ecf3db0
progress handler setter
c9s Jun 9, 2012
1bc7ccd
check download size
c9s Jun 9, 2012
9b9bc2a
Rename bundle command to install command.
c9s Jun 9, 2012
e4a3cf5
Update todo
c9s Jun 9, 2012
04aa0d8
--quiet option support (curl downloader)
c9s Jun 9, 2012
c3a881c
Merge branch 'develop' of git.corneltek.com:php/Onion into develop
c9s Jun 14, 2012
41fe0e5
Update readme
c9s Jun 14, 2012
d215cb2
update readme for new command
c9s Jun 14, 2012
1252c72
Fix CurlKit class name
c9s Jun 19, 2012
185f1df
Remove PEARX tests
c9s Jun 19, 2012
b3a3887
remove tmp files
c9s Jun 19, 2012
aac1b01
Add tests/tmp to .gitignore file
c9s Jun 19, 2012
bb0ea97
Remvoe TestApp tests
c9s Jun 19, 2012
61c5ec1
Add new_package.ini
c9s Jun 19, 2012
0d59eec
remove var_dump
c9s Jun 19, 2012
b2367d0
rename getDownloader to createDownloader
c9s Jun 19, 2012
451c9a7
add base option to installer command
c9s Jun 19, 2012
fd5d944
document installer flow in doc/InstallerFlow.md
c9s Jun 19, 2012
e379380
use Onion\Installer
c9s Jun 19, 2012
828e2dd
Add workspace option to main Installer
c9s Jun 19, 2012
8687062
Update onion binary
c9s Jun 20, 2012
704953b
Let quiet option works!
c9s Jun 20, 2012
e50e312
Update onion binary
c9s Jun 20, 2012
167c786
Fix progress bar
c9s Jun 20, 2012
c1d806f
bump version
c9s Jun 23, 2012
43f7187
Build package.xml at 2012-06-23
c9s Jun 23, 2012
bd2d4ec
add script role
jaceju Jun 26, 2012
f680cee
Enable shell script role and fix installation.
jaceju Jun 26, 2012
8a9fd39
Use only bin folder to put shell script.
jaceju Jun 26, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add new_package.ini
  • Loading branch information
c9s committed Jun 19, 2012
commit 61c5ec1b2173e9d82cd57316424ee6362a395f0a
1 change: 0 additions & 1 deletion src/Onion/Dependency/DependencyResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ function resolve( $package )
$this->logger->info2("Tracking dependency for PEAR package: {$dep['name']} ..." , 1);
if( $dep['resource']['type'] == 'channel' ) {
$host = $dep['resource']['channel'];

$channel = new \PEARX\Channel( $host , array(
'cache' => \Onion\Application::getInstance()->getCache(),
'downloader' => \Onion\Downloader\CurlDownloaderFactory::create(
Expand Down
4 changes: 2 additions & 2 deletions tests/Onion/ConfigContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ class ConfigContainerTest extends PHPUnit_Framework_TestCase

function testFromPackageINI()
{
$container = new Onion\ConfigContainer( parse_ini_file('tests/data/package.ini', true) );
$container = new Onion\ConfigContainer( parse_ini_file('tests/data/new_package.ini', true) );
$resources = $container->getResources();
var_dump( $resources );
// var_dump( $resources );
}


Expand Down
66 changes: 66 additions & 0 deletions tests/data/new_package.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[package]
name = Onion
summary = A Simple PHP Packager Builder.
desc = "Onion, The fast approch to make packages for PHP. Onion is
able to generate a PEAR-compatible package.xml file from a very simple config file."
version = 0.0.8
stability = alpha

; homepage = http://php-onion.org ; optional
; license = PHP ; optional, default to PHP
; version.api = 0.0.1 ; optional, defualt to "version"
; author = Yo-An Lin <[email protected]> # also works
author = Yo-An Lin <[email protected]>
authors[] = Yo-An Lin <[email protected]>
channel = pear.corneltek.com

[require]
php = 5.3
pearinstaller = 1.4.1

; packages
pear.corneltek.com/GetOptionKit = 0.0.2
pear.corneltek.com/CLIFramework = 0.0.2
pear.corneltek.com/Universal = 0.0.2
pear.symfony-project.com/YAML = 0.0.0
; pear.phpunit.de/PHPUnit = 0.0.0

; extensions
; extension/reflection = 0
; extension/ctype = 0
extension/pcre = 0


[require CLIFramework]
git = http://github.com/c9s/CLIFramework
type = pear

[require Asset]
git = https://github.com/kriswallsmith/assetic.git
; autoload = (
; Assetic: src
; )

[require Smarty]
url = http://www.smarty.net/files/Smarty-3.1.8.tar.gz
bootstrap = path/to/init.php

[resource phpan]
type = pub
host = pubphp.org

[resource openpear]
type = pear
host = openpear.org

[resource corneltek]
type = pear
host = pear.corneltek.com

[roles]
onion.phar = script
changes.* = doc
*.md = doc

[repository]
git = git://github.com/c9s/Onion.git
6 changes: 3 additions & 3 deletions tests/data/package.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ php = 5.3
pearinstaller = 1.4.1

; packages
corneltek/GetOptionKit = 0.0.2
corneltek/CLIFramework = 0.0.2
corneltek/Universal = 0.0.2
pear.corneltek.com/GetOptionKit = 0.0.2
pear.corneltek.com/CLIFramework = 0.0.2
pear.corneltek.com/Universal = 0.0.2
pear.symfony-project.com/YAML = 0.0.0
; pear.phpunit.de/PHPUnit = 0.0.0

Expand Down