ullr 0.1.1 → 0.1.2
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.
- data/History.txt +5 -0
- data/README.md +1 -1
- data/lib/ullr/noaa.rb +1 -1
- data/spec/ullr_spec.rb +5 -0
- data/version.txt +1 -1
- metadata +6 -6
data/History.txt
CHANGED
data/README.md
CHANGED
data/lib/ullr/noaa.rb
CHANGED
@@ -87,7 +87,7 @@ module Ullr
|
|
87
87
|
|
88
88
|
def snow_estimate
|
89
89
|
rng = ['0','0']
|
90
|
-
range = self.value.scan(/
|
90
|
+
range = self.value.scan(/snow accumulation of (0|[1-9]\d*) to (0|[1-9]\d*)/)
|
91
91
|
one = self.value.scan(/around an inch possible/)
|
92
92
|
if !one.empty?
|
93
93
|
rng = ['0','1']
|
data/spec/ullr_spec.rb
CHANGED
@@ -104,6 +104,11 @@ describe Ullr do
|
|
104
104
|
@text.snow_estimate.should eql(['6','8'])
|
105
105
|
end
|
106
106
|
|
107
|
+
it "should return proper snow estimate when range daytime is given" do
|
108
|
+
@text.value = "Total daytime snow accumulation of 1 to 3 inches possible."
|
109
|
+
@text.snow_estimate.should eql(['1','3'])
|
110
|
+
end
|
111
|
+
|
107
112
|
it "should support sickter double digit days" do
|
108
113
|
@text.value = "blah blah blah. New snow accumulation of 16 to 18"
|
109
114
|
@text.snow_estimate.should eql(['16','18'])
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ullr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-27 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: happymapper
|
16
|
-
requirement: &
|
16
|
+
requirement: &70367029133460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70367029133460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bones
|
27
|
-
requirement: &
|
27
|
+
requirement: &70367029167180 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 3.7.3
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70367029167180
|
36
36
|
description: ullr is a little gem that consumes NOAA weather xml for a given lat/long,
|
37
37
|
and returns an array of data with 12 hour forecasts along with some sugar to let
|
38
38
|
you know if any sugar will be falling from the sky.
|