rast 0.8.1.pre → 0.9.0.pre
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.rb +2 -5
- data/lib/rast/spec_dsl.rb +0 -5
- data/rast.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113f506d2285fd3aa8644b696b2abcf45325ec4e524b062b45069d8a70483979
|
4
|
+
data.tar.gz: 8b1be6d0e110b437a2fa71a53e988c31d938157ea600dda627ac74ded14461b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf43fb9b83ccc79acd4c95459fb86d6d175a23fd5a0dab95ad1910ebd84e29685413ab46dd2c6fec0b22c9b3630153bf7ad13139d9d72c754285d90eef06ff8
|
7
|
+
data.tar.gz: 006dbc1bf25a2e841f900484e007c748d85e26bc6fc2a6e2e0c62c4057f13414c427b7cd0ab01590a009da94142a3b6c874b2ea80c076f00bac4a293afe4f287
|
data/CHANGELOG.md
CHANGED
data/lib/rast/rules/rule.rb
CHANGED
@@ -52,11 +52,8 @@ class Rule
|
|
52
52
|
# * @param separator rule clause token.
|
53
53
|
# */
|
54
54
|
def self.remove_spaces(token: nil, separator: '')
|
55
|
-
|
56
|
-
|
57
|
-
else
|
58
|
-
token.to_s.gsub(Regexp.new("\\s*#{separator}\\s*"), separator)
|
59
|
-
end
|
55
|
+
escape = %w[( ) |].include?(separator) ? '\\' : ''
|
56
|
+
token.to_s.gsub(Regexp.new("\\s*#{escape}#{separator}\\s*"), separator)
|
60
57
|
end
|
61
58
|
|
62
59
|
# /**
|
data/lib/rast/spec_dsl.rb
CHANGED
@@ -24,16 +24,11 @@ class SpecDSL
|
|
24
24
|
@fixtures = fixtures
|
25
25
|
|
26
26
|
@transients = []
|
27
|
-
@result = nil
|
28
27
|
@rspec_methods = []
|
29
28
|
|
30
29
|
instance_eval(&block)
|
31
30
|
end
|
32
31
|
|
33
|
-
def result(outcome)
|
34
|
-
@outcome = outcome.to_s
|
35
|
-
end
|
36
|
-
|
37
32
|
def respond_to_missing?(*several_variants)
|
38
33
|
super(several_variants)
|
39
34
|
end
|
data/rast.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0.pre
|
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-04-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Extends RSpec functionality by using the catch-all-scenario testing (CAST)
|
14
14
|
principle.
|
@@ -18,9 +18,9 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- .gitignore
|
22
|
-
- .rspec
|
23
|
-
- .rubocop.yml
|
21
|
+
- ".gitignore"
|
22
|
+
- ".rspec"
|
23
|
+
- ".rubocop.yml"
|
24
24
|
- CHANGELOG.md
|
25
25
|
- Gemfile
|
26
26
|
- Gemfile.lock
|
@@ -66,16 +66,16 @@ require_paths:
|
|
66
66
|
- lib
|
67
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - ~>
|
69
|
+
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '2.0'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.3.1
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.1.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: RSpec AST - All Scenario Testing
|