From aa42fd83a8b999e95112266779c2ae5cf79be17a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 29 Aug 2016 21:39:25 -0400 Subject: [PATCH] Update to PicoFeed v0.1.25 --- composer.json | 2 +- vendor/composer/installed.json | 100 +++++++++--------- .../PicoFeed/Rules/adventuregamers.com.php | 24 +++++ .../lib/PicoFeed/Rules/hardware.fr.php | 12 +++ .../lib/PicoFeed/Rules/indiehaven.com.php | 12 +++ .../lib/PicoFeed/Rules/nextinpact.com.php | 19 ++++ .../PicoFeed/Rules/rockpapershotgun.com.php | 12 +++ .../PicoFeed/Rules/www.geekculture.com.php | 2 +- .../lib/PicoFeed/Rules/www.pcinpact.com.php | 14 --- 9 files changed, 131 insertions(+), 66 deletions(-) create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/adventuregamers.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/hardware.fr.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/indiehaven.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/nextinpact.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/rockpapershotgun.com.php delete mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.pcinpact.com.php diff --git a/composer.json b/composer.json index c22827f..a04076a 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "fguillot/simple-validator": "v1.0.0", "fguillot/json-rpc": "v1.2.1", "fguillot/picodb": "v1.0.14 ", - "fguillot/picofeed": "v0.1.24", + "fguillot/picofeed": "v0.1.25", "pda/pheanstalk": "v3.1.0", "ircmaxell/password-compat": "^1.0.4" }, diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 2b99d63..e255fcd 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -136,56 +136,6 @@ "beanstalkd" ] }, - { - "name": "fguillot/picofeed", - "version": "v0.1.24", - "version_normalized": "0.1.24.0", - "source": { - "type": "git", - "url": "https://github.com/fguillot/picoFeed.git", - "reference": "25f9653ca663e098f51eabbdf495eb9a130c041b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/25f9653ca663e098f51eabbdf495eb9a130c041b", - "reference": "25f9653ca663e098f51eabbdf495eb9a130c041b", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-iconv": "*", - "ext-libxml": "*", - "ext-simplexml": "*", - "ext-xml": "*", - "php": ">=5.3.0", - "zendframework/zendxml": "^1.0" - }, - "suggest": { - "ext-curl": "PicoFeed will use cURL if present" - }, - "time": "2016-07-03 00:02:03", - "bin": [ - "picofeed" - ], - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-0": { - "PicoFeed": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Frédéric Guillot" - } - ], - "description": "Modern library to handle RSS/Atom feeds", - "homepage": "https://github.com/fguillot/picoFeed" - }, { "name": "fguillot/picodb", "version": "v1.0.14", @@ -312,5 +262,55 @@ "hashing", "password" ] + }, + { + "name": "fguillot/picofeed", + "version": "v0.1.25", + "version_normalized": "0.1.25.0", + "source": { + "type": "git", + "url": "https://github.com/fguillot/picoFeed.git", + "reference": "2bf5bc40361e788eda6b1bd5d444630986721e69" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/2bf5bc40361e788eda6b1bd5d444630986721e69", + "reference": "2bf5bc40361e788eda6b1bd5d444630986721e69", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "php": ">=5.3.0", + "zendframework/zendxml": "^1.0" + }, + "suggest": { + "ext-curl": "PicoFeed will use cURL if present" + }, + "time": "2016-08-30 01:33:18", + "bin": [ + "picofeed" + ], + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-0": { + "PicoFeed": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frédéric Guillot" + } + ], + "description": "Modern library to handle RSS/Atom feeds", + "homepage": "https://github.com/fguillot/picoFeed" } ] diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/adventuregamers.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/adventuregamers.com.php new file mode 100644 index 0000000..21ff75b --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/adventuregamers.com.php @@ -0,0 +1,24 @@ + array( + '%^/news.*%' => array( + 'test_url' => 'http://www.adventuregamers.com/news/view/31079', + 'body' => array( + '//div[@class="bodytext"]', + ) + ), + '%^/videos.*%' => array( + 'test_url' => 'http://www.adventuregamers.com/videos/view/31056', + 'body' => array( + '//iframe', + ) + ), + '%^/articles.*%' => array( + 'test_url' => 'http://www.adventuregamers.com/articles/view/31049', + 'body' => array( + '//div[@class="cleft"]', + ) + ) + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/hardware.fr.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/hardware.fr.php new file mode 100644 index 0000000..fa07427 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/hardware.fr.php @@ -0,0 +1,12 @@ + array( + '%^/news.*%' => array( + 'test_url' => 'http://www.hardware.fr/news/14760/intel-lance-nouveaux-ssd-nand-3d.html', + 'body' => array( + '//div[@class="content_actualite"]/div[@class="md"]', + ) + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/indiehaven.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/indiehaven.com.php new file mode 100644 index 0000000..bed22ea --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/indiehaven.com.php @@ -0,0 +1,12 @@ + array( + '%.*%' => array( + 'test_url' => 'http://indiehaven.com/no-mans-sky-is-a-solo-space-adventure-and-im-ok-with-that/', + 'body' => array( + '//section[contains(@class, "entry-content")]', + ) + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/nextinpact.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/nextinpact.com.php new file mode 100644 index 0000000..64e1272 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/nextinpact.com.php @@ -0,0 +1,19 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.nextinpact.com/news/101122-3d-nand-intel-lance-six-nouvelles-gammes-ssd-pour-tous-usages.htm', + 'body' => array( + '//div[@class="container_article"]', + ), + 'strip' => array( + '//div[@class="infos_article"]', + '//div[@id="actu_auteur"]', + '//div[@id="soutenir_journaliste"]', + '//section[@id="bandeau_abonnez_vous"]', + '//br' + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/rockpapershotgun.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/rockpapershotgun.com.php new file mode 100644 index 0000000..c7c230c --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/rockpapershotgun.com.php @@ -0,0 +1,12 @@ + array( + '%.*%' => array( + 'test_url' => 'https://www.rockpapershotgun.com/2016/08/26/the-divisions-expansions-delayed-to-improve-the-game/', + 'body' => array( + '//div[@class="entry"]', + ) + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.geekculture.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.geekculture.com.php index 7f03a1d..3d0b6c7 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.geekculture.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.geekculture.com.php @@ -4,7 +4,7 @@ return array( '%.*%' => array( 'test_url' => 'http://www.geekculture.com/joyoftech/joyarchives/2180.html', 'body' => array( - '//p[contains(@class,"Maintext")][2]/img', + '//p[contains(@class,"Maintext")][2]/a/img[contains(@src,"joyimages")]', ), 'strip' => array(), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.pcinpact.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.pcinpact.com.php deleted file mode 100644 index 24e9a2f..0000000 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.pcinpact.com.php +++ /dev/null @@ -1,14 +0,0 @@ - array( - '%.*%' => array( - 'test_url' => 'http://www.pcinpact.com/news/85954-air-france-ne-vous-demande-plus-deteindre-vos-appareils-electroniques.htm?utm_source=PCi_RSS_Feed&utm_medium=news&utm_campaign=pcinpact', - 'body' => array( - '//div[contains(@id, "actu_content")]', - ), - 'strip' => array( - ), - ), - ), -);