timespan 0.5.6 → 0.5.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/timespan/core_ext/range.rb +1 -13
- data/timespan.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.6
|
1
|
+
0.5.6.1
|
@@ -82,7 +82,7 @@ class DurationRange < DelegateDecorator
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def time
|
85
|
-
"#{min
|
85
|
+
min == max ? "#{min} #{unit.to_s.singularize}" : "#{min}-#{max} #{unit}"
|
86
86
|
end
|
87
87
|
|
88
88
|
def between? duration
|
@@ -184,12 +184,6 @@ class DurationRange < DelegateDecorator
|
|
184
184
|
end
|
185
185
|
|
186
186
|
class LongDurationRange < DurationRange
|
187
|
-
# include Comparable
|
188
|
-
|
189
|
-
# def <=> other_dur_range
|
190
|
-
# super
|
191
|
-
# end
|
192
|
-
|
193
187
|
def length
|
194
188
|
:long
|
195
189
|
end
|
@@ -204,12 +198,6 @@ class LongDurationRange < DurationRange
|
|
204
198
|
end
|
205
199
|
|
206
200
|
class ShortDurationRange < DurationRange
|
207
|
-
# include Comparable
|
208
|
-
|
209
|
-
# def <=> other_dur_range
|
210
|
-
# super
|
211
|
-
# end
|
212
|
-
|
213
201
|
def length
|
214
202
|
:short
|
215
203
|
end
|
data/timespan.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timespan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.6
|
4
|
+
version: 0.5.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -293,7 +293,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
293
|
version: '0'
|
294
294
|
segments:
|
295
295
|
- 0
|
296
|
-
hash: -
|
296
|
+
hash: -334950470551913116
|
297
297
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
298
|
none: false
|
299
299
|
requirements:
|