ridgepole 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a32f500b9c3b34e20718ff38f2d8c105da56a6d9
4
- data.tar.gz: 60f9a30069f99a53045dcb2ff8666b45a05b5d16
3
+ metadata.gz: 84b1a22ee6618b697b68c9f0024f17fccf5087e0
4
+ data.tar.gz: 668ee8448ee3b954de116a02b8749d05c7a57795
5
5
  SHA512:
6
- metadata.gz: 23552503c21a1ece686ed0fdb79d9c1c2e7cb00696139f719e01d70ab775632110f84add2be4cb28ba87c2cb1ed8546bbafb3fa4d8908bb508b591bc50ec1dd3
7
- data.tar.gz: 6928abc2468aa26d70bb38e32f27a05c1229c84571a934a699f86e11ed63a75ef388338659ae36ba4af11645a7f4037506a92b07773e6426b8abbc60b9516296
6
+ metadata.gz: ad235b54d5770469f6e8111a81945b91d0c2ca305a28a4b998c29f4d7e43e27ec9d87b1fd59383f90af2db616a7010eab20e501d791490c9540da7299b9dada9
7
+ data.tar.gz: eb29c85a720959fd535e035d35e9c27b66a715351e796ec5317c682680e78d57c6fa29382211bf6ab424f4443829cc3e724af3cb87ee2674579c00b0ef3d5028
@@ -30,7 +30,11 @@ class Ridgepole::ExecuteExpander
30
30
  callback.call(sql, name)
31
31
  end
32
32
 
33
- Stub.new
33
+ if sql =~ /\A(SELECT|SHOW)\b/i
34
+ execute_without_noop(sql, name)
35
+ else
36
+ Stub.new
37
+ end
34
38
  else
35
39
  execute_without_noop(sql, name)
36
40
  end
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara