dns_one 0.4.39 → 0.4.40

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: 296dafdbba064fefc2ab86745dd516d80c0eee93
4
- data.tar.gz: b20222d54553e1bb9c95bc7e1fd6d31594480470
3
+ metadata.gz: 1daf477dad0a9bb872f7690d7100541b3092c7f3
4
+ data.tar.gz: ed56a873006e7d5baffc6a3fd2178f93e353610e
5
5
  SHA512:
6
- metadata.gz: e06fdebdd04f7f013d606beeb25370531049fbaea8af66490b0c7ec5d1bc84ae3eb1cf6d890c1dec6a99e70685d500d4d83c8829d80a6ea21e032f86876ea503
7
- data.tar.gz: 30abb3413dbcaacbc16a9d673f9151f0dc2b8645261d77742536faa273125949ffc2d6fe5afadb62be8fb80e3922ad28f6238772343a500fe6d0331c79e7dd73
6
+ metadata.gz: 108cf8910e43fa3dea579560a92c3155db842873cae943435571930a0a8a3cc711cd4bd4113a24aea565beede77a5297ff5ef4705ed050deffee70056bc15a4e
7
+ data.tar.gz: 6e4789893bc48db72807668f84ae8ae151a2fe2f241ee199236467e18eb63e35afa53ab5a021e64f28e31490cc0a9535f6c2a6e0cd643572dae4dd075401479c
data/lib/dns_one/stat.rb CHANGED
@@ -158,18 +158,18 @@ module DnsOne; class Stat
158
158
  name
159
159
  end
160
160
 
161
- def rsql sql
161
+ def rsql *sql
162
162
  if SQL_PROF
163
163
  t0 = Time.now
164
164
  end
165
165
 
166
- res = @db.execute sql
166
+ res = @db.execute *sql
167
167
 
168
168
  if SQL_PROF
169
169
  @sql_profiler ||= Logger.new '/tmp/dnsone_sql_prof.log'
170
170
  time = Time.now.strftime '%y%m%d-%H%M%S.%L'
171
171
  dur = "%.3f" % ((Time.now - t0) * 1000.0)
172
- _sql = sql.gsub /\n+/, ' '
172
+ _sql = [sql].flatten[0].gsub /\n+/, ' '
173
173
  @sql_profiler.info "#{time} #{dur} #{_sql}"
174
174
  end
175
175
 
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.39"
2
+ VERSION = "0.4.40"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.39
4
+ version: 0.4.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato