Martin Ostrovsky avatar Martin Ostrovsky committed 9d7f5dd

udpated ruby client to handle new notes arg for powerpoint

Comments (0)

Files changed (2)

ruby/repustate.rb

                   :author => '',
                   :images => [],
                   :titles => [],
+                  :notes => [],
                 })
     args = {
       :title => options[:report_title],
       :author => options[:author],
     }
 
-    images_and_titles = options[:images].zip(options[:titles])
+    images_and_titles = options[:images].zip(options[:titles], options[:notes])
     images_and_titles.each_with_index do |value, i|
+      
       filename = value[0]
       title = value[1]
+      notes = value[2]
+
       image_data = File.read(filename)
       encoded_image = Base64.encode64(image_data)
       args["slide_#{i}_image"] = encoded_image
       args["slide_#{i}_title"] = title
+      args["slide_#{i}_notes"] = notes
     end
 
     call_api('powerpoint', args)

ruby/tc_repustate.rb

       :author => 'Martin Ostrovsky',
       :images => ['repustate.gif'],
       :titles => ['A test title'],
+      :notes => ['What a pretty slide.'],
     }
     check_call('powerpoint', options, false)
   end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.