Sha256: 58c3251163054d15604f5cbfb5dc0dfc8e904b26c3318911ea6fecfc937f3b5e

Contents?: true

Size: 328 Bytes

Versions: 26

Compression:

Stored size: 328 Bytes

Contents

#!/usr/bin/env ruby

require 'tmpdir'

data = []

STDIN.each_line do |line|
  data.push(line)
end

Dir.mktmpdir do |directory|
  stdin_file = "#{directory}/stdin"
  File.open(stdin_file, 'w+') do |file|
    data.each do |line|
      file.write(line)
    end
  end
  system "vim #{stdin_file}" 
  puts File.read(stdin_file)
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.27 bin/ix-edit
ix-cli-0.0.26 bin/ix-edit
ix-cli-0.0.25 bin/ix-edit
ix-cli-0.0.24 bin/ix-edit
ix-cli-0.0.23 bin/ix-edit
ix-cli-0.0.22 bin/ix-edit
ix-cli-0.0.21 bin/ix-edit
ix-cli-0.0.20 bin/ix-edit
ix-cli-0.0.19 bin/ix-edit
ix-cli-0.0.18 bin/ix-edit
ix-cli-0.0.17 bin/ix-edit
ix-cli-0.0.16 bin/ix-edit
ix-cli-0.0.15 bin/ix-edit
ix-cli-0.0.14 bin/ix-edit
ix-cli-0.0.13 bin/ix-edit
ix-cli-0.0.12 bin/ix-edit
ix-cli-0.0.11 bin/ix-edit
ix-cli-0.0.10 bin/ix-edit
ix-cli-0.0.9 bin/ix-edit
ix-cli-0.0.7 bin/ix-edit