origen 0.57.2 → 0.59.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9607bd6ebb09f96af0baae6c3f7a87fde9bba8706b75cb8eb5ccdbea5acc8849
4
- data.tar.gz: 3827507a3d7a92b75baf19ecb60ad4723b70b7a6bf99301fa892215c94095542
3
+ metadata.gz: c1fc57782e99a1d16b12376e79e535f2722bd98f82f31e2598a7c0c8a5bc26bb
4
+ data.tar.gz: 7547030f36db02db638794320c4b1679eef86b06de2471df0dc5164dc23b1498
5
5
  SHA512:
6
- metadata.gz: 2e54fb02d412629a3346e21cd2f4dbc4d4fbb3ebdf20e5b01c00411edad3874e62f1e48299ef83c461c1afef21eddce438b379c9712f028cd4caeaa5c0031c74
7
- data.tar.gz: bf7038729a7eb5d11da8d191cd555d06e2c06caa00119ded03c273ecfd232e27bf98bfe000f9e47d20828105b69c648214e7baca956299af0b487116cefaf5fa
6
+ metadata.gz: a71ca51af97b345415c8038ed8aa62eaa76c2a2fbc5a10d0c50e4d9185a0aaebb30882a8069b4d80ab42782c48a187b803ce9c8a702854eab9bfbf61e895f02f
7
+ data.tar.gz: 0fcfa708b056221e6fb34e1fe45a1f2cb1aae71858dd80c4ff5a2627c24ed6bae128d7fbca3049501cd64f3818b73890e0d86edf25e8b510e4d25067bedd0ba7
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
- MINOR = 57
4
- BUGFIX = 2
3
+ MINOR = 59
4
+ BUGFIX = 3
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -443,6 +443,24 @@ module Origen
443
443
  end
444
444
  alias_method :add_locn, :add_location
445
445
 
446
+ # Add a way to update packages for the pins after the pins have been added.
447
+ #
448
+ # @example Updating a package after the pin has been added
449
+ # dut.add_pin :p1
450
+ # dut.add_package: package1
451
+ # dut.add_package: package2
452
+ # dut.pin(:p1).packages # => {}
453
+ # dut.pin(:p1).update_packages :packages # => [:package1, :package2]
454
+ # dut.pin(:p1).packages # => {:package1=>{}, :package2=>{}}
455
+ def update_packages(options = {})
456
+ packages = resolve_packages(options)
457
+ packages.each do |package_id|
458
+ package_id = package_id.respond_to?(:id) ? package_id.id : package_id
459
+ myself.packages[package_id] ||= {}
460
+ end
461
+ end
462
+ alias_method :update_package, :update_packages
463
+
446
464
  # Add a Device Interface Board (e.g. probecard at wafer probe or loadboard at final package test)
447
465
  # assignment to the pin. Some refer to this as a channel but API name is meant to be generic.
448
466
  def add_dib_assignment(str, options = {})
@@ -15,9 +15,14 @@ module Origen
15
15
  HOST = Origen.site_config.ldap_host
16
16
  PORT = Origen.site_config.ldap_port
17
17
  BASE_DN = Origen.site_config.ldap_base_dn
18
+ LDAP_ENCRYPTION = Origen.site_config.ldap_encryption
19
+
20
+ if LDAP_ENCRYPTION.nil?
21
+ LDAP_ENCRYPTION = 'simple_tls'
22
+ end
18
23
 
19
24
  def available?
20
- !!(SERVICE_ACCOUNT && SERVICE_PASS && HOST && PORT && BASE_DN)
25
+ !!(SERVICE_ACCOUNT && SERVICE_PASS && HOST && PORT && BASE_DN && LDAP_ENCRYPTION)
21
26
  end
22
27
 
23
28
  # Lookup the given user in the core directory and return an object representing the user's entry
@@ -57,7 +62,8 @@ module Origen
57
62
  def service
58
63
  @service ||= Net::LDAP.new host: HOST,
59
64
  port: PORT,
60
- encryption: { method: :simple_tls },
65
+ base: BASE_DN,
66
+ encryption: LDAP_ENCRYPTION,
61
67
  auth: { method: :simple, username: SERVICE_ACCOUNT, password: SERVICE_PASS }
62
68
  end
63
69
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 1.8.11".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Stephen McGinty".freeze]
11
- s.date = "2020-06-28"
11
+ s.date = "2020-10-08"
12
12
  s.email = ["stephen.f.mcginty@gmail.com".freeze]
13
13
  s.files = ["bin/boot.rb".freeze, "config/application.rb".freeze, "config/boot.rb".freeze, "config/commands.rb".freeze, "config/shared_commands.rb".freeze, "config/version.rb".freeze, "lib/origen_app_generators.rb".freeze, "lib/origen_app_generators/application.rb".freeze, "lib/origen_app_generators/base.rb".freeze, "lib/origen_app_generators/empty_application.rb".freeze, "lib/origen_app_generators/empty_plugin.rb".freeze, "lib/origen_app_generators/new.rb".freeze, "lib/origen_app_generators/new_app_tests.rb".freeze, "lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb".freeze, "lib/origen_app_generators/plugin.rb".freeze, "lib/origen_app_generators/test_engineering/common.rb".freeze, "lib/origen_app_generators/test_engineering/stand_alone_application.rb".freeze, "lib/origen_app_generators/test_engineering/test_block.rb".freeze, "templates/app_generators".freeze, "templates/app_generators/application".freeze, "templates/app_generators/application/.gitignore".freeze, "templates/app_generators/application/.irbrc".freeze, "templates/app_generators/application/.rspec".freeze, "templates/app_generators/application/.travis.yml".freeze, "templates/app_generators/application/Gemfile".freeze, "templates/app_generators/application/Rakefile".freeze, "templates/app_generators/application/app".freeze, "templates/app_generators/application/app/blocks".freeze, "templates/app_generators/application/app/blocks/top_level.rb".freeze, "templates/app_generators/application/app/lib".freeze, "templates/app_generators/application/app/lib/module.rb".freeze, "templates/app_generators/application/app/templates".freeze, "templates/app_generators/application/app/templates/web".freeze, "templates/app_generators/application/app/templates/web/index.md.erb".freeze, "templates/app_generators/application/app/templates/web/layouts".freeze, "templates/app_generators/application/app/templates/web/layouts/_basic.html.erb".freeze, "templates/app_generators/application/app/templates/web/partials".freeze, "templates/app_generators/application/app/templates/web/partials/_navbar.html.erb".freeze, "templates/app_generators/application/app/templates/web/release_notes.md.erb".freeze, "templates/app_generators/application/config".freeze, "templates/app_generators/application/config/application.rb".freeze, "templates/app_generators/application/config/boot.rb".freeze, "templates/app_generators/application/config/commands.rb".freeze, "templates/app_generators/application/config/maillist_dev.txt".freeze, "templates/app_generators/application/config/maillist_prod.txt".freeze, "templates/app_generators/application/config/version.rb".freeze, "templates/app_generators/application/doc".freeze, "templates/app_generators/application/doc/history".freeze, "templates/app_generators/application/dot_keep".freeze, "templates/app_generators/application/origen_core_session".freeze, "templates/app_generators/application/spec".freeze, "templates/app_generators/application/spec/spec_helper.rb".freeze, "templates/app_generators/application/target".freeze, "templates/app_generators/application/target/debug.rb".freeze, "templates/app_generators/application/target/default.rb".freeze, "templates/app_generators/application/target/production.rb".freeze, "templates/app_generators/new".freeze, "templates/app_generators/new/generator.rb".freeze, "templates/app_generators/new/info.md.erb".freeze, "templates/app_generators/origen_infrastructure".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/application.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/base.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/module.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/plugin.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/config".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/config/load_generators.rb".freeze, "templates/app_generators/plugin".freeze, "templates/app_generators/plugin/Gemfile".freeze, "templates/app_generators/plugin/Rakefile".freeze, "templates/app_generators/plugin/app".freeze, "templates/app_generators/plugin/app/templates".freeze, "templates/app_generators/plugin/app/templates/web".freeze, "templates/app_generators/plugin/app/templates/web/index.md.erb".freeze, "templates/app_generators/plugin/app/templates/web/partials".freeze, "templates/app_generators/plugin/app/templates/web/partials/_navbar_external.html.erb".freeze, "templates/app_generators/plugin/app/templates/web/partials/_navbar_internal.html.erb".freeze, "templates/app_generators/plugin/config".freeze, "templates/app_generators/plugin/config/boot.rb".freeze, "templates/app_generators/plugin/gemspec.rb".freeze, "templates/app_generators/test_engineering".freeze, "templates/app_generators/test_engineering/environment".freeze, "templates/app_generators/test_engineering/environment/j750.rb".freeze, "templates/app_generators/test_engineering/environment/uflex.rb".freeze, "templates/app_generators/test_engineering/environment/v93k.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application".freeze, "templates/app_generators/test_engineering/stand_alone_application/.keep".freeze, "templates/app_generators/test_engineering/test_block".freeze, "templates/app_generators/test_engineering/test_block/.keep".freeze]
14
14
  s.homepage = "http://origen-sdk.org/origen_app_generators".freeze
@@ -1,14 +1,27 @@
1
1
  require 'rspec/core/formatters/base_formatter'
2
2
 
3
3
  class OrigenFormatter < RSpec::Core::Formatters::BaseFormatter
4
-
5
- def dump_summary(duration, example_count, failure_count, pending_count)
6
- if failure_count > 0
7
- Origen.app.stats.report_fail
8
- else
9
- Origen.app.stats.report_pass
4
+ rspec_version = RSpec.constants.include?(:Version) ? RSpec::Version::STRING : RSpec::Core::Version::STRING
5
+ if Gem::Version.new(rspec_version) < Gem::Version.new('3.0.0')
6
+ # legacy formatter
7
+ def dump_summary(duration, example_count, failure_count, pending_count)
8
+ if failure_count > 0
9
+ Origen.app.stats.report_fail
10
+ else
11
+ Origen.app.stats.report_pass
12
+ end
13
+ super(duration, example_count, failure_count, pending_count)
14
+ end
15
+ else
16
+ # RSpec 3 API
17
+ RSpec::Core::Formatters.register self, :dump_summary
18
+ def dump_summary(summary)
19
+ puts
20
+ if summary.failed_examples.size > 0
21
+ Origen.app.stats.report_fail
22
+ else
23
+ Origen.app.stats.report_pass
24
+ end
10
25
  end
11
- super(duration, example_count, failure_count, pending_count)
12
26
  end
13
-
14
27
  end
@@ -15,7 +15,15 @@ class <%= @namespaces.map { |n| camelcase(n[1]) }.join('::') %>::<%= camelcase(@
15
15
  include Origen::Model
16
16
  <% end -%>
17
17
 
18
- <% end -%>
19
18
  def initialize(options = {})
20
19
  end
20
+ <% else -%>
21
+ # super means that the initialize request will get passed onto the parent class's initialize method.
22
+ # i.e. the one defined in <%= @parent_class %>
23
+ # If you want to override that and add a specific implementation for this DUT type,
24
+ # then simply delete the super below and add the code you wish to handle the request.
25
+ def initialize(options = {})
26
+ super
27
+ end
28
+ <% end -%>
21
29
  end
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.57.2
4
+ version: 0.59.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport