temporaries 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1510db1cdec75e59ecf5870111c6e2166d92584c
4
+ data.tar.gz: b043c5b82e8225cbf661cff092317a68c170343d
5
+ SHA512:
6
+ metadata.gz: f23f8efc11b7b58eff815ce37786d22c25360164ad26c4ddbd2c97d8c701324c75c712a81b36fd240e2f014b5097d11b606cd731a24ff11bf50a26f1b728bf10
7
+ data.tar.gz: 81361f8b8efea3faff958264956078c01ba58c4406ecac207558af2f395e129d16481ede287a11a4027bd4e245e433298d48edca29a1ccf083ef75720061f1ec
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.4.0 2014-02-13
2
+
3
+ * Fix multiple use_* calls in MiniTest >= 3.3.
4
+ * Fix support for MiniTest >= 4.6.0.
5
+
1
6
  == 0.3.0 2012-06-26
2
7
 
3
8
  * Fix support for gem distributions of MiniTest.
@@ -1,4 +1,4 @@
1
- # Temporaries
1
+ # Temporaries [![Build Status](https://travis-ci.org/oggy/temporaries.png)](https://travis-ci.org/oggy/temporaries)
2
2
 
3
3
  Set things temporarily and declaratively. Best way to test.
4
4
 
@@ -9,12 +9,22 @@ module Temporaries
9
9
  end
10
10
  end
11
11
 
12
- def before(&block)
13
- context.add_setup_hook {|tc| tc.instance_eval(&block) }
12
+ def before(&hook)
13
+ context.__send__ :include, Module.new {
14
+ define_method(:setup) do |*args, &block|
15
+ super(*args, &block)
16
+ instance_eval(&hook)
17
+ end
18
+ }
14
19
  end
15
20
 
16
- def after(&block)
17
- context.add_teardown_hook {|tc| tc.instance_eval(&block) }
21
+ def after(&hook)
22
+ context.__send__ :include, Module.new {
23
+ define_method(:teardown) do |*args, &block|
24
+ instance_eval(&hook)
25
+ super(*args, &block)
26
+ end
27
+ }
18
28
  end
19
29
 
20
30
  module Extension
@@ -1,5 +1,5 @@
1
1
  module Temporaries
2
- VERSION = [0, 3, 0]
2
+ VERSION = [0, 4, 0]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
metadata CHANGED
@@ -1,129 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: temporaries
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - George Ogata
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: ritual
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - '='
20
- - !ruby/object:Gem::Version
21
- version: 0.4.1
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - '='
28
- - !ruby/object:Gem::Version
29
- version: 0.4.1
30
- - !ruby/object:Gem::Dependency
31
- name: rspec
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - '='
36
- - !ruby/object:Gem::Version
37
- version: 2.10.0
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - '='
44
- - !ruby/object:Gem::Version
45
- version: 2.10.0
46
- - !ruby/object:Gem::Dependency
47
- name: cucumber
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - '='
52
- - !ruby/object:Gem::Version
53
- version: 1.2.0
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 1.2.0
11
+
12
+ date: 2014-02-13 00:00:00 Z
13
+ dependencies: []
14
+
62
15
  description:
63
- email:
16
+ email:
64
17
  - george.ogata@gmail.com
65
18
  executables: []
19
+
66
20
  extensions: []
67
- extra_rdoc_files:
21
+
22
+ extra_rdoc_files:
68
23
  - CHANGELOG
69
24
  - LICENSE
70
25
  - README.markdown
71
- files:
26
+ files:
27
+ - CHANGELOG
28
+ - LICENSE
29
+ - README.markdown
30
+ - Rakefile
31
+ - features/mini_test_integration.feature
32
+ - features/rspec_integration.feature
33
+ - features/step_definitions/command_steps.rb
34
+ - features/support/env.rb
35
+ - features/test_unit_integration.feature
36
+ - lib/temporaries.rb
37
+ - lib/temporaries/adapters.rb
72
38
  - lib/temporaries/adapters/base.rb
73
39
  - lib/temporaries/adapters/mini_test.rb
74
40
  - lib/temporaries/adapters/rspec.rb
75
41
  - lib/temporaries/adapters/test_unit.rb
76
- - lib/temporaries/adapters.rb
77
42
  - lib/temporaries/core.rb
78
43
  - lib/temporaries/directory.rb
79
44
  - lib/temporaries/values.rb
80
45
  - lib/temporaries/version.rb
81
- - lib/temporaries.rb
82
- - CHANGELOG
83
- - LICENSE
84
- - Rakefile
85
- - README.markdown
86
46
  - spec/spec_helper.rb
87
47
  - spec/support/test_context.rb
88
48
  - spec/unit/temporaries/directory_spec.rb
89
49
  - spec/unit/temporaries/values_spec.rb
90
- - features/mini_test_integration.feature
91
- - features/rspec_integration.feature
92
- - features/test_unit_integration.feature
93
- - features/step_definitions/command_steps.rb
94
- - features/support/env.rb
95
50
  homepage: http://github.com/oggy/temporaries
96
- licenses:
51
+ licenses:
97
52
  - MIT
53
+ metadata: {}
54
+
98
55
  post_install_message:
99
56
  rdoc_options: []
100
- require_paths:
57
+
58
+ require_paths:
101
59
  - lib
102
- required_ruby_version: !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ! '>='
106
- - !ruby/object:Gem::Version
107
- version: '0'
108
- segments:
109
- - 0
110
- hash: -1732108296292991121
111
- required_rubygems_version: !ruby/object:Gem::Requirement
112
- none: false
113
- requirements:
114
- - - ! '>='
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
- segments:
118
- - 0
119
- hash: -1732108296292991121
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - &id001
63
+ - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - *id001
120
69
  requirements: []
70
+
121
71
  rubyforge_project:
122
- rubygems_version: 1.8.24
72
+ rubygems_version: 2.2.2
123
73
  signing_key:
124
74
  specification_version: 3
125
75
  summary: Set temporary values declaratively.
126
- test_files:
76
+ test_files:
127
77
  - spec/spec_helper.rb
128
78
  - spec/support/test_context.rb
129
79
  - spec/unit/temporaries/directory_spec.rb