work_calendar 1.0.4 → 1.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/work_calendar/version.rb +1 -1
- data/lib/work_calendar.rb +47 -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: 95395404f9b752e87cc5eb8d8424d50c92f6ad832ba06a483789cfa114153e48
|
4
|
+
data.tar.gz: ac0b4d6a88715f20c46e4a6a12e324690df0302d85bf3299afab6275de8a34ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea5737b869233bdbfc64335c4a1200f466f11946ad28a8551204e69d27c6aaf71fd962c582b77e9791288fc509609779eaaa848f87d0698abbc079f7ced29736
|
7
|
+
data.tar.gz: 16675609fffe9fd7f860db251c9fc266e604055c1a4a0454d786ab3de591873d7c93581cb5533cae6e91a00717b5ddd70c0c658ee15ce278c939f5fa932bdb6f
|
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.6)
|
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,53 @@ 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
|
+
}
|
144
|
+
},
|
145
|
+
2025 => {
|
146
|
+
1 => {
|
147
|
+
holidays: [1, 2, 3, 6, 7, 8]
|
148
|
+
},
|
149
|
+
5 => {
|
150
|
+
holidays: [1, 2, 8, 9]
|
151
|
+
},
|
152
|
+
6 => {
|
153
|
+
holidays: [12, 13]
|
154
|
+
},
|
155
|
+
11 => {
|
156
|
+
workdays: [1],
|
157
|
+
holidays: [3, 4]
|
158
|
+
},
|
159
|
+
12 => {
|
160
|
+
holidays: [31]
|
161
|
+
}
|
115
162
|
}
|
116
163
|
}.freeze
|
117
164
|
|
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.6
|
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: 2024-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|