timescopes 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/timescopes/scopes.rb +8 -0
- data/timescopes.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc1f97ad83033f25caf56594d2a9a785531a2792
|
4
|
+
data.tar.gz: d4a3440225617d1338ca2af76547f495fca68227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4faa070b23de1f9db17170df5e79518b3a83f1f282ce80268ec693cef11e957503590e34fcd6889baa7e4382a50bf319d9a5c064a3b67c12c99956fdaaea5d8f
|
7
|
+
data.tar.gz: 3dd7a6c46cebcd41f05d9be9da65dc76133b2f16d47fb549edc50f37512afe2a1adbdd27fe51d9fc35e9d6e9540459b18ab1ecabdbca66f9824332ee9e02756c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/timescopes/scopes.rb
CHANGED
@@ -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.
|
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.
|
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 = "
|
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.
|
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:
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|