mystic 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mystic/extensions.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8145f377dd3a5bead7ebfecc87e55804af4992a8
4
- data.tar.gz: f187a9d25f1d811a12c43326407b0cf6fb6c3661
3
+ metadata.gz: 352832d5a99d22c0f360346f660e2c6ce234f4b3
4
+ data.tar.gz: eaad20d1ca2059c66dce838f12cb5e5f0cd0705f
5
5
  SHA512:
6
- metadata.gz: 94b02be8857f3dd2ff99f2820a7e8e456cf4e4738348114f2fca0f9081250e97d2ed9ca090d66d3c3f9948ee2c034aaa6eb8db715a313c9d09ff6691f0ee4478
7
- data.tar.gz: 21ca8193be269c8619797450cb0c571dc3064163f2cfa2a3dda3a7280c87d4bd6ac91f7c266355a22800f07359aec8f9d226254969e46479aeed6294f8ed271b
6
+ metadata.gz: 29b0c4ff3ffc55ab14920124e11c9af2157293af0d614cf6acb2634e8e37f74278a0d3eeda9469724cccb652c9a1a44ef4781a2877961858a380baf12cf9664f
7
+ data.tar.gz: df56f54b96579764df117822fc6e035562b5bb69a52df38899ae3e71e66ebdd44b61c2fadd1880802dd79a67438f1088de0b06cc4028f34550b560e84b6126f1
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mystic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Symer