timezone 0.99.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.markdown +6 -0
  3. data/README.markdown +1 -11
  4. data/Rakefile +3 -1
  5. data/data/America/Caracas +2 -1
  6. data/data/Asia/Almaty +51 -48
  7. data/data/Asia/Anadyr +3 -3
  8. data/data/Asia/Aqtau +50 -50
  9. data/data/Asia/Aqtobe +51 -49
  10. data/data/Asia/Baku +2 -2
  11. data/data/Asia/Barnaul +3 -3
  12. data/data/Asia/Chita +3 -3
  13. data/data/Asia/Irkutsk +3 -3
  14. data/data/Asia/Kamchatka +3 -3
  15. data/data/Asia/Khandyga +3 -3
  16. data/data/Asia/Krasnoyarsk +3 -3
  17. data/data/Asia/Magadan +5 -4
  18. data/data/Asia/Novokuznetsk +3 -3
  19. data/data/Asia/Novosibirsk +3 -3
  20. data/data/Asia/Omsk +3 -3
  21. data/data/Asia/Oral +51 -50
  22. data/data/Asia/Qyzylorda +51 -50
  23. data/data/Asia/Sakhalin +3 -3
  24. data/data/Asia/Srednekolymsk +3 -3
  25. data/data/Asia/Tomsk +68 -0
  26. data/data/Asia/Ust-Nera +3 -3
  27. data/data/Asia/Vladivostok +3 -3
  28. data/data/Asia/Yakutsk +3 -3
  29. data/data/Asia/Yekaterinburg +3 -3
  30. data/data/Asia/Yerevan +3 -3
  31. data/data/Europe/Astrakhan +2 -2
  32. data/data/Europe/Kaliningrad +3 -3
  33. data/data/Europe/Kirov +64 -0
  34. data/data/Europe/Minsk +2 -2
  35. data/data/Europe/Moscow +3 -3
  36. data/data/Europe/Samara +3 -3
  37. data/data/Europe/Ulyanovsk +3 -3
  38. data/data/Europe/Volgograd +2 -2
  39. data/data/W-SU +3 -3
  40. data/lib/timezone/error.rb +0 -4
  41. data/lib/timezone/lookup/basic.rb +1 -7
  42. data/lib/timezone/lookup/geonames.rb +7 -6
  43. data/lib/timezone/lookup/google.rb +2 -1
  44. data/lib/timezone/net_http_client.rb +1 -10
  45. data/lib/timezone/version.rb +1 -1
  46. data/lib/timezone/zone.rb +1 -122
  47. data/test/http_test_client.rb +1 -2
  48. data/test/mocks/{api_limit_reached.txt → api_limit_reached.json} +0 -0
  49. data/test/mocks/invalid_latlong.json +1 -0
  50. data/test/mocks/invalid_parameter.json +1 -0
  51. data/test/{basic_lookup_test.rb → timezone/lookup/test_basic.rb} +3 -1
  52. data/test/timezone/lookup/test_geonames.rb +33 -4
  53. data/test/timezone/test_zone.rb +211 -3
  54. data/timezone.gemspec +14 -13
  55. metadata +22 -26
  56. data/lib/timezone/active_support.rb +0 -156
  57. data/lib/timezone/configure.rb +0 -258
  58. data/test/geonames_lookup_test.rb +0 -56
  59. data/test/google_lookup_test.rb +0 -81
  60. data/test/test_lookup_test.rb +0 -41
  61. data/test/timezone_test.rb +0 -297
@@ -23,9 +23,9 @@
23
23
  15724800:YAKT:0:32400
24
24
  15728400:YAKST:1:32400
25
25
  9676800:YAKT:0:28800
26
- 6033600:YAKT:0:32400
27
- 15721200:YAKST:1:36000
28
- 15739200:YAKT:0:32400
26
+ 6044400:YAKT:0:32400
27
+ 15724800:YAKST:1:36000
28
+ 15724800:YAKT:0:32400
29
29
  15724800:YAKST:1:36000
30
30
  15724800:YAKT:0:32400
31
31
  15724800:YAKST:1:36000
@@ -23,9 +23,9 @@
23
23
  15724800:KRAT:0:25200
24
24
  15728400:KRAST:1:25200
25
25
  9676800:KRAT:0:21600
26
- 6033600:KRAT:0:25200
27
- 15721200:KRAST:1:28800
28
- 15739200:KRAT:0:25200
26
+ 6044400:KRAT:0:25200
27
+ 15724800:KRAST:1:28800
28
+ 15724800:KRAT:0:25200
29
29
  15724800:KRAST:1:28800
30
30
  15724800:KRAT:0:25200
31
31
  15724800:KRAST:1:28800
@@ -23,9 +23,9 @@
23
23
  15724800:MAGT:0:39600
24
24
  15728400:MAGST:1:39600
25
25
  9676800:MAGT:0:36000
26
- 6033600:MAGT:0:39600
27
- 15721200:MAGST:1:43200
28
- 15739200:MAGT:0:39600
26
+ 6044400:MAGT:0:39600
27
+ 15724800:MAGST:1:43200
28
+ 15724800:MAGT:0:39600
29
29
  15724800:MAGST:1:43200
30
30
  15724800:MAGT:0:39600
31
31
  15724800:MAGST:1:43200
@@ -63,4 +63,5 @@
63
63
  18748800:MAGST:1:43200
64
64
  12700800:MAGT:0:39600
65
65
  113094000:MAGT:0:43200
66
- 21463201:MAGT:0:36000
66
+ 47181600:MAGT:0:36000
67
+ 1:MAGT:0:39600
@@ -23,9 +23,9 @@
23
23
  15724800:KRAT:0:25200
24
24
  15728400:KRAST:1:25200
25
25
  9676800:KRAT:0:21600
26
- 6033600:KRAT:0:25200
27
- 15721200:KRAST:1:28800
28
- 15739200:KRAT:0:25200
26
+ 6044400:KRAT:0:25200
27
+ 15724800:KRAST:1:28800
28
+ 15724800:KRAT:0:25200
29
29
  15724800:KRAST:1:28800
30
30
  15724800:KRAT:0:25200
31
31
  15724800:KRAST:1:28800
@@ -23,9 +23,9 @@
23
23
  15724800:NOVT:0:25200
24
24
  15728400:NOVST:1:25200
25
25
  9676800:NOVT:0:21600
26
- 6033600:NOVT:0:25200
27
- 15721200:NOVST:1:28800
28
- 15739200:NOVT:0:25200
26
+ 6044400:NOVT:0:25200
27
+ 15724800:NOVST:1:28800
28
+ 15724800:NOVT:0:25200
29
29
  4827600:NOVST:1:28800
30
30
  10900800:NOVST:1:25200
31
31
  15724800:NOVT:0:21600
@@ -23,9 +23,9 @@
23
23
  15724800:OMST:0:21600
24
24
  15728400:OMSST:1:21600
25
25
  9676800:OMST:0:18000
26
- 6033600:OMST:0:21600
27
- 15721200:OMSST:1:25200
28
- 15739200:OMST:0:21600
26
+ 6044400:OMST:0:21600
27
+ 15724800:OMSST:1:25200
28
+ 15724800:OMST:0:21600
29
29
  15724800:OMSST:1:25200
30
30
  15724800:OMST:0:21600
31
31
  15724800:OMSST:1:25200
@@ -1,51 +1,52 @@
1
1
  -1441164325:LMT:0:12324
2
- 193620324:URAT:0:14400
3
- 1602457200:URAT:0:18000
4
- 15807600:URAST:1:21600
5
- 15724800:URAT:0:21600
6
- 15811200:URAST:1:21600
7
- 15728400:URAT:0:18000
8
- 15807600:URAST:1:21600
9
- 15814800:URAT:0:18000
10
- 15732000:URAST:1:21600
11
- 15724800:URAT:0:18000
12
- 15724800:URAST:1:21600
13
- 15724800:URAT:0:18000
14
- 15724800:URAST:1:21600
15
- 15724800:URAT:0:18000
16
- 15724800:URAST:1:21600
17
- 15724800:URAT:0:18000
18
- 15724800:URAST:1:21600
19
- 15724800:URAT:0:18000
20
- 15728400:URAST:1:18000
21
- 15724800:URAT:0:14400
22
- 16329600:URAST:1:18000
23
- 38181600:URAT:0:14400
24
- 8982000:ORAT:0:14400
25
- 15721200:ORAST:1:18000
26
- 15739200:ORAT:0:14400
27
- 15724800:ORAST:1:18000
28
- 15724800:ORAT:0:14400
29
- 15724800:ORAST:1:18000
30
- 15724800:ORAT:0:14400
31
- 15724800:ORAST:1:18000
32
- 16329600:ORAT:0:14400
33
- 18144000:ORAST:1:18000
34
- 13305600:ORAT:0:14400
35
- 18144000:ORAST:1:18000
36
- 13305600:ORAT:0:14400
37
- 18144000:ORAST:1:18000
38
- 13305600:ORAT:0:14400
39
- 18748800:ORAST:1:18000
40
- 12700800:ORAT:0:14400
41
- 18748800:ORAST:1:18000
42
- 12700800:ORAT:0:14400
43
- 18748800:ORAST:1:18000
44
- 13305600:ORAT:0:14400
45
- 18144000:ORAST:1:18000
46
- 13305600:ORAT:0:14400
47
- 18144000:ORAST:1:18000
48
- 13305600:ORAT:0:14400
49
- 18748800:ORAST:1:18000
50
- 11656800:ORAT:0:14400
51
- 324878401:ORAT:0:18000
2
+ 193620324:+04:0:14400
3
+ 1602457200:+05:0:18000
4
+ 15807600:+06:1:21600
5
+ 15724800:+06:0:21600
6
+ 15811200:+06:1:21600
7
+ 15728400:+05:0:18000
8
+ 15807600:+06:1:21600
9
+ 15814800:+05:0:18000
10
+ 15732000:+06:1:21600
11
+ 15724800:+05:0:18000
12
+ 15724800:+06:1:21600
13
+ 15724800:+05:0:18000
14
+ 15724800:+06:1:21600
15
+ 15724800:+05:0:18000
16
+ 15724800:+06:1:21600
17
+ 15724800:+05:0:18000
18
+ 15724800:+06:1:21600
19
+ 15724800:+05:0:18000
20
+ 15728400:+05:1:18000
21
+ 15724800:+04:0:14400
22
+ 16329600:+05:1:18000
23
+ 15724800:+04:0:14400
24
+ 15724800:+05:1:18000
25
+ 9676800:+04:0:14400
26
+ 6044400:+05:0:18000
27
+ 15728400:+05:1:18000
28
+ 15724800:+04:0:14400
29
+ 15724800:+05:1:18000
30
+ 15724800:+04:0:14400
31
+ 15724800:+05:1:18000
32
+ 15724800:+04:0:14400
33
+ 15724800:+05:1:18000
34
+ 16329600:+04:0:14400
35
+ 18144000:+05:1:18000
36
+ 13305600:+04:0:14400
37
+ 18144000:+05:1:18000
38
+ 13305600:+04:0:14400
39
+ 18144000:+05:1:18000
40
+ 13305600:+04:0:14400
41
+ 18748800:+05:1:18000
42
+ 12700800:+04:0:14400
43
+ 18748800:+05:1:18000
44
+ 12700800:+04:0:14400
45
+ 18748800:+05:1:18000
46
+ 13305600:+04:0:14400
47
+ 18144000:+05:1:18000
48
+ 13305600:+04:0:14400
49
+ 18144000:+05:1:18000
50
+ 13305600:+04:0:14400
51
+ 18748800:+05:1:18000
52
+ 336535201:+05:0:18000
@@ -1,51 +1,52 @@
1
1
  -1441167713:LMT:0:15712
2
- 193623712:KIZT:0:14400
3
- 1602457200:KIZT:0:18000
4
- 15807600:KIZST:1:21600
5
- 15724800:KIZT:0:21600
6
- 15811200:KIZST:1:21600
7
- 15728400:KIZT:0:18000
8
- 15807600:KIZST:1:21600
9
- 15814800:KIZT:0:18000
10
- 15732000:KIZST:1:21600
11
- 15724800:KIZT:0:18000
12
- 15724800:KIZST:1:21600
13
- 15724800:KIZT:0:18000
14
- 15724800:KIZST:1:21600
15
- 15724800:KIZT:0:18000
16
- 15724800:KIZST:1:21600
17
- 15724800:KIZT:0:18000
18
- 15724800:KIZST:1:21600
19
- 15724800:KIZT:0:18000
20
- 15724800:KIZST:1:21600
21
- 15724800:KIZT:0:18000
22
- 16329600:KIZST:1:21600
23
- 38181600:KIZT:0:18000
24
- 2944800:QYZT:0:18000
25
- 6033600:QYZT:0:21600
26
- 15721200:QYZST:1:25200
27
- 15739200:QYZT:0:21600
28
- 15724800:QYZST:1:25200
29
- 15724800:QYZT:0:21600
30
- 15724800:QYZST:1:25200
31
- 15724800:QYZT:0:21600
32
- 15724800:QYZST:1:25200
33
- 16329600:QYZT:0:21600
34
- 18144000:QYZST:1:25200
35
- 13305600:QYZT:0:21600
36
- 18144000:QYZST:1:25200
37
- 13305600:QYZT:0:21600
38
- 18144000:QYZST:1:25200
39
- 13305600:QYZT:0:21600
40
- 18748800:QYZST:1:25200
41
- 12700800:QYZT:0:21600
42
- 18748800:QYZST:1:25200
43
- 12700800:QYZT:0:21600
44
- 18748800:QYZST:1:25200
45
- 13305600:QYZT:0:21600
46
- 18144000:QYZST:1:25200
47
- 13305600:QYZT:0:21600
48
- 18144000:QYZST:1:25200
49
- 13305600:QYZT:0:21600
50
- 18748800:QYZST:1:25200
51
- 336542401:QYZT:0:21600
2
+ 193623712:+04:0:14400
3
+ 1602457200:+05:0:18000
4
+ 15807600:+06:1:21600
5
+ 15724800:+06:0:21600
6
+ 15811200:+06:1:21600
7
+ 15728400:+05:0:18000
8
+ 15807600:+06:1:21600
9
+ 15814800:+05:0:18000
10
+ 15732000:+06:1:21600
11
+ 15724800:+05:0:18000
12
+ 15724800:+06:1:21600
13
+ 15724800:+05:0:18000
14
+ 15724800:+06:1:21600
15
+ 15724800:+05:0:18000
16
+ 15724800:+06:1:21600
17
+ 15724800:+05:0:18000
18
+ 15724800:+06:1:21600
19
+ 15724800:+05:0:18000
20
+ 15724800:+06:1:21600
21
+ 15724800:+05:0:18000
22
+ 16329600:+06:1:21600
23
+ 15724800:+05:0:18000
24
+ 15728400:+05:1:18000
25
+ 9673200:+05:0:18000
26
+ 6044400:+06:0:21600
27
+ 15728400:+06:1:21600
28
+ 15724800:+05:0:18000
29
+ 15724800:+06:1:21600
30
+ 15724800:+05:0:18000
31
+ 15724800:+06:1:21600
32
+ 15724800:+05:0:18000
33
+ 15724800:+06:1:21600
34
+ 16329600:+05:0:18000
35
+ 18144000:+06:1:21600
36
+ 13305600:+05:0:18000
37
+ 18144000:+06:1:21600
38
+ 13305600:+05:0:18000
39
+ 18144000:+06:1:21600
40
+ 13305600:+05:0:18000
41
+ 18748800:+06:1:21600
42
+ 12700800:+05:0:18000
43
+ 18748800:+06:1:21600
44
+ 12700800:+05:0:18000
45
+ 18748800:+06:1:21600
46
+ 13305600:+05:0:18000
47
+ 18144000:+06:1:21600
48
+ 13305600:+05:0:18000
49
+ 18144000:+06:1:21600
50
+ 13305600:+05:0:18000
51
+ 18748800:+06:1:21600
52
+ 336538801:+06:0:21600
@@ -24,9 +24,9 @@
24
24
  15724800:SAKT:0:39600
25
25
  15728400:SAKST:1:39600
26
26
  9676800:SAKT:0:36000
27
- 6033600:SAKT:0:39600
28
- 15721200:SAKST:1:43200
29
- 15739200:SAKT:0:39600
27
+ 6044400:SAKT:0:39600
28
+ 15724800:SAKST:1:43200
29
+ 15724800:SAKT:0:39600
30
30
  15724800:SAKST:1:43200
31
31
  15724800:SAKT:0:39600
32
32
  15724800:SAKST:1:43200
@@ -23,9 +23,9 @@
23
23
  15724800:MAGT:0:39600
24
24
  15728400:MAGST:1:39600
25
25
  9676800:MAGT:0:36000
26
- 6033600:MAGT:0:39600
27
- 15721200:MAGST:1:43200
28
- 15739200:MAGT:0:39600
26
+ 6044400:MAGT:0:39600
27
+ 15724800:MAGST:1:43200
28
+ 15724800:MAGT:0:39600
29
29
  15724800:MAGST:1:43200
30
30
  15724800:MAGT:0:39600
31
31
  15724800:MAGST:1:43200
@@ -0,0 +1,68 @@
1
+ -1578807592:LMT:0:20391
2
+ 331256391:+06:0:21600
3
+ 1602457200:+07:0:25200
4
+ 15807600:+08:1:28800
5
+ 15728400:+07:0:25200
6
+ 15807600:+08:1:28800
7
+ 15728400:+07:0:25200
8
+ 15807600:+08:1:28800
9
+ 15814800:+07:0:25200
10
+ 15732000:+08:1:28800
11
+ 15724800:+07:0:25200
12
+ 15724800:+08:1:28800
13
+ 15724800:+07:0:25200
14
+ 15724800:+08:1:28800
15
+ 15724800:+07:0:25200
16
+ 15724800:+08:1:28800
17
+ 15724800:+07:0:25200
18
+ 15724800:+08:1:28800
19
+ 15724800:+07:0:25200
20
+ 15724800:+08:1:28800
21
+ 15724800:+07:0:25200
22
+ 16329600:+08:1:28800
23
+ 15724800:+07:0:25200
24
+ 15728400:+07:1:25200
25
+ 9676800:+06:0:21600
26
+ 6044400:+07:0:25200
27
+ 15724800:+08:1:28800
28
+ 15724800:+07:0:25200
29
+ 15724800:+08:1:28800
30
+ 15724800:+07:0:25200
31
+ 15724800:+08:1:28800
32
+ 15724800:+07:0:25200
33
+ 15724800:+08:1:28800
34
+ 16329600:+07:0:25200
35
+ 18144000:+08:1:28800
36
+ 13305600:+07:0:25200
37
+ 18144000:+08:1:28800
38
+ 13305600:+07:0:25200
39
+ 18144000:+08:1:28800
40
+ 13305600:+07:0:25200
41
+ 18748800:+08:1:28800
42
+ 12700800:+07:0:25200
43
+ 18748800:+08:1:28800
44
+ 12700800:+07:0:25200
45
+ 18748800:+08:1:28800
46
+ 13305600:+07:0:25200
47
+ 2678400:+08:1:28800
48
+ 15469200:+07:1:25200
49
+ 13305600:+06:0:21600
50
+ 18144000:+07:1:25200
51
+ 13305600:+06:0:21600
52
+ 18748800:+07:1:25200
53
+ 12700800:+06:0:21600
54
+ 18748800:+07:1:25200
55
+ 12700800:+06:0:21600
56
+ 18748800:+07:1:25200
57
+ 12700800:+06:0:21600
58
+ 18748800:+07:1:25200
59
+ 13305600:+06:0:21600
60
+ 18144000:+07:1:25200
61
+ 13305600:+06:0:21600
62
+ 18144000:+07:1:25200
63
+ 13305600:+06:0:21600
64
+ 18748800:+07:1:25200
65
+ 12700800:+06:0:21600
66
+ 113094000:+07:0:25200
67
+ 50202000:+06:0:21600
68
+ 1:+07:0:25200
@@ -23,9 +23,9 @@
23
23
  15724800:MAGT:0:39600
24
24
  15728400:MAGST:1:39600
25
25
  9676800:MAGT:0:36000
26
- 6033600:MAGT:0:39600
27
- 15721200:MAGST:1:43200
28
- 15739200:MAGT:0:39600
26
+ 6044400:MAGT:0:39600
27
+ 15724800:MAGST:1:43200
28
+ 15724800:MAGT:0:39600
29
29
  15724800:MAGST:1:43200
30
30
  15724800:MAGT:0:39600
31
31
  15724800:MAGST:1:43200
@@ -23,9 +23,9 @@
23
23
  15724800:VLAT:0:36000
24
24
  15728400:VLAST:1:36000
25
25
  9676800:VLAT:0:32400
26
- 6033600:VLAT:0:36000
27
- 15721200:VLAST:1:39600
28
- 15739200:VLAT:0:36000
26
+ 6044400:VLAT:0:36000
27
+ 15724800:VLAST:1:39600
28
+ 15724800:VLAT:0:36000
29
29
  15724800:VLAST:1:39600
30
30
  15724800:VLAT:0:36000
31
31
  15724800:VLAST:1:39600
@@ -23,9 +23,9 @@
23
23
  15724800:YAKT:0:32400
24
24
  15728400:YAKST:1:32400
25
25
  9676800:YAKT:0:28800
26
- 6033600:YAKT:0:32400
27
- 15721200:YAKST:1:36000
28
- 15739200:YAKT:0:32400
26
+ 6044400:YAKT:0:32400
27
+ 15724800:YAKST:1:36000
28
+ 15724800:YAKT:0:32400
29
29
  15724800:YAKST:1:36000
30
30
  15724800:YAKT:0:32400
31
31
  15724800:YAKST:1:36000
@@ -24,9 +24,9 @@
24
24
  15724800:SVET:0:18000
25
25
  15728400:SVEST:1:18000
26
26
  9676800:SVET:0:14400
27
- 6033600:YEKT:0:18000
28
- 15721200:YEKST:1:21600
29
- 15739200:YEKT:0:18000
27
+ 6044400:YEKT:0:18000
28
+ 15724800:YEKST:1:21600
29
+ 15724800:YEKT:0:18000
30
30
  15724800:YEKST:1:21600
31
31
  15724800:YEKT:0:18000
32
32
  15724800:YEKST:1:21600
@@ -23,9 +23,9 @@
23
23
  15724800:YERT:0:14400
24
24
  15199200:YERST:1:14400
25
25
  529200:AMST:1:14400
26
- 15714000:AMT:0:10800
27
- 15721200:AMST:1:14400
28
- 15739200:AMT:0:10800
26
+ 15724800:AMT:0:10800
27
+ 15724800:AMST:1:14400
28
+ 15724800:AMT:0:10800
29
29
  15724800:AMST:1:14400
30
30
  15724800:AMT:0:10800
31
31
  15724800:AMST:1:14400