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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af19f20d8f6fb2930aa29d8c377861249104dd713f28cacf497fdd224003104c
4
- data.tar.gz: b4e6f494d21b3e9695af2d933261f08370d4b1eb9e71412ce52d0a0e1fc0f987
3
+ metadata.gz: 113f506d2285fd3aa8644b696b2abcf45325ec4e524b062b45069d8a70483979
4
+ data.tar.gz: 8b1be6d0e110b437a2fa71a53e988c31d938157ea600dda627ac74ded14461b5
5
5
  SHA512:
6
- metadata.gz: 1926328be3da258ff3a6e1c15af9c9bbaec293b4a0de1ae229682294f97dc0123f4b86a4fcc0663c176c93185b48077b92215f257e1f03638faff7fdfd2f224c
7
- data.tar.gz: 8c5f0153ccb0814bd55302de863eda2aca14c465f90e7a204d6383109dcf0610e5926ddf54ddb56761be99c72b98f96d3281d897a511227ab7b6ea99dee7a835
6
+ metadata.gz: 8bf43fb9b83ccc79acd4c95459fb86d6d175a23fd5a0dab95ad1910ebd84e29685413ab46dd2c6fec0b22c9b3630153bf7ad13139d9d72c754285d90eef06ff8
7
+ data.tar.gz: 006dbc1bf25a2e841f900484e007c748d85e26bc6fc2a6e2e0c62c4057f13414c427b7cd0ab01590a009da94142a3b6c874b2ea80c076f00bac4a293afe4f287
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Change log
2
2
 
3
+ - 0.9.0 - execute return value is now the expected outcome (removed result method)
3
4
  - 0.8.1.pre - Allow spaces in rules.
4
5
  - 0.8.0.pre - Auto-detect variable type.
5
6
  - 0.7.0.pre - Display exclusion rule in the report
@@ -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
- if ['(',')', '|'].include? separator
56
- token.to_s.gsub(Regexp.new("\\s*\\#{separator}\\s*"), separator)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'rast'
5
- spec.version = '0.8.1.pre'
5
+ spec.version = '0.9.0.pre'
6
6
  spec.authors = ['Royce Remulla']
7
7
  spec.email = ['royce.com@gmail.com']
8
8
 
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.8.1.pre
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-29 00:00:00.000000000 Z
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.0.8
78
+ rubygems_version: 3.1.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: RSpec AST - All Scenario Testing