autoproj 1.7.12 → 1.7.13

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ = Version 1.7.13
2
+ * bugfix release: fix HTTP fallback mechanism for gitorious servers
3
+
1
4
  = Version 1.7.12
2
5
  * improved some error messages
3
6
  * fixed error if config.yml is empty
@@ -255,7 +255,15 @@ module Autoproj
255
255
  #
256
256
  # Examples: ['debian', ['sid', 'unstable']] or ['ubuntu', ['lucid lynx', '10.04']]
257
257
  def self.operating_system(options = Hash.new)
258
- options = Kernel.validate_options options, :force => false
258
+ # Validate the options. We check on the availability of
259
+ # validate_options as to not break autoproj_bootstrap (in which
260
+ # validate_options is not available)
261
+ options =
262
+ if Kernel.respond_to?(:validate_options)
263
+ Kernel.validate_options options, :force => false
264
+ else
265
+ options.dup
266
+ end
259
267
 
260
268
  if !options[:force]
261
269
  if !@operating_system.nil?
@@ -300,7 +300,7 @@ module Autoproj
300
300
  elsif File.file?(File.join(full_path, "CMakeLists.txt"))
301
301
  "cmake_package"
302
302
  elsif File.directory?(File.join(full_path, "lib")) &&
303
- !Dir.enum_for(:glob, File.join(full_path, "*.rb")).to_a.empty?
303
+ Find.enum_for(:find, File.join(full_path, "lib")).any? { |path| path =~ /\.rb$/ }
304
304
  "ruby_package"
305
305
  end
306
306
  end
@@ -53,6 +53,7 @@ module Autoproj
53
53
  if Autobuild::Importer.respond_to?(:fallback) && options[:fallback_to_http]
54
54
  Autobuild::Importer.fallback do |package, importer|
55
55
  root_rx = /^(?:http:\/\/git\.|git:\/\/|git@)#{Regexp.quote(base_url)}:?/
56
+
56
57
  if importer.kind_of?(Autobuild::Git) && importer.repository =~ root_rx && importer.repository !~ /^http/
57
58
  Autoproj.warn "import from #{importer.repository} failed, falling back to using http for all packages on #{base_url}"
58
59
 
@@ -87,9 +88,9 @@ module Autoproj
87
88
  if url !~ /^\//
88
89
  url = "/#{url}"
89
90
  end
90
- base_url = Autoproj.user_config("#{name}_ROOT")
91
- base_push_url = Autoproj.user_config("#{name}_PUSH_ROOT")
92
- return Hash[:type => 'git', :url => "#{base_url}#{url}", :push_to => "#{base_push_url}#{url}"].merge(options)
91
+ pull_base_url = Autoproj.user_config("#{name}_ROOT")
92
+ push_base_url = Autoproj.user_config("#{name}_PUSH_ROOT")
93
+ Hash[:type => 'git', :url => "#{pull_base_url}#{url}", :push_to => "#{push_base_url}#{url}"].merge(options)
93
94
  end
94
95
  end
95
96
  end
@@ -156,7 +156,15 @@ module Autoproj
156
156
  #
157
157
  # Examples: ['debian', ['sid', 'unstable']] or ['ubuntu', ['lucid lynx', '10.04']]
158
158
  def self.operating_system(options = Hash.new)
159
- options = Kernel.validate_options options, :force => false
159
+ # Validate the options. We check on the availability of
160
+ # validate_options as to not break autoproj_bootstrap (in which
161
+ # validate_options is not available)
162
+ options =
163
+ if Kernel.respond_to?(:validate_options)
164
+ Kernel.validate_options options, :force => false
165
+ else
166
+ options.dup
167
+ end
160
168
 
161
169
  if !options[:force]
162
170
  if !@operating_system.nil?
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.7.12"
2
+ VERSION = "1.7.13"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 12
10
- version: 1.7.12
9
+ - 13
10
+ version: 1.7.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Joyeux
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-08 00:00:00 Z
18
+ date: 2011-08-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: autobuild