weary 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/weary.rb +2 -2
- data/weary.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/weary.rb
CHANGED
@@ -177,9 +177,9 @@ module Weary
|
|
177
177
|
end
|
178
178
|
unless resource.with.empty?
|
179
179
|
if resource.with.is_a?(Array)
|
180
|
-
with = %Q{[#{resource.with.collect {|x| ":#{x}"}.join(',')}]}
|
180
|
+
with = %Q{[#{resource.with.collect {|x| x.is_a?(Symbol) ? ":#{x}" : "'#{x}'" }.join(',')}]}
|
181
181
|
else
|
182
|
-
with = %Q{[#{resource.with.keys.collect {|x| ":#{x}"}.join(',')}]}
|
182
|
+
with = %Q{[#{resource.with.keys.collect {|x| x.is_a?(Symbol) ? ":#{x}" : "'#{x}'"}.join(',')}]}
|
183
183
|
end
|
184
184
|
code << %Q{
|
185
185
|
unnecessary = params.keys - #{with}
|
data/weary.gemspec
CHANGED