kafo 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 619bbc3ca7bf0903d275c18afa0541c59cc42dc4
4
- data.tar.gz: 23943836e1d29c01b69217e73ec2f4c26e1e9ab3
3
+ metadata.gz: da8bfdbd9cb9a67ef04b7bf185ddc714e543701f
4
+ data.tar.gz: bcb53dc3da0576cf70a52d943236d0c60171e844
5
5
  SHA512:
6
- metadata.gz: 0541b1cef27dfbb2b564f69eac183031b24204fc50a52fc83f61cb3b4c3429a8001fa3716fa3bbe2c7bcc019136cd2f035b2da7e4f649f42e1721fef6c2efbe0
7
- data.tar.gz: b1de2aabd4201aee9db9f2665598cab7bae50534dd9e46ca6a916dca60e689f23f46bb084ed37ad2e5b970451980349a835816171b19f92f46a4d53bd33bef3c
6
+ metadata.gz: 0c63f286d4f0dc36c7b1d8578eda27c4c56f274b212da4213dcd1380b5a0ba31e75fc3e1764b21395912ef176c5734e5e2f7ed8cf27c1f32f8f21b0998384d18
7
+ data.tar.gz: c473170d70a63030d004a9d7fbdd777ea8d692c9dca8627e708735910cbe9db6afe391a2969a928cc9ad398920b3d5add2912c12026d1b611405d0650a817e96
data/README.md CHANGED
@@ -967,7 +967,10 @@ not persisted between runs.
967
967
 
968
968
  One or more caches of parsed Puppet modules and manifests can be created to skip the use
969
969
  of kafo_parsers at runtime. This is useful when kafo_parsers doesn't support the
970
- version of Puppet in use, and may also provide a small performance benefit.
970
+ version of Puppet in use, and may also provide a small performance benefit. When multiple
971
+ cache files are used, they are being loaded in order they are specified in the config
972
+ file. If their files overlap, the later cache fully replaces the previous cache for each
973
+ file/manifest.
971
974
 
972
975
  Create the cache with `kafo-export-params -f parsercache --no-parser-cache` and
973
976
  configure it in config/kafo.yaml with:
@@ -1,3 +1,5 @@
1
+ require 'kafo/version'
2
+
1
3
  module Kafo
2
4
  class ParserCacheReader
3
5
  def self.new_from_file(cache_paths)
@@ -1,8 +1,10 @@
1
+ require 'kafo/version'
2
+
1
3
  module Kafo
2
4
  class ParserCacheWriter
3
5
  def self.write(modules)
4
6
  {
5
- :version => 1,
7
+ :version => PARSER_CACHE_VERSION,
6
8
  :files => Hash[modules.sort.map { |m| write_module(m) }]
7
9
  }
8
10
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
3
  PARSER_CACHE_VERSION = 1
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler