rpetri 0.1.0 → 0.1.1

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: c62e0d29cfadb266641e7889d1b189dc97bd16d4
4
- data.tar.gz: 2b78e82aef1bc8af89ea85f78e99ffafb977ba18
3
+ metadata.gz: d406788c8882366ab460e3117d1e97a795c5f1b5
4
+ data.tar.gz: e13c0c824a691f18260ededc89e40b6677867c52
5
5
  SHA512:
6
- metadata.gz: 7c626d34d19ef82f6973623434a9163690b5b4637548569a3f5471bab2a8208aa1af79db68db42648e1c089356a5590643e488bab2f74c2508b4169895bdeb45
7
- data.tar.gz: adbc1c382b1d67cbde0374dc7bf4360d53e5350b31266874756b938436b87603314ac778323daa8a219fc810dfe9b897dd34c45d8eebe3f8375932f302cf004d
6
+ metadata.gz: 9513e975ad208e014d4e1eadf883884d09ea23bb1d0fb6ce9b4e3c3fa76adfac3654f18396f03c1d18ff0effe7e5f7ba279eaa39c1362b75be26d1f205e67b86
7
+ data.tar.gz: 1d954b44e1c8d370ee18786f6e310bb282c526d804048a57e0de3a0b3d6a72677015ac6c3792fcf0a540ee421158b443da5ba39186f804cc48d645a707e00118
@@ -8,7 +8,7 @@ module RPetri
8
8
  def run(options = {})
9
9
  return unless @net
10
10
  nested_options = options.dup
11
- nested_options[:logger_prefix] = nested_options[:logger_prefix] + ' '
11
+ nested_options[:logger_prefix] += ' '
12
12
  @net.run(nested_options)
13
13
  end
14
14
  end
@@ -111,7 +111,7 @@ module RPetri
111
111
  end
112
112
 
113
113
  def check_for_looping
114
- state_string = @tokens_hash.select { |_k, v| v > 0 }.reduce(&:to_s)
114
+ state_string = @tokens_hash.select { |_k, v| v > 0 }.to_a.sort.inspect
115
115
  @history_hash[state_string] += 1
116
116
  if @history_hash[state_string] > @max_loops_count
117
117
  fatal("Looping! Same state #{@history_hash[state_string]} times!")
@@ -1,3 +1,3 @@
1
1
  module Rpetri
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpetri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - korolvs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-28 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable