Created
August 9, 2012 20:30
-
-
Save pdxmph/3307824 to your computer and use it in GitHub Desktop.
Panopticon random YAML entry generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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