ask_year_month 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/lib/ask_year_month/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df31dbd937f4b7ec0242ad6d54b4abfad1da50d250851a8b954c37bf9b71e80f
|
|
4
|
+
data.tar.gz: a43c7dc0e2d5f32b7bcc89e85a03f03029c57be22fbf5b68ed8b7ea30ad7f4da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2fcff65662cd3315b1d7a8519bba88ffe59a33baed8144d300a7ec3b8f27fb70faa342b1c2e0e09d3e42e07758129f8ce1ced56b584a7a2ba17c0c4d16547a12
|
|
7
|
+
data.tar.gz: 97e2581e8a94d2dfda9f10e10664ca02218a6d45d7a74e8ba0f5952736649365f0214c6f9fbec286b55d01f392770bf324f5e46c4e32ba913c42c1aef07c91ca
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# AskYearMonth
|
|
2
2
|
You can simply check **what month, what year** it is by the name of the month and year.
|
|
3
|
+
<br>
|
|
3
4
|
(Year is not implemented. coming soon...)
|
|
4
5
|
|
|
5
6
|
This Gem was extend [Date, DateTime, Time, ActiveSupport::TimeWithZone].
|
|
@@ -11,10 +12,19 @@ This Gem was extend [Date, DateTime, Time, ActiveSupport::TimeWithZone].
|
|
|
11
12
|
DateTime.parse('2020-12-05').month == 12
|
|
12
13
|
#=> true
|
|
13
14
|
|
|
15
|
+
Time.parse('2020-03-05').month == 3
|
|
16
|
+
#=> true
|
|
17
|
+
|
|
14
18
|
# It's beautiful!
|
|
15
19
|
DateTime.parse('2020-12-05').december?
|
|
16
20
|
#=> true
|
|
21
|
+
|
|
22
|
+
Time.parse('2020-03-05').march?
|
|
23
|
+
#=> true
|
|
17
24
|
```
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
https://github.com/mah666hhh/ask_year_month/blob/main/lib/ask_year_month/month_name_helper.rb
|
|
18
28
|
|
|
19
29
|
## Usage
|
|
20
30
|
How to use my plugin.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ask_year_month
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mah666hhh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-12-
|
|
11
|
+
date: 2020-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -44,7 +44,9 @@ dependencies:
|
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '0'
|
|
47
|
-
description: You can
|
|
47
|
+
description: You can simply check **what month, what year** it is by the name of the
|
|
48
|
+
month and year.<br>(Year is not implemented. coming soon...) This Gem was extend
|
|
49
|
+
[Date, DateTime, Time, ActiveSupport::TimeWithZone] [Show on GitHub](https://github.com/mah666hhh/ask_year_month)
|
|
48
50
|
email:
|
|
49
51
|
- mah666hhh@gmail.com
|
|
50
52
|
executables: []
|