origen 0.7.42 → 0.7.43

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
  SHA1:
3
- metadata.gz: 01f214e3286d3fe9b681c2fe388c97642e15830c
4
- data.tar.gz: 1b3e3d7a68519cda03f09b83464230695d86b68b
3
+ metadata.gz: 0e437bcdfcd258911a845ab5d8ac23d443cee90a
4
+ data.tar.gz: 596d74e6f6612c8c699690ac0340e6edd211d8bb
5
5
  SHA512:
6
- metadata.gz: 7f7d77047fe35a60c5a08eece43b95f865d6400006a511326c2ec71a70890edee41e5a540c4e78160185b7a75ba1e9bdbf706f9dd6ec3dea1329278beb3950d8
7
- data.tar.gz: bf2d328dbb2c2cd4cebdf092b863297b06fcfa2aa586096c38cce973decc11021584a3b944f05ce2c2a69bf1544d41bd5e395c578f919dd965fb374f02552776
6
+ metadata.gz: 907c4f886a61da4482a061dd4fbadbe50a55efb0ba565f061a8f6278074ed3682b638a569dbb26e49b930a7edd05afe3fe71a41056e0e43ba8827778e69e7188
7
+ data.tar.gz: 39d6c7824f56ff4e0402deeb36deace368e40cea4b0761d0a09a396cd098f21d64bb9335aa16121ca562a9c62f4bca18995a8506bf11354827679cdb98b2b81f
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 42
4
+ BUGFIX = 43
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -434,15 +434,17 @@ module Origen
434
434
  # check if this is a pin group alias
435
435
  found = false
436
436
  group = nil
437
+ pins_left = pins.dup
437
438
  unless options[:pins_only] == true
438
439
  pins.each do |i|
439
440
  if pin_groups.include?(i)
440
441
  group = add_pin_group_alias(id, i, options)
442
+ pins_left.delete(i)
441
443
  found = true
442
444
  end
443
445
  end
444
446
  end
445
- unless found # not a pin group alias
447
+ unless pins_left.empty? && !block_given? # not a pin group alias
446
448
  group = Origen.pin_bank.find_or_create_pin_group(id, self, options)
447
449
  if block_given?
448
450
  yield group
@@ -463,9 +465,9 @@ module Origen
463
465
  #
464
466
  # In both cases though we always want pins(:pa)[0] to return :pa0.
465
467
  if options[:endian] == :little
466
- pins.each { |pin| group.add_pin(pin, options) }
468
+ pins_left.each { |pin| group.add_pin(pin, options) }
467
469
  else
468
- pins.reverse_each { |pin| group.add_pin(pin, options) }
470
+ pins_left.reverse_each { |pin| group.add_pin(pin, options) }
469
471
  end
470
472
  end
471
473
  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.7.42
4
+ version: 0.7.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-15 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport