kathy_lee 0.2.0 → 0.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.
Files changed (2) hide show
  1. data/lib/kathy_lee/fakes.rb +10 -0
  2. metadata +3 -3
@@ -106,6 +106,16 @@ KathyLee::Fakes.alias(:full_name, :name)
106
106
  eval("KathyLee::Fakes.add(:#{m}) {|*args| Dummy::PhoneNumber.#{m}}")
107
107
  end
108
108
 
109
+ KathyLee::Fakes.add(:domain) do |*args|
110
+ hosts = %w{example google yahoo mac apple hotmail}
111
+ extensions = %w{com co.uk net info mobi me org edu gov}
112
+ "#{hosts[rand(hosts.length)]}.#{extensions[rand(extensions.length)]}"
113
+ end
114
+
115
+ KathyLee::Fakes.add(:email) do |*args|
116
+ "#{KathyLee::Fakes.execute(:username)}_#{rand(9999)}@#{KathyLee::Fakes.execute(:domain)}"
117
+ end
118
+
109
119
  # %w{first_name last_name name prefix suffix}.each do |m|
110
120
  # eval("KathyLee::Fakes.add(:#{m}) {|*args| Faker::Name.#{m}(*args)}")
111
121
  # end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - markbates
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- hash: -2942405895079934725
85
+ hash: 2224376481390142720
86
86
  segments:
87
87
  - 0
88
88
  version: "0"