origen 0.7.8 → 0.7.9

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: 791d145cfc52402f0d89004ab08060ce874dd30c
4
- data.tar.gz: 1fe96f4f97b1e2d8011d003c1161ccb025d8ae9e
3
+ metadata.gz: c4bd97eaffa5012c2d0cb2ec57dfcfff723e7147
4
+ data.tar.gz: e414fdb068eff8ae9072dc11ff461c419923394b
5
5
  SHA512:
6
- metadata.gz: a5fece355b661ae5756822e9b994a4430b507ae9a3ceef369c128e893a58453990cbfd2f2b84e1bf9535df1d8ebdce88d33ccb930c6e39059cc4b40131c7a2a0
7
- data.tar.gz: 2ca85d5ba16eed7a2350a3afd328c367a8218cfaee4c7a4e34e296e6e3903e4d24c51ed173f4b363fc98768c636ad9f614e9b4b70c6b748056b7ed6c76f97bbb
6
+ metadata.gz: 468a9adcab418be01a8dd16cceeee387a1bfb318a5224b2984343905bef4f0dbad9b002b341fced81a23ac4140ebf15b8c538f0a2663e92a7373566ff9907aa4
7
+ data.tar.gz: 68cdefead5653f2a9dfe30dd4d578a0a7fa6e6440e770d20a428d53e76278d36e3e2d747ab52a80dc697b34e8712bdfdd54ceb11f4f141bc3393734831f73d25
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 8
4
+ BUGFIX = 9
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -1,6 +1,8 @@
1
1
  module Origen
2
2
  module Specs
3
3
  module Checkers
4
+ require 'nokogiri'
5
+
4
6
  # rubocop:disable Style/RescueModifier:
5
7
  def name_audit(name)
6
8
  return name if name.nil?
@@ -70,8 +72,9 @@ module Origen
70
72
  end
71
73
 
72
74
  def evaluate_limit(limit)
73
- return limit if limit.is_a?(Numeric) || limit.is_a?(Symbol)
75
+ return limit if [Fixnum, Float, Numeric, Symbol].include? limit.class
74
76
  return nil if limit.nil?
77
+ limit = limit.to_s if [Nokogiri::XML::NodeSet, Nokogiri::XML::Text, Nokogiri::XML::Element].include? limit.class
75
78
  limit.gsub!("\n", ' ')
76
79
  limit.scrub!
77
80
  result = false
@@ -44,8 +44,11 @@ module Origen
44
44
  # DITA Formatted Text that appears before the table
45
45
  attr_accessor :link
46
46
 
47
+ # Applicable Devices for the map
48
+ attr_accessor :applicable_devices
49
+
47
50
  # Initialize the Class
48
- def initialize(header_info = {}, selection = {}, link = nil)
51
+ def initialize(header_info = {}, selection = {}, applicable_devs = [], link = nil)
49
52
  @level = header_info[:level]
50
53
  @section = header_info[:section]
51
54
  @subsection = header_info[:subsection]
@@ -54,6 +57,7 @@ module Origen
54
57
  @type = selection[:type]
55
58
  @sub_type = selection[:sub_type]
56
59
  @audience = selection[:audience]
60
+ @applicable_devices = applicable_devs
57
61
  @link = link
58
62
  end
59
63
  end
data/lib/origen/specs.rb CHANGED
@@ -134,10 +134,10 @@ module Origen
134
134
  end
135
135
 
136
136
  # Adds a new documentation notion to the block
137
- def documentation(header_info, selection, link)
137
+ def documentation(header_info, selection, applicable_devices, link)
138
138
  _documentation
139
139
  # Create a new documenation and place it in the 5-D hash
140
- @_documentation[header_info[:section]][header_info[:subsection]][selection[:interface]][selection[:type]][selection[:sub_type]][selection[:mode]][selection[:audience]] = Documentation.new(header_info, selection, link)
140
+ @_documentation[header_info[:section]][header_info[:subsection]][selection[:interface]][selection[:type]][selection[:sub_type]][selection[:mode]][selection[:audience]] = Documentation.new(header_info, selection, applicable_devices, link)
141
141
  end
142
142
 
143
143
  # Adds a new feature to the block
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.8
4
+ version: 0.7.9
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-05-02 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport