Skip to content

Commit 77bd432

Browse files
committed
fix for new mongo driver
1 parent 581014f commit 77bd432

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ LOCAL_GEM_ROOT = File.join(GEM_ROOT, 'tmp', 'local_gems').freeze
7777
if ENV['CI']
7878
# for ci testing only major rails versions
7979
if 'java' == RUBY_PLATFORM
80-
RAILS_VERSIONS = ['3.1.6', '3.2.6']
80+
RAILS_VERSIONS = ['3.1.6', '3.2.7']
8181
else
82-
RAILS_VERSIONS = ['3.1.6', '3.2.6']
82+
RAILS_VERSIONS = ['3.1.6', '3.2.7']
8383
end
8484
else
8585
RAILS_VERSIONS = IO.read('SUPPORTED_RAILS_VERSIONS').strip.split("\n")

SUPPORTED_RAILS_VERSIONS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
3.2.2
1111
3.2.3
1212
3.2.5
13-
3.2.6
13+
3.2.6
14+
3.2.7

lib/mongodb_logger/server/views/overview.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% if @collection_stats["capped"] && 1 == @collection_stats["capped"] %>
1+
<% if @collection_stats["capped"] && (1 == @collection_stats["capped"] || true == @collection_stats["capped"]) %>
22
<% content_for :right_top_panel do %>
33
<%= partial(:"shared/tail_panel") %>
44
<% end %>

lib/mongodb_logger/server/views/shared/_collection_stats.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="pts prs txtR">
33
<span class="log-num" title="count of logs"><%=h collection_stats["count"] %></span></div>
44
</div> <!-- unit -->
5-
<% if collection_stats["capped"] && 1 == collection_stats["capped"] %>
5+
<% if collection_stats["capped"] && (1 == collection_stats["capped"] || true == collection_stats["capped"]) %>
66
<div class="progress">
77
<span class="size"><%=h number_to_human_size(collection_stats["size"]) %> of <%=h number_to_human_size(collection_stats["storageSize"]) %></span>
88
<div class="used" style="width: <%=((collection_stats["size"].to_f / collection_stats["storageSize"].to_f) * 100).round%>%"></div>

0 commit comments

Comments
 (0)