[Jaws-commits] r10798 - in branches/0.8/html/libraries/pear/Services: . Weather

afz at jaws-project.com afz at jaws-project.com
Sat Nov 28 20:41:43 UTC 2009


Author: afz
Date: 2009-11-28 20:41:43 +0000 (Sat, 28 Nov 2009)
New Revision: 10798

Modified:
   branches/0.8/html/libraries/pear/Services/Weather.php
   branches/0.8/html/libraries/pear/Services/Weather/Common.php
   branches/0.8/html/libraries/pear/Services/Weather/Ejse.php
   branches/0.8/html/libraries/pear/Services/Weather/Globalweather.php
   branches/0.8/html/libraries/pear/Services/Weather/Metar.php
   branches/0.8/html/libraries/pear/Services/Weather/Weatherdotcom.php
Log:
Update PERA::Services_Weather to 1.4.5

Modified: branches/0.8/html/libraries/pear/Services/Weather/Common.php
===================================================================
--- branches/0.8/html/libraries/pear/Services/Weather/Common.php	2009-11-28 20:37:24 UTC (rev 10797)
+++ branches/0.8/html/libraries/pear/Services/Weather/Common.php	2009-11-28 20:41:43 UTC (rev 10798)
@@ -40,7 +40,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Common.php,v 1.56 2009/03/12 23:16:41 eru Exp $
+ * @version     CVS: $Id: Common.php 277074 2009-03-12 23:16:41Z eru $
  * @link        http://pear.php.net/package/Services_Weather
  * @filesource
  */
@@ -71,7 +71,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     Release: 1.4.3
+ * @version     Release: 1.4.5
  * @link        http://pear.php.net/package/Services_Weather
  */
 class Services_Weather_Common {

Modified: branches/0.8/html/libraries/pear/Services/Weather/Ejse.php
===================================================================
--- branches/0.8/html/libraries/pear/Services/Weather/Ejse.php	2009-11-28 20:37:24 UTC (rev 10797)
+++ branches/0.8/html/libraries/pear/Services/Weather/Ejse.php	2009-11-28 20:41:43 UTC (rev 10798)
@@ -40,7 +40,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Ejse.php,v 1.28 2009/03/12 23:16:41 eru Exp $
+ * @version     CVS: $Id: Ejse.php 277074 2009-03-12 23:16:41Z eru $
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.ejse.com/services/weather_xml_web_services.htm
  * @example     examples/ejse-basic.php             ejse-basic.php
@@ -64,7 +64,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     Release: 1.4.3
+ * @version     Release: 1.4.5
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.ejse.com/services/weather_xml_web_services.htm
  * @example     examples/ejse-basic.php             ejse-basic.php

Modified: branches/0.8/html/libraries/pear/Services/Weather/Globalweather.php
===================================================================
--- branches/0.8/html/libraries/pear/Services/Weather/Globalweather.php	2009-11-28 20:37:24 UTC (rev 10797)
+++ branches/0.8/html/libraries/pear/Services/Weather/Globalweather.php	2009-11-28 20:41:43 UTC (rev 10798)
@@ -40,7 +40,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Globalweather.php,v 1.41 2009/03/12 23:16:41 eru Exp $
+ * @version     CVS: $Id: Globalweather.php 277074 2009-03-12 23:16:41Z eru $
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.capescience.com/webservices/globalweather/index.shtml
  * @example     examples/globalweather-basic.php    globalweather-basic.php
@@ -70,7 +70,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     Release: 1.4.3
+ * @version     Release: 1.4.5
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.capescience.com/webservices/globalweather/index.shtml
  * @example     examples/globalweather-basic.php    globalweather-basic.php

Modified: branches/0.8/html/libraries/pear/Services/Weather/Metar.php
===================================================================
--- branches/0.8/html/libraries/pear/Services/Weather/Metar.php	2009-11-28 20:37:24 UTC (rev 10797)
+++ branches/0.8/html/libraries/pear/Services/Weather/Metar.php	2009-11-28 20:41:43 UTC (rev 10798)
@@ -40,7 +40,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Metar.php,v 1.107 2009/03/12 23:16:41 eru Exp $
+ * @version     CVS: $Id: Metar.php 290193 2009-11-03 23:34:06Z eru $
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://weather.noaa.gov/weather/metar.shtml
  * @link        http://weather.noaa.gov/weather/taf.shtml
@@ -84,7 +84,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     Release: 1.4.3
+ * @version     Release: 1.4.5
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://weather.noaa.gov/weather/metar.shtml
  * @link        http://weather.noaa.gov/weather/taf.shtml
@@ -559,13 +559,17 @@
                 echo $data[$i]."\n";
             }
         }
+        // Eliminate trailing information
+        for ($i = 0; $i < sizeof($data); $i++) {
+            if (strpos($data[$i], "=") !== false) {
+                $data[$i] = substr($data[$i], 0, strpos($data[$i], "="));
+                $data = array_slice($data, 0, $i + 1);
+                break;
+            }
+        }
         // Start with parsing the first line for the last update
         $weatherData = array();
         $weatherData["station"]   = "";
-        // Eliminate trailing information
-        if (strpos($data, "=") !== false) {
-            $data = substr($data, 0, strpos($data, "="));
-        }
         $weatherData["dataRaw"]   = implode(" ", $data);
         $weatherData["update"]    = strtotime(trim($data[0])." GMT");
         $weatherData["updateRaw"] = trim($data[0]);
@@ -1055,13 +1059,17 @@
                 echo $data[$i]."\n";
             }
         }
+        // Eliminate trailing information
+        for ($i = 0; $i < sizeof($data); $i++) {
+            if (strpos($data[$i], "=") !== false) {
+                $data[$i] = substr($data[$i], 0, strpos($data[$i], "="));
+                $data = array_slice($data, 0, $i + 1);
+                break;
+            }
+        }
         // Ok, we have correct data, start with parsing the first line for the last update
         $forecastData = array();
         $forecastData["station"]   = "";
-        // Eliminate trailing information
-        if (strpos($data, "=") !== false) {
-            $data = substr($data, 0, strpos($data, "="));
-        }
         $forecastData["dataRaw"]   = implode(" ", $data);
         $forecastData["update"]    = strtotime(trim($data[0])." GMT");
         $forecastData["updateRaw"] = trim($data[0]);

Modified: branches/0.8/html/libraries/pear/Services/Weather/Weatherdotcom.php
===================================================================
--- branches/0.8/html/libraries/pear/Services/Weather/Weatherdotcom.php	2009-11-28 20:37:24 UTC (rev 10797)
+++ branches/0.8/html/libraries/pear/Services/Weather/Weatherdotcom.php	2009-11-28 20:41:43 UTC (rev 10798)
@@ -40,7 +40,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Weatherdotcom.php,v 1.67 2009/03/12 23:16:41 eru Exp $
+ * @version     CVS: $Id: Weatherdotcom.php 277074 2009-03-12 23:16:41Z eru $
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.weather.com/services/xmloap.html
  * @example     examples/weather.com-basic.php      weather.com-basic.php
@@ -75,7 +75,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     Release: 1.4.3
+ * @version     Release: 1.4.5
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.weather.com/services/xmloap.html
  * @example     examples/weather.com-basic.php      weather.com-basic.php

Modified: branches/0.8/html/libraries/pear/Services/Weather.php
===================================================================
--- branches/0.8/html/libraries/pear/Services/Weather.php	2009-11-28 20:37:24 UTC (rev 10797)
+++ branches/0.8/html/libraries/pear/Services/Weather.php	2009-11-28 20:41:43 UTC (rev 10798)
@@ -46,7 +46,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Weather.php,v 1.47 2009/03/12 23:16:41 eru Exp $
+ * @version     CVS: $Id: Weather.php 277074 2009-03-12 23:16:41Z eru $
  * @link        http://pear.php.net/package/Services_Weather
  * @filesource
  */
@@ -92,7 +92,7 @@
  * @author      Alexander Wirtz <alex at pc4p.net>
  * @copyright   2005-2009 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     Release: 1.4.3
+ * @version     Release: 1.4.5
  * @link        http://pear.php.net/package/Services_Weather
  */
 class Services_Weather {



More information about the Jaws-commits mailing list