timerizer 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timerizer.rb +3 -0
- data/lib/timerizer/duration.rb +0 -1
- data/lib/timerizer/version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 723a2279bed9e417801b3a5c9a66eac49d023148889e995fdb6e32beceed495a
|
4
|
+
data.tar.gz: 9297d20f9080695cd809e2f5d4e889d5e8edb44b6399095bd2689a16bbb48ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9713379cf0c358de5bd27e6fbce4487e3254445f603c21bf01dad180f39ea3944d3b342b3f561379bf13b5c3b04fbbb8bf89efbc2601af499ec97d3527052aa
|
7
|
+
data.tar.gz: 1f01ead482c0d61528c5c751a790f1a098f56ea6acaeab0122d5401185bbb01bf694d439038862d10ce85ca35a90924ad1126b8bd28d550431811cf37e52b91c
|
data/lib/timerizer.rb
CHANGED
@@ -98,6 +98,7 @@ class Time
|
|
98
98
|
Timerizer::Duration.new(seconds: time_between.round)
|
99
99
|
end
|
100
100
|
|
101
|
+
undef_method :to_date
|
101
102
|
# Convert {Time} to {Date}.
|
102
103
|
# @return [Date] {Time} as {Date}
|
103
104
|
# @example
|
@@ -107,6 +108,7 @@ class Time
|
|
107
108
|
Date.new(self.year, self.month, self.day)
|
108
109
|
end
|
109
110
|
|
111
|
+
undef_method :to_time
|
110
112
|
# Convert self to {Time}.
|
111
113
|
# @see Date#to_time
|
112
114
|
def to_time
|
@@ -142,6 +144,7 @@ class Date
|
|
142
144
|
number_of_days.fetch(self.month - 1)
|
143
145
|
end
|
144
146
|
|
147
|
+
undef_method :to_date
|
145
148
|
# Return self as {Date}.
|
146
149
|
# @see Time#to_date
|
147
150
|
def to_date
|
data/lib/timerizer/duration.rb
CHANGED
data/lib/timerizer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timerizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Lacy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.8'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.9.
|
61
|
+
version: 0.9.20
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.9.
|
68
|
+
version: 0.9.20
|
69
69
|
description: A simple set of Rails-like time helpers
|
70
70
|
email:
|
71
71
|
- kylelacy@me.com
|
@@ -98,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.7.7
|
101
|
+
rubygems_version: 3.0.6
|
103
102
|
signing_key:
|
104
103
|
specification_version: 4
|
105
104
|
summary: Rails time helpers... without the Rails
|