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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b9ad10d82b638f8b53bea62cc731d72f0285537
4
- data.tar.gz: 0a779d0729f79747f9fc9f776c12ca3453341a76
3
+ metadata.gz: 5519629a6701153e9c8c0b1bf33295312347963b
4
+ data.tar.gz: e4d41720a2baacf84f2f2ced533c7a1cc34a406c
5
5
  SHA512:
6
- metadata.gz: edc57cb10fb6f52db675742da92d40924b2c3cf49cd104b02ad04d2379eab61b4cbf484bcd0c6f62cd9787f6f26f9f22caab60ee36cacedde3730f358f13b13a
7
- data.tar.gz: c066a1bd07d54b6e911581abe31bc0b74781eddb20cc0a8abac59b0c934eb0ef4f8968614a43a3152d34b3d8f954a87d55d02a20df318266d42a8a3e57e9b165
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.0.0.gem'
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
- sh 'rubocop'
19
+ begin
20
+ sh 'rubocop'
21
+ rescue
22
+ puts 'Rubocop failed'
23
+ end
20
24
  end
21
25
 
22
26
  task test: :rubocop
@@ -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
- options[:files] = 'features/**/*.feature' if options[:files].nil?
28
- files = Dir.glob(options[: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
@@ -1,3 +1,4 @@
1
+ @disableUnknownVariable
1
2
  Feature: Avoid Outline for single Example
2
3
  As a Business Analyst
3
4
  I do not want a period at the end of the scenario
@@ -1,3 +1,4 @@
1
+ @disableUnknownVariable
1
2
  Feature: Missing Example Name
2
3
  As a Customer
3
4
  I want examples to be named
@@ -17,6 +17,7 @@ Feature: Missing Verification
17
17
 
18
18
  """
19
19
 
20
+ @disableBadScenarioName
20
21
  Scenario: Missing Verification
21
22
  Given a file named "lint.feature" with:
22
23
  """
@@ -1,3 +1,4 @@
1
+ @disableUnknownVariable
1
2
  Feature: Unknown Variable
2
3
  As a Business Analyst
3
4
  I want to be warned about unknown variables
@@ -1,3 +1,4 @@
1
+ @disableUnknownVariable
1
2
  Feature: Unused Variable
2
3
  As a Business Analyst
3
4
  I want to be warned about unused variables
@@ -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
  """
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_lint'
3
- s.version = '1.0.0'
4
- s.date = '2017-08-25'
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.0.0
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-08-25 00:00:00.000000000 Z
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.1
209
+ rubygems_version: 2.5.2
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Gherkin Lint