ruby-ise 0.6.1 → 1.0.0
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.
- data/lib/ise/symbol.rb +3 -3
- data/lib/ise/version.rb +1 -1
- metadata +2 -8
data/lib/ise/symbol.rb
CHANGED
@@ -163,7 +163,7 @@ module ISE
|
|
163
163
|
def set_pin_bounds!(node, left, right)
|
164
164
|
|
165
165
|
#Extract the base name of the pin, removing any existing bounds.
|
166
|
-
name, _, _ = parse_pin_name(get_pin_name(node))
|
166
|
+
name, _, _ = self.class.parse_pin_name(get_pin_name(node))
|
167
167
|
|
168
168
|
#And adjust the pin's name to feature the new bounds.
|
169
169
|
set_pin_name(node, "#{name}(#{left}:#{right})")
|
@@ -181,7 +181,7 @@ module ISE
|
|
181
181
|
def set_pin_width!(node, width)
|
182
182
|
|
183
183
|
#Get the components of the given bus' name.
|
184
|
-
_, left, right = parse_pin_name(get_pin_name(node))
|
184
|
+
_, left, right = self.class.parse_pin_name(get_pin_name(node))
|
185
185
|
|
186
186
|
#If the pin wasn't initially a bus, make it one.
|
187
187
|
left ||= 0
|
@@ -206,7 +206,7 @@ module ISE
|
|
206
206
|
# Break a schematic-format pin name into three elements, and return them.
|
207
207
|
# Returns a list including: 1) the base name, 2) the range's left bound, and 3) the range's right bound.
|
208
208
|
#
|
209
|
-
def parse_pin_name(name)
|
209
|
+
def self.parse_pin_name(name)
|
210
210
|
components = PIN_NAME_REGEX.match(name)
|
211
211
|
return components[1], components[3].to_i, components[4].to_i
|
212
212
|
end
|
data/lib/ise/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: inifile
|
@@ -118,18 +118,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- - ! '>='
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
|
-
segments:
|
122
|
-
- 0
|
123
|
-
hash: 1703058363022956588
|
124
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
122
|
none: false
|
126
123
|
requirements:
|
127
124
|
- - ! '>='
|
128
125
|
- !ruby/object:Gem::Version
|
129
126
|
version: '0'
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
hash: 1703058363022956588
|
133
127
|
requirements: []
|
134
128
|
rubyforge_project:
|
135
129
|
rubygems_version: 1.8.23
|