cucumber_junit_to_json 0.1.5 → 0.1.6

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: a829c4150152aef62b16eb903e97f7011a8c52f2
4
- data.tar.gz: 58767616d0be0fc57708e7ff8cc337088f10a14f
3
+ metadata.gz: 1784e0b9f645c70c9afa8fff11f2f4dc2e21d8ab
4
+ data.tar.gz: 697b4d898db1cccae23b96f51339610f6f656005
5
5
  SHA512:
6
- metadata.gz: 8e544d402b53aaf6b1b4fc5a102bdcbaf1093da2e0083ec03cf19f323ac444a048a663131f1eb871b3faca532f2399b07685c8f02479eabb58492943a43eb99b
7
- data.tar.gz: ee8f0409108fbfbf297eb1eae7af2af6394d6e0b605e3d49ee167d210f8258e0a5abd7aecd11cc42a07c45bbdba977ccb33b24bcf45a42a051752978e618c57b
6
+ metadata.gz: c830b1028f775a5ad9a4a71c2af117c4b4aac3b37ea07d2a7001374b1a7a3ed00b989bef982e5394df7723a3203ee429d1a83cb4fbc71ba74cbdd2debb7bbb17
7
+ data.tar.gz: 8eb5f7138c0a74fb3e01d79332b70e7a8c3a6515f634b7640029ec96390bdceaa9ff0794cfe35fd177593b3ea3d0b78aff515a9c5e1970fdfb2050146fc2383f
@@ -11,6 +11,7 @@ module CucumberJunitToJson
11
11
  module Models
12
12
  # Abstract representation of a cucumber step attribute
13
13
  class Step
14
+ Error = Class.new(RuntimeError)
14
15
  attr_accessor :keyword, :name, :match, :table, :rows, :result, :line
15
16
  def initialize
16
17
  @table = CucumberJunitToJson::Models::Table.new
@@ -94,7 +95,7 @@ module CucumberJunitToJson
94
95
  if line =~ /<\S+>/
95
96
  # A match percentage greater than 76 is an indication
96
97
  # of a good match for steps
97
- return line, count if line.similar(step) >= 76
98
+ return line, count if line.similar(step) >= 67
98
99
  elsif line =~ /#{step}/
99
100
  return line, count
100
101
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Cucumber Junit to Json version module
4
4
  module CucumberJunitToJson
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.6'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_junit_to_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Voke Ransom Anighoro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler