hashbrowns 0.2.1 → 0.2.2
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/VERSION +1 -1
- data/hashbrowns.gemspec +1 -1
- data/lib/hashbrowns/configuration.rb +7 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/hashbrowns.gemspec
CHANGED
@@ -55,7 +55,7 @@ module HashBrowns
|
|
55
55
|
def add_important_name(name, value, status=false)
|
56
56
|
name = name.to_s
|
57
57
|
if value.kind_of?(Proc)
|
58
|
-
@important[name] = value
|
58
|
+
@important[name] = value
|
59
59
|
return
|
60
60
|
end
|
61
61
|
value, status = value.to_s, status.to_s
|
@@ -97,6 +97,12 @@ module HashBrowns
|
|
97
97
|
@link_hash[key.to_s] = path.to_s
|
98
98
|
end
|
99
99
|
|
100
|
+
def add_links_by_keys(keys, path)
|
101
|
+
keys.each do |key|
|
102
|
+
@link_hash[key.to_s] = path.to_s
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
100
106
|
def add_link_by_parent(parent, key, path)
|
101
107
|
if @link_parents.has_key?(parent.to_s)
|
102
108
|
@link_parents[parent.to_s][key.to_s] = path.to_s
|