mothball 0.0.5 → 0.0.6
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 -2
- data/lib/mothball.rb +12 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cf550bbdc06186037702e9117a6c8d347717239861c69b576483a769a7d7a2b
|
4
|
+
data.tar.gz: a973a1a3c0cb050d7e638089d09af7191e40bd753ae8c290b5764be1daa1fb50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac52d7446ad2ce05dddd78a0d99b0fdc7f724a26f624408a93f86c513bebc9d6ce551c297b675f0f6c89b7293f794f7e0de583f1000643ece6bac4cee014ae0
|
7
|
+
data.tar.gz: 46788569108a26540bf0c9333cef3118a2452879891bab3f9d22d30e57e43966be7adff73dd50f2bd9c673ba22235491475432ed826982fdd03ee788be072bcd
|
data/CHANGELOG.md
CHANGED
@@ -2,10 +2,18 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
-
## [0.0.
|
5
|
+
## [0.0.6] - 2023-10-23
|
6
|
+
|
7
|
+
### change
|
8
|
+
- function name from prev_day to next_day.
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- add yardoc.
|
12
|
+
|
13
|
+
## [0.0.5] - 2023-05-05
|
6
14
|
|
7
15
|
### Added
|
8
|
-
-
|
16
|
+
- wiki_uri into gemspec file.
|
9
17
|
|
10
18
|
## [0.0.3] - 2023-04-17
|
11
19
|
|
data/lib/mothball.rb
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
|
+
# calculate after n day from today
|
4
|
+
# (circleciによるtest&deploy)
|
3
5
|
module MothBallLib
|
4
|
-
|
6
|
+
# after n day from today
|
7
|
+
#
|
8
|
+
# @overload next_day(n)
|
9
|
+
# @param [int] n n日後
|
10
|
+
# @return [String] 今日からn日後の値(yyyy-mm-dd)
|
11
|
+
# @example
|
12
|
+
# MothBallLib::next_day(2) => 2013-10-22
|
13
|
+
def next_day(n)
|
5
14
|
today = Date.today
|
6
|
-
prev = today.
|
15
|
+
prev = today.next_day(n)
|
7
16
|
return prev.strftime("%Y-%m-%d")
|
8
17
|
end
|
9
|
-
module_function :
|
18
|
+
module_function :next_day
|
10
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mothball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- siranovel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: calculate after n day from today.
|
14
14
|
email: siranovel@gmail.com
|
@@ -25,7 +25,7 @@ licenses:
|
|
25
25
|
- MIT
|
26
26
|
metadata:
|
27
27
|
changelog_uri: http://github.com/siranovel/helloci/blob/main/CHANGELOG.md
|
28
|
-
documentation_uri: https://rubydoc.info/gems/mothball/0.0.
|
28
|
+
documentation_uri: https://rubydoc.info/gems/mothball/0.0.6
|
29
29
|
homepage_uri: http://github.com/siranovel/helloci
|
30
30
|
wiki_uri: https://github.com/siranovel/mydocs/tree/main/helloci
|
31
31
|
post_install_message:
|