Skip to content
Browse files

Revamped source to work with Pyrus.

  • Loading branch information...
1 parent 6460651 commit 5ad7ba2c60d823301e643fbe3527851cc5f69a66 @technosophos committed Sep 21, 2010
View
14 API-1.0.0
@@ -0,0 +1,14 @@
+Basic usage of LibRIS:
+
+require 'LibRIS.php';
+
+// Parse and print
+$ris = new LibRIS();
+$ris->parseFile('./data.ris');
+$ris->printRecords();
+
+// Clone the above and write records.
+$records = $ris->getRecords();
+$rw = new RISWriter();
+print $rw->writeRecords($records);
+
View
1 CREDITS
@@ -0,0 +1 @@
+Matt Butcher [technosophos] <matt@aleph-null.tv> (lead)
View
1 README
@@ -0,0 +1 @@
+LibRIS is a tool for parsing RIS data and data files.
View
4 RELEASE-1.0.0
@@ -0,0 +1,4 @@
+This is the initial release of LibRIS.
+
+LibRIS is a tool for parsing or generating LibRIS data. It is
+intended as a development library.
View
28 build.xml
@@ -55,9 +55,9 @@ To print this message, do:
<!-- Global properties -->
<property name="srcdir" value="./src"/>
- <property name="testdir" value="./test"/>
+ <property name="testdir" value="./tests"/>
<property name="builddir" value="./bin/build"/>
- <property name="docsdir" value="./docs"/>
+ <property name="docsdir" value="./doc"/>
<property name="packagedir" value="./dist"/>
<!-- Files that must be included in the release -->
@@ -88,7 +88,7 @@ To print this message, do:
</fileset>
<!-- Documentation -->
- <fileset id="docs" dir="./docs">
+ <fileset id="docs" dir="./doc">
<include name="**/*" />
</fileset>
@@ -147,7 +147,7 @@ To print this message, do:
<mkdir dir="${releasedir}/examples"/>
<mkdir dir="${releasedir}/test"/>
<mkdir dir="${releasedir}/tutorials"/>
- <mkdir dir="${releasedir}/docs"/>
+ <mkdir dir="${releasedir}/doc"/>
<!-- Copy license files. -->
<copy todir="${releasedir}">
@@ -180,7 +180,7 @@ To print this message, do:
</copy>
<!-- Copy documentation -->
- <copy todir="${releasedir}/docs">
+ <copy todir="${releasedir}/doc">
<fileset refid="docs"/>
</copy>
@@ -268,41 +268,39 @@ To print this message, do:
<!-- Run a coverage report -->
<target name="coverage" depends="lint" description="Run a coverage analysis.">
- <coverage-setup database="./test/db/coverage.db">
+ <coverage-setup database="./tests/db/coverage.db">
<fileset dir="src">
<include name="LibRIS/*.php"/>
</fileset>
</coverage-setup>
<phpunit codecoverage="true" haltonfailure="true">
<formatter type="plain" todir="test/reports" outfile="coverage.xml"/>
<batchtest>
- <fileset dir="test/Tests">
+ <fileset dir="tests/Tests">
<include name="**/*Test.php"/>
</fileset>
</batchtest>
</phpunit>
<coverage-report outfile="test/reports/coverage.xml">
- <report todir="test/coverage"/>
+ <report todir="tests/coverage"/>
</coverage-report>
</target>
<!-- Run a full test and format an HTML report -->
<target name="test" depends="lint" description="Run full tests">
<phpunit>
- <formatter todir="test/reports" type="xml"/>
+ <formatter todir="tests/reports" type="xml"/>
<batchtest>
- <fileset dir="test/Tests">
+ <fileset dir="tests/Tests">
<include name="**/*Test.php"/>
</fileset>
</batchtest>
</phpunit>
<phpunitreport
- infile="test/reports/testsuites.xml"
+ infile="tests/reports/testsuites.xml"
format="frames"
- todir="test/reports/html"
+ todir="tests/reports/html"
/>
- <delete file="./test/db/qpTest.db" />
- <delete file="./test/db/qpTest2.db" />
</target>
<target name="docBuild" description="Build a package containing just docs."
@@ -319,7 +317,7 @@ To print this message, do:
</copy>
<!-- Copy documentation -->
- <copy todir="${releasedir}/docs">
+ <copy todir="${releasedir}/doc">
<fileset refid="docs"/>
</copy>
View
72 package.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package version="2.1" xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.1 http://pear.php.net/dtd/package-2.1.xsd">
+ <name>LibRIS</name>
+ <channel>pear.querypath.org</channel>
+ <summary>LibRIS is a tool for parsing RIS data and data files.</summary>
+ <description/>
+ <lead>
+ <name>Matt Butcher</name>
+ <user>technosophos</user>
+ <email>matt@aleph-null.tv</email>
+ <active>yes</active>
+ </lead>
+ <date>2010-09-21</date>
+ <time>13:03:20</time>
+ <version>
+ <release>1.0.0</release>
+ <api>1.0.0</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
+ <notes>This is the initial release of LibRIS.
+
+LibRIS is a tool for parsing or generating LibRIS data. It is
+intended as a development library.
+
+
+Basic usage of LibRIS:
+
+require 'LibRIS.php';
+
+// Parse and print
+$ris = new LibRIS();
+$ris-&gt;parseFile('./data.ris');
+$ris-&gt;printRecords();
+
+// Clone the above and write records.
+$records = $ris-&gt;getRecords();
+$rw = new RISWriter();
+print $rw-&gt;writeRecords($records);
+
+</notes>
+ <contents>
+ <dir name="/">
+ <dir name="doc" baseinstalldir="/">
+ <file role="doc" name="RecordFormat.mdown"/>
+ </dir>
+ <dir name="src" baseinstalldir="/">
+ <file role="php" name="LibRIS.php"/>
+ </dir>
+ <dir name="tests" baseinstalldir="/">
+ <file role="test" name="derik-test.ris"/>
+ <file role="test" name="short.ris"/>
+ <file role="test" name="simple_test.php"/>
+ <file role="test" name="test1.ris"/>
+ </dir>
+ </dir>
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.2.0</min>
+ </php>
+ <pearinstaller>
+ <min>2.0.0a1</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <phprelease/>
+</package>
View
75 package_compatible.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package version="2.1" xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.1 http://pear.php.net/dtd/package-2.1.xsd">
+ <name>LibRIS</name>
+ <channel>pear.querypath.org</channel>
+ <summary>LibRIS is a tool for parsing RIS data and data files.</summary>
+ <description>LibRIS provides an RIS parser and serializer.</description>
+ <lead>
+ <name>Matt Butcher</name>
+ <user>technosophos</user>
+ <email>matt@aleph-null.tv</email>
+ <active>yes</active>
+ </lead>
+ <date>2010-09-21</date>
+ <time>13:03:20</time>
+ <version>
+ <release>1.0.0</release>
+ <api>1.0.0</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
+ <notes>This is the initial release of LibRIS.
+
+LibRIS is a tool for parsing or generating LibRIS data. It is
+intended as a development library.
+
+
+Basic usage of LibRIS:
+
+require 'LibRIS.php';
+
+// Parse and print
+$ris = new LibRIS();
+$ris-&gt;parseFile('./data.ris');
+$ris-&gt;printRecords();
+
+// Clone the above and write records.
+$records = $ris-&gt;getRecords();
+$rw = new RISWriter();
+print $rw-&gt;writeRecords($records);
+
+</notes>
+ <contents>
+ <dir name="/">
+ <file role="test" name="test/LibRIS/pear.querypath.org/test1.ris"/>
+ <file role="test" name="test/LibRIS/pear.querypath.org/simple_test.php"/>
+ <file role="test" name="test/LibRIS/pear.querypath.org/short.ris"/>
+ <file role="test" name="test/LibRIS/pear.querypath.org/derik-test.ris"/>
+ <file role="php" name="php/LibRIS.php"/>
+ <file role="doc" name="doc/LibRIS/pear.querypath.org/RecordFormat.mdown"/>
+ </dir>
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.2.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.8</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <phprelease>
+ <filelist>
+ <install name="doc/LibRIS/pear.querypath.org/RecordFormat.mdown" as="pear.querypath.org/RecordFormat.mdown"/>
+ <install name="php/LibRIS.php" as="LibRIS.php"/>
+ <install name="test/LibRIS/pear.querypath.org/derik-test.ris" as="pear.querypath.org/derik-test.ris"/>
+ <install name="test/LibRIS/pear.querypath.org/short.ris" as="pear.querypath.org/short.ris"/>
+ <install name="test/LibRIS/pear.querypath.org/simple_test.php" as="pear.querypath.org/simple_test.php"/>
+ <install name="test/LibRIS/pear.querypath.org/test1.ris" as="pear.querypath.org/test1.ris"/>
+ </filelist>
+ </phprelease>
+</package>
View
0 test/derik-test.ris → tests/derik-test.ris
File renamed without changes.
View
0 test/short.ris → tests/short.ris
File renamed without changes.
View
0 test/simple_test.php → tests/simple_test.php
File renamed without changes.
View
0 test/test1.ris → tests/test1.ris
File renamed without changes.

0 comments on commit 5ad7ba2

Please sign in to comment.
Something went wrong with that request. Please try again.