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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41552418a05e49304983f930971458922fcf11fde6bccf8dae18e4060d6e9d8b
4
- data.tar.gz: 0ee2d4c4c2067859512a7a3c21660bee75dad52039d18cf595ea20364b8fc01b
3
+ metadata.gz: b5fc752b94576193c661963c641d3ca832afe4d6f9c924f479af1df917dd03b0
4
+ data.tar.gz: de6ed92bca2d98dfc7d2d2affdd4517b041bd9f94223889c746e818b5ff62143
5
5
  SHA512:
6
- metadata.gz: d0720553986661d0c8a666658d211b2f762a820b48a6882570a6b7c6fbb47d5655c1be3f8662eae3855d388bceb097dc9ddbbffce5e1450af115e2beb91fa811
7
- data.tar.gz: bfc3fc611a0b45228350b3772112a10bba087ccc5cd939878a7451b970620ee8dfbb1d2d92c453fc0528d09b7ea6acc142294e31713a5dabc1add1b784d2e280
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
@@ -34,6 +34,10 @@ class Rast
34
34
  instance_eval(&block)
35
35
  end
36
36
 
37
+ def self.assert(message)
38
+ raise message unless yield
39
+ end
40
+
37
41
  def spec(id, &block)
38
42
  global_spec(
39
43
  subject: @subject,
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.1'
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.1
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-02 00:00:00.000000000 Z
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
data/lib/rast/assert.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Used to provide assertion check similar to java
4
-
5
- def assert(message)
6
- raise message unless yield
7
- end