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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ba909df61c99a49ddea9e6bc914eb941796f18c38443e6becdecf3766542522
4
- data.tar.gz: 3c69b7adda470fe9d06e7fb0383213d988b191a0224b3be4d6cf1518c450887a
3
+ metadata.gz: 24b5d4ea790824df18783742e69969e024b31cf44b4164a191d3ff0215804873
4
+ data.tar.gz: 72143e22bb37bd47da23c70d527011e86f35c2d840dd9593d1a845e0619e40a1
5
5
  SHA512:
6
- metadata.gz: 924c1ded4febd716dbbd9d01885581668cd3dfb014595fb630efe2e5c92d3e280fdc7b04ad87d5797fc528b2f639fc67585f392755cf1dfd68046a36c8fb9d62
7
- data.tar.gz: 25309a6bd7a3836ab5a6b69b85301c958c64023638a0d3b4100b9c8fd117d263a1376cd13dedb7ad728bbfe6ac2c0d397a17255d5f30dd7a9a59d139fc8d9594
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 -%>
@@ -1,3 +1,3 @@
1
1
  module Metricky
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metricky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Brody