rast 0.11.1 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/rast/rules/rule_validator.rb +1 -2
- data/lib/rast.rb +4 -0
- data/rast.gemspec +2 -2
- metadata +3 -18
- data/lib/rast/assert.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5fc752b94576193c661963c641d3ca832afe4d6f9c924f479af1df917dd03b0
|
4
|
+
data.tar.gz: de6ed92bca2d98dfc7d2d2affdd4517b041bd9f94223889c746e818b5ff62143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c1869d217fe1e4d7d1e8c10b9613ef9302dab71aa916f944b170f32e2ebbed1352240811f009f61f34ff8705f258a9c6942b6b6044c43c3c39765f031b0ec3
|
7
|
+
data.tar.gz: cc356ead12e64bc4d2220323c417cf265fc43d3fbf5856fd344de581b4be470c925b8709b58cee87c1a70b4fc4a739cfdcfbf1bb4a243b8490322cfdaf7ff2a6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
- 0.11.2 - Remove dependency to Factory girl from gemspec. - YANKED!
|
3
4
|
- 0.11.1 - Add dependency to Factory girl, fixes to examples
|
4
5
|
- 0.11.0 - Raw array as clause to support spaces and operator characters.
|
5
6
|
- 0.10.0 - Optional variables definition for 1 to 1 rules.
|
@@ -1,6 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'rast/assert'
|
4
3
|
require 'rast/rules/rule_processor'
|
5
4
|
|
6
5
|
# Validates rules
|
@@ -38,7 +37,7 @@ class RuleValidator
|
|
38
37
|
match_count += 1
|
39
38
|
matched_outputs << spec.rule.outcomes[i]
|
40
39
|
end
|
41
|
-
assert("Scenario must fall into a unique rule output/clause:
|
40
|
+
Rast.assert("Scenario must fall into a unique rule output/clause:
|
42
41
|
#{scenario} , matched: #{matched_outputs}") { match_count == 1 }
|
43
42
|
|
44
43
|
matched_outputs.first
|
data/lib/rast.rb
CHANGED
data/rast.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'rast'
|
5
|
-
spec.version = '0.11.
|
5
|
+
spec.version = '0.11.3'
|
6
6
|
spec.authors = ['Royce Remulla']
|
7
7
|
spec.email = ['royce.com@gmail.com']
|
8
8
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.license = 'MIT'
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new('~> 2.0')
|
14
14
|
|
15
|
-
spec.add_runtime_dependency 'factory_girl', '~> 4.7'
|
15
|
+
# spec.add_runtime_dependency 'factory_girl', '~> 4.7'
|
16
16
|
|
17
17
|
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
18
18
|
spec.metadata['homepage_uri'] = spec.homepage
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Royce Remulla
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: factory_girl
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.7'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '4.7'
|
11
|
+
date: 2020-05-03 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description: Extends RSpec functionality by using the catch-all-scenario testing (CAST)
|
28
14
|
principle.
|
29
15
|
email:
|
@@ -53,7 +39,6 @@ files:
|
|
53
39
|
- examples/triple.rb
|
54
40
|
- examples/worker.rb
|
55
41
|
- lib/rast.rb
|
56
|
-
- lib/rast/assert.rb
|
57
42
|
- lib/rast/converters/bool_converter.rb
|
58
43
|
- lib/rast/converters/float_converter.rb
|
59
44
|
- lib/rast/converters/int_converter.rb
|