MDL-56012 lib: Update of readme and xml file.

Also made edits to use the PSR-4 autoloader.
This commit is contained in:
Adrian Greeve 2016-09-20 15:16:17 +08:00
parent cd198eafd6
commit dd9ee3d837
6 changed files with 14 additions and 21 deletions

View file

@ -24,8 +24,6 @@
namespace dataformat_csv; namespace dataformat_csv;
require_once("$CFG->libdir/spout/src/Spout/Autoloader/autoload.php");
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
/** /**

View file

@ -24,8 +24,6 @@
namespace dataformat_excel; namespace dataformat_excel;
require_once("$CFG->libdir/spout/src/Spout/Autoloader/autoload.php");
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
/** /**

View file

@ -24,8 +24,6 @@
namespace dataformat_ods; namespace dataformat_ods;
require_once("$CFG->libdir/spout/src/Spout/Autoloader/autoload.php");
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
/** /**

View file

@ -77,7 +77,8 @@ class core_component {
'GeoIp2' => 'lib/maxmind/GeoIp2', 'GeoIp2' => 'lib/maxmind/GeoIp2',
'Sabberworm\\CSS' => 'lib/php-css-parser', 'Sabberworm\\CSS' => 'lib/php-css-parser',
'MoodleHQ\\RTLCSS' => 'lib/rtlcss', 'MoodleHQ\\RTLCSS' => 'lib/rtlcss',
'Leafo\\ScssPhp' => 'lib/scssphp' 'Leafo\\ScssPhp' => 'lib/scssphp',
'Box\\Spout' => 'lib/spout/src/Spout'
); );
/** /**

View file

@ -1,13 +1,10 @@
#!/bin/sh Description of Spout library import 2.6.0
# =========================================
# Description of import of Horde libraries * Download / Clone from https://github.com/box/spout/
# * Only include the src/Spout directory.
* Update lib/thirdpartylibs.xml with the latest version.
wget https://codeload.github.com/box/spout/zip/v2.4.3
unzip v2.4.3
rm v2.4.3
rm spout-2.4.3/composer.json
rm -rf src
mv -f spout-2.4.3/* .
rm -r spout-2.4.3/
2016/09/20
----------
Updated to v2.6.0 (MDL-56012)
by Adrian Greeve <adrian@moodle.com>

View file

@ -262,8 +262,9 @@
<library> <library>
<location>spout</location> <location>spout</location>
<name>Spout</name> <name>Spout</name>
<license>GPL</license> <license>Apache</license>
<version>2.3.0</version> <version>2.6.0</version>
<licenseversion>2.0</licenseversion>
</library> </library>
<library> <library>
<location>amd/src/chartjs-lazy.js</location> <location>amd/src/chartjs-lazy.js</location>