autobuild 1.24.0 → 1.25.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: 56a551f16208e61f38188d81b0b944ef6ba663fbc3155ae7e55b009f2adda2e6
4
- data.tar.gz: 60e5b9d1b8ffe8ff4e35d006960a251ef82467ee5d17adcb9d9d21e2e7f47b15
3
+ metadata.gz: 0f19fbfaac6c8a45aa67dc3f494e646620b109400dc52576d799e833c97f2073
4
+ data.tar.gz: 405c2943784b8247d9b14bf943ae336cd480bdee5faf1eb720cdddabed5934ee
5
5
  SHA512:
6
- metadata.gz: 30af86ba246a653daac4299675fe4b248b36b2d30750feefd567dc32c6768b9f4b60f877021253699336c5d01c54b69f1d7db6808a6d49ea12ff612f425ca01c
7
- data.tar.gz: 16e7849423378e7e5e89f0e40e7cc77173e87290954734aa86195cf15547388bce6a7b234aaf8857593e2d513b9daf4634759026706a6f2e54eb2044b7ee8b96
6
+ metadata.gz: 955461e9afe4750ba82115a26fd93133b408e257451dd33d86b6469b5c0f283a2e54c4d6e614153788ecefddb0286a8f70cdbfd326c5f294ffc0692dd55584db
7
+ data.tar.gz: 9237fd0300c8edf42905c03687fdc407030f204e745ac24aad66659909046759554517477735bb4b567874df13f2287819de86f0355d450b99fafcc0b0fc9182
@@ -8,7 +8,9 @@ jobs:
8
8
 
9
9
  strategy:
10
10
  matrix:
11
- ruby-version: ["2.7", "2.6", "2.5"]
11
+ ruby-version:
12
+ - "3.0"
13
+ - "2.7"
12
14
 
13
15
  steps:
14
16
  - uses: actions/checkout@v2
@@ -19,7 +21,9 @@ jobs:
19
21
  uses: ruby/setup-ruby@v1
20
22
  with:
21
23
  ruby-version: ${{ matrix.ruby-version }}
24
+ - name: Remove vscode gems
25
+ run: bundle config set --local without vscode
22
26
  - name: Install dependencies
23
27
  run: bundle install
24
28
  - name: Run rubocop
25
- run: bundle exec rubocop
29
+ run: bundle exec rubocop
@@ -8,7 +8,10 @@ jobs:
8
8
 
9
9
  strategy:
10
10
  matrix:
11
- ruby-version: ["2.7", "2.6", "2.5"]
11
+ ruby-version:
12
+ - "3.0"
13
+ - "2.7"
14
+ - "2.5"
12
15
 
13
16
  steps:
14
17
  - uses: actions/checkout@v2
@@ -19,8 +22,12 @@ jobs:
19
22
  uses: ruby/setup-ruby@v1
20
23
  with:
21
24
  ruby-version: ${{ matrix.ruby-version }}
25
+ - name: Remove vscode gems
26
+ run: bundle config set --local without vscode
22
27
  - name: Install dependencies
23
28
  run: bundle install
29
+ - name: Enable file transport in git
30
+ run: git config --global protocol.file.allow always
24
31
  - name: Run tests
25
32
  run: bundle exec rake test
26
33
  env:
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
  inherit_gem:
2
4
  rubocop-rock: defaults.yml
3
5
 
@@ -111,4 +113,4 @@ Style/GlobalStdStream:
111
113
  Enabled: false
112
114
 
113
115
  Style/OptionalBooleanParameter:
114
- Enabled: false
116
+ Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,14 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2024-07-10 18:16:42 UTC using RuboCop version 1.28.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 2
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RubyVersionGlobalsUsage:
13
+ Exclude:
14
+ - 'autobuild.gemspec'
data/Gemfile CHANGED
@@ -2,12 +2,17 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ group :lint do
6
+ gem 'parallel', '1.24.0'
7
+ gem 'rubocop', '1.28.2'
8
+ gem 'rubocop-ast', '1.17.0'
9
+ gem 'rubocop-rock'
10
+ end
11
+
5
12
  group :vscode do
6
13
  gem 'debase', '>= 0.2.2.beta10'
7
14
  gem 'pry'
8
15
  gem 'pry-byebug'
9
- gem 'rubocop', '>= 0.6.0'
10
- gem 'rubocop-rock'
11
16
  gem 'ruby-debug-ide', '>= 0.6.0'
12
17
  gem 'solargraph'
13
18
  end
data/autobuild.gemspec CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  .reject { |f| f.match(%r{^(test|spec|features)/}) }
25
25
 
26
26
  s.add_runtime_dependency "concurrent-ruby", "~> 1.1"
27
+ s.add_runtime_dependency "net-smtp"
27
28
  s.add_runtime_dependency "pastel", "~> 0.7.0"
28
29
  s.add_runtime_dependency "rake", "~> 13.0"
29
30
  s.add_runtime_dependency 'tty-cursor', '~> 0.7.0'
@@ -31,8 +32,9 @@ Gem::Specification.new do |s|
31
32
  s.add_runtime_dependency 'tty-screen', '~> 0.8.0'
32
33
  s.add_runtime_dependency "utilrb", "~> 3.0", ">= 3.0"
33
34
  s.add_development_dependency "fakefs"
34
- s.add_development_dependency "flexmock", '~> 2.0', ">= 2.0.0"
35
+ s.add_development_dependency "flexmock", ">= 2.4.0"
35
36
  s.add_development_dependency "minitest", "~> 5.0", ">= 5.0"
36
37
  s.add_development_dependency "simplecov"
37
38
  s.add_development_dependency "timecop"
39
+ s.add_development_dependency "webrick"
38
40
  end
@@ -540,10 +540,10 @@ module Autobuild
540
540
  File.readlines(patches_file).map do |line|
541
541
  line = line.rstrip
542
542
  if line =~ /^(.*)\s+(\d+)$/
543
- path = File.expand_path($1, package.srcdir)
543
+ path = File.expand_path($1, package.importdir)
544
544
  level = Integer($2)
545
545
  else
546
- path = File.expand_path(line, package.srcdir)
546
+ path = File.expand_path(line, package.importdir)
547
547
  level = 0
548
548
  end
549
549
  [path, level, File.read(path)]
@@ -618,7 +618,7 @@ module Autobuild
618
618
  File.open(patchlist(package), 'w') do |f|
619
619
  patch_state = cur_patches.map do |path, level|
620
620
  path = Pathname.new(path).
621
- relative_path_from(Pathname.new(package.srcdir)).to_s
621
+ relative_path_from(Pathname.new(package.importdir)).to_s
622
622
  "#{path} #{level}"
623
623
  end
624
624
  f.write(patch_state.join("\n"))
@@ -39,6 +39,11 @@ module Autobuild
39
39
 
40
40
  attr_reader :prefix_path, :module_path
41
41
 
42
+ # Arguments that will be passed to the 'make' test target
43
+ def test_args
44
+ @test_args ||= ["-V"]
45
+ end
46
+
42
47
  # Whether files that are not within CMake's install manifest but are
43
48
  # present in the prefix should be deleted. Note that the contents of
44
49
  # {#log_dir} are unaffected.
@@ -73,6 +78,9 @@ module Autobuild
73
78
  self.class.defines.merge(additional_defines).merge(defines)
74
79
  end
75
80
 
81
+ # Arguments to be passed to the 'make' test target
82
+ attr_reader :test_args
83
+
76
84
  # If true, always run cmake before make during the build
77
85
  attr_accessor :always_reconfigure
78
86
  # If true, we always remove the CMake cache before reconfiguring.
@@ -115,6 +123,7 @@ module Autobuild
115
123
  def initialize(options)
116
124
  @defines = Hash.new
117
125
  super
126
+ @test_args = self.class.test_args.dup
118
127
  @delete_obsolete_files_in_prefix = self.class.
119
128
  delete_obsolete_files_in_prefix?
120
129
  end
@@ -272,10 +281,10 @@ module Autobuild
272
281
  def common_utility_handling( # rubocop:disable Metrics/ParameterLists
273
282
  utility,
274
283
  target,
275
- *args,
276
284
  start_msg,
277
285
  done_msg,
278
- post_process: nil
286
+ post_process: nil,
287
+ args: []
279
288
  )
280
289
  utility.source_ref_dir = builddir
281
290
  utility.task do
@@ -283,6 +292,9 @@ module Autobuild
283
292
  if internal_doxygen_mode?
284
293
  run_doxygen
285
294
  else
295
+ unless args.empty?
296
+ args = ["ARGS=#{args.map { |a| %("#{a}") }.join(' ')}"]
297
+ end
286
298
  run(utility.name,
287
299
  Autobuild.tool(:make),
288
300
  "-j#{parallel_build_level}",
@@ -322,9 +334,10 @@ module Autobuild
322
334
 
323
335
  def with_tests(target = 'test', &block)
324
336
  common_utility_handling(
325
- test_utility, target, "ARGS=-V",
337
+ test_utility, target,
326
338
  "running tests for %s",
327
339
  "successfully ran tests for %s",
340
+ args: test_args,
328
341
  post_process: coverage_block, &block)
329
342
  end
330
343
 
@@ -277,7 +277,7 @@ module Autobuild
277
277
  until messages.empty?
278
278
  msg = messages.shift.strip
279
279
  margin = messages.empty? ? 1 : 2
280
- if lines.last.size + margin + msg.size > width
280
+ if lines.last.size + margin + msg.size + 1 > width
281
281
  lines.last << ","
282
282
  lines << +""
283
283
  lines.last << indent << indent << msg
@@ -1,3 +1,3 @@
1
1
  module Autobuild
2
- VERSION = "1.24.0".freeze unless defined? Autobuild::VERSION
2
+ VERSION = "1.25.0".freeze unless defined? Autobuild::VERSION
3
3
  end
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.24.0
4
+ version: 1.25.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: 2022-07-11 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: concurrent-ruby
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: net-smtp
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: pastel
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -132,22 +146,16 @@ dependencies:
132
146
  name: flexmock
133
147
  requirement: !ruby/object:Gem::Requirement
134
148
  requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '2.0'
138
149
  - - ">="
139
150
  - !ruby/object:Gem::Version
140
- version: 2.0.0
151
+ version: 2.4.0
141
152
  type: :development
142
153
  prerelease: false
143
154
  version_requirements: !ruby/object:Gem::Requirement
144
155
  requirements:
145
- - - "~>"
146
- - !ruby/object:Gem::Version
147
- version: '2.0'
148
156
  - - ">="
149
157
  - !ruby/object:Gem::Version
150
- version: 2.0.0
158
+ version: 2.4.0
151
159
  - !ruby/object:Gem::Dependency
152
160
  name: minitest
153
161
  requirement: !ruby/object:Gem::Requirement
@@ -196,6 +204,20 @@ dependencies:
196
204
  - - ">="
197
205
  - !ruby/object:Gem::Version
198
206
  version: '0'
207
+ - !ruby/object:Gem::Dependency
208
+ name: webrick
209
+ requirement: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
199
221
  description: Collection of classes to handle build systems (CMake, autotools, ...)
200
222
  and import mechanisms (tarballs, CVS, SVN, git, ...). It also offers a Rake integration
201
223
  to import and build such software packages. It is the backbone of the autoproj (http://rock-robotics.org/autoproj)
@@ -210,6 +232,7 @@ files:
210
232
  - ".github/workflows/test.yml"
211
233
  - ".gitignore"
212
234
  - ".rubocop.yml"
235
+ - ".rubocop_todo.yml"
213
236
  - Changes.txt
214
237
  - Gemfile
215
238
  - Manifest.txt