Rakefile in receipts-1.1.1 vs Rakefile in receipts-1.1.2

- old
+ new

@@ -10,10 +10,16 @@ task :console do exec "irb -r receipts -I ./lib" end +task :examples do + [:receipt, :invoice, :statement].each { |t| Rake::Task[t].invoke } + + puts "Use `open examples` to view example PDFs." +end + task :receipt do require "./lib/receipts" Receipts::Receipt.new( id: "123", @@ -21,10 +27,10 @@ product: "GoRails", company: { name: "GoRails, LLC", address: "123 Fake Street\nNew York City, NY 10012", email: "support@example.com", - logo: URI.open("https://www.ruby-lang.org/images/header-ruby-logo@2x.png") + logo: "https://www.ruby-lang.org/images/header-ruby-logo@2x.png" }, line_items: [ ["Date", Time.now.to_s], ["Account Billed", "Example User (user@example.com)"], ["Product", "GoRails"],