mothball 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -2
  3. data/lib/mothball.rb +12 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c1d8cd7e4f0207b10255f0f80c48d280692488497d2bd99ff12105f40809024
4
- data.tar.gz: 27fe6f556012861bd9023897ace998eaa456d59a719b7b6a905426a614427081
3
+ metadata.gz: 1cf550bbdc06186037702e9117a6c8d347717239861c69b576483a769a7d7a2b
4
+ data.tar.gz: a973a1a3c0cb050d7e638089d09af7191e40bd753ae8c290b5764be1daa1fb50
5
5
  SHA512:
6
- metadata.gz: 2cf81f627e0108823ac1be9427920fd1961f98ae297a9fcaf958d27014554a9518de27bb19e620dd2c71cc2fc1c9edea6f3016dc6a0d14481c781dd053aea01d
7
- data.tar.gz: 4721717fe08ae9ef1472dbde406810e4f44fdd551bbadadec32a47836d0c44154e4a99579b28a02456f81afd843916dc8e063c84580343a0740231c919bf23a8
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.3] - 2023-04-17
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
- - wiki__uri into emspec file.
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
- def prev_day(n)
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.prev_day(n)
15
+ prev = today.next_day(n)
7
16
  return prev.strftime("%Y-%m-%d")
8
17
  end
9
- module_function :prev_day
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.5
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-05-05 00:00:00.000000000 Z
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.5
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: