rill 0.1.7 → 0.1.8
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/rill.rb +9 -1
- metadata +1 -1
data/lib/rill.rb
CHANGED
|
@@ -128,7 +128,15 @@ class Rill
|
|
|
128
128
|
|
|
129
129
|
if match
|
|
130
130
|
deps = match[2]
|
|
131
|
-
|
|
131
|
+
|
|
132
|
+
begin
|
|
133
|
+
deps = JSON.parse(deps.gsub("'", '"'))
|
|
134
|
+
rescue JSON::ParserError
|
|
135
|
+
deps = []
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
deps = [] unless deps.is_a? Array
|
|
139
|
+
|
|
132
140
|
deps.delete_if do |d|
|
|
133
141
|
d.nil? || d =~ /^\s*$/
|
|
134
142
|
end
|