input_extension 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/input_extension.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cf5de23c196aac116a59a034d76ccc5087ce8f539260e33991e1a15440f8684
|
4
|
+
data.tar.gz: 3d570fea4e4ac494eed563aabc52a1b499c511ddf78c89e8cc2070d1cf10990d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 818eb6b715f53196ade1e018e418ee394f37756f1f594494979192384515dadae9b751d8513fce2d673f3c0087d43aa8fa558ae9f26981e5f8f4ecd8549dc553
|
7
|
+
data.tar.gz: c84d63b5514b4eeee50673fa160754c0160227ea66fc81e3a175e802fac075f6417cf01d3fbf1e3b6882c4e8e7d41441a821c93e8e79f5b2711d6c56926f64df
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/input_extension.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
Date.class_eval do
|
4
4
|
# @return [String] - yyyy-mm-dd
|
5
5
|
def input(_all = false)
|
6
6
|
strftime('%F')
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
DateTime.class_eval do
|
11
11
|
# @return [String] - yyyy-mm-dd[Thh:mm::ss]
|
12
12
|
def input(all = false)
|
13
13
|
strftime(all ? '%F %T' : '%F')
|