dummy 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dummy.rb +3 -3
  2. metadata +1 -1
@@ -48,7 +48,7 @@ module Dummy
48
48
  Dummy::Address.city
49
49
  when /mail/ then
50
50
  Dummy::Internet.email
51
- when /password|pass|pwd|token|id/ then
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
- (Date.today - difference).to_s
130
+ (Time.now - difference*60*60*24).to_s
131
131
  end
132
132
 
133
133
  def magic_float(field)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dummy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: