Sha256: 7340d40d75025099f7c74978599154276b30110e96a58493fdece49c5d213090

Contents?: true

Size: 247 Bytes

Versions: 26

Compression:

Stored size: 247 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'json'

values = ARGV

STDIN.each_line do |line|
  words  = line.split(' ')
  object = {}
  values.each_with_index do |value, index|
    object[value] = words[index]
  end
  puts object.to_json
end

Version data entries

26 entries across 26 versions & 1 rubygems

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