gherkin_lint 1.2.1 → 1.2.2
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/Gemfile +3 -0
- data/README.md +1 -0
- data/Rakefile +2 -2
- data/appveyor.yml +22 -0
- data/bin/gherkin_lint +6 -3
- data/gherkin_lint.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a98cee1b46cfeba1d4e897aed5892611a1affea
|
4
|
+
data.tar.gz: ba7ccd291b3cd703690ec6f9b847410a1943cc35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0431ba4ac320a547e8b3bc24e540d5975fc30552e68fd5bed3e48205b2e12a572d4b97a09d7f41fb48cc131950f74d8925c5f59920c6ff3fce79f48f2df9bb1c
|
7
|
+
data.tar.gz: 5a34a993cf4f29e62d3b2d31e76351600016752bf3a5a138f221abb4c44f4a0a231a69e2c58d80770c4532287a7f1898b90d0d251c17dc2419817d88f3e570f3
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Lint Gherkin Files
|
2
2
|
|
3
3
|
[](https://travis-ci.org/funkwerk/gherkin_lint)
|
4
|
+
[](https://ci.appveyor.com/project/lindt/gherkin-lint/branch/master)
|
4
5
|
[](https://codeclimate.com/github/funkwerk/gherkin_lint)
|
5
6
|
[](https://hub.docker.com/r/gherkin/lint/)
|
6
7
|
[](https://rubygems.org/gems/gherkin_lint)
|
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
desc 'Publishes the Gem'
|
13
13
|
task :push do
|
14
|
-
sh 'gem push gherkin_lint-1.2.
|
14
|
+
sh 'gem push gherkin_lint-1.2.2.gem'
|
15
15
|
end
|
16
16
|
|
17
17
|
desc 'Checks ruby style'
|
@@ -44,5 +44,5 @@ task :self_check do
|
|
44
44
|
UnknownVariable
|
45
45
|
BadScenarioName
|
46
46
|
]
|
47
|
-
sh "
|
47
|
+
sh "ruby ./bin/gherkin_lint --disable #{disabled_checks.join ','} features/*.feature"
|
48
48
|
end
|
data/appveyor.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
version: '1.0.{build}'
|
2
|
+
|
3
|
+
environment:
|
4
|
+
matrix:
|
5
|
+
- RUBY_VERSION: 23-x64
|
6
|
+
BUNDLE_GEMFILE: Gemfile
|
7
|
+
- RUBY_VERSION: 23
|
8
|
+
BUNDLE_GEMFILE: Gemfile
|
9
|
+
|
10
|
+
install:
|
11
|
+
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
12
|
+
- bundle install
|
13
|
+
|
14
|
+
build: off
|
15
|
+
|
16
|
+
before_test:
|
17
|
+
- ruby -v
|
18
|
+
- gem -v
|
19
|
+
- bundle -v
|
20
|
+
|
21
|
+
test_script:
|
22
|
+
- bundle exec rake
|
data/bin/gherkin_lint
CHANGED
@@ -14,6 +14,9 @@ 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
|
17
20
|
end.parse!
|
18
21
|
|
19
22
|
linter = GherkinLint::GherkinLint.new
|
@@ -21,9 +24,9 @@ linter.disable options[:disable] if options.key? :disable
|
|
21
24
|
linter.enable options[:enable] if options.key? :enable
|
22
25
|
linter.set_linter
|
23
26
|
|
24
|
-
files = ARGV
|
25
|
-
files
|
26
|
-
files = Dir.glob(files)
|
27
|
+
files = ARGV.map { |pattern| Dir.glob(pattern) }.flatten
|
28
|
+
files += Dir.glob(options[:files]) if options.key? :files
|
29
|
+
files = Dir.glob('features/**/*.feature') if ARGV.empty? and not options.key?(:files)
|
27
30
|
|
28
31
|
files.each do |file|
|
29
32
|
linter.analyze file
|
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.2.
|
4
|
-
s.date = '2017-
|
3
|
+
s.version = '1.2.2'
|
4
|
+
s.date = '2017-12-04'
|
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.2.
|
4
|
+
version: 1.2.2
|
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-12-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: gherkin
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- LICENSE
|
113
113
|
- README.md
|
114
114
|
- Rakefile
|
115
|
+
- appveyor.yml
|
115
116
|
- bin/gherkin_lint
|
116
117
|
- config/default.yml
|
117
118
|
- features/avoid_outline_for_single_example.feature
|