metricky 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/metricky/templates/metric.rb.tt +4 -2
- data/lib/metricky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b5d4ea790824df18783742e69969e024b31cf44b4164a191d3ff0215804873
|
4
|
+
data.tar.gz: 72143e22bb37bd47da23c70d527011e86f35c2d840dd9593d1a845e0619e40a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753fe8c0f2d2e47b36042426d00a4dfe0352745b4bccc7142de4f4e8f621b7cefb3a19276e56894508f19e53911f836a71300b289dd83a337d9ffe0b0fa0ffea
|
7
|
+
data.tar.gz: cf3896f56e6475af16c5f1d6984d1a177ced083da92f416942ca0eeeeaffe3b70ab1b1caae51c57d8f3cadbcdf77841ff3dd29091dd7cafe86435814aa4afbbe
|
@@ -5,11 +5,13 @@ class <%= class_name %>Metric < ApplicationMetric
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def type
|
8
|
-
<%= options[:type] %>
|
8
|
+
<%= options[:type][0] == ':' ? options[:type] : ":#{options[:type]}" %>
|
9
9
|
end
|
10
10
|
|
11
|
+
<% if options[:period] %>
|
11
12
|
def period
|
12
|
-
<%= options[:period] %>
|
13
|
+
<%= options[:period][0] == ':' ? options[:period] : ":#{options[:period]}" %>
|
13
14
|
end
|
15
|
+
<% end %>
|
14
16
|
end
|
15
17
|
<% end -%>
|
data/lib/metricky/version.rb
CHANGED