isolate 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 2.0.2 / 2010-05-25
2
+
3
+ * Provide reasonable stale output for missing deps.
4
+
1
5
  === 2.0.1 / 2010-05-24
2
6
 
3
7
  * Fine, fine. Re-enables support for Ruby 1.8.6.
@@ -8,7 +8,7 @@ module Isolate
8
8
 
9
9
  # Duh.
10
10
 
11
- VERSION = "2.0.1"
11
+ VERSION = "2.0.2"
12
12
 
13
13
  # Disable Isolate. If a block is provided, isolation will be
14
14
  # disabled for the scope of the block.
@@ -51,15 +51,23 @@ namespace :isolate do
51
51
  require "rubygems/source_index"
52
52
  require "rubygems/spec_fetcher"
53
53
 
54
- index = Gem::SourceIndex.new
55
- index.add_specs *Isolate.sandbox.entries.map { |e| e.specification }
54
+ index = Gem::SourceIndex.new
55
+ outdated = []
56
+
57
+ Isolate.sandbox.entries.each do |entry|
58
+ if entry.specification
59
+ index.add_spec entry.specification
60
+ else
61
+ outdated << entry
62
+ end
63
+ end
56
64
 
57
- outdated = index.outdated.map do |n|
58
- Isolate.sandbox.entries.find { |e| e.name == n }
65
+ index.outdated.each do |name|
66
+ outdated << Isolate.sandbox.entries.find { |e| e.name == name }
59
67
  end
60
68
 
61
69
  outdated.sort_by { |e| e.name }.each do |entry|
62
- local = entry.specification.version
70
+ local = entry.specification ? entry.specification.version : "0"
63
71
  dep = Gem::Dependency.new entry.name, ">= #{local}"
64
72
  remotes = Gem::SpecFetcher.fetcher.fetch dep
65
73
  remote = remotes.last.first.version
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isolate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
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-24 00:00:00 -07:00
19
+ date: 2010-05-25 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency