tzdetect 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/tzdetect/version.rb +1 -1
- data/lib/tzdetect/zone.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -76,7 +76,7 @@ Return TZInfo object
|
|
76
76
|
tz.name # "Europe/Belgrade"
|
77
77
|
|
78
78
|
tz = TimeZone.new("US", "Miami", "Florida", 25.774265, -80.193658)
|
79
|
-
tz.name # "America/New_York"
|
79
|
+
tz.timezone.name # "America/New_York"
|
80
80
|
|
81
81
|
### Getting the timezone for a specific latitude and longitude
|
82
82
|
|
data/lib/tzdetect/version.rb
CHANGED
data/lib/tzdetect/zone.rb
CHANGED
@@ -66,7 +66,7 @@ module TZDetect
|
|
66
66
|
# Returns TZInfo object and raise errors
|
67
67
|
def get! country_code, city, region="", latitude=nil, longitude=nil
|
68
68
|
m = self.new country_code, city, region, latitude, longitude
|
69
|
-
m.timezone
|
69
|
+
m.timezone
|
70
70
|
end
|
71
71
|
|
72
72
|
# Detect timezone by country code city region and position data
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tzdetect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-12-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tzinfo
|
16
|
-
requirement: &
|
16
|
+
requirement: &77827240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.3.33
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *77827240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &77826990 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '1.7'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *77826990
|
36
36
|
description: Detects timezone by address or location using google or geoname web
|
37
37
|
service
|
38
38
|
email:
|