Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
netmask committed Oct 7, 2011
0 parents commit 557d3d1
Show file tree
Hide file tree
Showing 4 changed files with 406 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README
@@ -0,0 +1,9 @@
# Installation #
I test the code on the following Rubies
Ruby 1.8.7 p249
Ruby 1.9.2 p290
JRuby 1.6.4

# Workflow #


11 changes: 11 additions & 0 deletions test.rb
@@ -0,0 +1,11 @@
require './video_parser'

video_data = VideoData.new
video_data.load_csv('video_data.csv')

for video in video_data.all
as_tags = video.tags.empty? ? "." : ", additionally this video should have a list of tags #{video.tags.join(', ')}"
as_celebrity = video.celebrity ? "and his celebrity is #{video.celebrity}": ""
puts "Video #{video.number}: #{video.name} have a date of #{video.date}#{as_celebrity}#{as_tags}"
end

0 comments on commit 557d3d1

Please sign in to comment.