murky_waters 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 846c20ecb1f9c842eaa08570f3bd29c22616ebb3
4
- data.tar.gz: 44c1fce9c1cbe69d02b4781869903e9313a037f9
3
+ metadata.gz: 084298f8dcacb0c1646fc5050a9676a4e0bbd52c
4
+ data.tar.gz: e6106c9eca1f92a48ebc2f095a8853c0804b438e
5
5
  SHA512:
6
- metadata.gz: 52cdfe5a8cea44c0cc5c2070e6d9742e60034d398813b522a8ece4372a369dd11bcb2078b820d9b08283ccbc313a95e91f79e36f46c84fc0ee478c588f29346d
7
- data.tar.gz: 12469b898075db70294dbb083ab9b4a50c89634fe8e70fed9151b539a8edb47447565e1aafd85fd3121bbb69d4c9d7938fe71b2405241d93170d77fa988d09ce
6
+ metadata.gz: ac37f120860b3bc13fee3090be54ad22b8f3df139397f3581ed4709379f9178c9a701c687a611f5b1f33f011064f91b051690727364cb6b609066113421d52e2
7
+ data.tar.gz: cb0237f9712ab3a94de5eb0ec9fce7a97632cd6f0cb910835ba317463bc8682e66687fdf8b124facda88b741fa8329330e0bad341caa9ec0d0e0f886d101de1a
@@ -53,7 +53,7 @@ module Murky
53
53
  end
54
54
 
55
55
  def root
56
- @root = @changed ? compute_root : @root
56
+ @root = (@changed || @root.nil?) ? compute_root : @root
57
57
  end
58
58
 
59
59
  def each(&block)
@@ -2,8 +2,8 @@ module Murky
2
2
  class Proof
3
3
  attr_reader :root, :siblings, :signature
4
4
 
5
- FILE_HEADER = "#{?= * 20} BEGIN MURKY PROOF #{?= * 20} "
6
- FILE_FOOTER = "#{?= * 20} BEGIN MURKY PROOF #{?= * 20} "
5
+ FILE_HEADER = "#{?= * 15} BEGIN MURKY PROOF #{?= * 15} "
6
+ FILE_FOOTER = "#{?= * 15} END MURKY PROOF #{?= * 15} "
7
7
  INPUT_REGEXP = %r{#{FILE_HEADER}\n(.*?)\n#{FILE_FOOTER}}m
8
8
 
9
9
  def initialize(root:, siblings:, signature:, digest:)
@@ -1,3 +1,3 @@
1
1
  module Murky
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: murky_waters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters