gherkin_lint 1.2.1 → 1.2.2

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
  SHA1:
3
- metadata.gz: da4a1b2acef3a4af5710c4c80f1d2b188604154c
4
- data.tar.gz: ef6ddab010d682a6947d3401753b3194a0dd3ed5
3
+ metadata.gz: 0a98cee1b46cfeba1d4e897aed5892611a1affea
4
+ data.tar.gz: ba7ccd291b3cd703690ec6f9b847410a1943cc35
5
5
  SHA512:
6
- metadata.gz: c8822943fe3e7b9bcd342cfbff950741af78ded8099ff4e15300e5b7700385c2f4ae633b56af6a6e1a4b88f527505309ad9feda8377967eb10db9e4e971f8896
7
- data.tar.gz: 9f043fc0b45bd37ce52053d497f39bf4d8841720938602628187a25e03a97e713e9ae9dccb18102852e876bb60ac19ffdc5468c6ea26418476c15d026e5511a3
6
+ metadata.gz: 0431ba4ac320a547e8b3bc24e540d5975fc30552e68fd5bed3e48205b2e12a572d4b97a09d7f41fb48cc131950f74d8925c5f59920c6ff3fce79f48f2df9bb1c
7
+ data.tar.gz: 5a34a993cf4f29e62d3b2d31e76351600016752bf3a5a138f221abb4c44f4a0a231a69e2c58d80770c4532287a7f1898b90d0d251c17dc2419817d88f3e570f3
data/Gemfile CHANGED
@@ -1,4 +1,7 @@
1
1
  source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
2
5
  gem 'amatch'
3
6
  gem 'aruba', '1.0.0.pre.alpha.2'
4
7
  gem 'engtagger', '>=0.2.1'
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Lint Gherkin Files
2
2
 
3
3
  [![Build Status](https://travis-ci.org/funkwerk/gherkin_lint.svg)](https://travis-ci.org/funkwerk/gherkin_lint)
4
+ [![Build status](https://ci.appveyor.com/api/projects/status/31w2m0x1b9484jbi/branch/master?svg=true)](https://ci.appveyor.com/project/lindt/gherkin-lint/branch/master)
4
5
  [![Code Climate](https://codeclimate.com/github/funkwerk/gherkin_lint/badges/gpa.svg)](https://codeclimate.com/github/funkwerk/gherkin_lint)
5
6
  [![Docker Build](https://img.shields.io/docker/automated/gherkin/lint.svg)](https://hub.docker.com/r/gherkin/lint/)
6
7
  [![Downloads](https://img.shields.io/gem/dt/gherkin_lint.svg)](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.1.gem'
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 "RUBYLIB=lib ./bin/gherkin_lint --disable #{disabled_checks.join ','} features/*.feature"
47
+ sh "ruby ./bin/gherkin_lint --disable #{disabled_checks.join ','} features/*.feature"
48
48
  end
@@ -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
@@ -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 = 'features/**/*.feature' if ARGV.empty?
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
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_lint'
3
- s.version = '1.2.1'
4
- s.date = '2017-11-30'
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.1
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-11-30 00:00:00.000000000 Z
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