zip_to_timezone 0.0.3 → 0.0.4
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/VERSION +1 -1
- data/lib/zip_to_timezone.rb +1 -1
- data/spec/zip_to_timezone_spec.rb +5 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/lib/zip_to_timezone.rb
CHANGED
@@ -40,7 +40,7 @@ class ZipToTimezone
|
|
40
40
|
'550', '551', '553'..'567', # => MN
|
41
41
|
'580'..'585', '587', '588', # => East ND
|
42
42
|
'463', '464', '476', '477', # => West IN
|
43
|
-
'49920', '49927', '49935', '49938', # => West MI
|
43
|
+
'49920', '49927', '49911', '49915', '49935', '49938', # => West MI
|
44
44
|
'324', '325'# => West FL
|
45
45
|
],
|
46
46
|
"Eastern Time (US & Canada)" => [
|
@@ -8,4 +8,9 @@ describe "ZipToTimezone" do
|
|
8
8
|
it "should show that DC is Eastern Time" do
|
9
9
|
ZipToTimezone.get_timezone_for('20001').should == 'Eastern Time (US & Canada)'
|
10
10
|
end
|
11
|
+
|
12
|
+
it "should know that some of MI is in Central time" do
|
13
|
+
ZipToTimezone.get_timezone_for('49915').should == 'Central Time (US & Canada)'
|
14
|
+
ZipToTimezone.get_timezone_for('49914').should == 'Eastern Time (US & Canada)'
|
15
|
+
end
|
11
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zip_to_timezone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Garver
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-02 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|