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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02461e09b8beea13b38f2e36aab85ab643fe7975b2f96132aa7bdbe8930ed370
4
- data.tar.gz: 9fe1a1573e379256bedf1628ea469ec65c0e68f3a8da842ed77d995b0b70f753
3
+ metadata.gz: 723a2279bed9e417801b3a5c9a66eac49d023148889e995fdb6e32beceed495a
4
+ data.tar.gz: 9297d20f9080695cd809e2f5d4e889d5e8edb44b6399095bd2689a16bbb48ba5
5
5
  SHA512:
6
- metadata.gz: 1135496242298cd85e09d05d945b156cd592f76f9645a4b4bd3693e8cda1f3b190e8a27130a64337077ae62ab4b47f3205e8fbdeb6178034e358bb7f682dcbc6
7
- data.tar.gz: baa46d6fe2ad8cec7bd48199081624dd31f2499235c04f319c0bd27b58417dfbc649f1e41cf207b2156985f56ca6a76148926cbc09ea083e2023dd3963bc2354
6
+ metadata.gz: a9713379cf0c358de5bd27e6fbce4487e3254445f603c21bf01dad180f39ea3944d3b342b3f561379bf13b5c3b04fbbb8bf89efbc2601af499ec97d3527052aa
7
+ data.tar.gz: 1f01ead482c0d61528c5c751a790f1a098f56ea6acaeab0122d5401185bbb01bf694d439038862d10ce85ca35a90924ad1126b8bd28d550431811cf37e52b91c
@@ -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
@@ -630,7 +630,6 @@ module Timerizer
630
630
  end
631
631
 
632
632
  separator = format[:separator] || ' '
633
- delimiter = format[:delimiter] || ', '
634
633
  units.take(count).map do |unit, n|
635
634
  unit_label = format_units.fetch(unit)
636
635
 
@@ -1,3 +1,3 @@
1
1
  module Timerizer
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
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.2
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: 2018-12-29 00:00:00.000000000 Z
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: '1.14'
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: '1.14'
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: '10.0'
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: '10.0'
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.0'
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.0'
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.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.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
- rubyforge_project:
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