mystic 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mystic/extensions.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 352832d5a99d22c0f360346f660e2c6ce234f4b3
|
4
|
+
data.tar.gz: eaad20d1ca2059c66dce838f12cb5e5f0cd0705f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29b0c4ff3ffc55ab14920124e11c9af2157293af0d614cf6acb2634e8e37f74278a0d3eeda9469724cccb652c9a1a44ef4781a2877961858a380baf12cf9664f
|
7
|
+
data.tar.gz: df56f54b96579764df117822fc6e035562b5bb69a52df38899ae3e71e66ebdd44b61c2fadd1880802dd79a67438f1088de0b06cc4028f34550b560e84b6126f1
|
data/lib/mystic/extensions.rb
CHANGED
@@ -82,12 +82,16 @@ class Hash
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def sqlize
|
85
|
-
reject { |k,v| v.nil? || v.empty? }.map{ |k,v| "#{k}=#{Integer === v ? v : "'#{v.to_s.sanitize}'" }" }
|
85
|
+
reject { |k,v| v.nil? || (v.empty? rescue false) }.map{ |k,v| "#{k}=#{Integer === v ? v : "'#{v.to_s.sanitize}'" }" }
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
89
|
class Pathname
|
90
90
|
Kernel.silent do
|
91
|
+
def to_s
|
92
|
+
@path
|
93
|
+
end
|
94
|
+
|
91
95
|
def relative?
|
92
96
|
@path[0] != File::SEPARATOR
|
93
97
|
end
|