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.
@@ -5,3 +5,8 @@
5
5
  == 0.1.1 / 2011-12-21
6
6
 
7
7
  * gemspec updates
8
+
9
+ == 0.1.2 / 2011-12-27
10
+
11
+ * fix typo in readme
12
+ * fix bug for daytime snow accumulation estimates
data/README.md CHANGED
@@ -13,7 +13,7 @@ Examples
13
13
  --------
14
14
 
15
15
  * iheartsnow = Ullr::Forecast.new(:lat => 43.98, :lon => -121.68)
16
- * iheartsnow.get_nooa_forecast
16
+ * iheartsnow.get_noaa_forecast
17
17
 
18
18
  Run Tests
19
19
  ---------
@@ -87,7 +87,7 @@ module Ullr
87
87
 
88
88
  def snow_estimate
89
89
  rng = ['0','0']
90
- range = self.value.scan(/New snow accumulation of (0|[1-9]\d*) to (0|[1-9]\d*)/)
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']
@@ -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'])
@@ -1 +1 @@
1
- 0.1.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.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-21 00:00:00.000000000Z
12
+ date: 2011-12-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: happymapper
16
- requirement: &70189069609900 !ruby/object:Gem::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: *70189069609900
24
+ version_requirements: *70367029133460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bones
27
- requirement: &70189069635680 !ruby/object:Gem::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: *70189069635680
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.