Sha256: 099fe19aa0930499c0008634df96c5950e8a06a0706ade04d529a1e8d96be68b
Contents?: true
Size: 552 Bytes
Versions: 7
Compression:
Stored size: 552 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new desc 'Regenerate the schema files' task :schema do require "json" out = File.expand_path("../lib/har/schemas", __FILE__) schema = JSON.parse(File.read("schema.json")) # cleanup Dir[File.join(out, "*.json")].each { |f| rm f } # generate schema.each do |type, schema| path = File.join(out, type) puts path File.open(path, "w") { |file| file << JSON.pretty_generate(schema) } end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
har-0.0.6 | Rakefile |
har-0.0.5 | Rakefile |
har-0.0.4 | Rakefile |
har-0.0.3 | Rakefile |
har-0.0.2 | Rakefile |
har-0.0.1 | Rakefile |
har-0.0.1.dev | Rakefile |