Sha256: 26b42f5d94bcbd90f351df42302e771123e721d1726f59dcdff5f68660a665cc

Contents?: true

Size: 107 Bytes

Versions: 64

Compression:

Stored size: 107 Bytes

Contents

require 'json'

def json_value(file, key)
  begin JSON.parse(File.read(file))[key.to_s] rescue nil end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
spout-0.9.1 lib/spout/tests/json_helper.rb
spout-0.9.0 lib/spout/tests/json_helper.rb
spout-0.9.0.rc lib/spout/tests/json_helper.rb
spout-0.9.0.beta2 lib/spout/tests/json_helper.rb
spout-0.9.0.beta1 lib/spout/tests/json_helper.rb
spout-0.8.0 lib/spout/tests/json_helper.rb
spout-0.8.0.rc5 lib/spout/tests/json_helper.rb
spout-0.8.0.rc4 lib/spout/tests/json_helper.rb
spout-0.8.0.rc3 lib/spout/tests/json_helper.rb
spout-0.8.0.rc2 lib/spout/tests/json_helper.rb
spout-0.8.0.rc lib/spout/tests/json_helper.rb
spout-0.8.0.beta15 lib/spout/tests/json_helper.rb
spout-0.8.0.beta14 lib/spout/tests/json_helper.rb
spout-0.8.0.beta13 lib/spout/tests/json_helper.rb
spout-0.8.0.beta12 lib/spout/tests/json_helper.rb
spout-0.8.0.beta11 lib/spout/tests/json_helper.rb
spout-0.8.0.beta10 lib/spout/tests/json_helper.rb
spout-0.8.0.beta9 lib/spout/tests/json_helper.rb
spout-0.8.0.beta8 lib/spout/tests/json_helper.rb
spout-0.8.0.beta7 lib/spout/tests/json_helper.rb