y_petri 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/y_petri/place/guarded.rb +2 -1
- data/lib/y_petri/version.rb +1 -1
- data/y_petri.gemspec +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f61f9be5c8c7a131dac0ef18a01d694d0253b13e
|
4
|
+
data.tar.gz: b91fd8337f027bc13bb1d4594475629e3cd14755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710cbd7d5aa16b17d15c9ed45d9a3ddc0b99d0fcd72eb7ce45a25259e7934d86a8a451e35a71c6dfd2d88d90d1947e10fca8e45a1ae4260bb172e81e9850f762
|
7
|
+
data.tar.gz: 585d6dd8b10ece874569d2ada743368eaa7f163f03e002b5b497131e46d02ad2cfab421089b21895e7673db9e53ff263241a9b48684dc98616d8af4919d17506
|
@@ -64,7 +64,8 @@ module YPetri::Place::Guarded
|
|
64
64
|
when Numeric then # 3 guards
|
65
65
|
marking "should be Numeric" do |m| m.is_a? Numeric end
|
66
66
|
marking "should not be complex" do |m| fail if m.is_a? Complex end
|
67
|
-
marking "should not be negative"
|
67
|
+
marking( "should not be negative" ) { |m| m >= 0 } if
|
68
|
+
reference_marking >= 0
|
68
69
|
when nil then # no guards
|
69
70
|
when true, false then # 1 guard
|
70
71
|
marking "should be Boolean" do |m| m == !!m end
|
data/lib/y_petri/version.rb
CHANGED
data/y_petri.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: y_petri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -251,7 +251,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
251
251
|
requirements:
|
252
252
|
- - '>='
|
253
253
|
- !ruby/object:Gem::Version
|
254
|
-
version: '0'
|
254
|
+
version: '2.0'
|
255
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
256
|
requirements:
|
257
257
|
- - '>='
|