autoproj 2.17.0 → 2.18.0

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
  SHA256:
3
- metadata.gz: 99a2de5ee91090c29e14337e48e9adbf9673a719e79e2d6610bb037ea4bb0d02
4
- data.tar.gz: fb693ef03ade583a5bf4d1e0d8c3cb24a0b909e66a640d471d2b2ec14c414ebb
3
+ metadata.gz: e19c3ca78afb4d42f58b65effbed3ff1aed2fe83210e6fa2ee0d46ed12793430
4
+ data.tar.gz: 2b1a0802811156df47ac64a869f9ccf1de2ba5734d6d0316d2f857a5b18fa638
5
5
  SHA512:
6
- metadata.gz: 35e62e7f4719c7ee187b492b1042e520595167ca2f7183380f505460e40ea878dcb1549b36d85fef60a319789f267dc090e88eb12bd32a06023d60644ab61a72
7
- data.tar.gz: 3e8c66e8e46236041fd11a808f2249357c88f65d98daf863b4edf92a718d3e949d89dc3372e0149182c045683dc6f5f0432c25efa47c6d2b801768fc05a67d45
6
+ metadata.gz: b46ab523d1b83ef75128c8707d65899b8eb770706b391252bb1826578acc6505ad67169964ef9e9c1c7653962d8ed50ff5e20a6b48d765a2298afbcdf5c973c1
7
+ data.tar.gz: 21cc35037beb50b30ee0879c680b9c68ef401c07c394270b8d1e81ae678f8e9c931b53b35bc205b877224b440e745674cd48e49cf566aef575332324a309516c
@@ -264,14 +264,22 @@ module Autoproj
264
264
  # @param [String] autoproj_version a constraint on the autoproj version
265
265
  # that should be used
266
266
  # @return [String]
267
- def default_gemfile_contents(autoproj_version = ">= 2.16.0")
267
+ def default_gemfile_contents(autoproj_version = ">= 2.17.0")
268
268
  ["source \"#{gem_source}\"",
269
269
  "ruby \"#{RUBY_VERSION}\" if respond_to?(:ruby)",
270
270
  "gem \"autoproj\", \"#{autoproj_version}\""].join("\n")
271
271
  end
272
272
 
273
+ def load_yaml(contents)
274
+ if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("3.1.0")
275
+ YAML.safe_load(contents, permitted_classes: [Symbol])
276
+ else
277
+ YAML.safe_load(contents, [Symbol])
278
+ end
279
+ end
280
+
273
281
  def add_seed_config(path)
274
- @config.merge!(YAML.safe_load(File.read(path), [Symbol]))
282
+ @config.merge!(load_yaml(File.read(path)))
275
283
  end
276
284
 
277
285
  # Parse the provided command line options and returns the non-options
data/bin/autoproj_install CHANGED
@@ -264,14 +264,22 @@ module Autoproj
264
264
  # @param [String] autoproj_version a constraint on the autoproj version
265
265
  # that should be used
266
266
  # @return [String]
267
- def default_gemfile_contents(autoproj_version = ">= 2.16.0")
267
+ def default_gemfile_contents(autoproj_version = ">= 2.17.0")
268
268
  ["source \"#{gem_source}\"",
269
269
  "ruby \"#{RUBY_VERSION}\" if respond_to?(:ruby)",
270
270
  "gem \"autoproj\", \"#{autoproj_version}\""].join("\n")
271
271
  end
272
272
 
273
+ def load_yaml(contents)
274
+ if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("3.1.0")
275
+ YAML.safe_load(contents, permitted_classes: [Symbol])
276
+ else
277
+ YAML.safe_load(contents, [Symbol])
278
+ end
279
+ end
280
+
273
281
  def add_seed_config(path)
274
- @config.merge!(YAML.safe_load(File.read(path), [Symbol]))
282
+ @config.merge!(load_yaml(File.read(path)))
275
283
  end
276
284
 
277
285
  # Parse the provided command line options and returns the non-options
@@ -101,6 +101,10 @@ ruby27:
101
101
  ruby30:
102
102
  default: ignore # we assume that if the user has a ruby 3.0 runtime, it is usable
103
103
 
104
+ ruby32:
105
+ default: ignore # we assume that if the user has a ruby 3.0 runtime, it is usable
106
+
107
+
104
108
  build-essential:
105
109
  debian,ubuntu: build-essential
106
110
  gentoo: ignore
@@ -73,7 +73,8 @@ module Autoproj
73
73
  disabled_methods: [],
74
74
  config: Autoproj.config,
75
75
  fallback_to_http: nil,
76
- lazy: false)
76
+ lazy: false,
77
+ add_suffix: true)
77
78
 
78
79
  disabled_methods = Array(disabled_methods)
79
80
 
@@ -100,7 +101,7 @@ module Autoproj
100
101
  end
101
102
 
102
103
  Autoproj.add_source_handler name.downcase do |url, private: false, **vcs_options|
103
- url += ".git" if url !~ /\.git$/
104
+ url += ".git" if add_suffix && url !~ /\.git$/
104
105
  url = "/#{url}" if url !~ /^\//
105
106
 
106
107
  unless GIT_SERVER_CONFIG_VARS.all? { |v| config.has_value_for?("#{name}#{v}") }
@@ -1088,7 +1088,7 @@ module Autoproj
1088
1088
 
1089
1089
  # Remove any OSDeps override that has previously been added with
1090
1090
  # #add_osdeps_overrides
1091
- def remove_osdeps_overrides(osdep_name)
1091
+ def remove_osdeps_overrides(osdeps_name)
1092
1092
  @osdeps_overrides.delete(osdeps_name.to_s)
1093
1093
  end
1094
1094
 
@@ -585,7 +585,7 @@ module Autoproj
585
585
  when OSPackageResolver::UNKNOWN_OS
586
586
  manifest.exclude_package(osdep_name, "the current operating system is unknown to autoproj")
587
587
  when OSPackageResolver::WRONG_OS
588
- manifest.exclude_package(osdep_name, "#{osdep_name} is defined, but not for this operating system")
588
+ manifest.exclude_package(osdep_name, "#{osdep_name} is defined in #{os_package_resolver.source_of(osdep_name)}, but not for this operating system")
589
589
  when OSPackageResolver::NONEXISTENT
590
590
  manifest.exclude_package(osdep_name, "#{osdep_name} is marked as unavailable for this operating system")
591
591
  end
@@ -260,8 +260,16 @@ module Autoproj
260
260
  "gem \"autoproj\", \"#{autoproj_version}\""].join("\n")
261
261
  end
262
262
 
263
+ def load_yaml(contents)
264
+ if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("3.1.0")
265
+ YAML.safe_load(contents, permitted_classes: [Symbol])
266
+ else
267
+ YAML.safe_load(contents, [Symbol])
268
+ end
269
+ end
270
+
263
271
  def add_seed_config(path)
264
- @config.merge!(YAML.safe_load(File.read(path), [Symbol]))
272
+ @config.merge!(load_yaml(File.read(path)))
265
273
  end
266
274
 
267
275
  # Parse the provided command line options and returns the non-options
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.17.0"
2
+ VERSION = "2.18.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.17.0
4
+ version: 2.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2025-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autobuild