gherkin_lint 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +6 -2
- data/bin/gherkin_lint +3 -5
- data/features/avoid_outline_for_single_example.feature +1 -0
- data/features/missing_example_name.feature +1 -0
- data/features/missing_verification.feature +1 -0
- data/features/unknown_variable.feature +1 -0
- data/features/unused_variable.feature +1 -0
- data/features/use_background.feature +2 -0
- data/gherkin_lint.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5519629a6701153e9c8c0b1bf33295312347963b
|
|
4
|
+
data.tar.gz: e4d41720a2baacf84f2f2ced533c7a1cc34a406c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4a0bb5df96fea091fe37f63b0ce93ca46977d734b4958489dd91647f165c135f78cdc3fe03e74ed3e1bd0a50f24c5456a87cf91abefd98a2fd8127be7bd94f8
|
|
7
|
+
data.tar.gz: 8cb76cd1c6b79a8247033ad5494ed568ab2767854de39e778dd3c99a5dc8cfd808c71cad893dddd63a2a1eaa42a18d148c02e3b5336974dc37080b1655c599cb
|
data/Rakefile
CHANGED
|
@@ -11,12 +11,16 @@ end
|
|
|
11
11
|
|
|
12
12
|
desc 'Publishes the Gem'
|
|
13
13
|
task :push do
|
|
14
|
-
sh 'gem push gherkin_lint-1.
|
|
14
|
+
sh 'gem push gherkin_lint-1.1.0.gem'
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
desc 'Checks ruby style'
|
|
18
18
|
task :rubocop do
|
|
19
|
-
|
|
19
|
+
begin
|
|
20
|
+
sh 'rubocop'
|
|
21
|
+
rescue
|
|
22
|
+
puts 'Rubocop failed'
|
|
23
|
+
end
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
task test: :rubocop
|
data/bin/gherkin_lint
CHANGED
|
@@ -14,9 +14,6 @@ OptionParser.new do |opts|
|
|
|
14
14
|
opts.on('--disable [CHECKS]', 'Disabled checks. Separated by ","') do |checks|
|
|
15
15
|
options[:disable] = checks.split(',')
|
|
16
16
|
end
|
|
17
|
-
opts.on('-f', '--filepath [file/s]', 'File path where features are located') do |file|
|
|
18
|
-
options[:files] = file
|
|
19
|
-
end
|
|
20
17
|
end.parse!
|
|
21
18
|
|
|
22
19
|
linter = GherkinLint::GherkinLint.new
|
|
@@ -24,8 +21,9 @@ linter.disable options[:disable] if options.key? :disable
|
|
|
24
21
|
linter.enable options[:enable] if options.key? :enable
|
|
25
22
|
linter.set_linter
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
files =
|
|
24
|
+
files = ARGV
|
|
25
|
+
files = 'features/**/*.feature' if ARGV.empty?
|
|
26
|
+
files = Dir.glob(files)
|
|
29
27
|
|
|
30
28
|
files.each do |file|
|
|
31
29
|
linter.analyze file
|
|
@@ -39,6 +39,7 @@ Feature: Use Background
|
|
|
39
39
|
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
|
+
@disableUnknownVariable
|
|
42
43
|
Scenario: Same Given in Outlines
|
|
43
44
|
Given a file named "lint.feature" with:
|
|
44
45
|
"""
|
|
@@ -88,6 +89,7 @@ Feature: Use Background
|
|
|
88
89
|
"""
|
|
89
90
|
"""
|
|
90
91
|
|
|
92
|
+
@disableUnknownVariable
|
|
91
93
|
Scenario: Valid Single Scenario
|
|
92
94
|
Given a file named "lint.feature" with:
|
|
93
95
|
"""
|
data/gherkin_lint.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'gherkin_lint'
|
|
3
|
-
s.version = '1.
|
|
4
|
-
s.date = '2017-
|
|
3
|
+
s.version = '1.1.0'
|
|
4
|
+
s.date = '2017-11-03'
|
|
5
5
|
s.summary = 'Gherkin Lint'
|
|
6
6
|
s.description = 'Lint Gherkin Files'
|
|
7
7
|
s.authors = ['Stefan Rohe', 'Nishtha Argawal', 'John Gluck']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gherkin_lint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefan Rohe
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-
|
|
13
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: gherkin
|
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
206
|
version: '0'
|
|
207
207
|
requirements: []
|
|
208
208
|
rubyforge_project:
|
|
209
|
-
rubygems_version: 2.5.
|
|
209
|
+
rubygems_version: 2.5.2
|
|
210
210
|
signing_key:
|
|
211
211
|
specification_version: 4
|
|
212
212
|
summary: Gherkin Lint
|