work_calendar 1.0.4 → 1.0.5
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/Gemfile.lock +5 -5
- data/lib/work_calendar/version.rb +1 -1
- data/lib/work_calendar.rb +29 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b1807e1b303d1faae15d092d9b9ab021e65bd9f329e7e2880836a5229aa1994
|
|
4
|
+
data.tar.gz: c22cbc828c91f5c80b5b09206990a9d4789720f200413aa8755bc4eb66f2814d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73c2036df7fef653e430103c227d0b984d4ccee94d5e93ca4f557be890065b1a31d293869161d501505b00e34a5be779c174bc5b8cddc2eb09c037376fdf6979
|
|
7
|
+
data.tar.gz: 0f3182e2dcbb4d13987534fb07a3f89c55860dc0611e23e4b80c0df7f387f05129cf3e6e6608d6888a68b5e3afe3fb38a37d13d6b4a67e54f16a1423f9fe02da
|
data/Gemfile.lock
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
work_calendar (1.0.
|
|
4
|
+
work_calendar (1.0.5)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
activesupport (7.0.
|
|
9
|
+
activesupport (7.0.7.2)
|
|
10
10
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
11
11
|
i18n (>= 1.6, < 2)
|
|
12
12
|
minitest (>= 5.1)
|
|
13
13
|
tzinfo (~> 2.0)
|
|
14
14
|
ast (2.4.2)
|
|
15
|
-
concurrent-ruby (1.
|
|
16
|
-
i18n (1.
|
|
15
|
+
concurrent-ruby (1.2.2)
|
|
16
|
+
i18n (1.14.1)
|
|
17
17
|
concurrent-ruby (~> 1.0)
|
|
18
18
|
json (2.6.3)
|
|
19
19
|
minitest (5.16.3)
|
|
@@ -40,7 +40,7 @@ GEM
|
|
|
40
40
|
rubocop (>= 1.7.0, < 2.0)
|
|
41
41
|
rubocop-ast (>= 0.4.0)
|
|
42
42
|
ruby-progressbar (1.11.0)
|
|
43
|
-
tzinfo (2.0.
|
|
43
|
+
tzinfo (2.0.6)
|
|
44
44
|
concurrent-ruby (~> 1.0)
|
|
45
45
|
unicode-display_width (2.3.0)
|
|
46
46
|
|
data/lib/work_calendar.rb
CHANGED
|
@@ -112,6 +112,35 @@ module WorkCalendar
|
|
|
112
112
|
11 => {
|
|
113
113
|
holidays: [6]
|
|
114
114
|
}
|
|
115
|
+
},
|
|
116
|
+
2024 => {
|
|
117
|
+
1 => {
|
|
118
|
+
holidays: [1, 2, 3, 4, 5, 8]
|
|
119
|
+
},
|
|
120
|
+
2 => {
|
|
121
|
+
holidays: [23]
|
|
122
|
+
},
|
|
123
|
+
3 => {
|
|
124
|
+
holidays: [8]
|
|
125
|
+
},
|
|
126
|
+
4 => {
|
|
127
|
+
workdays: [27],
|
|
128
|
+
holidays: [29, 30]
|
|
129
|
+
},
|
|
130
|
+
5 => {
|
|
131
|
+
holidays: [1, 9, 10]
|
|
132
|
+
},
|
|
133
|
+
6 => {
|
|
134
|
+
holidays: [12]
|
|
135
|
+
},
|
|
136
|
+
11 => {
|
|
137
|
+
workdays: [2],
|
|
138
|
+
holidays: [4]
|
|
139
|
+
},
|
|
140
|
+
12 => {
|
|
141
|
+
workdays: [28],
|
|
142
|
+
holidays: [30, 31]
|
|
143
|
+
}
|
|
115
144
|
}
|
|
116
145
|
}.freeze
|
|
117
146
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: work_calendar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anton Korenyushkin
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|