chutney 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/chutney.gemspec +1 -0
- data/config/default.yml +1 -0
- data/lib/chutney/linter/too_long_step.rb +13 -1
- data/lib/chutney/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23091ca5e1f49ee91544d78e70919756c8fb85e43407b98694999e599f711b8c
|
4
|
+
data.tar.gz: 336f3ccfcfa5a224e42226ab2534647801283439e465c9e7c5d5ccc621b059c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8987e723664245e139d7e441ed72c4e217f84d19bbcab6a6ee6f03ad1dd4199336833e590394c66a670c239c8d905b7e056497a45aa289b14d2d4dcee6b37d
|
7
|
+
data.tar.gz: fa2641bcbdb3908bd7da33631154c26487091b009b9d7e4c31ee93c5a4e0696255a974d657776d38fb80ad7f7cd9dcb1b238f24c336d8eff12a8a67108fec5a2
|
data/README.md
CHANGED
@@ -50,6 +50,7 @@ This will mount the current directory within the Gherkin Lint Docker Container a
|
|
50
50
|
- [missing test action](https://github.com/BillyRuffian/chutney/blob/master/features/missing_test_action.feature)
|
51
51
|
- [missing verification](https://github.com/BillyRuffian/chutney/blob/master/features/missing_verification.feature)
|
52
52
|
- [same tag for all scenarios](https://github.com/BillyRuffian/chutney/blob/master/features/same_tag_for_all_scenarios.feature)
|
53
|
+
- [scenario name must match pattern](https://github.com/BillyRuffian/chutney/blob/master/features/scenario_names_match.feature)
|
53
54
|
- [tag used multiple times](https://github.com/BillyRuffian/chutney/blob/master/features/tag_used_multiple_times.feature)
|
54
55
|
- [too clumsy](https://github.com/BillyRuffian/chutney/blob/master/features/too_clumsy.feature)
|
55
56
|
- [too long step](https://github.com/BillyRuffian/chutney/blob/master/features/too_long_step.feature)
|
data/chutney.gemspec
CHANGED
@@ -50,6 +50,7 @@ Gem::Specification.new do |spec|
|
|
50
50
|
spec.add_runtime_dependency 'term-ansicolor', '1.7.1'
|
51
51
|
|
52
52
|
spec.add_development_dependency 'aruba', '~> 0.14.0'
|
53
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
53
54
|
spec.add_development_dependency 'rubocop', '~> 0.73.0'
|
54
55
|
spec.add_development_dependency 'rspec', '~> 3.8'
|
55
56
|
spec.add_development_dependency 'coveralls', '~> 0.8'
|
data/config/default.yml
CHANGED
@@ -1,17 +1,29 @@
|
|
1
1
|
require 'chutney/linter'
|
2
2
|
|
3
|
+
# rubocop:disable Lint/MissingCopEnableDirective
|
3
4
|
module Chutney
|
4
5
|
# service class to lint for too long steps
|
5
6
|
class TooLongStep < Linter
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@maxlength = 80
|
10
|
+
super
|
11
|
+
end
|
12
|
+
|
6
13
|
MESSAGE = 'This step is too long at %d characters'.freeze
|
7
14
|
|
8
15
|
def lint
|
9
16
|
steps do |file, feature, scenario, step|
|
10
|
-
next if step[:text].length
|
17
|
+
next if step[:text].length <= @maxlength
|
11
18
|
|
12
19
|
references = [reference(file, feature, scenario, step)]
|
13
20
|
add_error(references, MESSAGE % step[:text].length)
|
14
21
|
end
|
15
22
|
end
|
23
|
+
|
24
|
+
# rubocop:disable Style/TrivialAccessors
|
25
|
+
def maxlength(length)
|
26
|
+
@maxlength = length
|
27
|
+
end
|
16
28
|
end
|
17
29
|
end
|
data/lib/chutney/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chutney
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nigel Brookes-Thomas
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-10-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: amatch
|
@@ -97,6 +97,20 @@ dependencies:
|
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: 0.14.0
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: rake
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '12.0'
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '12.0'
|
100
114
|
- !ruby/object:Gem::Dependency
|
101
115
|
name: rubocop
|
102
116
|
requirement: !ruby/object:Gem::Requirement
|