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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31d67cdd2d8d8eabea0958cde8c3b9ed66a6f8f042505a411a0b243a12e32202
4
- data.tar.gz: 04562b92f0e7634fb0daed44796476992796113ec875b4f0256d9d0d5a9e2724
3
+ metadata.gz: 23091ca5e1f49ee91544d78e70919756c8fb85e43407b98694999e599f711b8c
4
+ data.tar.gz: 336f3ccfcfa5a224e42226ab2534647801283439e465c9e7c5d5ccc621b059c0
5
5
  SHA512:
6
- metadata.gz: 9e9de4e60b06d57f0fa3e2f5f685e4a3a7c5dfcafc16e17ddf8505b13bc49c90c1ea439b3c94d771ccd88f1a1075d7a25e43cf53696be95f914952bbc6f72ef6
7
- data.tar.gz: d41e7c85ecb5197c9d331768cb068ae5bd652519627359dd3402ef12626b6a25ba3c13189807b2ca3fd618508ed533654401c12bbf2e1ea1194d40b27626ab8f
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)
@@ -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'
@@ -48,6 +48,7 @@ TooManyTags:
48
48
  Enabled: true
49
49
  TooLongStep:
50
50
  Enabled: true
51
+ MaxLength: 80
51
52
  UniqueScenarioNames:
52
53
  Enabled: true
53
54
  UnknownVariable:
@@ -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 < 80
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
@@ -1,3 +1,3 @@
1
1
  module Chutney
2
- VERSION = '1.6.2'.freeze
2
+ VERSION = '1.6.3'.freeze
3
3
  end
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.2
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-07-25 00:00:00.000000000 Z
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