isolate 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 2.1.0 / 2010-07-01
2
+
3
+ * Pass self to event hooks. Speculative coding FTL.
4
+ * Load ~/.isolate/user.rb if it exists.
5
+
1
6
  === 2.0.2 / 2010-05-25
2
7
 
3
8
  * Provide reasonable stale output for missing deps.
data/lib/isolate.rb CHANGED
@@ -8,7 +8,7 @@ module Isolate
8
8
 
9
9
  # Duh.
10
10
 
11
- VERSION = "2.0.2"
11
+ VERSION = "2.1.0"
12
12
 
13
13
  # Disable Isolate. If a block is provided, isolation will be
14
14
  # disabled for the scope of the block.
@@ -31,7 +31,7 @@ module Isolate
31
31
  end
32
32
 
33
33
  def fire name, after = nil, *args, &block #:nodoc:
34
- Isolate::Events.fire self.class, name, *args
34
+ Isolate::Events.fire self.class, name, self, *args
35
35
 
36
36
  if after && block_given?
37
37
  yield self
@@ -29,10 +29,13 @@ module Isolate
29
29
  @files = []
30
30
  @options = options
31
31
 
32
- file, local = nil
33
-
34
32
  fire :initializing
35
33
 
34
+ user = File.expand_path "~/.isolate/user.rb"
35
+ load user if File.exist? user
36
+
37
+ file, local = nil
38
+
36
39
  unless FalseClass === options[:file]
37
40
  file = options[:file] || Dir["{Isolate,config/isolate.rb}"].first
38
41
  local = "#{file}.local" if file
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 2.0.2
10
+ version: 2.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Barnette
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-05-25 00:00:00 -07:00
19
+ date: 2010-07-01 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -58,12 +58,12 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- hash: 23
61
+ hash: 21
62
62
  segments:
63
63
  - 2
64
64
  - 6
65
- - 0
66
- version: 2.6.0
65
+ - 1
66
+ version: 2.6.1
67
67
  type: :development
68
68
  version_requirements: *id003
69
69
  description: |-