faker 2.0.0 → 2.2.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -1
- data/README.md +3 -3
- data/lib/faker.rb +22 -1
- data/lib/faker/books/dune.rb +12 -2
- data/lib/faker/books/lovecraft.rb +54 -7
- data/lib/faker/default/address.rb +30 -5
- data/lib/faker/default/alphanumeric.rb +45 -7
- data/lib/faker/default/app.rb +16 -1
- data/lib/faker/default/avatar.rb +24 -1
- data/lib/faker/default/bank.rb +12 -2
- data/lib/faker/default/boolean.rb +6 -1
- data/lib/faker/default/chile_rut.rb +20 -2
- data/lib/faker/default/code.rb +22 -3
- data/lib/faker/default/commerce.rb +26 -3
- data/lib/faker/default/company.rb +12 -2
- data/lib/faker/default/crypto_coin.rb +18 -3
- data/lib/faker/default/date.rb +48 -5
- data/lib/faker/default/demographic.rb +6 -1
- data/lib/faker/default/driving_licence.rb +20 -4
- data/lib/faker/default/file.rb +36 -2
- data/lib/faker/default/fillmurray.rb +16 -1
- data/lib/faker/default/finance.rb +6 -1
- data/lib/faker/default/hipster.rb +78 -6
- data/lib/faker/default/id_number.rb +50 -3
- data/lib/faker/default/internet.rb +124 -13
- data/lib/faker/default/invoice.rb +22 -3
- data/lib/faker/default/json.rb +26 -2
- data/lib/faker/default/lorem.rb +120 -10
- data/lib/faker/default/lorem_flickr.rb +69 -5
- data/lib/faker/default/lorem_pixel.rb +26 -1
- data/lib/faker/default/markdown.rb +10 -1
- data/lib/faker/default/measurement.rb +48 -8
- data/lib/faker/default/name.rb +6 -1
- data/lib/faker/default/nhs.rb +6 -1
- data/lib/faker/default/number.rb +81 -11
- data/lib/faker/default/omniauth.rb +84 -5
- data/lib/faker/default/phone_number.rb +6 -1
- data/lib/faker/default/placeholdit.rb +24 -1
- data/lib/faker/default/relationship.rb +6 -1
- data/lib/faker/default/source.rb +22 -3
- data/lib/faker/default/string.rb +6 -1
- data/lib/faker/default/stripe.rb +24 -4
- data/lib/faker/default/time.rb +68 -4
- data/lib/faker/default/twitter.rb +26 -3
- data/lib/faker/default/types.rb +38 -5
- data/lib/faker/default/vehicle.rb +22 -3
- data/lib/faker/default/world_cup.rb +16 -2
- data/lib/faker/games/dota.rb +6 -1
- data/lib/faker/movies/star_wars.rb +6 -1
- data/lib/faker/version.rb +1 -1
- data/lib/locales/en.yml +0 -47
- metadata +11 -11
data/lib/faker/default/time.rb
CHANGED
@@ -13,7 +13,22 @@ module Faker
|
|
13
13
|
}.freeze
|
14
14
|
|
15
15
|
class << self
|
16
|
-
|
16
|
+
# rubocop:disable Metrics/ParameterLists
|
17
|
+
def between(legacy_from = NOT_GIVEN, legacy_to = NOT_GIVEN, legacy_format = NOT_GIVEN, from:, to:, format: nil)
|
18
|
+
# rubocop:enable Metrics/ParameterLists
|
19
|
+
if legacy_from != NOT_GIVEN
|
20
|
+
warn_with_uplevel 'Passing `from` with the 1st argument of `Time.between` is deprecated. Use keyword argument like `Time.between(from: ...)` instead.', uplevel: 1
|
21
|
+
from = legacy_from
|
22
|
+
end
|
23
|
+
if legacy_to != NOT_GIVEN
|
24
|
+
warn_with_uplevel 'Passing `to` with the 2nd argument of `Time.between` is deprecated. Use keyword argument like `Time.between(to: ...)` instead.', uplevel: 1
|
25
|
+
to = legacy_to
|
26
|
+
end
|
27
|
+
if legacy_format != NOT_GIVEN
|
28
|
+
warn_with_uplevel 'Passing `format` with the 3rd argument of `Time.between` is deprecated. Use keyword argument like `Time.between(format: ...)` instead.', uplevel: 1
|
29
|
+
format = legacy_format
|
30
|
+
end
|
31
|
+
|
17
32
|
from = get_time_object(from)
|
18
33
|
to = get_time_object(to)
|
19
34
|
|
@@ -21,17 +36,66 @@ module Faker
|
|
21
36
|
time_with_format(time, format)
|
22
37
|
end
|
23
38
|
|
24
|
-
|
39
|
+
# rubocop:disable Metrics/ParameterLists
|
40
|
+
def between_dates(legacy_from = NOT_GIVEN, legacy_to = NOT_GIVEN, legacy_period = NOT_GIVEN, legacy_format = NOT_GIVEN, from:, to:, period: :all, format: nil)
|
41
|
+
# rubocop:enable Metrics/ParameterLists
|
42
|
+
if legacy_from != NOT_GIVEN
|
43
|
+
warn_with_uplevel 'Passing `from` with the 1st argument of `Time.between_dates` is deprecated. Use keyword argument like `Time.between_dates(from: ...)` instead.', uplevel: 1
|
44
|
+
from = legacy_from
|
45
|
+
end
|
46
|
+
if legacy_to != NOT_GIVEN
|
47
|
+
warn_with_uplevel 'Passing `to` with the 2nd argument of `Time.between_dates` is deprecated. Use keyword argument like `Time.between_dates(to: ...)` instead.', uplevel: 1
|
48
|
+
to = legacy_to
|
49
|
+
end
|
50
|
+
if legacy_period != NOT_GIVEN
|
51
|
+
warn_with_uplevel 'Passing `period` with the 3rd argument of `Time.between_dates` is deprecated. Use keyword argument like `Time.between_dates(period: ...)` instead.', uplevel: 1
|
52
|
+
period = legacy_period
|
53
|
+
end
|
54
|
+
if legacy_format != NOT_GIVEN
|
55
|
+
warn_with_uplevel 'Passing `format` with the 4th argument of `Time.between_dates` is deprecated. Use keyword argument like `Time.between_dates(format: ...)` instead.', uplevel: 1
|
56
|
+
format = legacy_format
|
57
|
+
end
|
58
|
+
|
25
59
|
date = Faker::Date.between(from: from, to: to)
|
26
60
|
time = date_with_random_time(date, period)
|
27
61
|
time_with_format(time, format)
|
28
62
|
end
|
29
63
|
|
30
|
-
|
64
|
+
# rubocop:disable Metrics/ParameterLists
|
65
|
+
def forward(legacy_days = NOT_GIVEN, legacy_period = NOT_GIVEN, legacy_format = NOT_GIVEN, days: 365, period: :all, format: nil)
|
66
|
+
# rubocop:enable Metrics/ParameterLists
|
67
|
+
if legacy_days != NOT_GIVEN
|
68
|
+
warn_with_uplevel 'Passing `days` with the 1st argument of `Time.forward` is deprecated. Use keyword argument like `Time.forward(days: ...)` instead.', uplevel: 1
|
69
|
+
days = legacy_days
|
70
|
+
end
|
71
|
+
if legacy_period != NOT_GIVEN
|
72
|
+
warn_with_uplevel 'Passing `period` with the 2nd argument of `Time.forward` is deprecated. Use keyword argument like `Time.forward(period: ...)` instead.', uplevel: 1
|
73
|
+
period = legacy_period
|
74
|
+
end
|
75
|
+
if legacy_format != NOT_GIVEN
|
76
|
+
warn_with_uplevel 'Passing `format` with the 3rd argument of `Time.forward` is deprecated. Use keyword argument like `Time.forward(format: ...)` instead.', uplevel: 1
|
77
|
+
format = legacy_format
|
78
|
+
end
|
79
|
+
|
31
80
|
time_with_format(date_with_random_time(Faker::Date.forward(days: days), period), format)
|
32
81
|
end
|
33
82
|
|
34
|
-
|
83
|
+
# rubocop:disable Metrics/ParameterLists
|
84
|
+
def backward(legacy_days = NOT_GIVEN, legacy_period = NOT_GIVEN, legacy_format = NOT_GIVEN, days: 365, period: :all, format: nil)
|
85
|
+
# rubocop:enable Metrics/ParameterLists
|
86
|
+
if legacy_days != NOT_GIVEN
|
87
|
+
warn_with_uplevel 'Passing `days` with the 1st argument of `Time.backward` is deprecated. Use keyword argument like `Time.backward(days: ...)` instead.', uplevel: 1
|
88
|
+
days = legacy_days
|
89
|
+
end
|
90
|
+
if legacy_period != NOT_GIVEN
|
91
|
+
warn_with_uplevel 'Passing `period` with the 2nd argument of `Time.backward` is deprecated. Use keyword argument like `Time.backward(period: ...)` instead.', uplevel: 1
|
92
|
+
period = legacy_period
|
93
|
+
end
|
94
|
+
if legacy_format != NOT_GIVEN
|
95
|
+
warn_with_uplevel 'Passing `format` with the 3rd argument of `Time.backward` is deprecated. Use keyword argument like `Time.backward(format: ...)` instead.', uplevel: 1
|
96
|
+
format = legacy_format
|
97
|
+
end
|
98
|
+
|
35
99
|
time_with_format(date_with_random_time(Faker::Date.backward(days: days), period), format)
|
36
100
|
end
|
37
101
|
|
@@ -3,7 +3,16 @@
|
|
3
3
|
module Faker
|
4
4
|
class Twitter < Base
|
5
5
|
class << self
|
6
|
-
def user(include_status: true, include_email: false)
|
6
|
+
def user(legacy_include_status = NOT_GIVEN, legacy_include_email = NOT_GIVEN, include_status: true, include_email: false)
|
7
|
+
if legacy_include_status != NOT_GIVEN
|
8
|
+
warn_with_uplevel 'Passing `include_status` with the 1st argument of `Twitter.user` is deprecated. Use keyword argument like `Twitter.user(include_status: ...)` instead.', uplevel: 1
|
9
|
+
include_status = legacy_include_status
|
10
|
+
end
|
11
|
+
if legacy_include_email != NOT_GIVEN
|
12
|
+
warn_with_uplevel 'Passing `include_email` with the 2nd argument of `Twitter.user` is deprecated. Use keyword argument like `Twitter.user(include_email: ...)` instead.', uplevel: 1
|
13
|
+
include_email = legacy_include_email
|
14
|
+
end
|
15
|
+
|
7
16
|
user_id = id
|
8
17
|
background_image_url = Faker::LoremPixel.image(size: '600x400') # TODO: Make the dimensions change
|
9
18
|
profile_image_url = Faker::Avatar.image(slug: user_id, size: '48x48')
|
@@ -54,7 +63,16 @@ module Faker
|
|
54
63
|
user
|
55
64
|
end
|
56
65
|
|
57
|
-
def status(include_user: true, include_photo: false)
|
66
|
+
def status(legacy_include_user = NOT_GIVEN, legacy_include_photo = NOT_GIVEN, include_user: true, include_photo: false)
|
67
|
+
if legacy_include_user != NOT_GIVEN
|
68
|
+
warn_with_uplevel 'Passing `include_user` with the 1st argument of `Twitter.status` is deprecated. Use keyword argument like `Twitter.status(include_user: ...)` instead.', uplevel: 1
|
69
|
+
include_user = legacy_include_user
|
70
|
+
end
|
71
|
+
if legacy_include_photo != NOT_GIVEN
|
72
|
+
warn_with_uplevel 'Passing `include_photo` with the 2nd argument of `Twitter.status` is deprecated. Use keyword argument like `Twitter.status(include_photo: ...)` instead.', uplevel: 1
|
73
|
+
include_photo = legacy_include_photo
|
74
|
+
end
|
75
|
+
|
58
76
|
status_id = id
|
59
77
|
status = {
|
60
78
|
id: status_id,
|
@@ -116,7 +134,12 @@ module Faker
|
|
116
134
|
}
|
117
135
|
end
|
118
136
|
|
119
|
-
def status_entities(include_photo: false)
|
137
|
+
def status_entities(legacy_include_photo = NOT_GIVEN, include_photo: false)
|
138
|
+
if legacy_include_photo != NOT_GIVEN
|
139
|
+
warn_with_uplevel 'Passing `include_photo` with the 1st argument of `Twitter.status_entities` is deprecated. Use keyword argument like `Twitter.status_entities(include_photo: ...)` instead.', uplevel: 1
|
140
|
+
include_photo = legacy_include_photo
|
141
|
+
end
|
142
|
+
|
120
143
|
entities = {
|
121
144
|
hashtags: [],
|
122
145
|
symbols: [],
|
data/lib/faker/default/types.rb
CHANGED
@@ -7,7 +7,12 @@ module Faker
|
|
7
7
|
COMPLEX_TYPES = %i[hash array].freeze
|
8
8
|
|
9
9
|
class << self
|
10
|
-
def rb_string(words: 1)
|
10
|
+
def rb_string(legacy_words = NOT_GIVEN, words: 1)
|
11
|
+
if legacy_words != NOT_GIVEN
|
12
|
+
warn_with_uplevel 'Passing `words` with the 1st argument of `Types.rb_string` is deprecated. Use keyword argument like `Types.rb_string(words: ...)` instead.', uplevel: 1
|
13
|
+
words = legacy_words
|
14
|
+
end
|
15
|
+
|
11
16
|
resolved_num = resolve(words)
|
12
17
|
word_list =
|
13
18
|
translate('faker.lorem.words')
|
@@ -20,11 +25,29 @@ module Faker
|
|
20
25
|
sample(CHARACTERS)
|
21
26
|
end
|
22
27
|
|
23
|
-
def rb_integer(from: 0, to: 100)
|
28
|
+
def rb_integer(legacy_from = NOT_GIVEN, legacy_to = NOT_GIVEN, from: 0, to: 100)
|
29
|
+
if legacy_from != NOT_GIVEN
|
30
|
+
warn_with_uplevel 'Passing `from` with the 1st argument of `Types.rb_integer` is deprecated. Use keyword argument like `Types.rb_integer(from: ...)` instead.', uplevel: 1
|
31
|
+
from = legacy_from
|
32
|
+
end
|
33
|
+
if legacy_to != NOT_GIVEN
|
34
|
+
warn_with_uplevel 'Passing `to` with the 2nd argument of `Types.rb_integer` is deprecated. Use keyword argument like `Types.rb_integer(to: ...)` instead.', uplevel: 1
|
35
|
+
to = legacy_to
|
36
|
+
end
|
37
|
+
|
24
38
|
rand(from..to).to_i
|
25
39
|
end
|
26
40
|
|
27
|
-
def rb_hash(number: 1, type: random_type)
|
41
|
+
def rb_hash(legacy_number = NOT_GIVEN, legacy_type = NOT_GIVEN, number: 1, type: random_type)
|
42
|
+
if legacy_number != NOT_GIVEN
|
43
|
+
warn_with_uplevel 'Passing `number` with the 1st argument of `Types.rb_hash` is deprecated. Use keyword argument like `Types.rb_hash(number: ...)` instead.', uplevel: 1
|
44
|
+
number = legacy_number
|
45
|
+
end
|
46
|
+
if legacy_type != NOT_GIVEN
|
47
|
+
warn_with_uplevel 'Passing `type` with the 2nd argument of `Types.rb_hash` is deprecated. Use keyword argument like `Types.rb_hash(type: ...)` instead.', uplevel: 1
|
48
|
+
type = legacy_type
|
49
|
+
end
|
50
|
+
|
28
51
|
{}.tap do |hsh|
|
29
52
|
Lorem.words(number: number * 2).uniq.first(number).each do |s|
|
30
53
|
hsh.merge!(s.to_sym => type)
|
@@ -32,11 +55,21 @@ module Faker
|
|
32
55
|
end
|
33
56
|
end
|
34
57
|
|
35
|
-
def complex_rb_hash(number: 1)
|
58
|
+
def complex_rb_hash(legacy_number = NOT_GIVEN, number: 1)
|
59
|
+
if legacy_number != NOT_GIVEN
|
60
|
+
warn_with_uplevel 'Passing `number` with the 1st argument of `Types.complex_rb_hash` is deprecated. Use keyword argument like `Types.complex_rb_hash(number: ...)` instead.', uplevel: 1
|
61
|
+
number = legacy_number
|
62
|
+
end
|
63
|
+
|
36
64
|
rb_hash(number: number, type: random_complex_type)
|
37
65
|
end
|
38
66
|
|
39
|
-
def rb_array(len: 1)
|
67
|
+
def rb_array(legacy_len = NOT_GIVEN, len: 1)
|
68
|
+
if legacy_len != NOT_GIVEN
|
69
|
+
warn_with_uplevel 'Passing `len` with the 1st argument of `Types.rb_array` is deprecated. Use keyword argument like `Types.rb_array(len: ...)` instead.', uplevel: 1
|
70
|
+
len = legacy_len
|
71
|
+
end
|
72
|
+
|
40
73
|
[].tap do |ar|
|
41
74
|
len.times do
|
42
75
|
ar.push random_type
|
@@ -26,7 +26,12 @@ module Faker
|
|
26
26
|
fetch('vehicle.makes')
|
27
27
|
end
|
28
28
|
|
29
|
-
def model(make_of_model: '')
|
29
|
+
def model(legacy_make_of_model = NOT_GIVEN, make_of_model: '')
|
30
|
+
if legacy_make_of_model != NOT_GIVEN
|
31
|
+
warn_with_uplevel 'Passing `make_of_model` with the 1st argument of `Vehicle.model` is deprecated. Use keyword argument like `Vehicle.model(make_of_model: ...)` instead.', uplevel: 1
|
32
|
+
make_of_model = legacy_make_of_model
|
33
|
+
end
|
34
|
+
|
30
35
|
return fetch("vehicle.models_by_make.#{make}") if make_of_model.empty?
|
31
36
|
|
32
37
|
fetch("vehicle.models_by_make.#{make_of_model}")
|
@@ -85,13 +90,27 @@ module Faker
|
|
85
90
|
Faker::Time.backward(days: rand_in_range(365, 5475), period: :all, format: '%Y').to_i
|
86
91
|
end
|
87
92
|
|
88
|
-
def mileage(min: MILEAGE_MIN, max: MILEAGE_MAX)
|
93
|
+
def mileage(legacy_min = NOT_GIVEN, legacy_max = NOT_GIVEN, min: MILEAGE_MIN, max: MILEAGE_MAX)
|
94
|
+
if legacy_min != NOT_GIVEN
|
95
|
+
warn_with_uplevel 'Passing `min` with the 1st argument of `Vehicle.mileage` is deprecated. Use keyword argument like `Vehicle.mileage(min: ...)` instead.', uplevel: 1
|
96
|
+
min = legacy_min
|
97
|
+
end
|
98
|
+
if legacy_max != NOT_GIVEN
|
99
|
+
warn_with_uplevel 'Passing `max` with the 2nd argument of `Vehicle.mileage` is deprecated. Use keyword argument like `Vehicle.mileage(max: ...)` instead.', uplevel: 1
|
100
|
+
max = legacy_max
|
101
|
+
end
|
102
|
+
|
89
103
|
rand_in_range(min, max)
|
90
104
|
end
|
91
105
|
|
92
106
|
alias kilometrage mileage
|
93
107
|
|
94
|
-
def license_plate(state_abreviation: '')
|
108
|
+
def license_plate(legacy_state_abreviation = NOT_GIVEN, state_abreviation: '')
|
109
|
+
if legacy_state_abreviation != NOT_GIVEN
|
110
|
+
warn_with_uplevel 'Passing `state_abreviation` with the 1st argument of `Vehicle.license_plate` is deprecated. Use keyword argument like `Vehicle.license_plate(state_abreviation: ...)` instead.', uplevel: 1
|
111
|
+
state_abreviation = legacy_state_abreviation
|
112
|
+
end
|
113
|
+
|
95
114
|
return regexify(bothify(fetch('vehicle.license_plate'))) if state_abreviation.empty?
|
96
115
|
|
97
116
|
key = 'vehicle.license_plate_by_state.' + state_abreviation
|
@@ -15,11 +15,25 @@ module Faker
|
|
15
15
|
fetch('world_cup.stadiums')
|
16
16
|
end
|
17
17
|
|
18
|
-
def group(group: 'group_A')
|
18
|
+
def group(legacy_group = NOT_GIVEN, group: 'group_A')
|
19
|
+
if legacy_group != NOT_GIVEN
|
20
|
+
warn_with_uplevel 'Passing `group` with the 1st argument of `WorldCup.group` is deprecated. Use keyword argument like `WorldCup.group(group: ...)` instead.', uplevel: 1
|
21
|
+
group = legacy_group
|
22
|
+
end
|
23
|
+
|
19
24
|
fetch("world_cup.groups.#{group}")
|
20
25
|
end
|
21
26
|
|
22
|
-
def roster(country: 'Egypt', type: 'coach')
|
27
|
+
def roster(legacy_country = NOT_GIVEN, legacy_type = NOT_GIVEN, country: 'Egypt', type: 'coach')
|
28
|
+
if legacy_country != NOT_GIVEN
|
29
|
+
warn_with_uplevel 'Passing `country` with the 1st argument of `WorldCup.roster` is deprecated. Use keyword argument like `WorldCup.roster(country: ...)` instead.', uplevel: 1
|
30
|
+
country = legacy_country
|
31
|
+
end
|
32
|
+
if legacy_type != NOT_GIVEN
|
33
|
+
warn_with_uplevel 'Passing `type` with the 2nd argument of `WorldCup.roster` is deprecated. Use keyword argument like `WorldCup.roster(type: ...)` instead.', uplevel: 1
|
34
|
+
type = legacy_type
|
35
|
+
end
|
36
|
+
|
23
37
|
fetch("world_cup.rosters.#{country}.#{type}")
|
24
38
|
end
|
25
39
|
end
|
data/lib/faker/games/dota.rb
CHANGED
@@ -20,7 +20,12 @@ module Faker
|
|
20
20
|
fetch('games.dota.player')
|
21
21
|
end
|
22
22
|
|
23
|
-
def quote(hero: 'abaddon')
|
23
|
+
def quote(legacy_hero = NOT_GIVEN, hero: 'abaddon')
|
24
|
+
if legacy_hero != NOT_GIVEN
|
25
|
+
warn_with_uplevel 'Passing `hero` with the 1st argument of `Dota.quote` is deprecated. Use keyword argument like `Dota.quote(hero: ...)` instead.', uplevel: 1
|
26
|
+
hero = legacy_hero
|
27
|
+
end
|
28
|
+
|
24
29
|
fetch("games.dota.#{hero}.quote")
|
25
30
|
end
|
26
31
|
end
|
@@ -44,7 +44,12 @@ module Faker
|
|
44
44
|
sentence + sample(['.', '?', '!'])
|
45
45
|
end
|
46
46
|
|
47
|
-
def quote(character: nil)
|
47
|
+
def quote(legacy_character = NOT_GIVEN, character: nil)
|
48
|
+
if legacy_character != NOT_GIVEN
|
49
|
+
warn_with_uplevel 'Passing `character` with the 1st argument of `StarWars.quote` is deprecated. Use keyword argument like `StarWars.quote(character: ...)` instead.', uplevel: 1
|
50
|
+
character = legacy_character
|
51
|
+
end
|
52
|
+
|
48
53
|
quoted_characters = translate('faker.star_wars.quotes')
|
49
54
|
|
50
55
|
if character.nil?
|
data/lib/faker/version.rb
CHANGED
data/lib/locales/en.yml
CHANGED
@@ -9,50 +9,3 @@ en:
|
|
9
9
|
pm: "PM"
|
10
10
|
faker:
|
11
11
|
separator: ' & '
|
12
|
-
date:
|
13
|
-
abbr_day_names:
|
14
|
-
- Sun
|
15
|
-
- Mon
|
16
|
-
- Tue
|
17
|
-
- Wed
|
18
|
-
- Thu
|
19
|
-
- Fri
|
20
|
-
- Sat
|
21
|
-
abbr_month_names:
|
22
|
-
- Jan
|
23
|
-
- Feb
|
24
|
-
- Mar
|
25
|
-
- Apr
|
26
|
-
- May
|
27
|
-
- Jun
|
28
|
-
- Jul
|
29
|
-
- Aug
|
30
|
-
- Sep
|
31
|
-
- Oct
|
32
|
-
- Nov
|
33
|
-
- Dec
|
34
|
-
day_names:
|
35
|
-
- Sunday
|
36
|
-
- Monday
|
37
|
-
- Tuesday
|
38
|
-
- Wednesday
|
39
|
-
- Thursday
|
40
|
-
- Friday
|
41
|
-
- Saturday
|
42
|
-
formats:
|
43
|
-
default: "%m-%d-%Y"
|
44
|
-
long: "%B %d, %Y"
|
45
|
-
short: "%b %d"
|
46
|
-
month_names:
|
47
|
-
- January
|
48
|
-
- February
|
49
|
-
- March
|
50
|
-
- April
|
51
|
-
- May
|
52
|
-
- June
|
53
|
-
- July
|
54
|
-
- August
|
55
|
-
- September
|
56
|
-
- October
|
57
|
-
- November
|
58
|
-
- December
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Curtis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0.
|
20
|
+
version: '0.8'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0.
|
27
|
+
version: '0.8'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: minitest
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,14 +101,14 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 3.
|
104
|
+
version: 3.3.3
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - '='
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 3.
|
111
|
+
version: 3.3.3
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: timecop
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -514,13 +514,13 @@ files:
|
|
514
514
|
- lib/locales/vi.yml
|
515
515
|
- lib/locales/zh-CN.yml
|
516
516
|
- lib/locales/zh-TW.yml
|
517
|
-
homepage: https://github.com/
|
517
|
+
homepage: https://github.com/faker-ruby/faker
|
518
518
|
licenses:
|
519
519
|
- MIT
|
520
520
|
metadata:
|
521
|
-
changelog_uri: https://github.com/
|
522
|
-
source_code_uri: https://github.com/
|
523
|
-
bug_tracker_uri: https://github.com/
|
521
|
+
changelog_uri: https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md
|
522
|
+
source_code_uri: https://github.com/faker-ruby/faker
|
523
|
+
bug_tracker_uri: https://github.com/faker-ruby/faker/issues
|
524
524
|
post_install_message:
|
525
525
|
rdoc_options: []
|
526
526
|
require_paths:
|
@@ -536,7 +536,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
536
536
|
- !ruby/object:Gem::Version
|
537
537
|
version: '0'
|
538
538
|
requirements: []
|
539
|
-
rubygems_version: 3.0.
|
539
|
+
rubygems_version: 3.0.3
|
540
540
|
signing_key:
|
541
541
|
specification_version: 4
|
542
542
|
summary: Easily generate fake data
|