"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/simple_pdf_lines.rb" between
ruport-1.7.1.tar.gz and ruport-1.8.0.tar.gz

About: Ruport (Ruby Reports) is a simple, extensible reporting system built for Rubyists. It provides tools for data acquisition, database interaction, formatting, and parsing/munging.

simple_pdf_lines.rb  (ruport-1.7.1):simple_pdf_lines.rb  (ruport-1.8.0)
skipping to change at line 21 skipping to change at line 21
def build_horizontal_lines def build_horizontal_lines
data.each do |points| data.each do |points|
pad(10) { horizontal_line(*points) } pad(10) { horizontal_line(*points) }
end end
render_pdf render_pdf
end end
end end
# generate 35 random lines # generate 35 random lines
data = (0..34).inject([]) { |s,r| data = (0..34).inject([]) { |s,_r|
s << [rand(100),100+rand(400)] s << [rand(100),100+rand(400)]
} }
puts SimpleLines.render_pdf(:data => data) puts SimpleLines.render_pdf(:data => data)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)