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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccbed238db94ae8d40c868356d47d3c81887b64c1ad6a48995c94b8ba067db6a
4
- data.tar.gz: d49928e2e3d056e12fbddaca93aa84562f08cace5322541542859bfb49be9fcf
3
+ metadata.gz: 24d3a8ad4c173dcc9305c3a515bc2f71904e55493a205aa50a83e38662107900
4
+ data.tar.gz: 255065bf54d0cf0a8a59311487bb5ddae8db27af157f30abf2269e0760683c5f
5
5
  SHA512:
6
- metadata.gz: fc72d3b407b5568a068945d384de0caf4b7db43dbc2897cd77fd17712528fb94827e77d9d00f2e7ec09d75ae9e7c7728d32d594a832fae2d077291768f2560d0
7
- data.tar.gz: 98c4a54b3ca14d52297367c35d6ffe6182e8949470cccbd0070b47e805a36c1602a22c4a801b55733e4494b2c1ce99f4adf06348d0ed8cded10a4a5b7c8cf3ae
6
+ metadata.gz: ed2d522ca904fb9468a524b17e1aba1f167eefb5020b317f171a111012c6fb9e89ef12d1046cc0776b113b507739de8db432f55e7c03a1e69ccdd7d0a237a840
7
+ data.tar.gz: 8fa742050d913b54e7491ba9b897b61fd1543358c8a3ef024c47ebe58771109a343802f55e19d20894bde39983893f48c6a4e3e92dce337ad92c6573c24a98c7
data/Changelog.md CHANGED
@@ -37,3 +37,6 @@
37
37
 
38
38
  ## 1.2.0
39
39
  - Fix bug
40
+
41
+ ## 1.3.0
42
+ - Fix bug
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FfakerTW
4
- VERSION = "1.3.0"
4
+ VERSION = "1.4.0"
5
5
  end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FfakerTW
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
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.3.0
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