ffaker 2.16.0 → 2.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +32 -0
- data/README.md +6 -4
- data/REFERENCE.md +1484 -1257
- data/Rakefile +3 -3
- data/ffaker.gemspec +4 -7
- data/lib/ffaker/address_au.rb +1 -1
- data/lib/ffaker/address_br.rb +1 -1
- data/lib/ffaker/address_ca.rb +1 -1
- data/lib/ffaker/address_ch.rb +0 -2
- data/lib/ffaker/address_ch_de.rb +0 -2
- data/lib/ffaker/address_ch_fr.rb +0 -2
- data/lib/ffaker/address_ch_it.rb +0 -2
- data/lib/ffaker/address_da.rb +0 -2
- data/lib/ffaker/address_de.rb +0 -2
- data/lib/ffaker/address_fi.rb +0 -2
- data/lib/ffaker/address_fr.rb +0 -2
- data/lib/ffaker/address_gr.rb +0 -2
- data/lib/ffaker/address_id.rb +0 -2
- data/lib/ffaker/address_in.rb +0 -2
- data/lib/ffaker/address_it.rb +37 -0
- data/lib/ffaker/address_ja.rb +0 -2
- data/lib/ffaker/address_mx.rb +2 -8
- data/lib/ffaker/address_nl.rb +0 -2
- data/lib/ffaker/address_ru.rb +0 -2
- data/lib/ffaker/address_se.rb +0 -2
- data/lib/ffaker/address_sn.rb +0 -2
- data/lib/ffaker/address_ua.rb +0 -2
- data/lib/ffaker/address_uk.rb +0 -2
- data/lib/ffaker/address_us.rb +0 -2
- data/lib/ffaker/animal.rb +1 -1
- data/lib/ffaker/bacon_ipsum.rb +0 -2
- data/lib/ffaker/company_fr.rb +35 -0
- data/lib/ffaker/{courses.rb → courses_fr.rb} +2 -0
- data/lib/ffaker/data/address_br/city +0 -1
- data/lib/ffaker/data/address_br/state +1 -1
- data/lib/ffaker/data/address_it/city +111 -0
- data/lib/ffaker/data/address_it/region +20 -0
- data/lib/ffaker/data/filesystem/extension +31 -31
- data/lib/ffaker/data/food_pl/diary +14 -0
- data/lib/ffaker/data/food_pl/fermented +13 -0
- data/lib/ffaker/data/food_pl/fruits +34 -0
- data/lib/ffaker/data/food_pl/herbs +20 -0
- data/lib/ffaker/data/food_pl/meats +9 -0
- data/lib/ffaker/data/food_pl/preserves +10 -0
- data/lib/ffaker/data/food_pl/spices +26 -0
- data/lib/ffaker/data/food_pl/vegetables +45 -0
- data/lib/ffaker/data/freedom_ipsum/freedom_words +161 -0
- data/lib/ffaker/data/game/adj_and_adv +18 -0
- data/lib/ffaker/data/game/category +84 -0
- data/lib/ffaker/data/game/mechanic +182 -0
- data/lib/ffaker/data/game/nouns +37 -0
- data/lib/ffaker/data/game/prefixes +17 -0
- data/lib/ffaker/data/job_it/job_adj +37 -0
- data/lib/ffaker/data/job_it/job_noun +25 -0
- data/lib/ffaker/data/job_it/job_prefix +22 -0
- data/lib/ffaker/data/lorem/words +0 -67
- data/lib/ffaker/data/lorem_br/characters +36 -0
- data/lib/ffaker/data/lorem_br/words +183 -0
- data/lib/ffaker/data/lorem_it/words +321 -0
- data/lib/ffaker/data/name/pronouns +1 -1
- data/lib/ffaker/data/name_ga/first_names_male +286 -286
- data/lib/ffaker/data/phone_number_ja/four_disit_area_codes +41 -0
- data/lib/ffaker/data/phone_number_ja/one_disit_area_codes +3 -0
- data/lib/ffaker/data/phone_number_ja/three_disit_area_codes +296 -0
- data/lib/ffaker/data/phone_number_ja/two_disit_area_codes +48 -0
- data/lib/ffaker/data/sport_ru/summer +68 -0
- data/lib/ffaker/data/sport_ru/winter +20 -0
- data/lib/ffaker/dizzle_ipsum.rb +0 -2
- data/lib/ffaker/filesystem.rb +7 -7
- data/lib/ffaker/food_pl.rb +65 -0
- data/lib/ffaker/freedom_ipsum.rb +20 -0
- data/lib/ffaker/game.rb +33 -0
- data/lib/ffaker/gender_it.rb +17 -0
- data/lib/ffaker/gender_ru.rb +22 -0
- data/lib/ffaker/healthcare_ipsum.rb +0 -2
- data/lib/ffaker/hipster_ipsum.rb +0 -2
- data/lib/ffaker/identification_es_cl.rb +0 -2
- data/lib/ffaker/identification_es_co.rb +0 -1
- data/lib/ffaker/identification_it.rb +30 -0
- data/lib/ffaker/identification_kr.rb +1 -1
- data/lib/ffaker/identification_mx.rb +1 -3
- data/lib/ffaker/image.rb +8 -11
- data/lib/ffaker/internet.rb +1 -1
- data/lib/ffaker/internet_se.rb +1 -3
- data/lib/ffaker/job_it.rb +12 -0
- data/lib/ffaker/lorem_br.rb +45 -0
- data/lib/ffaker/lorem_cn.rb +0 -1
- data/lib/ffaker/lorem_it.rb +39 -0
- data/lib/ffaker/name_cs.rb +0 -2
- data/lib/ffaker/name_da.rb +0 -2
- data/lib/ffaker/name_de.rb +0 -2
- data/lib/ffaker/name_mx.rb +0 -2
- data/lib/ffaker/name_nb.rb +0 -2
- data/lib/ffaker/name_nl.rb +0 -2
- data/lib/ffaker/name_ph.rb +0 -2
- data/lib/ffaker/name_ru.rb +0 -2
- data/lib/ffaker/name_se.rb +0 -2
- data/lib/ffaker/name_th_en.rb +1 -1
- data/lib/ffaker/name_ua.rb +0 -2
- data/lib/ffaker/number.rb +26 -0
- data/lib/ffaker/phone_number_br.rb +2 -2
- data/lib/ffaker/phone_number_da.rb +0 -1
- data/lib/ffaker/phone_number_it.rb +8 -6
- data/lib/ffaker/phone_number_ja.rb +88 -0
- data/lib/ffaker/sport_ru.rb +25 -0
- data/lib/ffaker/ssn.rb +1 -3
- data/lib/ffaker/ssn_se.rb +0 -19
- data/lib/ffaker/string.rb +4 -4
- data/lib/ffaker/unit.rb +9 -10
- data/lib/ffaker/unit_english.rb +18 -21
- data/lib/ffaker/unit_metric.rb +15 -18
- data/lib/ffaker/utils/array_utils.rb +1 -1
- data/lib/ffaker/utils/module_utils.rb +23 -3
- data/lib/ffaker/vehicle.rb +1 -1
- data/lib/ffaker.rb +19 -4
- data/lib/version.rb +1 -1
- data/scripts/profiling.rb +1 -1
- data/scripts/reference.rb +2 -3
- data/test/helper.rb +4 -4
- data/test/test_address.rb +1 -1
- data/test/test_address_au.rb +3 -3
- data/test/test_address_br.rb +2 -2
- data/test/test_address_ca.rb +1 -1
- data/test/test_address_ch.rb +1 -1
- data/test/test_address_ch_de.rb +1 -1
- data/test/test_address_ch_fr.rb +1 -1
- data/test/test_address_ch_it.rb +1 -1
- data/test/test_address_da.rb +1 -1
- data/test/test_address_de.rb +1 -1
- data/test/test_address_fi.rb +3 -3
- data/test/test_address_fr.rb +1 -1
- data/test/test_address_gr.rb +1 -1
- data/test/test_address_id.rb +2 -2
- data/test/test_address_in.rb +1 -1
- data/test/test_address_it.rb +12 -0
- data/test/test_address_ja.rb +2 -2
- data/test/test_address_kr.rb +1 -1
- data/test/test_address_mx.rb +1 -1
- data/test/test_address_nl.rb +1 -1
- data/test/test_address_pl.rb +1 -1
- data/test/test_address_ru.rb +1 -1
- data/test/test_address_se.rb +3 -3
- data/test/test_address_sn.rb +1 -1
- data/test/test_address_ua.rb +1 -1
- data/test/test_address_uk.rb +1 -1
- data/test/test_address_us.rb +1 -1
- data/test/test_airline.rb +1 -1
- data/test/test_animal.rb +1 -1
- data/test/test_animal_cn.rb +1 -1
- data/test/test_animal_es.rb +1 -1
- data/test/test_animal_pl.rb +1 -1
- data/test/test_animal_us.rb +1 -1
- data/test/test_array_utils.rb +2 -1
- data/test/test_avatar.rb +1 -1
- data/test/test_aws.rb +2 -2
- data/test/test_bacon_ipsum.rb +1 -1
- data/test/test_bank.rb +3 -4
- data/test/test_book.rb +5 -5
- data/test/test_boolean.rb +1 -1
- data/test/test_cheesy_lingo.rb +1 -1
- data/test/test_code.rb +1 -1
- data/test/test_color.rb +1 -1
- data/test/test_color_pl.rb +1 -1
- data/test/test_color_ua.rb +1 -1
- data/test/test_company.rb +1 -1
- data/test/test_company_cn.rb +1 -1
- data/test/test_company_fr.rb +33 -0
- data/test/test_company_it.rb +1 -1
- data/test/test_company_ja.rb +1 -1
- data/test/test_company_se.rb +1 -1
- data/test/test_conference.rb +1 -1
- data/test/test_course_mathematiques.rb +1 -1
- data/test/test_course_philosophie.rb +1 -1
- data/test/test_currency.rb +1 -1
- data/test/test_dizzle_ipsum.rb +1 -1
- data/test/test_education.rb +1 -1
- data/test/test_education_cn.rb +1 -1
- data/test/{test_faker.rb → test_ffaker.rb} +6 -2
- data/test/test_filesystem.rb +12 -4
- data/test/test_food.rb +1 -1
- data/test/test_food_pl.rb +61 -0
- data/test/test_freedom_ipsum.rb +21 -0
- data/test/test_game.rb +28 -0
- data/test/test_gender.rb +2 -2
- data/test/test_gender_br.rb +1 -1
- data/test/test_gender_cn.rb +1 -1
- data/test/test_gender_id.rb +1 -1
- data/test/test_gender_it.rb +27 -0
- data/test/test_gender_ja.rb +1 -1
- data/test/test_gender_jp.rb +1 -1
- data/test/test_gender_kr.rb +1 -1
- data/test/test_gender_pl.rb +1 -1
- data/test/test_gender_ru.rb +23 -0
- data/test/test_geolocation.rb +1 -1
- data/test/test_guid.rb +1 -1
- data/test/test_healthcare_ipsum.rb +1 -1
- data/test/test_healthcare_ru.rb +2 -2
- data/test/test_hipster_ipsum.rb +1 -1
- data/test/test_html_ipsum.rb +2 -2
- data/test/test_identification.rb +1 -1
- data/test/test_identification_br.rb +1 -1
- data/test/test_identification_co.rb +2 -2
- data/test/test_identification_es.rb +1 -1
- data/test/test_identification_es_cl.rb +2 -2
- data/test/test_identification_es_mx.rb +1 -1
- data/test/test_identification_in.rb +1 -1
- data/test/test_identification_it.rb +34 -0
- data/test/test_identification_kr.rb +1 -1
- data/test/test_identification_tw.rb +1 -1
- data/test/test_image.rb +5 -5
- data/test/test_internet.rb +1 -1
- data/test/test_internet_se.rb +2 -2
- data/test/test_job.rb +1 -1
- data/test/test_job_br.rb +1 -1
- data/test/test_job_cn.rb +1 -1
- data/test/test_job_fr.rb +1 -1
- data/test/test_job_it.rb +17 -0
- data/test/test_job_ja.rb +1 -1
- data/test/test_job_kr.rb +1 -1
- data/test/test_job_vn.rb +1 -1
- data/test/test_locale.rb +1 -1
- data/test/test_lorem.rb +5 -1
- data/test/test_lorem_ar.rb +1 -1
- data/test/test_lorem_br.rb +62 -0
- data/test/test_lorem_cn.rb +1 -1
- data/test/test_lorem_fr.rb +10 -8
- data/test/test_lorem_ie.rb +1 -1
- data/test/test_lorem_it.rb +51 -0
- data/test/test_lorem_ja.rb +1 -1
- data/test/test_lorem_kr.rb +1 -1
- data/test/test_lorem_pl.rb +2 -2
- data/test/test_lorem_ru.rb +2 -2
- data/test/test_lorem_ua.rb +2 -2
- data/test/test_module_utils.rb +1 -1
- data/test/test_movie.rb +1 -1
- data/test/test_music.rb +5 -5
- data/test/test_name.rb +1 -1
- data/test/test_name_ar.rb +1 -1
- data/test/test_name_br.rb +1 -1
- data/test/test_name_cn.rb +1 -1
- data/test/test_name_cs.rb +1 -1
- data/test/test_name_da.rb +1 -1
- data/test/test_name_de.rb +1 -1
- data/test/test_name_es.rb +1 -1
- data/test/test_name_fr.rb +1 -1
- data/test/test_name_ga.rb +1 -1
- data/test/test_name_gr.rb +1 -1
- data/test/test_name_id.rb +1 -1
- data/test/test_name_it.rb +1 -1
- data/test/test_name_ja.rb +1 -1
- data/test/test_name_kh.rb +1 -1
- data/test/test_name_kr.rb +1 -1
- data/test/test_name_mx.rb +1 -1
- data/test/test_name_nb.rb +1 -1
- data/test/test_name_nl.rb +1 -1
- data/test/test_name_ph.rb +1 -1
- data/test/test_name_pl.rb +1 -1
- data/test/test_name_ru.rb +1 -1
- data/test/test_name_se.rb +1 -1
- data/test/test_name_sn.rb +1 -1
- data/test/test_name_th.rb +1 -1
- data/test/test_name_th_en.rb +1 -1
- data/test/test_name_tw.rb +1 -1
- data/test/test_name_ua.rb +1 -1
- data/test/test_name_vn.rb +1 -1
- data/test/test_nato_alphabet.rb +1 -1
- data/test/test_number.rb +45 -0
- data/test/test_phone_number.rb +1 -1
- data/test/test_phone_number_au.rb +1 -1
- data/test/test_phone_number_br.rb +1 -1
- data/test/test_phone_number_cu.rb +1 -1
- data/test/test_phone_number_da.rb +1 -1
- data/test/test_phone_number_de.rb +1 -1
- data/test/test_phone_number_fr.rb +1 -1
- data/test/test_phone_number_id.rb +1 -1
- data/test/test_phone_number_it.rb +12 -0
- data/test/test_phone_number_ja.rb +63 -0
- data/test/test_phone_number_kr.rb +1 -1
- data/test/test_phone_number_mx.rb +1 -1
- data/test/test_phone_number_nl.rb +1 -1
- data/test/test_phone_number_pl.rb +1 -1
- data/test/test_phone_number_se.rb +1 -1
- data/test/test_phone_number_sg.rb +1 -1
- data/test/test_phone_number_sn.rb +1 -1
- data/test/test_phone_number_tw.rb +1 -1
- data/test/test_phone_number_ua.rb +1 -1
- data/test/test_products.rb +1 -1
- data/test/test_sem_ver.rb +1 -1
- data/test/test_skill.rb +1 -1
- data/test/test_sport_pl.rb +1 -1
- data/test/test_sport_ru.rb +30 -0
- data/test/test_sport_us.rb +1 -1
- data/test/test_sports.rb +1 -1
- data/test/test_ssn.rb +1 -1
- data/test/test_ssn_mx.rb +1 -1
- data/test/test_ssn_se.rb +2 -2
- data/test/test_string.rb +4 -4
- data/test/test_time.rb +3 -4
- data/test/test_tweet.rb +5 -5
- data/test/test_unique_utils.rb +1 -1
- data/test/test_units.rb +2 -1
- data/test/test_units_english.rb +1 -1
- data/test/test_units_metric.rb +1 -1
- data/test/test_vehicle.rb +3 -3
- data/test/test_venue.rb +1 -1
- data/test/test_youtube.rb +1 -1
- metadata +232 -160
data/Rakefile
CHANGED
@@ -91,13 +91,13 @@ end
|
|
91
91
|
#############################################################################
|
92
92
|
|
93
93
|
task release: :build do
|
94
|
-
unless `git branch` =~ /^\*
|
95
|
-
puts 'You must be on the
|
94
|
+
unless `git branch` =~ /^\* main$/
|
95
|
+
puts 'You must be on the main branch to release!'
|
96
96
|
exit!
|
97
97
|
end
|
98
98
|
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
99
99
|
sh "git tag v#{version}"
|
100
|
-
sh 'git push origin
|
100
|
+
sh 'git push origin main'
|
101
101
|
sh 'git push --tags'
|
102
102
|
sh "gem push pkg/#{name}-#{version}.gem"
|
103
103
|
end
|
data/ffaker.gemspec
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'version'
|
3
|
+
require_relative 'lib/version'
|
6
4
|
|
7
5
|
Gem::Specification.new do |s|
|
8
6
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
@@ -11,8 +9,7 @@ Gem::Specification.new do |s|
|
|
11
9
|
|
12
10
|
s.name = 'ffaker'
|
13
11
|
s.version = FFaker::VERSION
|
14
|
-
s.
|
15
|
-
s.required_ruby_version = '>= 2.4'
|
12
|
+
s.required_ruby_version = '>= 2.5'
|
16
13
|
|
17
14
|
s.license = 'MIT'
|
18
15
|
|
@@ -47,8 +44,8 @@ Gem::Specification.new do |s|
|
|
47
44
|
s.test_files = Dir['test/**/*']
|
48
45
|
|
49
46
|
s.metadata = {
|
50
|
-
'changelog_uri' => 'https://github.com/ffaker/ffaker/blob/
|
51
|
-
'documentation_uri' => 'https://github.com/ffaker/ffaker/blob/
|
47
|
+
'changelog_uri' => 'https://github.com/ffaker/ffaker/blob/main/Changelog.md',
|
48
|
+
'documentation_uri' => 'https://github.com/ffaker/ffaker/blob/main/REFERENCE.md'
|
52
49
|
}
|
53
50
|
|
54
51
|
s.add_development_dependency 'rake', '~> 13.0'
|
data/lib/ffaker/address_au.rb
CHANGED
data/lib/ffaker/address_br.rb
CHANGED
data/lib/ffaker/address_ca.rb
CHANGED
data/lib/ffaker/address_ch.rb
CHANGED
data/lib/ffaker/address_ch_de.rb
CHANGED
data/lib/ffaker/address_ch_fr.rb
CHANGED
data/lib/ffaker/address_ch_it.rb
CHANGED
data/lib/ffaker/address_da.rb
CHANGED
data/lib/ffaker/address_de.rb
CHANGED
data/lib/ffaker/address_fi.rb
CHANGED
data/lib/ffaker/address_fr.rb
CHANGED
data/lib/ffaker/address_gr.rb
CHANGED
data/lib/ffaker/address_id.rb
CHANGED
data/lib/ffaker/address_in.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFaker
|
4
|
+
module AddressIT
|
5
|
+
|
6
|
+
extend ModuleUtils
|
7
|
+
extend self
|
8
|
+
|
9
|
+
NUM = ['#', '##', '##', '###', '####', '#-##'].freeze
|
10
|
+
SEP = [', ', ' '].freeze
|
11
|
+
TYPE = %w[via viale piazza piazzale].freeze
|
12
|
+
POSTAL_CODE_FORMATS = ['#####'].freeze
|
13
|
+
|
14
|
+
def street_address
|
15
|
+
FFaker.numerify(fetch_sample(NUM)) +
|
16
|
+
fetch_sample(SEP) +
|
17
|
+
fetch_sample(TYPE) + ' ' +
|
18
|
+
FFaker::NameIT.name
|
19
|
+
end
|
20
|
+
|
21
|
+
def postal_code
|
22
|
+
FFaker.numerify(fetch_sample(POSTAL_CODE_FORMATS))
|
23
|
+
end
|
24
|
+
|
25
|
+
def city
|
26
|
+
fetch_sample(CITY)
|
27
|
+
end
|
28
|
+
|
29
|
+
def full_address
|
30
|
+
%(#{street_address}#{fetch_sample(SEP)}#{postal_code} #{fetch_sample(CITY)})
|
31
|
+
end
|
32
|
+
|
33
|
+
def region
|
34
|
+
fetch_sample(REGION)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/lib/ffaker/address_ja.rb
CHANGED
data/lib/ffaker/address_mx.rb
CHANGED
@@ -24,14 +24,8 @@ module FFaker
|
|
24
24
|
|
25
25
|
def municipality(st_abbr = nil)
|
26
26
|
st_abbr ||= state_abbr
|
27
|
-
|
27
|
+
municipalities = Object.const_get("FFaker::AddressMX::#{st_abbr.upcase}")
|
28
|
+
fetch_sample(municipalities)
|
28
29
|
end
|
29
|
-
|
30
|
-
MUNICIPALITY = { 'AGS' => AGS, 'BC' => BC, 'BCS' => BCS, 'CAMP' => CAMP, 'CHIS' => CHIS,
|
31
|
-
'CHIH' => CHIH, 'COAH' => COAH, 'COL' => COL, 'DF' => DF, 'DGO' => DGO, 'GRO' => GRO,
|
32
|
-
'GTO' => GTO, 'HGO' => HGO, 'JAL' => JAL, 'MEX' => MEX, 'MICH' => MICH, 'MOR' => MOR,
|
33
|
-
'NL' => NL, 'NAY' => NAY, 'OAX' => OAX, 'PUE' => PUE, 'QR' => QR, 'QRO' => QRO, 'SLP' => SLP,
|
34
|
-
'SIN' => SIN, 'SON' => SON, 'TAB' => TAB, 'TAMPS' => TAMPS, 'TLAX' => TLAX, 'VER' => VER,
|
35
|
-
'YUC' => YUC, 'ZAC' => ZAC }.freeze
|
36
30
|
end
|
37
31
|
end
|
data/lib/ffaker/address_nl.rb
CHANGED
data/lib/ffaker/address_ru.rb
CHANGED
data/lib/ffaker/address_se.rb
CHANGED
data/lib/ffaker/address_sn.rb
CHANGED
data/lib/ffaker/address_ua.rb
CHANGED
data/lib/ffaker/address_uk.rb
CHANGED
data/lib/ffaker/address_us.rb
CHANGED
data/lib/ffaker/animal.rb
CHANGED
@@ -7,7 +7,7 @@ module FFaker
|
|
7
7
|
|
8
8
|
# @deprecated US animals name. Moved into {AnimalUS}
|
9
9
|
def common_name
|
10
|
-
warn '[common_name] is deprecated. For animal name in english please use the
|
10
|
+
warn '[common_name] is deprecated. For animal name in english please use the AnimalUS module'
|
11
11
|
fetch_sample(COMMON_NAMES)
|
12
12
|
end
|
13
13
|
end
|
data/lib/ffaker/bacon_ipsum.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFaker
|
4
|
+
module CompanyFR
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
SUFFIXES = %w[SA et\ fils SARL Groupe].freeze
|
9
|
+
|
10
|
+
def name
|
11
|
+
case rand(0..2)
|
12
|
+
when 0 then "#{NameFR.last_name} #{suffix}"
|
13
|
+
when 1 then "#{NameFR.last_name}-#{NameFR.last_name}"
|
14
|
+
when 2 then format('%s, %s and %s', NameFR.last_name, NameFR.last_name, NameFR.last_name)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def suffix
|
19
|
+
fetch_sample(SUFFIXES)
|
20
|
+
end
|
21
|
+
|
22
|
+
# Get a random French SIREN number. See more here https://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_entreprises
|
23
|
+
def siren
|
24
|
+
base = FFaker.numerify('########')
|
25
|
+
base + luhn_check(base).to_s
|
26
|
+
end
|
27
|
+
|
28
|
+
# Produces a company french siret number.
|
29
|
+
def siret
|
30
|
+
location = rand(0..99).to_s.rjust(4, '0')
|
31
|
+
org_no = siren + location
|
32
|
+
org_no + luhn_check(org_no).to_s
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -5,6 +5,7 @@ module FFaker
|
|
5
5
|
module Mathematiques
|
6
6
|
extend ModuleUtils
|
7
7
|
extend self
|
8
|
+
|
8
9
|
def lesson
|
9
10
|
fetch_sample(LESSONS)
|
10
11
|
end
|
@@ -13,6 +14,7 @@ module FFaker
|
|
13
14
|
module Philosophie
|
14
15
|
extend ModuleUtils
|
15
16
|
extend self
|
17
|
+
|
16
18
|
def lesson
|
17
19
|
fetch_sample(LESSONS)
|
18
20
|
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
Agrigento
|
2
|
+
Alessandria
|
3
|
+
Ancona
|
4
|
+
Arezzo
|
5
|
+
Ascoli Piceno
|
6
|
+
Asti
|
7
|
+
Avellino
|
8
|
+
Bari
|
9
|
+
Barletta Andria Trani
|
10
|
+
Belluno
|
11
|
+
Benevento
|
12
|
+
Bergamo
|
13
|
+
Biella
|
14
|
+
Bologna
|
15
|
+
Bolzano
|
16
|
+
Brescia
|
17
|
+
Brindisi
|
18
|
+
Cagliari
|
19
|
+
Caltanissetta
|
20
|
+
Campobasso
|
21
|
+
Carbonia-Iglesias
|
22
|
+
Caserta
|
23
|
+
Catania
|
24
|
+
Catanzaro
|
25
|
+
Chieti
|
26
|
+
Como
|
27
|
+
Cosenza
|
28
|
+
Cremona
|
29
|
+
Crotone
|
30
|
+
Cuneo
|
31
|
+
Enna
|
32
|
+
Fermo
|
33
|
+
Ferrara
|
34
|
+
Firenze
|
35
|
+
Foggia
|
36
|
+
Forlì Cesena
|
37
|
+
Frosinone
|
38
|
+
Genova
|
39
|
+
Gorizia
|
40
|
+
Grosseto
|
41
|
+
Imperia
|
42
|
+
Isernia
|
43
|
+
L'Aquila
|
44
|
+
La Spezia
|
45
|
+
Latina
|
46
|
+
Lecce
|
47
|
+
Lecco
|
48
|
+
Livorno
|
49
|
+
Lodi
|
50
|
+
Lucca
|
51
|
+
Macerata
|
52
|
+
Mantova
|
53
|
+
Massa Carrara
|
54
|
+
Matera
|
55
|
+
Medio Campidano
|
56
|
+
Messina
|
57
|
+
Milano
|
58
|
+
Modena
|
59
|
+
Monza e Della Brianza
|
60
|
+
Napoli
|
61
|
+
Novara
|
62
|
+
Nuoro
|
63
|
+
Ogliastra
|
64
|
+
Olbia-Tempio
|
65
|
+
Oristano
|
66
|
+
Padova
|
67
|
+
Palermo
|
68
|
+
Parma
|
69
|
+
Pavia
|
70
|
+
Perugia
|
71
|
+
Pesaro Urbino
|
72
|
+
Pescara
|
73
|
+
Piacenza
|
74
|
+
Pisa
|
75
|
+
Pistoia
|
76
|
+
Pordenone
|
77
|
+
Potenza
|
78
|
+
Prato
|
79
|
+
Ragusa
|
80
|
+
Ravenna
|
81
|
+
Reggio Calabria
|
82
|
+
Reggio Emilia
|
83
|
+
Rieti
|
84
|
+
Rimini
|
85
|
+
Roma
|
86
|
+
Rovigo
|
87
|
+
Salerno
|
88
|
+
Sassari
|
89
|
+
Savona
|
90
|
+
Siena
|
91
|
+
Siracusa
|
92
|
+
Sondrio
|
93
|
+
Sud Sardegna
|
94
|
+
Taranto
|
95
|
+
Teramo
|
96
|
+
Terni
|
97
|
+
Torino
|
98
|
+
Trapani
|
99
|
+
Trento
|
100
|
+
Treviso
|
101
|
+
Trieste
|
102
|
+
Udine
|
103
|
+
Valle d'Aosta
|
104
|
+
Varese
|
105
|
+
Venezia
|
106
|
+
Verbano-Cusio-Ossola
|
107
|
+
Vercelli
|
108
|
+
Verona
|
109
|
+
Vibo Valentia
|
110
|
+
Vicenza
|
111
|
+
Viterbo
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Abruzzo
|
2
|
+
Basilicata
|
3
|
+
Calabria
|
4
|
+
Campania
|
5
|
+
Emilia-Romagna
|
6
|
+
Friuli-Venezia Giulia
|
7
|
+
Lazio
|
8
|
+
Liguria
|
9
|
+
Lombardia
|
10
|
+
Marche
|
11
|
+
Molise
|
12
|
+
Piemonte
|
13
|
+
Puglia
|
14
|
+
Sardegna
|
15
|
+
Sicilia
|
16
|
+
Toscana
|
17
|
+
Trentino-Alto Adige
|
18
|
+
Umbria
|
19
|
+
Valle d'Aosta
|
20
|
+
Veneto
|
@@ -1,32 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
1
|
+
flac
|
2
|
+
mp3
|
3
|
+
wav
|
4
|
+
bmp
|
5
|
+
gif
|
6
|
+
jpeg
|
7
|
+
jpg
|
8
|
+
png
|
9
|
+
tiff
|
10
|
+
css
|
11
|
+
csv
|
12
|
+
html
|
13
|
+
js
|
14
|
+
json
|
15
|
+
txt
|
16
|
+
mp4
|
17
|
+
avi
|
18
|
+
mov
|
19
|
+
webm
|
20
|
+
doc
|
21
|
+
docx
|
22
|
+
xls
|
23
|
+
xlsx
|
24
|
+
ppt
|
25
|
+
pptx
|
26
|
+
odt
|
27
|
+
ods
|
28
|
+
odp
|
29
|
+
pages
|
30
|
+
numbers
|
31
|
+
key
|
32
32
|
pdf
|
@@ -0,0 +1,34 @@
|
|
1
|
+
brzoskwinia
|
2
|
+
gruszka
|
3
|
+
jabłko
|
4
|
+
morela
|
5
|
+
morwa
|
6
|
+
śliwka
|
7
|
+
czereśnie
|
8
|
+
wiśnie
|
9
|
+
nektarynka
|
10
|
+
cytryna
|
11
|
+
grejpfrut
|
12
|
+
kumkwat
|
13
|
+
mandarynka
|
14
|
+
pomarańcza
|
15
|
+
figa
|
16
|
+
granat
|
17
|
+
mango
|
18
|
+
kiwi
|
19
|
+
daktyle
|
20
|
+
awokado
|
21
|
+
agrest
|
22
|
+
aronia
|
23
|
+
borówka
|
24
|
+
jagoda
|
25
|
+
jeżyna
|
26
|
+
malina
|
27
|
+
porzeczka
|
28
|
+
winogrona
|
29
|
+
żurawina
|
30
|
+
ananas
|
31
|
+
banan
|
32
|
+
poziomka
|
33
|
+
truskawka
|
34
|
+
durian
|