watchman 0.0.6 → 0.0.7

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- watchman (0.0.5)
4
+ watchman (0.0.7)
5
5
  mechanize
6
6
 
7
7
  GEM
@@ -37,9 +37,11 @@ module Watchman
37
37
  code = nature_cell_text.split("-").first
38
38
  if code == "IA"
39
39
  return "Bravo"
40
- else
40
+ elsif code =~ /^\d/
41
41
  match = code.scan(/^\d+([A-O])/).first.first
42
42
  ResponseLevelMap[match]
43
+ else
44
+ return "N/A"
43
45
  end
44
46
  end
45
47
 
@@ -1,3 +1,3 @@
1
1
  module Watchman
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -113,5 +113,9 @@ describe "Watchman::CallWatcher" do
113
113
  it "gets the on-scene time" do
114
114
  call.time_of_first_unit_on_scene == Time.parse("12/29/2010 15:04:18")
115
115
  end
116
+
117
+ it "grabs the apparatus array" do
118
+ call.apparatus.should == ["E1201","E1501","M111","DIV61","EMS22","C1218"]
119
+ end
116
120
  end
117
121
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ethan Vizitei