sql_monitor 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2665c7f88ca9768ac7752bef6b0bc52832dc6ac18a927d9ddf70a57aed37484e
4
- data.tar.gz: f4db4b39542134ea3ef509269c32885c59875e0b347b45731b94a7a4656459a4
3
+ metadata.gz: f70aea9f584061d1b95e7dfa46f2c20a05763ff0fc6e9e832ba9d3b6e4ff7fbb
4
+ data.tar.gz: 1a732b8b074418a022825910d9b422e54f5635dc609ce5024c838be3c3b39705
5
5
  SHA512:
6
- metadata.gz: d791a56860bc7c0aec9994f23c0a3e588c0735cd1feb139e496473f804fa7482a845fefec62efff1efb8c324a93165cbf759b75c1b1b5b37fa9ca24ae1ee8cf5
7
- data.tar.gz: d2d1eeef0f9894616617f8b39c498678ea43bc67823a777c34966ce7ad03538d6a5c641b745bd6ba37f52a64a5c8821fbe3957c73266f85b3c44b456aa897793
6
+ metadata.gz: 49e3ff9481e206f3698cf613401e4309d6ce6282b9031d14f566ce239f17854f4d547938bafd14ae3c7a07a03fa1a422d7c6ed87f2517ccd73e04a9f1f96fce4
7
+ data.tar.gz: a1d518dbdd7d55518a57a3a4e1294fca57327c634bea9c47ba1d92e79056292f3ac5a60bff2e41f2ccc6b252da3f5ce59799a17d6c06e9eda1d59ff4eb079623
data/.gitignore CHANGED
@@ -11,3 +11,5 @@
11
11
  .rspec_status
12
12
 
13
13
  .DS_Store
14
+
15
+ sql_monitor-*.gem
@@ -22,10 +22,6 @@ module SqlMonitor
22
22
  @versions = JSON.parse(SqlMonitor.handler.redis.get('all_versions'), {:symbolize_names => true})
23
23
  end
24
24
 
25
- @versions.each do |v|
26
- v[:total] = SqlMonitor.handler.redis.get(v[:version] + "_total")
27
- end
28
-
29
25
  @data = []
30
26
  @selectedVersion = ''
31
27
  if params[:version]
@@ -53,6 +53,9 @@
53
53
  background-color: navajowhite;
54
54
  }
55
55
 
56
+ table td {
57
+ word-wrap: break-word;
58
+ }
56
59
  </style>
57
60
  </head>
58
61
  <body>
@@ -41,10 +41,10 @@
41
41
 
42
42
  <table class="table table-bordered">
43
43
  <tr>
44
- <th>Count</th>
45
- <th>Avg Time (ms)</th>
44
+ <th style="width: 5%">Count</th>
45
+ <th style="width: 10%">Avg Time (ms)</th>
46
46
  <th>SQL Query</th>
47
- <th></th>
47
+ <th style="width: 7%"></th>
48
48
  <th style="width: 30%">Source</th>
49
49
  </tr>
50
50
  <% @data.each do |d| %>
@@ -121,8 +121,6 @@ module SqlMonitor
121
121
 
122
122
  # store new data
123
123
  @redis.set(@cachedVerKey + ':' + key, JSON.dump(@data[key]))
124
- # total sql keys
125
- @redis.set(@cachedVerKey + '_total', @data.keys.count)
126
124
 
127
125
  @data
128
126
  end
data/sql_monitor.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "sql_monitor".freeze
6
- s.version = "0.1.0"
6
+ s.version = "0.1.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tade