mothball 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/mothball.rb +10 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5b3cce9adbb26b5dec5462d6d198c358163bbb8b81ce3c0aa7b527ce7d385705
4
+ data.tar.gz: e6a9a265108e2861383580f4c030e666cce696b5e2015700d064f5a7fff9fec2
5
+ SHA512:
6
+ metadata.gz: 2f932e0d5cb6484fe13261bd5f0039ecb51469e84ed4b9bb1df150f32eb1dbb65b0731bb59b04e174f5e370938181a3e9dcc3cb57d030f1485c1c98231986f96
7
+ data.tar.gz: 0051fef221c45f70f4f15333d6166f31e196b03cbe24f74c5ce0fcbf419b770a45533f58bdc5ba8052fc7f3722273502799cf36df71359cc4736f3e4d316dded
data/lib/mothball.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'date'
2
+
3
+ module MothBallLib
4
+ def prev_day(n)
5
+ today = Date.today
6
+ prev = today.prev_day(n)
7
+ return prev.strftime("%Y-%m-%d")
8
+ end
9
+ module_function :prev_day
10
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mothball
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - siranovel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-03-24 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: after n day from today.
14
+ email: siranovel@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/mothball.rb
20
+ homepage: http://github.com/siranovel/helloci
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.1.4
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: after n day from today
43
+ test_files: []