fivemat 1.3.5 → 1.3.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
- SHA1:
3
- metadata.gz: ca2a1963e6cdfcb082022a7147b3b8b428b4e738
4
- data.tar.gz: b0305a6a4765f07e68baef60fd6b0084f58363df
2
+ SHA256:
3
+ metadata.gz: b1b9e080743835fe3e1f4641af24ed0461d77ccdd9a2d47fd5c59598e51efb7c
4
+ data.tar.gz: b706519ef0b6fb0c6d2006527a3c94f8f40d1c379e7917a6a7819735a9cd66dc
5
5
  SHA512:
6
- metadata.gz: df883b6b16339df08f81c8592a047340380926fade449f0806ad4c74c1165eaa791f3a9a431ed19f214e1cda985e426aa53ca5eaffc65262473ab0fa44df816e
7
- data.tar.gz: c07facc232a28ef08d1e8685c84fbe65814b67b612d18ba46cf223c131efe7a69be75e5b2ec847f5299e71ef15d220dba815f634b9a25173677b00661a9bc292
6
+ metadata.gz: b371808701af35663b24aea863684761b7bcd6ad22c362dcfe21ef10c6ae134dcf01fe3e40d3a67ef01b5cbb0868d05505a56ee6164517740e3966666b9fb9fa
7
+ data.tar.gz: 71fa25c4b722c3b17442ebf3f2c0cd7065dc581ffefea502af65b39153348607642c2ea699d20adaefb031e28466f0fe3f38b8639d515a9bd2d9b4c585178f11
@@ -1,16 +1,19 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |gem|
4
+ gem.name = "fivemat"
5
+ gem.version = "1.3.6"
4
6
  gem.authors = ["Tim Pope"]
5
7
  gem.email = ["code@tp" + 'ope.net']
6
8
  gem.description = %q{MiniTest/RSpec/Cucumber formatter that gives each test file its own line of dots}
7
9
  gem.summary = %q{Why settle for a test output format when you could have a test output fivemat?}
8
10
  gem.homepage = "https://github.com/tpope/fivemat"
11
+ gem.license = "MIT"
9
12
 
10
13
  gem.files = `git ls-files`.split($\)
11
14
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
15
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
- gem.name = "fivemat"
14
16
  gem.require_paths = ["lib"]
15
- gem.version = '1.3.5'
17
+
18
+ gem.add_development_dependency('rake')
16
19
  end
@@ -7,15 +7,8 @@ module Fivemat
7
7
  autoload :RSpec3, 'fivemat/rspec3'
8
8
  autoload :Spec, 'fivemat/spec'
9
9
 
10
- def cucumber2?
11
- defined?(::Cucumber) && ::Cucumber::VERSION >= '2.0.0'
12
- end
13
- module_function :cucumber2?
14
-
15
- if cucumber2?
16
- # Cucumber 2 detects the formatter API based on initialize arity
17
- def initialize(runtime, path_or_io, options)
18
- end
10
+ # Cucumber 2 detects the formatter API based on initialize arity
11
+ def initialize(runtime, path_or_io, options)
19
12
  end
20
13
 
21
14
  def rspec3?
@@ -47,7 +40,11 @@ module Fivemat
47
40
  RSpec
48
41
  end
49
42
  when 2 then Spec
50
- when 3 then Cucumber
43
+ when 3
44
+ if ::Cucumber::VERSION >= '3'
45
+ abort "Fivemat does not yet support Cucumber 3"
46
+ end
47
+ Cucumber
51
48
  else
52
49
  raise ArgumentError
53
50
  end.new(*args)
@@ -4,13 +4,12 @@ module Fivemat
4
4
  class Cucumber < ::Cucumber::Formatter::Progress
5
5
  include ElapsedTime
6
6
 
7
- def label(feature)
8
- feature.short_name
7
+ def feature_name(keyword, name)
8
+ @io.print "#{name.sub(/^\s*/, '').split("\n").first} "
9
+ @io.flush
9
10
  end
10
11
 
11
12
  def before_feature(feature)
12
- @io.print "#{label(feature)} "
13
- @io.flush
14
13
  @exceptions = []
15
14
  @start_time = Time.now
16
15
  end
@@ -5,7 +5,7 @@ module Minitest
5
5
  include ElapsedTime
6
6
 
7
7
  def record(result)
8
- if @class != result.class
8
+ if defined?(@class) && @class != result.class
9
9
  if @class
10
10
  print_elapsed_time(io, @class_start_time)
11
11
  io.print "\n"
@@ -18,7 +18,7 @@ module Minitest
18
18
 
19
19
  def report
20
20
  super
21
- print_elapsed_time(io, @class_start_time) if @class_start_time
21
+ print_elapsed_time(io, @class_start_time) if defined? @class_start_time
22
22
  end
23
23
  end
24
24
 
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fivemat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pope
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2018-02-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: MiniTest/RSpec/Cucumber formatter that gives each test file its own line
14
28
  of dots
15
29
  email:
@@ -36,7 +50,8 @@ files:
36
50
  - lib/fivemat/spec.rb
37
51
  - lib/minitest/fivemat_plugin.rb
38
52
  homepage: https://github.com/tpope/fivemat
39
- licenses: []
53
+ licenses:
54
+ - MIT
40
55
  metadata: {}
41
56
  post_install_message:
42
57
  rdoc_options: []
@@ -54,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
69
  version: '0'
55
70
  requirements: []
56
71
  rubyforge_project:
57
- rubygems_version: 2.6.8
72
+ rubygems_version: 2.7.4
58
73
  signing_key:
59
74
  specification_version: 4
60
75
  summary: Why settle for a test output format when you could have a test output fivemat?