ywx 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/ywx.rb +41 -0
  2. metadata +46 -0
@@ -0,0 +1,41 @@
1
+ # yahoo-weather -- provides OO access to the Yahoo! Weather RSS XML feed
2
+ # Copyright (C) 2006 - 2009 Walter Korman <shaper@fatgoose.com>
3
+ #
4
+ # This library is free software; you can redistribute it and/or
5
+ # modify it under the terms of the GNU Lesser General Public
6
+ # License as published by the Free Software Foundation; either
7
+ # version 2.1 of the License, or (at your option) any later version.
8
+ #
9
+ # This library is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ # Lesser General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU Lesser General Public
15
+ # License along with this library; if not, write to the Free Software
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
+
18
+ require 'net/http'
19
+ require 'cgi'
20
+ require 'time'
21
+ require 'nokogiri'
22
+ require "httparty"
23
+
24
+ class YahooWeather
25
+ VERSION = '0.1.1'
26
+
27
+ def self._parse_time (text)
28
+ (text) ? Time.parse(text) : nil
29
+ end
30
+ end
31
+
32
+ require_relative 'yahoo-weather/astronomy'
33
+ require_relative 'yahoo-weather/atmosphere'
34
+ require_relative 'yahoo-weather/client'
35
+ require_relative 'yahoo-weather/condition'
36
+ require_relative 'yahoo-weather/forecast'
37
+ require_relative 'yahoo-weather/image'
38
+ require_relative 'yahoo-weather/location'
39
+ require_relative 'yahoo-weather/response'
40
+ require_relative 'yahoo-weather/units'
41
+ require_relative 'yahoo-weather/wind'
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ywx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Austin Spires
9
+ - Walter Korman
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-04-30 00:00:00.000000000 Z
14
+ dependencies: []
15
+ description: A Ruby Wrapper for the Yahoo Weather API, Updated for 1.9.2
16
+ email: austinspires@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/ywx.rb
22
+ homepage: https://github.com/aspires/ywx
23
+ licenses: []
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 1.8.23
43
+ signing_key:
44
+ specification_version: 3
45
+ summary: Yahoo Weather API Wrapper
46
+ test_files: []