Sha256: e70f90f51817fe6f543e5b3f8901ab9c527ce44ad45deb1357c07df83b29b00c

Contents?: true

Size: 365 Bytes

Versions: 43

Compression:

Stored size: 365 Bytes

Contents

require 'kafo/version'

module Kafo
  class ParserCacheWriter
    def self.write(modules)
      {
        :version => PARSER_CACHE_VERSION,
        :files => Hash[modules.sort.map { |m| write_module(m) }]
      }
    end

    def self.write_module(mod)
      [mod.identifier, {:data => mod.raw_data, :mtime => File.mtime(mod.manifest_path).to_i}]
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
kafo-5.0.0 lib/kafo/parser_cache_writer.rb
kafo-4.1.0 lib/kafo/parser_cache_writer.rb
kafo-4.0.1 lib/kafo/parser_cache_writer.rb
kafo-4.0.0 lib/kafo/parser_cache_writer.rb
kafo-3.0.0 lib/kafo/parser_cache_writer.rb
kafo-2.1.0 lib/kafo/parser_cache_writer.rb
kafo-2.0.2 lib/kafo/parser_cache_writer.rb
kafo-2.0.1 lib/kafo/parser_cache_writer.rb
kafo-2.0.0 lib/kafo/parser_cache_writer.rb
kafo-1.0.8 lib/kafo/parser_cache_writer.rb
kafo-1.0.7 lib/kafo/parser_cache_writer.rb
kafo-1.0.6 lib/kafo/parser_cache_writer.rb
kafo-1.0.5 lib/kafo/parser_cache_writer.rb
kafo-1.0.4 lib/kafo/parser_cache_writer.rb
kafo-0.9.8 lib/kafo/parser_cache_writer.rb
kafo-1.0.3 lib/kafo/parser_cache_writer.rb
kafo-0.9.7 lib/kafo/parser_cache_writer.rb
kafo-1.0.2 lib/kafo/parser_cache_writer.rb
kafo-1.0.1 lib/kafo/parser_cache_writer.rb
kafo-1.0.0 lib/kafo/parser_cache_writer.rb