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 +4 -4
- data/config/version.rb +1 -1
- data/lib/origen/specs/checkers.rb +4 -1
- data/lib/origen/specs/documentation.rb +5 -1
- data/lib/origen/specs.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4bd97eaffa5012c2d0cb2ec57dfcfff723e7147
|
4
|
+
data.tar.gz: e414fdb068eff8ae9072dc11ff461c419923394b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468a9adcab418be01a8dd16cceeee387a1bfb318a5224b2984343905bef4f0dbad9b002b341fced81a23ac4140ebf15b8c538f0a2663e92a7373566ff9907aa4
|
7
|
+
data.tar.gz: 68cdefead5653f2a9dfe30dd4d578a0a7fa6e6440e770d20a428d53e76278d36e3e2d747ab52a80dc697b34e8712bdfdd54ceb11f4f141bc3393734831f73d25
|
data/config/version.rb
CHANGED
@@ -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
|
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,
|
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.
|
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-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|