jvertica 0.1.7 → 0.1.8

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: c23d87043466109fa58a4068771e6fbdfb5a7130
4
- data.tar.gz: 970b488aa5d74b94a59fe131d265c56e4ebf8a40
3
+ metadata.gz: b20c0ef9e1c5ff50fa51dd0b7cc61a475d57352d
4
+ data.tar.gz: 2d8cb6619767070d8d646339cfc5c9194145b6a3
5
5
  SHA512:
6
- metadata.gz: c702a7ef2da491b0b261b1dacd51eec569e386e8d37c1af276069fbb3441451ed8fdaa3ae2c7abb9e33ff28f3a6f1730b1927545bb70ff7bf551e1d4abb639cd
7
- data.tar.gz: 8eeadf300ea89cbf68f9ba63296a932a7cc2d84e05f5705160960d4bdbc0c55b574edd97bd64fb504443435a4257b54b34b16e1ca408de1d6ce5a5794191d9e3
6
+ metadata.gz: ad1f5e053ad48b24b290472c3f73dad8714245e55644efbeab5fd21dfbf89b0578bbdbd42ba3800eaa5851979280e1b5d7c02584ea4d00a1a54ee8a1f9851449
7
+ data.tar.gz: 0bf3ce3ea787102a7d4588d512d86bf934512947a203d0d220b67b9fd5203b75eb6fa6ef0ceb9158c44d8abba729f2eecb18d7552c48fc1abdece8eca7114150
@@ -1,3 +1,3 @@
1
1
  class Jvertica
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/jvertica.rb CHANGED
@@ -110,7 +110,7 @@ class Jvertica
110
110
 
111
111
  def copy query, source = nil, &blk
112
112
  raise InvalidQuery.new('can use only "copy".') unless %r{\A\s*copy}miu === query
113
- if !source.nil?
113
+ if !source.nil? or block_given?
114
114
  copy_stream(query, source, &blk)
115
115
  else
116
116
  [query(query), nil]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jvertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahiro.nakayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement