autobuild 1.7.11 → 1.7.12.b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autobuild/import/git.rb +15 -3
- data/lib/autobuild/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b751fdd16c5fd714935d5c171f4d9e409205d81
|
4
|
+
data.tar.gz: 7a1e3aed96af604c30b08fb5072221d0da304251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4d025a0012ab19085301c0fe8796ded4b68e05b49a2f0a25c9bedc4a177f954af446a5ae17afc1c3699ef894dd11b5d426b7dbf8a976c7fddbf5610cac97b24
|
7
|
+
data.tar.gz: dc15319a8e9348b41a70f771567f0cca92f3553cda9d2d099f54bf8f8ebe49eeed3733b98ca1200cc93c18ba9266d9dbe16add9f463a7ec598f526a8e4371e16
|
data/lib/autobuild/import/git.rb
CHANGED
@@ -29,7 +29,7 @@ module Autobuild
|
|
29
29
|
elsif cache_dir = ENV['AUTOBUILD_GIT_CACHE_DIR']
|
30
30
|
@default_alternates = cache_dir.split(':').map { |path| File.expand_path(path) }
|
31
31
|
elsif cache_dir = ENV['AUTOBUILD_CACHE_DIR']
|
32
|
-
@default_alternates = cache_dir.split(':').map { |path| File.join(File.expand_path(path), 'git') }
|
32
|
+
@default_alternates = cache_dir.split(':').map { |path| File.join(File.expand_path(path), 'git', '%s') }
|
33
33
|
else Array.new
|
34
34
|
end
|
35
35
|
end
|
@@ -474,7 +474,7 @@ module Autobuild
|
|
474
474
|
else Array.new
|
475
475
|
end
|
476
476
|
|
477
|
-
alternates =
|
477
|
+
alternates = each_alternate_path(package).map do |path|
|
478
478
|
File.join(path, 'objects')
|
479
479
|
end
|
480
480
|
|
@@ -567,6 +567,18 @@ module Autobuild
|
|
567
567
|
end
|
568
568
|
end
|
569
569
|
|
570
|
+
def each_alternate_path(package)
|
571
|
+
return enum_for(__method__, package) if !block_given?
|
572
|
+
|
573
|
+
alternates.each do |path|
|
574
|
+
path = path % [package.name]
|
575
|
+
if File.directory?(path)
|
576
|
+
yield(path)
|
577
|
+
end
|
578
|
+
end
|
579
|
+
nil
|
580
|
+
end
|
581
|
+
|
570
582
|
def checkout(package)
|
571
583
|
base_dir = File.expand_path('..', package.importdir)
|
572
584
|
if !File.directory?(base_dir)
|
@@ -578,7 +590,7 @@ module Autobuild
|
|
578
590
|
if with_submodules?
|
579
591
|
clone_options << '--recurse-submodules'
|
580
592
|
end
|
581
|
-
|
593
|
+
each_alternate_path(package) do |path|
|
582
594
|
clone_options << '--reference' << path
|
583
595
|
end
|
584
596
|
Subprocess.run(package, :import,
|
data/lib/autobuild/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autobuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.12.b1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -161,9 +161,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: 1.9.2
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - ">"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 1.3.1
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
169
|
rubygems_version: 2.2.2
|
@@ -171,9 +171,9 @@ signing_key:
|
|
171
171
|
specification_version: 4
|
172
172
|
summary: Library to handle build systems and import mechanisms
|
173
173
|
test_files:
|
174
|
-
- test/
|
175
|
-
- test/test_subcommand.rb
|
174
|
+
- test/test_import_tar.rb
|
176
175
|
- test/test_config.rb
|
177
|
-
- test/
|
176
|
+
- test/test_subcommand.rb
|
178
177
|
- test/test_reporting.rb
|
179
|
-
- test/
|
178
|
+
- test/test_import_svn.rb
|
179
|
+
- test/test_import_cvs.rb
|