petra_core 0.0.4 → 0.0.5

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
  SHA256:
3
- metadata.gz: 63268235b534b349825bb8d513b2d1c99256713ba9f1e0cdccedf862c16b1712
4
- data.tar.gz: bf615df89f394081f5fbb66d1fa7b4ca8b88c8ef1c0aa06bea3bbf0e953bbec4
3
+ metadata.gz: a5308a2cd95368e1c08fb0127f4872f75dfacf6a958b1a885cb5e25869bead11
4
+ data.tar.gz: '030485e6ad73215aa8688083a0246e6c99762f3d53b09180316f913a01845e57'
5
5
  SHA512:
6
- metadata.gz: d870ae75b54ded2ac1360fb4e525e75ed5f8cdb5bc4f85f9cd657a4998d699dc29664557cad4d348f8ad6e9c7320693a04aa7cba65d32d6b1da7a2b83b0ab54e
7
- data.tar.gz: 740ef954d8eda6a2c6736969bb9d410654de38e4f851cf9529e8e3e5e8e5376b070f34fea9229074eaec363c0658c81b654d2a27451ddff956767d972ca1ba45
6
+ metadata.gz: 206e0ba299fdc72b116c6edbaacf82bfe5370681da1897a22ff4ff82f736d906c3601436b576dd3f3136753f4a9b6f8e60bbac723841bb4ca503867b32287d23
7
+ data.tar.gz: 676e1774bbebcf8c397862896e25de84e4762ed099f0db0a6f0354d17214b7dc4f255feeadbfa7c303073dfc9db9fd588f128883caf0c22849c6ff5ad9f7e312
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- petra_core (0.0.4)
4
+ petra_core (0.0.5)
5
5
  activesupport (>= 4.2, <= 5.2)
6
6
  method_source (~> 0.9.0)
7
7
 
@@ -49,7 +49,10 @@ module Petra
49
49
  # The log entry itself decides whether it is actually executed or not.
50
50
  #
51
51
  def apply!
52
- object_persisted.each(&:apply!)
52
+ object_persisted.each do |o|
53
+ Petra.logger.debug "Applying entry #{o}"
54
+ o.apply!
55
+ end
53
56
  end
54
57
 
55
58
  #
@@ -59,7 +59,7 @@ module Petra
59
59
  # search further for log entries
60
60
  return [] unless section_dir.exist?
61
61
 
62
- section_dir.children.select { |f| f.extname == '.entry' }.map do |f|
62
+ section_dir.children.sort.select { |f| f.extname == '.entry' }.map do |f|
63
63
  entry_hash = ::YAML.load_file(f.to_s)
64
64
  Petra::Components::LogEntry.from_hash(section, entry_hash)
65
65
  end
data/lib/petra/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Petra
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petra_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Exner