orfeas_petri_flow 0.9.3 → 1.0.0

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
  SHA256:
3
- metadata.gz: efec22c77e2eb0bcde1043972301901f99fe6ae5744839ed7f124bfd2e0344bf
4
- data.tar.gz: 1505174afa2f87b1e53d7174228151bf6e2f0bdf45965d2c5b016ff1bea3bfa9
3
+ metadata.gz: d9cbc8ff96618fd5882f9c4a77556594ffd6eda4db5499dd8bb0577f5d7aa091
4
+ data.tar.gz: c48d63fc243271cf9d7e4062dd47c9727db3464f844881a69200ddad38efba5c
5
5
  SHA512:
6
- metadata.gz: 217e171ba67b6afa9ec312f7b26797a41418f602dfb7f23c94bf5fb7f12b382a71ea77bc50d7687154a514e99c21694ea74b0b318784e3f213a4d67a27ee26db
7
- data.tar.gz: 70452430546ed19f788d40d24b23500fd2cebf8ee51ea5951c11a16115d6b288b5fa03abaef2701f0c024ec1f64159b825b66e76fb84d328038be40ef7099039
6
+ metadata.gz: 9781d473fff37db31c240ba08490e14d4e9c9f136d3e7da91ea2197b8a722d6971ec20a7886e7ee1e4d143e4788766054b7b627e347618059c35de1f950a53bc
7
+ data.tar.gz: b57d00e5dce2e1df0b036bc31cbebe08be2a193272b2cb6220430654d51411ca8abd468f7b6e43f6b9462debf60608527618688cc8280e0e2cf919e327b3d8dc
data/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to the PetriFlow gem will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.0.0] - 2026-11-22
8
+
9
+ Released with Lyra 1.0.0 and PAM DSL 1.0.0.
10
+
11
+ ### Changed
12
+ - **The gems' MIT-LICENSE copyright line no longer names the University of the Aegean**, which is
13
+ the author's affiliation, not a copyright holder.
14
+ - **`rake petri_flow:verify` exits 1 when a workflow fails verification**: a terminal place it
15
+ cannot reach, an unbounded net, or a run that can stop short of a terminal place. The reports
16
+ are written first, as before. `PETRI_FLOW_EXPECTED_FAILURES` (class names, comma-separated)
17
+ exempts a workflow kept flawed on purpose, as a demonstration. It used to exit 0 whatever it
18
+ found.
19
+
7
20
  ## [0.9.3] - 2026-11-04
8
21
 
9
22
  ### Security
data/MIT-LICENSE CHANGED
@@ -1,7 +1,6 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2025 Michail Pantelelis (mpantel@aegean.gr)
4
- University of the Aegean - ORFEAS Framework
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
6
  of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,25 @@ namespace :petri_flow do
27
27
  end
28
28
 
29
29
  runner = PetriFlow::VerificationRunner.new
30
- runner.run_all
30
+ results = runner.run_all
31
+
32
+ # A workflow fails verification when a terminal place is unreachable, the
33
+ # net is unbounded, or it can stop short of a terminal place. The reports
34
+ # are written either way; then the task exits 1 if any failed, unless
35
+ # PETRI_FLOW_EXPECTED_FAILURES names it (a workflow kept flawed on purpose,
36
+ # as a demonstration).
37
+ failed = results.filter_map do |_id, r|
38
+ unreachable = r[:terminal_reachability].select { |_place, reachable| !reachable }.keys
39
+ unbounded = r.dig(:verification, :boundedness, :is_bounded) == false
40
+ improper = r.dig(:verification, :liveness, :terminates_properly) == false
41
+ next if unreachable.empty? && !unbounded && !improper
42
+
43
+ [r[:class_name], { unreachable: unreachable, unbounded: unbounded, terminates_improperly: improper }]
44
+ end.to_h
45
+ expected = ENV.fetch("PETRI_FLOW_EXPECTED_FAILURES", "").split(",").map(&:strip)
46
+ unexpected = failed.except(*expected)
47
+ failed.each { |name, why| puts "#{expected.include?(name) ? 'expected failure' : 'FAILED'}: #{name} #{why}" }
48
+ abort "petri_flow:verify: #{unexpected.size} workflow(s) failed verification: #{unexpected.keys.join(', ')}" if unexpected.any?
31
49
  end
32
50
 
33
51
  namespace :verify do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PetriFlow
4
- VERSION = "0.9.3"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orfeas_petri_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michail Pantelelis