isolate 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +4 -0
- data/lib/isolate.rb +1 -1
- data/lib/isolate/rake.rb +13 -5
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
data/lib/isolate.rb
CHANGED
data/lib/isolate/rake.rb
CHANGED
@@ -51,15 +51,23 @@ namespace :isolate do
|
|
51
51
|
require "rubygems/source_index"
|
52
52
|
require "rubygems/spec_fetcher"
|
53
53
|
|
54
|
-
index
|
55
|
-
|
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
|
-
|
58
|
-
Isolate.sandbox.entries.find { |e| e.name ==
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
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-
|
19
|
+
date: 2010-05-25 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|