origen 0.60.8 → 0.60.10

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: cd12e9a60b3bf554156fdb22359b944dcb187e5c7ef36006c87e1ec3174dcc13
4
- data.tar.gz: c5652e6831e503a86a35389ae06ef37ae1acc1105f3758ae58b9e11fcf80ab55
3
+ metadata.gz: c442b0ec278b734ebc49f7222d453db157c28797e2a6df6134d3b1433a562e37
4
+ data.tar.gz: 7492e627ed33bfcbbcdac8ecb57c765428b9fdb5ba4ce896f2d0dcb61fa64dd9
5
5
  SHA512:
6
- metadata.gz: e51bb5aeb384256a1d4ba37535043437e2c8731e04c578029610da24e9e4e842b72b7a22ebd0d407376aebdec0f375aeba85b82585778094e63fe1f2a95a82ef
7
- data.tar.gz: c48528d8beb4eb0a278c1a6c0cc20957d93720bd24d34c91a7177a46b843e87b01dd18bf5de6bb83790e91eafd13a3e8a347a5948bfdeaf3da9f8ae75f42ae5e
6
+ metadata.gz: fe7488cc0aac95c1ead5a2c20d806e895e424fdf76621c713620e745c25817bd74265e54184cdf9577871f320a9abd6cb08a57fa57ddf5d275a6f4a8213b4a6a
7
+ data.tar.gz: 996a85f149c8f7843db5b5b00f95723802a2d929e85302a51ba2711bdaf58ec5527aec7712d8499623c969013a288f19d748acc91e3aad6f43937073ec9d9873
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 60
4
- BUGFIX = 8
4
+ BUGFIX = 10
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -150,11 +150,11 @@ module Origen
150
150
  i = 0
151
151
  `bjobs 2>&1`.split("\n").each do |line|
152
152
  if line =~ /^(\d+).*(RUN|PEND)/
153
- if @queue_count_only && @queue
153
+ if config.queue_count_only && config.queue
154
154
  # only count jobs for current queue, helpful for when
155
155
  # you have a service account user that runs lsf for a
156
156
  # lot of jobs in addition to origen jobs
157
- if line =~ /#{@queue}/
157
+ if line =~ /#{config.queue}/
158
158
  i += 1
159
159
  end
160
160
  else
@@ -171,7 +171,7 @@ module Origen
171
171
  def limit_job_submissions
172
172
  @local_job_count ||= 0
173
173
  if @local_job_count == 100
174
- while remote_jobs_count > @max_jobs
174
+ while remote_jobs_count > config.max_jobs
175
175
  puts 'Waiting for submitted jobs count to fall below limit...'
176
176
  sleep 5
177
177
  end
@@ -18,9 +18,11 @@ http://origen.freescale.net/origen/latest/guides/utilities/lint/
18
18
  END
19
19
  opts.on('-c', '--correct', 'Correct errors automatically where possible') { options[:correct] = true }
20
20
  opts.on('-n', '--no-correct', "Don't correct errors automatically (override if the app default is set to auto correct)") { options[:no_correct] = true }
21
+ opts.on('-A', '--auto-correct-all', 'Autocorrect offenses (safe and unsafe)') { options[:correct_all] = true }
21
22
  opts.on('-e', '--easy', 'Be less strict, most checks run with this flag enabled can be corrected automatically') { options[:easy] = true }
22
23
  opts.on('-m', '--mode MODE', Origen::Mode::MODES, 'Force the Origen operating mode:', ' ' + Origen::Mode::MODES.join(', ')) { |_m| }
23
24
  opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
25
+ opts.on('-o', '--override-config CONFIG', String, 'Path to a rubocop rules yml file to use instead of the default rules') { |file| options[:override_config] = file }
24
26
  # Apply any application option extensions to the OptionParser
25
27
  Origen::CommandHelpers.extend_options(opts, app_options, options)
26
28
  opts.separator ''
@@ -48,11 +50,14 @@ if options[:easy] || Origen.config.lint_test[:level] == :easy
48
50
  else
49
51
  config = "#{Origen.top}/config/rubocop/strict.yml"
50
52
  end
53
+ config = options[:override_config] || config
51
54
 
52
55
  command = "rubocop #{files} --config #{config} --display-cop-names"
53
56
 
54
57
  unless options[:no_correct]
55
- if options[:correct] || Origen.config.lint_test[:auto_correct]
58
+ if options[:correct_all] || Origen.config.lint_test[:auto_correct_all]
59
+ command += ' --auto-correct-all'
60
+ elsif options[:correct] || Origen.config.lint_test[:auto_correct]
56
61
  command += ' --auto-correct'
57
62
  end
58
63
  end
@@ -151,6 +151,8 @@ gem_use_from_system:
151
151
  # lsf_project: 'msg.te'
152
152
  # lsf_resource: 'rhel6'
153
153
  # lsf_cores: '1'
154
+ # lsf_max_jobs: 400
155
+ # lsf_queue_count_only: false
154
156
 
155
157
  # lsf_debug is needed for spec tests on the core.
156
158
  lsf_debug: 'false'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.8
4
+ version: 0.60.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport