lib/gasoline/patchor.rb in gasoline-0.0.1 vs lib/gasoline/patchor.rb in gasoline-0.0.2
- old
+ new
@@ -69,16 +69,17 @@
#
# Returns an array of lines
def patch_it_chewie
to_keep = @lines[0...cut_line_index]
snippet = [Gasoline::Texts::cut_here_snippet]
- to_add = drops.collect {|d| d.patch}
+ to_add = drops.collect(&:patch).compact
@lines = (to_keep + snippet + to_add)
end
# First fills up the @lines instance, then saves the file
def patch_it_chewie!
patch_it_chewie
+ Gasoline::Applescript.refresh_propane_if_running
save
end
# Writes the file to disk.
def save