weatherzone 0.5.8 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -12,6 +12,7 @@ lib/weatherzone/finder.rb
12
12
  lib/weatherzone/helpers/almanac_element.rb
13
13
  lib/weatherzone/helpers/date_parser.rb
14
14
  lib/weatherzone/helpers/units.rb
15
+ lib/weatherzone/resources/buoy_observation.rb
15
16
  lib/weatherzone/resources/almanac.rb
16
17
  lib/weatherzone/resources/almanac_period.rb
17
18
  lib/weatherzone/resources/conditions.rb
@@ -0,0 +1,12 @@
1
+ class BuoyObservation < Weatherzone::Resource
2
+ include Weatherzone::Helpers::Units
3
+ include Weatherzone::Helpers::DateParser
4
+
5
+ has_elements :day_name, :time, :wave_height_m, :wave_height_ft, :wave_period, :wave_dir_degrees, :wave_dir_compass, :sea_temp_c
6
+ has_attribute :units, :on_elements => [:wave_height_m, :wave_height_ft, :wave_period, :wave_dir_degrees, :sea_temp_c]
7
+ has_attribute :significant, :on_elements => [:wave_height_m, :wave_height_ft, :wave_period]
8
+ has_attribute :max, :on_elements => [:wave_height_m, :wave_height_ft]
9
+ has_attribute :peak, :on_elements => [:wave_period]
10
+ value_plus_unit_readers :wave_height_m, :wave_height_ft, :wave_period, :wave_dir_degrees, :sea_temp_c
11
+ # interpret_as_time :time
12
+ end
data/lib/weatherzone.rb CHANGED
@@ -35,5 +35,5 @@ require 'weatherzone/helpers/date_parser'
35
35
  require 'weatherzone/helpers/units'
36
36
 
37
37
  module Weatherzone
38
- VERSION = '0.5.8'
38
+ VERSION = '0.6.0'
39
39
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weatherzone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Ben Askins
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-11-17 00:00:00 +11:00
17
+ date: 2010-03-17 00:00:00 +11:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: hoe
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 1.8.0
24
- version:
27
+ segments:
28
+ - 1
29
+ - 8
30
+ - 2
31
+ version: 1.8.2
32
+ type: :development
33
+ version_requirements: *id001
25
34
  description: Ruby client for the weatherzone webservice.
26
35
  email:
27
36
  - ben.askins@gmail.com
@@ -50,6 +59,7 @@ files:
50
59
  - lib/weatherzone/helpers/almanac_element.rb
51
60
  - lib/weatherzone/helpers/date_parser.rb
52
61
  - lib/weatherzone/helpers/units.rb
62
+ - lib/weatherzone/resources/buoy_observation.rb
53
63
  - lib/weatherzone/resources/almanac.rb
54
64
  - lib/weatherzone/resources/almanac_period.rb
55
65
  - lib/weatherzone/resources/conditions.rb
@@ -100,18 +110,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
110
  requirements:
101
111
  - - ">="
102
112
  - !ruby/object:Gem::Version
113
+ segments:
114
+ - 0
103
115
  version: "0"
104
- version:
105
116
  required_rubygems_version: !ruby/object:Gem::Requirement
106
117
  requirements:
107
118
  - - ">="
108
119
  - !ruby/object:Gem::Version
120
+ segments:
121
+ - 0
109
122
  version: "0"
110
- version:
111
123
  requirements: []
112
124
 
113
125
  rubyforge_project: weatherzone
114
- rubygems_version: 1.3.4
126
+ rubygems_version: 1.3.6
115
127
  signing_key:
116
128
  specification_version: 3
117
129
  summary: Ruby client for the weatherzone webservice.