Skip to content

Commit cef5a89

Browse files
committed
Merge branch 'fix/improved_url_resolving' into HEAD
2 parents b14aa57 + 6a36367 commit cef5a89

15 files changed

+39
-3762
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/tests/statics/index.*
99
src/Michelf/*
1010
src/.gitignore
11+
vendor/**
12+
composer.lock
1113

1214
# JIRA plugin
1315
atlassian-ide-plugin.xml

.travis.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@ php:
33
- '5.6'
44
- '7.0'
55
before_script:
6-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi
7-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then mv phpunit-5.7.phar phpunit; fi
8-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then chmod +x phpunit; fi
6+
- composer -n install
97
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then pecl install runkit; fi
108
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then echo "runkit.internal_override=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
119
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then pecl install uopz; fi
12-
- wget --content-disposition "https://github.com/theseer/Autoload/releases/download/1.22.0/phpab-1.22.0.phar"
13-
- mv phpab-1.22.0.phar phpab
14-
- chmod +x phpab
1510
- export PATH=$PATH:$PWD
16-
script: phpunit --configuration tests/phpunit.xml
11+
script: vendor/bin/phpunit --configuration tests/phpunit.xml
1712
before_deploy:
1813
- ant phar-nightly
1914
deploy:

build.xml

+9-3
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,17 @@
6161
<include name="**/*.js*"/>
6262
<include name="**/*.css*"/>
6363
</fileset>
64+
<fileset dir="vendor/michelf/php-markdown/">
65+
<include name="**/*.php"/>
66+
</fileset>
67+
<fileset dir="vendor/ql/uri-template/src">
68+
<include name="**/*.php"/>
69+
</fileset>
6470
</copy>
6571
<copy todir="${basedir}/build/phar/phpdraft">
6672
<fileset dir="${basedir}">
67-
<include name="**/*.json*"/>
6873
<include name="**/index.php"/>
74+
<exclude name="vendor/**"/>
6975
</fileset>
7076
</copy>
7177

@@ -74,7 +80,7 @@
7480
<arg value="${type}"/>
7581
</exec>
7682

77-
<exec executable="phpab" taskname="phpab">
83+
<exec executable="${basedir}vendor/bin/phpab" taskname="phpab">
7884
<arg value="--all"/>
7985
<arg value="--static"/>
8086
<arg value="--once"/>
@@ -88,7 +94,7 @@
8894
<arg path="${basedir}/build/phar"/>
8995
</exec>
9096

91-
<exec executable="phpab" taskname="phpab">
97+
<exec executable="${basedir}vendor/bin/phpab" taskname="phpab">
9298
<arg value="--all"/>
9399
<arg value="--nolower"/>
94100
<arg value="--static"/>

composer.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,21 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.4.0"
19+
"php": ">=5.4.0",
20+
"composer/installers": "~1.0",
21+
"ql/uri-template": "1.*",
22+
"michelf/php-markdown": "1.*"
2023
},
2124
"require-dev": {
22-
"theseer/autoload": "^1.22"
25+
"theseer/autoload": "^1.22",
26+
"phpunit/phpunit": "5.7.*"
27+
},
28+
"autoload": {
29+
"psr-4": { "PHPDraft\\": "src/PHPDraft" }
30+
},
31+
"autoload-dev": {
32+
"classmap": [
33+
"tests/"
34+
]
2335
}
2436
}

index.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
/**
88
* Set up required classes (with the autoloader)
99
*/
10-
require_once 'PHPDraft/Core/Autoloader.php';
10+
//require_once 'PHPDraft/Core/Autoloader.php';
11+
require_once 'vendor/autoload.php';
1112
use PHPDraft\In\ApibFileParser;
1213
use PHPDraft\Out\UI;
1314
use PHPDraft\Parse\Drafter;

src/Michelf/Markdown.inc.php

-10
This file was deleted.

0 commit comments

Comments
 (0)