nightfury 0.6 → 0.6.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.
@@ -2,7 +2,7 @@ module Nightfury
2
2
  module Metric
3
3
  class Base
4
4
 
5
- ALLOWED_STEPS = [:minute, :hour, :week, :month, :year]
5
+ ALLOWED_STEPS = [:minute, :hour, :day, :week, :month]
6
6
 
7
7
  attr_reader :name, :redis, :redis_key_prefix, :store_as, :step
8
8
 
@@ -106,6 +106,7 @@ module Nightfury
106
106
  case step
107
107
  when :minute then time.round(60)
108
108
  when :hour then time.round(1.hour)
109
+ when :day then time.round(1.day)
109
110
  when :week then time.round(1.week)
110
111
  when :month then time.round(Time.days_in_month(time.month, time.year))
111
112
  end
@@ -1,3 +1,3 @@
1
1
  module Nightfury
2
- VERSION = "0.6"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nightfury
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: