peek-moped 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/peek/views/_moped.html.erb +2 -1
- data/lib/peek-moped/version.rb +1 -1
- data/lib/peek/views/moped.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 369c744aee19789cf792762afa4fac026e5ba2dc
|
4
|
+
data.tar.gz: 36ca6957eaba5af6e0fa375830b03236ef5b5f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2146688d83c31c693cd1e84cc2814f090109c83bf3c8c0c1519b19d983fd3784ad5ba3baedcf29741b6fd8c61f6ea0976aebf4f384aa390f21a7d436b2caceed
|
7
|
+
data.tar.gz: b7a40c9aad76f2b646dce34f1030f9989a97158fd08a90dfd865baa56c78676543bb5a0c2e8e129b6275cfee453523b18cf5723de2b328ab5337f3856b95c123
|
data/CHANGELOG.md
CHANGED
@@ -38,6 +38,7 @@
|
|
38
38
|
#moped_queries_log {
|
39
39
|
display:none;
|
40
40
|
position:absolute;
|
41
|
+
background-color: #ffffff;
|
41
42
|
}
|
42
43
|
</style>
|
43
44
|
<div id="moped_queries_log">
|
@@ -54,7 +55,7 @@
|
|
54
55
|
<% code_desc = view.op_code_info cmd.op_code %>
|
55
56
|
<span class="peek-moped-code" title="<%= code_desc[1] %>"><%= code_desc[0] %></span>
|
56
57
|
<a href="#" onclick="$(this).closest('div').toggleClass('peek-moped-query-opened'); return false;">
|
57
|
-
<%=
|
58
|
+
<%= view.cmd_collection_name cmd %>
|
58
59
|
</a>
|
59
60
|
<div class="peek-moped-query-details"><%= cmd.to_yaml %></div>
|
60
61
|
<div class="peek-moped-query-stack"><b>APP STACK:</b><%= "\n#{row[3].join("\n")}" %></div>
|
data/lib/peek-moped/version.rb
CHANGED
data/lib/peek/views/moped.rb
CHANGED
@@ -54,6 +54,20 @@ module Peek
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
def cmd_collection_name cmd
|
58
|
+
if cmd.collection == '$cmd'
|
59
|
+
if cmd.selector.has_key? :getlasterror
|
60
|
+
'getLastError()'
|
61
|
+
elsif cmd.selector.has_key? :count
|
62
|
+
"#{cmd.selector[:count]}.count()"
|
63
|
+
else
|
64
|
+
'$cmd'
|
65
|
+
end
|
66
|
+
else
|
67
|
+
cmd.collection
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
57
71
|
def formatted_duration
|
58
72
|
ms = duration * 1000
|
59
73
|
if ms >= 1000
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peek-moped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Chertorogov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: peek
|