Sha256: e1072dba3cb4f6e315b7f6e8abccfc8d5b05c2eb0eac65dd86e8b408ab35e377

Contents?: true

Size: 281 Bytes

Versions: 10

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true
module Measured::Cache::JsonWriter
  def write(table)
    File.open(@path, "w") do |f|
      f.write("// Do not modify this file directly. Regenerate it with 'rake cache:write'.\n")
      f.write(JSON.pretty_generate(encode(table)))
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
measured-3.1.0 lib/measured/cache/json_writer.rb
measured-3.0.0 lib/measured/cache/json_writer.rb
measured-2.8.2 lib/measured/cache/json_writer.rb
measured-2.8.1 lib/measured/cache/json_writer.rb
measured-2.8.0 lib/measured/cache/json_writer.rb
measured-2.7.1 lib/measured/cache/json_writer.rb
measured-2.7.0 lib/measured/cache/json_writer.rb
measured-2.6.0 lib/measured/cache/json_writer.rb
measured-2.5.2 lib/measured/cache/json_writer.rb
measured-2.5.1 lib/measured/cache/json_writer.rb