ffakerTW 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f98bea1deb9a72fe22b7d9c88d290463fea4a53c7a84572a5a557e3a2ff0a073
4
- data.tar.gz: 36c24bc0b567c4313cf9b3b8e38d46a8b3424ede368234b02a2f1adb12f447e5
3
+ metadata.gz: 24d3a8ad4c173dcc9305c3a515bc2f71904e55493a205aa50a83e38662107900
4
+ data.tar.gz: 255065bf54d0cf0a8a59311487bb5ddae8db27af157f30abf2269e0760683c5f
5
5
  SHA512:
6
- metadata.gz: 194bd9d54ee9a70ce1e076ddb1f70565fc8ff6edd00aa023dbdc29ad4ddbc6b4e4146915017082fac0b5ab4ec8fc2d02b0f8fa60088ee5eef3961cc868ad1751
7
- data.tar.gz: cef3affbc225f8faaa800a24682b2be3d42f45d8b70d03827e2c3c4e5a82a9aa4af684aed2e2a39f764f71e45a373cdc416ff3760019c577ce060b78dc4d2609
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.2.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'
@@ -65,7 +66,7 @@ module FFakerTW
65
66
  autoload :LoremTW, 'ffakerTW/lorem_tw'
66
67
  autoload :Movie, 'ffakerTW/movie'
67
68
  autoload :Music, 'ffakerTW/music'
68
- autoload :NameTW, 'ffakerTW/name'
69
+ autoload :Name, 'ffakerTW/name'
69
70
  autoload :NameTW, 'ffakerTW/name_tw'
70
71
  autoload :NatoAlphabet, 'ffakerTW/nato_alphabet'
71
72
  autoload :Number, 'ffakerTW/number'
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FfakerTW
4
- VERSION = '1.2.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.2.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