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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7693b846d58f7952cd6b0ed8d8350e8a98844560
4
- data.tar.gz: dbadd3408d0c5198785ff119bb7ef3bece208048
3
+ metadata.gz: 369c744aee19789cf792762afa4fac026e5ba2dc
4
+ data.tar.gz: 36ca6957eaba5af6e0fa375830b03236ef5b5f9e
5
5
  SHA512:
6
- metadata.gz: 02039cbfffc18799a8535ea0873b7ec870e30d39cd70d7480408cd47de653bf45340e14c659662ee34c03d2c540ee786ac43b6d02eab1583107598532e1618cf
7
- data.tar.gz: a03cecc8c06663f083459d96c92da5874b5d89fb2dd4a35f489f0271a6f62c711ef31b2152bdf4500ca3fd37f04e3f1b6373a8502d6cb1ec4fd273e3c6480d12
6
+ metadata.gz: 2146688d83c31c693cd1e84cc2814f090109c83bf3c8c0c1519b19d983fd3784ad5ba3baedcf29741b6fd8c61f6ea0976aebf4f384aa390f21a7d436b2caceed
7
+ data.tar.gz: b7a40c9aad76f2b646dce34f1030f9989a97158fd08a90dfd865baa56c78676543bb5a0c2e8e129b6275cfee453523b18cf5723de2b328ab5337f3856b95c123
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.0.1
2
+
3
+ - Clearify collection names
4
+ - Add white background
5
+
1
6
  # 1.0.0
2
7
 
3
8
  - Initial release.
@@ -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
- <%= cmd.full_collection_name %>
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>
@@ -1,5 +1,5 @@
1
1
  module Peek
2
2
  module Moped
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -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.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-08 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: peek