minitest-metadata 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7764efa24108b81da50e0084a4421f64035b72f6
4
+ data.tar.gz: 160d65c9374d032cc5720c7363f3ca0279081745
5
+ SHA512:
6
+ metadata.gz: ed1ed748034eccdb80cc0f404992428b63315395d755e80b4f16749099e235c913f08626b2adddfde3fcb05c11d783f4e56dac62c3b06cda46954e24b472dfcc
7
+ data.tar.gz: 55393cfbc7e1afc2c7d29210763c47653716f17b5a6bb156cba4e07639c67b98a5711e082042d857faa47e5427a8d88223936e9f07059194b8e97e6fa1552328
data/.gitignore CHANGED
@@ -2,3 +2,5 @@ pkg
2
2
  .*.sw*
3
3
  .yardoc
4
4
  doc
5
+ /vendor
6
+ /.bundle
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  rvm:
2
- - 1.9.2
3
2
  - 1.9.3
4
3
  - 2.0.0
4
+ - 2.1.1
5
5
  - jruby
6
- - rbx
6
+ - rbx-2
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
data/Gemfile.lock CHANGED
@@ -2,12 +2,12 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  minitest-metadata (0.4.0)
5
- minitest (~> 4.7)
5
+ minitest (>= 4.7, < 6.0)
6
6
 
7
7
  GEM
8
- remote: http://rubygems.org/
8
+ remote: https://rubygems.org/
9
9
  specs:
10
- minitest (4.7.1)
10
+ minitest (5.3.1)
11
11
  rake (0.9.2.2)
12
12
 
13
13
  PLATFORMS
data/HISTORY.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # HEAD
2
2
 
3
+ # 0.5.0
4
+
5
+ * Fix minitest 5 compatibilty - @bbozo
6
+ * Depend on minitest >= 4.7, < 6.0
7
+
3
8
  # 0.4.0
4
9
 
5
10
  * Add more compact syntax
data/README.md CHANGED
@@ -77,6 +77,7 @@ group :test do
77
77
  end
78
78
 
79
79
  # test/acceptance_test_helper.rb
80
+ require 'minitest/metadata'
80
81
 
81
82
  class AcceptanceTest < MiniTest::Spec
82
83
  include MiniTest::Metadata
@@ -21,15 +21,19 @@ module MiniTest::Metadata
21
21
  end
22
22
 
23
23
  def _compute_metadata(metadata)
24
- metadata.each_with_object({}) { |key, hash|
24
+ metadata.inject({}) { |hash, key|
25
25
  if key.is_a?(Hash)
26
26
  hash.merge!(key)
27
27
  else
28
28
  hash[key] = true
29
29
  end
30
+ hash
30
31
  }
31
32
  end
32
33
  end
34
+
35
+ # MiniTest 5 compatibility, https://github.com/wojtekmach/minitest-metadata/issues/7
36
+ alias_method :__name__, :name unless method_defined? :__name__
33
37
  end
34
38
  super
35
39
  end
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Metadata
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency "minitest", "~> 4.7"
21
+ s.add_dependency "minitest", ">= 4.7", "< 6.0"
22
22
 
23
23
  s.add_development_dependency "rake"
24
24
  end
@@ -1,7 +1,7 @@
1
1
  require "minitest/autorun"
2
2
  require "minitest/metadata"
3
3
 
4
- describe MiniTest::Spec do
4
+ describe 'MiniTest::Spec' do
5
5
  include MiniTest::Metadata
6
6
 
7
7
  it "::metadata returns metadata hash for each test method" do
metadata CHANGED
@@ -1,46 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 0.5.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Wojciech Mach
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: minitest
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '4.7'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6.0'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '4.7'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6.0'
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: rake
32
35
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
36
  requirements:
35
- - - '>='
37
+ - - ">="
36
38
  - !ruby/object:Gem::Version
37
39
  version: '0'
38
40
  type: :development
39
41
  prerelease: false
40
42
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
43
  requirements:
43
- - - '>='
44
+ - - ">="
44
45
  - !ruby/object:Gem::Version
45
46
  version: '0'
46
47
  description: Metadata (key-value) support for minitest/spec
@@ -50,9 +51,9 @@ executables: []
50
51
  extensions: []
51
52
  extra_rdoc_files: []
52
53
  files:
53
- - .gitignore
54
- - .travis.yml
55
- - .yardopts
54
+ - ".gitignore"
55
+ - ".travis.yml"
56
+ - ".yardopts"
56
57
  - Gemfile
57
58
  - Gemfile.lock
58
59
  - HISTORY.md
@@ -62,36 +63,29 @@ files:
62
63
  - lib/minitest/metadata.rb
63
64
  - lib/minitest/metadata/version.rb
64
65
  - minitest-metadata.gemspec
65
- - test/minitest-metadata_test.rb
66
+ - test/minitest/metadata_test.rb
66
67
  homepage: ''
67
68
  licenses: []
69
+ metadata: {}
68
70
  post_install_message:
69
71
  rdoc_options: []
70
72
  require_paths:
71
73
  - lib
72
74
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
75
  requirements:
75
- - - '>='
76
+ - - ">="
76
77
  - !ruby/object:Gem::Version
77
78
  version: '0'
78
- segments:
79
- - 0
80
- hash: 2550979206973276031
81
79
  required_rubygems_version: !ruby/object:Gem::Requirement
82
- none: false
83
80
  requirements:
84
- - - '>='
81
+ - - ">="
85
82
  - !ruby/object:Gem::Version
86
83
  version: '0'
87
- segments:
88
- - 0
89
- hash: 2550979206973276031
90
84
  requirements: []
91
85
  rubyforge_project: minitest-metadata
92
- rubygems_version: 1.8.25
86
+ rubygems_version: 2.2.2
93
87
  signing_key:
94
- specification_version: 3
88
+ specification_version: 4
95
89
  summary: Metadata (key-value) support for minitest/spec
96
90
  test_files:
97
- - test/minitest-metadata_test.rb
91
+ - test/minitest/metadata_test.rb