timescopes 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 752aca084979b6cf8f7accb289f263ffe3199fd3
4
- data.tar.gz: cf83c98deb5a85670346a582eb5ba372e5fce76d
3
+ metadata.gz: cc1f97ad83033f25caf56594d2a9a785531a2792
4
+ data.tar.gz: d4a3440225617d1338ca2af76547f495fca68227
5
5
  SHA512:
6
- metadata.gz: 6d983876cfe71225d424739fadabd93c48520aa68ae8b94e2094c934535cafe1562f057fee9cb27e2b5cabe3d5fd8c5316155be2ef49145335b3b4d5bca8346e
7
- data.tar.gz: 435ed29a6550208042181e3b73f69a0626160f3b395f46d5ac6746d089c50e2450c17321698e32f403a4ed1b62f2e06878806c367d1f415aea4107af875f6dad
6
+ metadata.gz: 4faa070b23de1f9db17170df5e79518b3a83f1f282ce80268ec693cef11e957503590e34fcd6889baa7e4382a50bf319d9a5c064a3b67c12c99956fdaaea5d8f
7
+ data.tar.gz: 3dd7a6c46cebcd41f05d9be9da65dc76133b2f16d47fb549edc50f37512afe2a1adbdd27fe51d9fc35e9d6e9540459b18ab1ecabdbca66f9824332ee9e02756c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -33,6 +33,14 @@ module TimeScopes
33
33
  Chronic.parse(start_of_day(1.day.from_now.utc)) ]
34
34
  end
35
35
 
36
+ def start_of_minute(time)
37
+ time.strftime("%Y-%m-%d %H:%M:00Z")
38
+ end
39
+
40
+ def start_of_hour(time)
41
+ time.strftime("%Y-%m-%d %H:00:00Z")
42
+ end
43
+
36
44
  def start_of_day(time)
37
45
  time.strftime("%Y-%m-%d 00:00:00Z")
38
46
  end
data/timescopes.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: timescopes 0.1.2 ruby lib
5
+ # stub: timescopes 0.1.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "timescopes"
9
- s.version = "0.1.2"
9
+ s.version = "0.1.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Ian Hunter"]
14
- s.date = "2015-11-15"
14
+ s.date = "2016-03-20"
15
15
  s.description = ""
16
16
  s.email = "ianhunter@gmail.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timescopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2016-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic