dummy 0.9.5 → 0.9.6
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.
- data/lib/dummy.rb +3 -3
- metadata +1 -1
data/lib/dummy.rb
CHANGED
@@ -48,7 +48,7 @@ module Dummy
|
|
48
48
|
Dummy::Address.city
|
49
49
|
when /mail/ then
|
50
50
|
Dummy::Internet.email
|
51
|
-
when /
|
51
|
+
when /pass|pwd|token|id|permalink|slug/ then
|
52
52
|
Dummy::Internet.password
|
53
53
|
when /url|uri|href|link|page|site/ then
|
54
54
|
Dummy::Internet.url
|
@@ -120,14 +120,14 @@ module Dummy
|
|
120
120
|
|
121
121
|
def magic_date(field)
|
122
122
|
difference = case field
|
123
|
-
when /_on$/
|
123
|
+
when /_on$|_at$/
|
124
124
|
rand(365*2)
|
125
125
|
when /birth/
|
126
126
|
365 + rand(365 * 50)
|
127
127
|
else
|
128
128
|
0
|
129
129
|
end
|
130
|
-
(
|
130
|
+
(Time.now - difference*60*60*24).to_s
|
131
131
|
end
|
132
132
|
|
133
133
|
def magic_float(field)
|