ffakerTW 1.3.0 → 1.4.0
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 +3 -0
- data/lib/ffakerTW/company.rb +44 -0
- data/lib/ffakerTW/version.rb +1 -1
- data/lib/ffakerTW.rb +1 -0
- data/lib/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d3a8ad4c173dcc9305c3a515bc2f71904e55493a205aa50a83e38662107900
|
4
|
+
data.tar.gz: 255065bf54d0cf0a8a59311487bb5ddae8db27af157f30abf2269e0760683c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2d522ca904fb9468a524b17e1aba1f167eefb5020b317f171a111012c6fb9e89ef12d1046cc0776b113b507739de8db432f55e7c03a1e69ccdd7d0a237a840
|
7
|
+
data.tar.gz: 8fa742050d913b54e7491ba9b897b61fd1543358c8a3ef024c47ebe58771109a343802f55e19d20894bde39983893f48c6a4e3e92dce337ad92c6573c24a98c7
|
data/Changelog.md
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module Company
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
SUFFIXES = %w[Inc and\ Sons LLC Group].freeze
|
9
|
+
POSITION_PREFIXES = %w[Executive Assistant General Associate].freeze
|
10
|
+
POSITIONS = %w[President Manager Director Secretary Consultant].freeze
|
11
|
+
|
12
|
+
def name
|
13
|
+
case rand(0..2)
|
14
|
+
when 0 then "#{Name.last_name} #{suffix}"
|
15
|
+
when 1 then "#{Name.last_name}-#{Name.last_name}"
|
16
|
+
when 2 then format('%s, %s and %s', Name.last_name, Name.last_name, Name.last_name)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def suffix
|
21
|
+
fetch_sample(SUFFIXES)
|
22
|
+
end
|
23
|
+
|
24
|
+
# Generate a buzzword-laden catch phrase.
|
25
|
+
# Wordlist from http://www.1728.com/buzzword.htm
|
26
|
+
def catch_phrase
|
27
|
+
"#{fetch_sample(CATCH_PRE)} #{fetch_sample(CATCH_MID)} #{fetch_sample(CATCH_POS)}"
|
28
|
+
end
|
29
|
+
|
30
|
+
# When a straight answer won't do, BS to the rescue!
|
31
|
+
# Wordlist from http://dack.com/web/bullshit.html
|
32
|
+
def bs
|
33
|
+
"#{fetch_sample(BS_PRE)} #{fetch_sample(BS_MID)} #{fetch_sample(BS_POS)}"
|
34
|
+
end
|
35
|
+
|
36
|
+
def position
|
37
|
+
case rand(0..2)
|
38
|
+
when 0 then [fetch_sample(POSITION_PREFIXES), fetch_sample(POSITIONS)]
|
39
|
+
when 1 then [fetch_sample(POSITION_AREAS), fetch_sample(POSITIONS)]
|
40
|
+
when 2 then [fetch_sample(POSITION_PREFIXES), fetch_sample(POSITION_AREAS), fetch_sample(POSITIONS)]
|
41
|
+
end.join(' ')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/ffakerTW/version.rb
CHANGED
data/lib/ffakerTW.rb
CHANGED
@@ -40,6 +40,7 @@ module FFakerTW
|
|
40
40
|
autoload :CheesyLingo, 'ffakerTW/cheesy_lingo'
|
41
41
|
autoload :Code, 'ffakerTW/code'
|
42
42
|
autoload :Color, 'ffakerTW/color'
|
43
|
+
autoload :Company, 'ffakerTW/company'
|
43
44
|
autoload :CompanyTW, 'ffakerTW/company_tw'
|
44
45
|
autoload :Conference, 'ffakerTW/conference'
|
45
46
|
autoload :Currency, 'ffakerTW/currency'
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffakerTW
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/afgnsu/ffakerTW
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- lib/ffakerTW/cheesy_lingo.rb
|
85
85
|
- lib/ffakerTW/code.rb
|
86
86
|
- lib/ffakerTW/color.rb
|
87
|
+
- lib/ffakerTW/company.rb
|
87
88
|
- lib/ffakerTW/company_tw.rb
|
88
89
|
- lib/ffakerTW/conference.rb
|
89
90
|
- lib/ffakerTW/courses_fr.rb
|