faker19 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/faker/address.rb +8 -0
- data/lib/faker/version.rb +1 -1
- metadata +5 -5
data/lib/faker/address.rb
CHANGED
@@ -38,6 +38,14 @@ module Faker
|
|
38
38
|
def state; fetch('address.state'); end
|
39
39
|
def country; fetch('address.country'); end
|
40
40
|
|
41
|
+
def latitude
|
42
|
+
((rand * 180) - 90).to_s
|
43
|
+
end
|
44
|
+
|
45
|
+
def longitude
|
46
|
+
((rand * 360) - 180).to_s
|
47
|
+
end
|
48
|
+
|
41
49
|
# You can add whatever you want to the locale file, and it will get
|
42
50
|
# caught here... e.g., create a country_code array in your locale,
|
43
51
|
# then you can call #country_code and it will act like #country
|
data/lib/faker/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faker19
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ default_executable:
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n
|
18
|
-
requirement: &
|
18
|
+
requirement: &2153907560 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 0.6.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2153907560
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
|
-
requirement: &
|
29
|
+
requirement: &2153907140 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2153907140
|
38
38
|
description: ! 'Faker, a port of Data::Faker from Perl, is used to easily generate
|
39
39
|
fake data: names, addresses, phone numbers, etc.'
|
40
40
|
email:
|