minitest-metadata 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -2,15 +2,17 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  minitest-metadata (0.1.0)
5
+ minitest (>= 2.12)
5
6
 
6
7
  GEM
7
8
  remote: http://rubygems.org/
8
9
  specs:
9
- minitest (2.10.1)
10
+ minitest (2.12.0)
11
+ rake (0.9.2.2)
10
12
 
11
13
  PLATFORMS
12
14
  ruby
13
15
 
14
16
  DEPENDENCIES
15
- minitest (>= 2.5)
16
17
  minitest-metadata!
18
+ rake
data/HISTORY.md ADDED
@@ -0,0 +1,8 @@
1
+ # 0.2.0
2
+
3
+ * No need for calculation of test method name - @splattael
4
+ * minitest/spec is already loaded by minitest/autorun - @simi
5
+
6
+ # 0.1.0
7
+
8
+ * Initial release
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Metadata
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -19,11 +19,9 @@ class MiniTest::Spec
19
19
 
20
20
  # @private
21
21
  def it(description = "", metadata = {}, &block)
22
- methods = test_methods
23
- ret = old_it description, &block
24
- name = (test_methods - methods).first
25
- self.metadata[name] = metadata
26
- ret
22
+ old_it(description, &block).tap do |name|
23
+ self.metadata[name] = metadata
24
+ end
27
25
  end
28
26
  end
29
27
  end
@@ -18,6 +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", ">= 2.12"
22
+
21
23
  s.add_development_dependency "rake"
22
- s.add_development_dependency "minitest", ">= 2.5"
23
24
  end
@@ -1,4 +1,3 @@
1
- require "minitest/spec"
2
1
  require "minitest/autorun"
3
2
  require "minitest-metadata"
4
3
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-18 00:00:00.000000000 Z
12
+ date: 2012-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: &70096496164140 !ruby/object:Gem::Requirement
15
+ name: minitest
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
21
+ version: '2.12'
22
+ type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70096496164140
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '2.12'
25
30
  - !ruby/object:Gem::Dependency
26
- name: minitest
27
- requirement: &70096496161300 !ruby/object:Gem::Requirement
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
31
36
  - !ruby/object:Gem::Version
32
- version: '2.5'
37
+ version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70096496161300
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: Metadata (key-value) support for minitest/spec
37
47
  email:
38
48
  - wojtek@wojtekmach.pl
@@ -45,6 +55,7 @@ files:
45
55
  - .yardopts
46
56
  - Gemfile
47
57
  - Gemfile.lock
58
+ - HISTORY.md
48
59
  - README.md
49
60
  - Rakefile
50
61
  - lib/minitest-metadata.rb
@@ -71,10 +82,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
82
  version: '0'
72
83
  requirements: []
73
84
  rubyforge_project: minitest-metadata
74
- rubygems_version: 1.8.11
85
+ rubygems_version: 1.8.21
75
86
  signing_key:
76
87
  specification_version: 3
77
88
  summary: Metadata (key-value) support for minitest/spec
78
89
  test_files:
79
90
  - test/minitest-metadata_test.rb
80
- has_rdoc: