refuse 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,10 @@ export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
18
18
  export RUBY_GC_MALLOC_LIMIT=1000000000
19
19
  export RUBY_HEAP_FREE_MIN=500000</pre>
20
20
 
21
+ h2. Install
22
+
23
+ Add @gem 'refuse'@ to your @Gemfile@
24
+
21
25
  h2. Usage
22
26
 
23
27
  h3. Rspec
@@ -48,6 +52,8 @@ After do
48
52
  Refuse.collect
49
53
  end</pre>
50
54
 
55
+ You can use the @@automatic-garbage-collect@ tag to skip the deferred GC.
56
+
51
57
  h3. Test::Unit
52
58
 
53
59
  Fork this and send me a pull request please.
@@ -1,7 +1,7 @@
1
- Before do
1
+ Before('~@automatic-garbage-collect') do
2
2
  Refuse.disable
3
3
  end
4
4
 
5
- After do
5
+ After('~@automatic-garbage-collect') do
6
6
  Refuse.collect
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Refuse
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Brian Ryckbost"]
10
10
  s.email = ["brian@collectiveidea.com"]
11
- s.homepage = "http://github.com/collectiveidea/refuse.git"
11
+ s.homepage = "http://github.com/collectiveidea/refuse"
12
12
  s.summary = %q{Defer garbage collection}
13
13
  s.description = %q{Wrap up some common functionality of deferring garbage collection. Often used to speed up test suites by 40%-60%.}
14
14
 
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refuse
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease:
5
- version: 0.0.2
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
6
11
  platform: ruby
7
12
  authors:
8
13
  - Brian Ryckbost
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-01 00:00:00 Z
18
+ date: 2011-06-07 00:00:00 Z
14
19
  dependencies: []
15
20
 
16
21
  description: Wrap up some common functionality of deferring garbage collection. Often used to speed up test suites by 40%-60%.
@@ -31,7 +36,7 @@ files:
31
36
  - lib/refuse/cucumber.rb
32
37
  - lib/refuse/version.rb
33
38
  - refuse.gemspec
34
- homepage: http://github.com/collectiveidea/refuse.git
39
+ homepage: http://github.com/collectiveidea/refuse
35
40
  licenses: []
36
41
 
37
42
  post_install_message:
@@ -44,12 +49,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
49
  requirements:
45
50
  - - ">="
46
51
  - !ruby/object:Gem::Version
52
+ hash: 3
53
+ segments:
54
+ - 0
47
55
  version: "0"
48
56
  required_rubygems_version: !ruby/object:Gem::Requirement
49
57
  none: false
50
58
  requirements:
51
59
  - - ">="
52
60
  - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
53
64
  version: "0"
54
65
  requirements: []
55
66
 
@@ -60,3 +71,4 @@ specification_version: 3
60
71
  summary: Defer garbage collection
61
72
  test_files: []
62
73
 
74
+ has_rdoc: