Skip to content

Instantly share code, notes, and snippets.

@pdxmph
Created August 9, 2012 20:30
Show Gist options
  • Save pdxmph/3307824 to your computer and use it in GitHub Desktop.
Save pdxmph/3307824 to your computer and use it in GitHub Desktop.
Panopticon random YAML entry generator
#!/usr/bin/env ruby
require "forgery"
require "yaml"
1..10.times do |p|
entry = Hash.new
entry['note'] = Forgery::LoremIpsum.text( :sentence, 2,{:random => 1})
entry['date'] = Forgery::Date.date(:future => false,:min_delta => 0,:max_delta => 10)
entry['url'] = "http://" + Forgery::Internet.domain_name + "/" + Forgery::Name.location.gsub(/\ /, "-").downcase
puts entry.to_yaml
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment