broken_window 1.1.1 → 1.1.2

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: 11c0ac67070aedeea672f653f63f0506b83d963b
4
- data.tar.gz: f63baf850225e94257c33ec1932fbbed0b88253a
3
+ metadata.gz: ae71062259c7eecbba9ccb31f4d7fe0fefe3f606
4
+ data.tar.gz: ae0610f97d3c63b6e30a2aa3f731730704100588
5
5
  SHA512:
6
- metadata.gz: 8c906f2bfafdf3df22d1e7f73e081a102f5b3280fccf486712e5b7fada09cbfa3db9beaa3ed617b5680deb24dd3d462ed9f30d14f0850e45ffa1a18010ac3ed6
7
- data.tar.gz: 139dba92f5723debe8f16b221cdda5ab1d7c19a78087b476c10d0fcd11286df804525bfa8390bc43828f1b87fc205746fc4d4c552926115db872ba4f6aa85eb7
6
+ metadata.gz: 1cf979b4abd77521a79db9d6860ee95cd796b0c58381ca87a0d03296d0ebefce2dc015371a0d06c9ef0c1e43a13475539f9953292d910f668f21387bb9d40937
7
+ data.tar.gz: 84c90ec2dd267d9179c9e9fba50d06bd62510eb4eb8b09b25bea40a4f053a890f9aa120430351e7542f76027ada58a3b3a77bc0de78cfad577392faf19f6a55a
@@ -1,4 +1,5 @@
1
1
  module BrokenWindow
2
2
  class ApplicationController < ActionController::Base
3
+ helper ::BrokenWindow::ApplicationHelper
3
4
  end
4
5
  end
@@ -1,6 +1,6 @@
1
1
  module BrokenWindow
2
2
  module ApplicationHelper
3
- def up_path(metric)
3
+ def metric_up_path(metric)
4
4
  if metric.parent
5
5
  metric_path metric.parent
6
6
  else
@@ -16,7 +16,7 @@ module BrokenWindow
16
16
  end
17
17
 
18
18
  def combine(states)
19
- states.min
19
+ states.nil? || states.empty? ? unknown : states.compact.min
20
20
  end
21
21
  end
22
22
 
@@ -1,4 +1,4 @@
1
- <%= link_to '', up_path(@metric), class: 'back-link fa fa-level-up' %>
1
+ <%= link_to '', metric_up_path(@metric), class: 'back-link fa fa-level-up' %>
2
2
 
3
3
  <div class="show-metric">
4
4
  <h1><%= @metric.name %></h1>
@@ -1,3 +1,3 @@
1
1
  module BrokenWindow
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: broken_window
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ambrose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-19 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails