Sha256: b6c75ced0ead491ce9ecd3af8b07f123fea18cec53efa7173405edb04614176a

Contents?: true

Size: 654 Bytes

Versions: 3

Compression:

Stored size: 654 Bytes

Contents

#!/usr/bin/env ruby

# This is an example "editor" used to test the `friends edit` command.
# It inserts a new activity into the second line of the file, allowing
# us to test that friends and locations added in an `edit` command are
# subsequently added during the `clean` stage after the editor closes.

filename = ARGV[0]
current_file_contents = File.read(filename).split("\n")
File.open(filename, "w") do |file|
  file.puts current_file_contents[0]
  file.puts "- 2014-12-15: I just had a possible **Bigfoot** sighting! "\
            "I think I may have seen **Bigfoot** in the _Mysterious Mountains_."
  file.puts current_file_contents.drop(1)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
friends-0.38 test/editor
friends-0.37 test/editor
friends-0.36 test/editor