bundler 1.1.pre.3 → 1.1.pre.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- data/CHANGELOG.md +6 -0
- data/lib/bundler/source.rb +3 -3
- data/lib/bundler/version.rb +1 -1
- data/spec/bundler/source_spec.rb +25 -0
- metadata +6 -4
data/CHANGELOG.md
CHANGED
data/lib/bundler/source.rb
CHANGED
@@ -10,7 +10,7 @@ module Bundler
|
|
10
10
|
module Source
|
11
11
|
# TODO: Refactor this class
|
12
12
|
class Rubygems
|
13
|
-
attr_reader :remotes
|
13
|
+
attr_reader :remotes, :caches
|
14
14
|
|
15
15
|
def initialize(options = {})
|
16
16
|
@options = options
|
@@ -19,8 +19,8 @@ module Bundler
|
|
19
19
|
@allow_remote = false
|
20
20
|
@allow_cached = false
|
21
21
|
|
22
|
-
@caches = [ Bundler.app_cache ]
|
23
|
-
|
22
|
+
@caches = [ Bundler.app_cache ] +
|
23
|
+
Bundler.rubygems.gem_path.map{|p| File.expand_path("#{p}/cache") }
|
24
24
|
|
25
25
|
@spec_fetch_map = {}
|
26
26
|
end
|
data/lib/bundler/version.rb
CHANGED
@@ -2,5 +2,5 @@ module Bundler
|
|
2
2
|
# We're doing this because we might write tests that deal
|
3
3
|
# with other versions of bundler and we are unsure how to
|
4
4
|
# handle this better.
|
5
|
-
VERSION = "1.1.pre.
|
5
|
+
VERSION = "1.1.pre.4" unless defined?(::Bundler::VERSION)
|
6
6
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Bundler::Source::Rubygems do
|
4
|
+
before do
|
5
|
+
Bundler.stub(:root){ Pathname.new("root") }
|
6
|
+
end
|
7
|
+
|
8
|
+
describe "caches" do
|
9
|
+
it "should include Bundler.app_cache" do
|
10
|
+
subject.caches.should include(Bundler.app_cache)
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should include GEM_PATH entries" do
|
14
|
+
Gem.path.each do |path|
|
15
|
+
subject.caches.should include(File.expand_path("#{path}/cache"))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should be an array of strings or pathnames" do
|
20
|
+
subject.caches.each do |cache|
|
21
|
+
[String, Pathname].should include(cache.class)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1923831881
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- pre
|
10
|
-
-
|
11
|
-
version: 1.1.pre.
|
10
|
+
- 4
|
11
|
+
version: 1.1.pre.4
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- "Andr\xC3\xA9 Arko"
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-05-
|
22
|
+
date: 2011-05-05 00:00:00 -07:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- man/bundle.ronn
|
144
144
|
- man/gemfile.5.ronn
|
145
145
|
- man/index.txt
|
146
|
+
- spec/bundler/source_spec.rb
|
146
147
|
- spec/cache/gems_spec.rb
|
147
148
|
- spec/cache/git_spec.rb
|
148
149
|
- spec/cache/path_spec.rb
|
@@ -262,6 +263,7 @@ signing_key:
|
|
262
263
|
specification_version: 3
|
263
264
|
summary: The best way to manage your application's dependencies
|
264
265
|
test_files:
|
266
|
+
- spec/bundler/source_spec.rb
|
265
267
|
- spec/cache/gems_spec.rb
|
266
268
|
- spec/cache/git_spec.rb
|
267
269
|
- spec/cache/path_spec.rb
|