autobuild 1.7.11 → 1.7.12.b1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e7f1a52a67ee2553cf29bac1291e1584eff58ac
4
- data.tar.gz: f86cb0d5abd152e4cb1dbb58ba03b4d548fc35ce
3
+ metadata.gz: 3b751fdd16c5fd714935d5c171f4d9e409205d81
4
+ data.tar.gz: 7a1e3aed96af604c30b08fb5072221d0da304251
5
5
  SHA512:
6
- metadata.gz: d1edbe06538c2e3ee89c5479f23e2d637a895c8dfeccf20848c22d3340a98126d0de72e1b06d818033bdf38a5197d7a38996404df50e37a0311c9513f16f7fb8
7
- data.tar.gz: 006ffa82653a9a49257d37c649411e7af8cffd14ee15684e388e8f1c188fe2320a6a58a414a26596f79ab72e504e9df193c0b835a991c77f3f0025dbd8b328f9
6
+ metadata.gz: e4d025a0012ab19085301c0fe8796ded4b68e05b49a2f0a25c9bedc4a177f954af446a5ae17afc1c3699ef894dd11b5d426b7dbf8a976c7fddbf5610cac97b24
7
+ data.tar.gz: dc15319a8e9348b41a70f771567f0cca92f3553cda9d2d099f54bf8f8ebe49eeed3733b98ca1200cc93c18ba9266d9dbe16add9f463a7ec598f526a8e4371e16
@@ -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 = self.alternates.map do |path|
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
- alternates.each do |path|
593
+ each_alternate_path(package) do |path|
582
594
  clone_options << '--reference' << path
583
595
  end
584
596
  Subprocess.run(package, :import,
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.7.11" unless defined? Autobuild::VERSION
2
+ VERSION = "1.7.12.b1" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
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.11
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-06-24 00:00:00.000000000 Z
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: '0'
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/test_import_svn.rb
175
- - test/test_subcommand.rb
174
+ - test/test_import_tar.rb
176
175
  - test/test_config.rb
177
- - test/test_import_cvs.rb
176
+ - test/test_subcommand.rb
178
177
  - test/test_reporting.rb
179
- - test/test_import_tar.rb
178
+ - test/test_import_svn.rb
179
+ - test/test_import_cvs.rb