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 +4 -4
- data/lib/dns_one/stat.rb +3 -3
- data/lib/dns_one/version.rb +1 -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: 1daf477dad0a9bb872f7690d7100541b3092c7f3
|
4
|
+
data.tar.gz: ed56a873006e7d5baffc6a3fd2178f93e353610e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/dns_one/version.rb
CHANGED