dryspec 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +5 -5
- data/Guardfile +4 -4
- data/README.md +1 -1
- data/dryspec.gemspec +5 -3
- data/lib/dryspec/helpers.rb +5 -1
- data/lib/dryspec/version.rb +1 -1
- metadata +28 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07bed8882800d7ab8a04790efc9d1a905eb2d1726a9a855ef6bc340689f5975d
|
4
|
+
data.tar.gz: 32d1210f8ac11fe20b90d1ed6425ee3675c19ff25dae1a7def1511484b72cbe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 761473246c630da929fb1e823054e815ee5097f20c942044f12746b9382c07c5b29014f6c1751718f8e34d8d7eacd42fcaa2fa29b1749e2690b9e2a9b46ec42a
|
7
|
+
data.tar.gz: c582d98a0952f53a370a20efaf436b7ab969765682f83a7470ceeabae505ddadcfcd2fefa9faaf805064705d708adeaea37b3617889dc88710c44c7cb3896e82
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.5
|
3
|
+
NewCops: enable
|
3
4
|
|
4
5
|
Style/MultilineBlockChain:
|
5
6
|
Enabled: false
|
@@ -21,7 +22,7 @@ Metrics/BlockLength:
|
|
21
22
|
Style/Documentation:
|
22
23
|
Enabled: false
|
23
24
|
|
24
|
-
Lint/
|
25
|
+
Lint/SuppressedException:
|
25
26
|
Exclude:
|
26
27
|
- 'spec/**/*'
|
27
28
|
|
@@ -37,9 +38,6 @@ Style/SignalException:
|
|
37
38
|
Style/FrozenStringLiteralComment:
|
38
39
|
Enabled: false
|
39
40
|
|
40
|
-
Performance/Casecmp:
|
41
|
-
Enabled: false
|
42
|
-
|
43
41
|
# Special characters in comments is a fundamental human right
|
44
42
|
Style/AsciiComments:
|
45
43
|
Enabled: false
|
@@ -50,3 +48,5 @@ Style/SingleLineBlockParams:
|
|
50
48
|
Lint/ShadowingOuterLocalVariable:
|
51
49
|
Enabled: false
|
52
50
|
|
51
|
+
Gemspec/RequireMFA:
|
52
|
+
Enabled: false
|
data/Guardfile
CHANGED
@@ -6,12 +6,12 @@ guard :rubocop, cli: '--auto-correct --display-cop-names --except Lint/Debugger'
|
|
6
6
|
end
|
7
7
|
|
8
8
|
guard 'yard' do
|
9
|
-
watch(%r{app
|
10
|
-
watch(%r{lib
|
11
|
-
watch(%r{ext
|
9
|
+
watch(%r{app/.+\.rb})
|
10
|
+
watch(%r{lib/.+\.rb})
|
11
|
+
watch(%r{ext/.+\.c})
|
12
12
|
end
|
13
13
|
|
14
|
-
#
|
14
|
+
# NOTE: The cmd option is now required due to the increasing number of ways
|
15
15
|
# rspec may be run, below are examples of the most common uses.
|
16
16
|
# * bundler: 'bundle exec rspec'
|
17
17
|
# * bundler binstubs: 'bin/rspec'
|
data/README.md
CHANGED
@@ -55,7 +55,7 @@ By default when you give `let_context` a `Hash`, the `#inspect` of the `Hash` be
|
|
55
55
|
let_context('Negative number', value: -1) { it { should eq 1 } }
|
56
56
|
let_context('Big negative number', value: -10) { it { should eq -8 } }
|
57
57
|
|
58
|
-
### `
|
58
|
+
### `for_subject`
|
59
59
|
|
60
60
|
A shortcut for a combination of `context` and `subject`
|
61
61
|
|
data/dryspec.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'A Ruby gem to introduce RSpec helpers which can help you DRY up your specs'
|
13
13
|
spec.homepage = 'https://github.com/northwoodspd/dryspec'
|
14
14
|
spec.license = 'MIT'
|
15
|
+
spec.required_ruby_version = '>= 2.5.0'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
@@ -20,11 +21,12 @@ Gem::Specification.new do |spec|
|
|
20
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
22
|
spec.require_paths = ['lib']
|
22
23
|
|
23
|
-
spec.add_development_dependency 'bundler', '
|
24
|
+
spec.add_development_dependency 'bundler', '>= 2.2.33'
|
24
25
|
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
25
|
-
spec.add_development_dependency 'guard-rubocop', '~> 1.
|
26
|
+
spec.add_development_dependency 'guard-rubocop', '~> 1.5.0'
|
26
27
|
spec.add_development_dependency 'guard-yard', '~> 2.2.0'
|
27
|
-
spec.add_development_dependency 'rake', '
|
28
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
28
29
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
30
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.5.1'
|
29
31
|
spec.add_development_dependency 'yard', '~> 0.9.9'
|
30
32
|
end
|
data/lib/dryspec/helpers.rb
CHANGED
@@ -97,7 +97,11 @@ module DRYSpec
|
|
97
97
|
it_string += " (#{message.inspect})" if message
|
98
98
|
|
99
99
|
it it_string do
|
100
|
-
|
100
|
+
if error
|
101
|
+
expect { subject }.not_to raise_error error, message
|
102
|
+
else
|
103
|
+
expect { subject }.not_to raise_error
|
104
|
+
end
|
101
105
|
end
|
102
106
|
end
|
103
107
|
|
data/lib/dryspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dryspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Northwoods
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.33
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.33
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: guard-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.5.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: guard-yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 12.3.3
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 12.3.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec_junit_formatter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.5.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.5.1
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: yard
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,15 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
158
|
requirements:
|
145
159
|
- - ">="
|
146
160
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
161
|
+
version: 2.5.0
|
148
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
153
167
|
requirements: []
|
154
|
-
|
155
|
-
rubygems_version: 2.7.7
|
168
|
+
rubygems_version: 3.0.8
|
156
169
|
signing_key:
|
157
170
|
specification_version: 4
|
158
171
|
summary: A Ruby gem to introduce RSpec helpers which can help you DRY up your specs
|