russian_production_calendar 0.1.2020.10.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 48c57794a0c1cbad27d879e0a4ce03ba1054a8239c8ee2bed2abbb9c070930d0
4
+ data.tar.gz: d5c40b820e30373b391bd01d4961295e36a7572f216cdefe70326a7b0d772b3b
5
+ SHA512:
6
+ metadata.gz: 3cc2639260f6d61afe0023b658fd69c405ee1c4bd32f47db747aa30a976334025d221985aded73bf8318021754a9edbf1122e29402ee00fe7e52a44978984a45
7
+ data.tar.gz: 13e6a63a1c35722460de7f180423dd2e535bd0bf9127aa0202ba32da25a861d1322ba2bf27ae9d796e3be0b5a1fba3e317fb8131a2cdda0d1a38ce222d699f7f
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /pkg/
6
+ /spec/reports/
7
+ /tmp/
8
+ /*.gem
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,249 @@
1
+ require:
2
+ - rubocop-performance
3
+
4
+ AllCops:
5
+ AutoCorrect: false
6
+ Exclude:
7
+ - '*.gemspec'
8
+ - 'bin/*'
9
+ - 'spec/**/*'
10
+ - 'vendor/**/*'
11
+ TargetRubyVersion: 2.7
12
+
13
+ Bundler/OrderedGems:
14
+ Enabled: false
15
+
16
+ # ============================== Documentation ======================
17
+ Style/Documentation:
18
+ Enabled: false
19
+
20
+ # =============================== Performance =======================
21
+ Performance/AncestorsInclude:
22
+ Enabled: true
23
+ Performance/BigDecimalWithNumericArgument:
24
+ Enabled: true
25
+ Performance/RedundantSortBlock:
26
+ Enabled: true
27
+ Performance/RedundantStringChars:
28
+ Enabled: true
29
+ Performance/ReverseFirst:
30
+ Enabled: true
31
+ Performance/SortReverse:
32
+ Enabled: true
33
+ Performance/Squeeze:
34
+ Enabled: true
35
+ Performance/StringInclude:
36
+ Enabled: true
37
+ Performance/Sum:
38
+ Enabled: true
39
+
40
+ # ============================== Metrics ============================
41
+ Metrics/ClassLength:
42
+ Max: 180
43
+ Metrics/BlockLength:
44
+ Enabled: true
45
+ Metrics/MethodLength:
46
+ Max: 25
47
+ Metrics/AbcSize:
48
+ Max: 40
49
+
50
+ # ============================== Naming =============================
51
+ Naming/PredicateName:
52
+ ForbiddenPrefixes:
53
+ - is_
54
+ Naming/FileName:
55
+ Enabled: true
56
+ Exclude:
57
+ - 'Gemfile'
58
+ Naming/MethodParameterName:
59
+ Enabled: false
60
+ Naming/AccessorMethodName:
61
+ Enabled: false
62
+
63
+ # ============================== Layout =============================
64
+ Layout/HashAlignment:
65
+ EnforcedHashRocketStyle: key
66
+ EnforcedColonStyle: key
67
+ Layout/ParameterAlignment:
68
+ EnforcedStyle: with_fixed_indentation
69
+ Layout/CaseIndentation:
70
+ EnforcedStyle: case
71
+ IndentOneStep: false
72
+ Layout/MultilineMethodCallIndentation:
73
+ Enabled: true
74
+ EnforcedStyle: indented
75
+ Layout/SpaceBeforeBlockBraces:
76
+ EnforcedStyle: space
77
+ EnforcedStyleForEmptyBraces: space
78
+ Layout/EmptyLines:
79
+ Enabled: true
80
+ Layout/EmptyLineAfterMagicComment:
81
+ Enabled: false
82
+ Layout/EmptyLinesAroundBlockBody:
83
+ Enabled: true
84
+ Layout/EndAlignment:
85
+ EnforcedStyleAlignWith: variable
86
+ Layout/FirstHashElementIndentation:
87
+ EnforcedStyle: consistent
88
+ Layout/HeredocIndentation:
89
+ Enabled: false
90
+ Layout/RescueEnsureAlignment:
91
+ Enabled: false
92
+ Layout/EmptyLinesAroundAttributeAccessor:
93
+ Enabled: true
94
+ Layout/SpaceAroundMethodCallOperator:
95
+ Enabled: true
96
+ Layout/LineLength:
97
+ Max: 140
98
+
99
+ # ============================== Style ==============================
100
+ Style/RescueModifier:
101
+ Enabled: true
102
+ Style/PercentLiteralDelimiters:
103
+ PreferredDelimiters:
104
+ default: '[]'
105
+ '%i': '[]'
106
+ '%w': '[]'
107
+ Exclude:
108
+ - 'config/routes.rb'
109
+ Style/StringLiterals:
110
+ Enabled: true
111
+ Style/AsciiComments:
112
+ Enabled: false
113
+ Style/Copyright:
114
+ Enabled: false
115
+ Style/SafeNavigation:
116
+ Enabled: false
117
+ Style/Lambda:
118
+ Enabled: false
119
+ Style/Alias:
120
+ Enabled: true
121
+ EnforcedStyle: prefer_alias_method
122
+ Style/ClassAndModuleChildren:
123
+ Enabled: true
124
+ EnforcedStyle: nested
125
+ Style/TrailingCommaInArrayLiteral:
126
+ Enabled: true
127
+ EnforcedStyleForMultiline: no_comma
128
+ Style/RescueStandardError:
129
+ Enabled: true
130
+ EnforcedStyle: explicit
131
+ Style/InverseMethods:
132
+ AutoCorrect: false
133
+ Enabled: true
134
+ Style/IfUnlessModifier:
135
+ Enabled: false
136
+ Style/SpecialGlobalVars:
137
+ Enabled: false
138
+ Style/BlockComments:
139
+ Enabled: false
140
+ Style/GuardClause:
141
+ Enabled: false
142
+ Style/TrailingCommaInHashLiteral:
143
+ Enabled: false
144
+ Style/ExponentialNotation:
145
+ Enabled: true
146
+ Style/HashEachMethods:
147
+ Enabled: true
148
+ Style/HashTransformKeys:
149
+ Enabled: true
150
+ Style/HashTransformValues:
151
+ Enabled: false
152
+ Style/RedundantFetchBlock:
153
+ Enabled: true
154
+ Style/RedundantRegexpCharacterClass:
155
+ Enabled: true
156
+ Style/RedundantRegexpEscape:
157
+ Enabled: true
158
+ Style/SlicingWithRange:
159
+ Enabled: true
160
+ Style/AccessorGrouping:
161
+ Enabled: false
162
+ Style/ArrayCoercion:
163
+ Enabled: true
164
+ Style/BisectedAttrAccessor:
165
+ Enabled: true
166
+ Style/CaseLikeIf:
167
+ Enabled: true
168
+ Style/HashAsLastArrayItem:
169
+ Enabled: true
170
+ Style/HashLikeCase:
171
+ Enabled: true
172
+ Style/RedundantAssignment:
173
+ Enabled: true
174
+ Style/RedundantFileExtensionInRequire:
175
+ Enabled: true
176
+ Style/ExplicitBlockArgument:
177
+ Enabled: true
178
+ Style/GlobalStdStream:
179
+ Enabled: true
180
+ Style/OptionalBooleanParameter:
181
+ Enabled: true
182
+ Style/SingleArgumentDig:
183
+ Enabled: true
184
+ Style/StringConcatenation:
185
+ Enabled: true
186
+ Style/ClassEqualityComparison:
187
+ Enabled: true
188
+ Style/CombinableLoops:
189
+ Enabled: true
190
+ Style/KeywordParametersOrder:
191
+ Enabled: false
192
+ Style/RedundantSelfAssignment:
193
+ Enabled: true
194
+ Style/SoleNestedConditional:
195
+ Enabled: true
196
+
197
+ # ============================== Lint ==============================
198
+ Lint/DuplicateMethods:
199
+ Enabled: false
200
+ Lint/AmbiguousOperator:
201
+ Enabled: false
202
+ Lint/DeprecatedOpenSSLConstant:
203
+ Enabled: true
204
+ Lint/MixedRegexpCaptureTypes:
205
+ Enabled: true
206
+ Lint/RaiseException:
207
+ Enabled: true
208
+ Lint/StructNewOverride:
209
+ Enabled: true
210
+ Lint/DuplicateElsifCondition:
211
+ Enabled: true
212
+ Lint/BinaryOperatorWithIdenticalOperands:
213
+ Enabled: true
214
+ Lint/DuplicateRescueException:
215
+ Enabled: true
216
+ Lint/EmptyConditionalBody:
217
+ Enabled: true
218
+ Lint/FloatComparison:
219
+ Enabled: true
220
+ Lint/MissingSuper:
221
+ Enabled: false
222
+ Lint/OutOfRangeRegexpRef:
223
+ Enabled: true
224
+ Lint/SelfAssignment:
225
+ Enabled: true
226
+ Lint/TopLevelReturnWithArgument:
227
+ Enabled: true
228
+ Lint/UnreachableLoop:
229
+ Enabled: true
230
+ Layout/BeginEndAlignment:
231
+ Enabled: true
232
+ Lint/ConstantDefinitionInBlock:
233
+ Enabled: true
234
+ Lint/DuplicateRequire:
235
+ Enabled: true
236
+ Lint/EmptyFile:
237
+ Enabled: true
238
+ Lint/HashCompareByIdentity:
239
+ Enabled: true
240
+ Lint/IdentityComparison:
241
+ Enabled: true
242
+ Lint/RedundantSafeNavigation:
243
+ Enabled: true
244
+ Lint/TrailingCommaInAttributeDeclaration:
245
+ Enabled: true
246
+ Lint/UselessMethodDefinition:
247
+ Enabled: true
248
+ Lint/UselessTimes:
249
+ Enabled: true
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+ cache: bundler
3
+
4
+ rvm:
5
+ - 2.6.5
6
+
7
+ services:
8
+ - docker
9
+
10
+ before_install:
11
+ - bundle install
12
+
13
+ script:
14
+ - bundle exec rubocop
15
+ - bundle exec rspec
@@ -0,0 +1,2 @@
1
+ # 0.1.2020.10.26
2
+ * added 1999-2025 years
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at alex.shilov.by@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in russian_production_calendar.gemspec
6
+ gemspec
@@ -0,0 +1,65 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ russian_production_calendar (0.1.2020.10.26)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.1)
10
+ coderay (1.1.3)
11
+ diff-lcs (1.4.4)
12
+ method_source (1.0.0)
13
+ parallel (1.19.2)
14
+ parser (2.7.2.0)
15
+ ast (~> 2.4.1)
16
+ pry (0.13.1)
17
+ coderay (~> 1.1)
18
+ method_source (~> 1.0)
19
+ rainbow (3.0.0)
20
+ rake (12.3.3)
21
+ regexp_parser (1.8.2)
22
+ rexml (3.2.4)
23
+ rspec (3.9.0)
24
+ rspec-core (~> 3.9.0)
25
+ rspec-expectations (~> 3.9.0)
26
+ rspec-mocks (~> 3.9.0)
27
+ rspec-core (3.9.3)
28
+ rspec-support (~> 3.9.3)
29
+ rspec-expectations (3.9.3)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.9.0)
32
+ rspec-mocks (3.9.1)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.9.0)
35
+ rspec-support (3.9.4)
36
+ rubocop (1.0.0)
37
+ parallel (~> 1.10)
38
+ parser (>= 2.7.1.5)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8)
41
+ rexml
42
+ rubocop-ast (>= 0.6.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 2.0)
45
+ rubocop-ast (1.0.1)
46
+ parser (>= 2.7.1.5)
47
+ rubocop-performance (1.8.1)
48
+ rubocop (>= 0.87.0)
49
+ rubocop-ast (>= 0.4.0)
50
+ ruby-progressbar (1.10.1)
51
+ unicode-display_width (1.7.0)
52
+
53
+ PLATFORMS
54
+ ruby
55
+
56
+ DEPENDENCIES
57
+ pry
58
+ rake
59
+ rspec
60
+ rubocop
61
+ rubocop-performance
62
+ russian_production_calendar!
63
+
64
+ BUNDLED WITH
65
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Aliaksandr Shylau
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,9 @@
1
+ https://data.gov.ru/opendata/7708660670-proizvcalendar
2
+
3
+ ![](./doc/logo.png?sanitize=true)
4
+
5
+ # RussianProductionCalendar
6
+
7
+ [![pipeline status](https://travis-ci.com/shlima/click_house.svg?branch=master)](https://travis-ci.com/shlima/click_house)
8
+ [![Code Climate](https://codeclimate.com/github/shlima/click_house/badges/gpa.svg)](https://codeclimate.com/github/shlima/click_house)
9
+ [![Gem Version](https://badge.fury.io/rb/click_house.svg)](https://badge.fury.io/rb/click_house)
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'russian_production_calendar'
5
+ require "pry"
6
+
7
+ Pry.start
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ rm ./*.gem
4
+ gem build russian_production_calendar.gemspec
5
+ gem push russian_production_calendar-*
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
Binary file
@@ -0,0 +1,131 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'date'
4
+ require 'csv'
5
+ require 'russian_production_calendar/version'
6
+ require 'russian_production_calendar/error'
7
+
8
+ module RussianProductionCalendar
9
+ # Звездочкой (*) отмечены предпраздничные (сокращенные) дни.
10
+ # Плюсом (+) отмечены перенесенные выходные дни
11
+ CALENDAR_PATH = 'russian_production_calendar/holidays.csv'
12
+ SHORTENED_POSTFIX = '*'
13
+ WEEKEND_POSTPONED_POSTFIX = '+'
14
+ DAY_SEP = ','
15
+
16
+ MONTHS_MAP = {
17
+ 1 => 'Январь',
18
+ 2 => 'Февраль',
19
+ 3 => 'Март',
20
+ 4 => 'Апрель',
21
+ 5 => 'Май',
22
+ 6 => 'Июнь',
23
+ 7 => 'Июль',
24
+ 8 => 'Август',
25
+ 9 => 'Сентябрь',
26
+ 10 => 'Октябрь',
27
+ 11 => 'Ноябрь',
28
+ 12 => 'Декабрь'
29
+ }.freeze
30
+
31
+ extend self
32
+
33
+ # @return [Boolean] true/false - выходной/рабочий
34
+ def holiday?(date)
35
+ days = index.dig(date.year, date.month) || raise(NotFoundError, date)
36
+ days.include?(date.day)
37
+ end
38
+
39
+ # @return [Boolean]
40
+ def workday?(date)
41
+ !holiday?(date)
42
+ end
43
+
44
+ # @param [Date]
45
+ # @return [Date] предыдущий рабочий день (или текущий, если он рабочий)
46
+ def lte_workday(day)
47
+ loop do
48
+ workday?(day) ? (break day) : (day = day.prev_day)
49
+ end
50
+ end
51
+
52
+ # @param [Date]
53
+ # @return [Date] следующий рабочий день (или текущий, если он рабочий)
54
+ def gte_workday(day)
55
+ loop do
56
+ workday?(day) ? (break day) : (day = day.next_day)
57
+ end
58
+ end
59
+
60
+ # @param [Date]
61
+ # @return [Date] следующий рабочий день
62
+ def gt_workday(day)
63
+ loop do
64
+ day = day.next_day
65
+ break day if workday?(day)
66
+ end
67
+ end
68
+
69
+ # @param [Date]
70
+ # @return [Date] предыдущий рабочий день
71
+ def lt_workday(day)
72
+ loop do
73
+ day = day.prev_day
74
+ break day if workday?(day)
75
+ end
76
+ end
77
+
78
+ # @param [Date]
79
+ # @return [Date] предыдущий выходной день (или текущий, если он выходной)
80
+ def lte_holiday(day)
81
+ loop do
82
+ holiday?(day) ? (break day) : (day = day.prev_day)
83
+ end
84
+ end
85
+
86
+ # @param [Date]
87
+ # @return [Date] следующий выходной день (или текущий, если он выходной)
88
+ def gte_holiday(day)
89
+ loop do
90
+ holiday?(day) ? (break day) : (day = day.next_day)
91
+ end
92
+ end
93
+
94
+ # @param [Date]
95
+ # @return [Date] следующий выходной день
96
+ def gt_holiday(day)
97
+ loop do
98
+ day = day.next_day
99
+ break day if holiday?(day)
100
+ end
101
+ end
102
+
103
+ # @param [Date]
104
+ # @return [Date] предыдущий рабочий день
105
+ def lt_holiday(day)
106
+ loop do
107
+ day = day.prev_day
108
+ break day if holiday?(day)
109
+ end
110
+ end
111
+
112
+ private
113
+
114
+ # @return [Hash([Integer] => Hash([Integer] => [Set]))]
115
+ # @example {"2018" => { 1 => [1, 2, 3] }}
116
+ def index
117
+ @index ||= csv.each_with_object({}) do |row, object|
118
+ year = Integer(row.fetch('Год/Месяц'))
119
+
120
+ object[year] = MONTHS_MAP.each_with_object({}) do |(ix, name), obj|
121
+ obj[ix] = row.fetch(name).split(DAY_SEP).each_with_object(Set.new) do |day, result|
122
+ result.add(Integer(day.delete(WEEKEND_POSTPONED_POSTFIX))) unless day[SHORTENED_POSTFIX]
123
+ end
124
+ end
125
+ end
126
+ end
127
+
128
+ def csv
129
+ CSV.open(File.join(__dir__, CALENDAR_PATH), headers: true).map(&:to_h)
130
+ end
131
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RussianProductionCalendar
4
+ Error = Class.new(StandardError)
5
+ NotFoundError = Class.new(Error)
6
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Date
4
+ def holiday?
5
+ RussianProductionCalendar.holiday?(self)
6
+ end
7
+
8
+ def workday?
9
+ RussianProductionCalendar.workday?(self)
10
+ end
11
+
12
+ def gte_workday
13
+ RussianProductionCalendar.gte_workday(self)
14
+ end
15
+
16
+ def lte_workday
17
+ RussianProductionCalendar.lte_workday(self)
18
+ end
19
+
20
+ def gt_workday
21
+ RussianProductionCalendar.gt_workday(self)
22
+ end
23
+
24
+ def lt_workday
25
+ RussianProductionCalendar.lt_workday(self)
26
+ end
27
+
28
+ def gte_holiday
29
+ RussianProductionCalendar.gte_holiday(self)
30
+ end
31
+
32
+ def lte_holiday
33
+ RussianProductionCalendar.lte_holiday(self)
34
+ end
35
+
36
+ def gt_holiday
37
+ RussianProductionCalendar.gt_holiday(self)
38
+ end
39
+
40
+ def lt_holiday
41
+ RussianProductionCalendar.lt_holiday(self)
42
+ end
43
+ end
@@ -0,0 +1,28 @@
1
+ "Год/Месяц","Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь","Всего рабочих дней","Всего праздничных и выходных дней","Количество рабочих часов при 40-часовой рабочей неделе","Количество рабочих часов при 36-часовой рабочей неделе","Количество рабочих часов при 24-часовой рабочей неделе"
2
+ 1999,"1,2,3,4,6*,7,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,24,25,30*","1,2,3,4,8,9,10,15,16,22,23,29,30","5,6,11*,12,13,14,19,20,26,27","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31","6,7,8,13,14,20,21,27,28","4,5,11,12,13,18,19,25,26,31*",251,114,2004,1807.2,1204.8
3
+ 2000,"1,2,3,4,6*,7,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","4,5,7*,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","1,2,6,7,8*,9,13,14,20,21,27,28","3,4,10,11,12,17,18,24,25","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29","4,5,7,11,12,18,19,25,26","2,3,9,10,11*,12,16,17,23,24,30,31",250,116,1995,1800,1200
4
+ 2001,"1,2,6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,24,25","3,4,7*,8,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29,30*","1,2,5,6,8*,9,12,13,19,20,26,27","2,3,9,10,11*,12,16,17,23,24,30","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,6*,7,10,11,17,18,24,25","1,2,8,9,12,15,16,22,23,29,30",251,114,2001,1807.2,1204.8
5
+ 2002,"1,2,5,6,7,12,13,19,20,26,27","2,3,9,10,16,17,22*,23,24,25","2,3,7*,8,9,10,16,17,23,24,30,31","6,7,13,14,20,21,28,30*","1,2,3,4,5,8*,9,10,11,12,19,25,26","1,2,8,9,11*,12,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,6*,7,8,9,16,17,23,24,30","1,7,8,11*,12,13,14,21,22,28,29,31*",250,115,1992,1792,1192
6
+ 2003,"1,2,3,5*,6,7,11,12,18,19,25,26","1,2,8,9,15,16,22,23,24","1,2,7*,8,9,10,15,16,22,23,29,30","5,6,12,13,19,20,26,27,30*","1,2,3,4,8*,9,10,11,17,18,24,25,31","1,7,8,11*,12,13,14,15,22,28,29","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1,2,6*,7,8,9,15,16,22,23,29,30","6,7,11*,12,13,14,20,21,27,28,31*",250,115,1992,1792,1192
7
+ 2004,"1,2,3,4,6*,7,10,11,17,18,24,25,31","1,7,8,14,15,21,22,23,28,29","6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,24,25,30*","1,2,3,4,8,9,10,15,16,22,23,29,30","5,6,11*,12,13,14,19,20,26,27","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31","6,7,8,13,14,20,21,27,28","4,5,11,12,13,18,19,25,26,31*",251,115,2004,1803.2,1200.8
8
+ 2005,"1,2,3,4,5,6,7,8,9,10,15,16,22,23,29,30","5,6,12,13,19,20,22*,23,26,27","5*,6,7,8,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,2,7,8,9,14,15,21,22,28,29","4,5,11,12,13,18,19,25,26","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29,30","3*,4,5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31",248,117,1981,1782.6,1187.4
9
+ 2006,"1,2,3,4,5,6,7,8,9,14,15,21,22,28,29","4,5,11,12,18,19,22*,23,24,25","4,5,7*,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","1,6*,7,8,9,13,14,20,21,27,28","3,4,10,11,12,17,18,24,25","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29","3*,4,5,6,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31",248,117,1981,1782.6,1187.4
10
+ 2007,"1,2,3,4,5,6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,22*,23,24,25","3,4,7*,8,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28*,29,30","1,5,6,8*,9,12,13,19,20,26,27","2,3,9*,10,11,12,16,17,23,24,30","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,5,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29*,30,31",249,116,1986,1786.8,1189.2
11
+ 2008,"1,2,3,4,5,6,7,8,12,13,19,20,26,27","2,3,9,10,16,17,22*,23,24,25","1,2,7*,8,9,10,15,16,22,23,29,30","5,6,12,13,19,20,26,27,30*","1,2,3,8*,9,10,11,17,18,24,25,31","1,8,11*,12,13,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1*,2,3,4,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28,31*",250,116,1993,1793,1193
12
+ 2009,"1,2,3,4,5,6,7,8,9,10,17,18,24,25,31","1,7,8,14,15,21,22,23,28","1,7,8,9,14,15,21,22,28,29","4,5,11,12,18,19,25,26","1,2,3,8*,9,10,11,16,17,23,24,30,31","6,7,11*,12,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31","1,3*,4,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27,31*",249,116,1987,1787.8,1190.2
13
+ 2010,"1,2,3,4,5,6,7,8,9,10,16,17,23,24,30,31","6,7,13,14,20,21,22,23,27*,28","6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,24,25,30*","1,2,3,8,9,10,15,16,22,23,29,30","5,6,11*,12,13,14,19,20,26,27","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31","3*,4,5,6,7,14,20,21,27,28","4,5,11,12,18,19,25,26,31*",249,116,1987,1787.8,1190.2
14
+ 2011,"1,2,3,4,5,6,7,8,9,10,15,16,22,23,29,30","5,6,12,13,19,20,22*,23,26,27","5*,6,7,8,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,2,7,8,9,14,15,21,22,28,29","4,5,11,12,13,18,19,25,26","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29,30","3*,4,5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31",248,117,1981,1782.6,1187.4
15
+ 2012,"1,2,3,4,5,6,7,8,9,14,15,21,22,28,29","4,5,11,12,18,19,22*,23,25,26","3,4,7*,8,9,10,17,18,24,25,31","1,7,8,14,15,21,22,28*,29,30","1,6,7,8,9,12*,13,19,20,26,27","2,3,9*,10,11,12,16,17,23,24,30","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,5,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29*,30,31",249,117,1986,1786.8,1189.2
16
+ 2013,"1,2,3,4,5,6,7,8,12,13,19,20,26,27","2,3,9,10,16,17,22*,23,24","2,3,7*,8,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","1,2,3,4,5,8*,9,10,11,12,18,19,25,26","1,2,8,9,11*,12,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,4,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29,31*",247,118,1970,1772.4,1179.6
17
+ 2014,"1,2,3,4,5,6,7,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,24*","1,2,7*,8,9,10,15,16,22,23,29,30","5,6,12,13,19,20,26,27,30*","1,2,3,4,8*,9,10,11,17,18,24,25,31","1,7,8,11*,12,13,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1,2,3,4,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28",247,118,1970,1772.4,1179.6
18
+ 2015,"1,2,3,4,5,6,7,8,9,10,11,17,18,24,25,31","1,7,8,14,15,21,22,23,28","1,7,8,9,14,15,21,22,28,29","4,5,11,12,18,19,25,26,30*","1,2,3,4,8*,9,10,11,16,17,23,24,30,31","6,7,11*,12,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31","1,3*,4,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27,31*",247,118,1971,1773.4,1180.6
19
+ 2016,"1,2,3,4,5,6,7,8,9,10,16,17,23,24,30,31","6,7,13,14,20*,21,22,23,27,28","5,6,7,8,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,2,3,7,8,9,14,15,21,22,28,29","4,5,11,12,13,18,19,25,26","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29,30","3*,4,5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31",247,119,1974,1776.4,1183.6
20
+ 2017,"1,2,3,4,5,6,7,8,14,15,21,22,28,29","4,5,11,12,18,19,22*,23,24,25,26","4,5,7*,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","1,6,7,8,9,13,14,20,21,27,28","3,4,10,11,12,17,18,24,25","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29","3*,4,5,6,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31",247,118,1973,1775.4,1182.6
21
+ 2018,"1,2,3,4,5,6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,22*,23,24,25","3,4,7*,8,9,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28*,29,30","1,2,5,6,8*,9,12,13,19,20,26,27","2,3,9*,10,11,12,16,17,23,24,30","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,5,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29*,30,31",247,118,1970,1772.4,1179.6
22
+ 2019,"1,2,3,4,5,6,7,8,12,13,19,20,26,27","2,3,9,10,16,17,22*,23,24","2,3,7*,8,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28,30*","1,2,3,4,5,8*,9,10,11,12,18,19,25,26","1,2,8,9,11*,12,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,4,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29,31*",247,118,1970,1772.4,1179.6
23
+ 2020,"1,2,3,4,5,6,7,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,24+,29","1,7,8,9+,14,15,21,22,28,29","4,5,11,12,18,19,25,26,30*","1,2,3,4+,5+,8*,9,10,11+,16,17,23,24,30,31","6,7,11*,12,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31","1,3*,4,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27,31*",248,118,1979,1780.6,1185.4
24
+ 2021,"1,2,3,4,5,6,7,8,9,10,16,17,23,24,30,31","6,7,13,14,20,21,22*,23,27,28","6,7,8*,13,14,20,21,27,28","3,4,10,11,17,18,24,25,30*","1,2,3+,8,9,10+,15,16,22,23,29,30","5,6,11*,12,13,14+,19,20,26,27","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","4,5,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31","3*,4,6,7,13,14,20,21,27,28","4,5,11,12,18,19,25,26,31*",249,116,1987,1787.8,1190.2
25
+ 2022,"1,2,3,4,5,6,7,8,9,15,16,22,23,29,30","5,6,12,13,19,20,22*,23,26,27","5,6,7*,8,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,2+,7,8,9,14,15,21,22,28,29","4,5,11,12,13+,18,19,25,26","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25","1,2,8,9,15,16,22,23,29,30","3*,4,5,6,12,13,19,20,26,27","3,4,10,11,17,18,24,25,31",249,116,1989,1789.8,1192.2
26
+ 2023,"1,2,3,4,5,6,7,8,14,15,21,22,28,29","4,5,11,12,18,19,22*,23,25,26","4,5,7*,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,29,30","1,6,7,8*,9,13,14,20,21,27,28","3,4,10,11,12,17,18,24,25","1,2,8,9,15,16,22,23,29,30","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29","3*,4,5,6+,11,12,18,19,25,26","2,3,9,10,16,17,23,24,30,31",249,116,1988,1788.8,1191.6
27
+ 2024,"1,2,3,4,5,6,7,8,13,14,20,21,27,28","3,4,10,11,17,18,22*,23,24,25","2,3,7*,8,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28,30*","1,4,5,8*,9,11,12,18,19,25,26","1,2,8,9,11*,12,15,16,22,23,29,30","6,7,13,14,20,21,27,28","3,4,10,11,17,18,24,25,31","1,7,8,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,4,9,10,16,17,23,24,30","1,7,8,14,15,21,22,28,29,31*",250,116,1994,1794,1194
28
+ 2025,"1,2,3,4,5,6,7,8,11,12,18,19,25,26","1,2,8,9,15,16,22,23,24+","1,2,7*,8,9,10+,15,16,22,23,29,30","5,6,12,13,19,20,26,27,30*","1,3,4,8*,9,10,11,17,18,24,25,31","1,7,8,11*,12,14,15,21,22,28,29","5,6,12,13,19,20,26,27","2,3,9,10,16,17,23,24,30,31","6,7,13,14,20,21,27,28","4,5,11,12,18,19,25,26","1,2,3*,4,8,9,15,16,22,23,29,30","6,7,13,14,20,21,27,28,31*",249,116,1986,1786.8,1189.2
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RussianProductionCalendar
4
+ VERSION = '0.1.2020.10.26'
5
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/russian_production_calendar/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'russian_production_calendar'
7
+ spec.version = RussianProductionCalendar::VERSION
8
+ spec.authors = ['Aliaksandr Shylau']
9
+ spec.email = ['alex.shilov.by@gmail.com']
10
+
11
+ spec.summary = 'Working days calendar of Russia'
12
+ spec.description = 'Working days by Russian Ministry of Economic Development'
13
+ spec.homepage = 'https://github.com/shlima/russian_production_calendar'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
16
+
17
+ spec.metadata['changelog_uri'] = 'https://github.com/shlima/russian_production_calendar/blob/master/CHANGELOG.md'
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_development_dependency 'rake'
29
+ spec.add_development_dependency 'rspec'
30
+ spec.add_development_dependency 'pry'
31
+ spec.add_development_dependency 'rubocop'
32
+ spec.add_development_dependency 'rubocop-performance'
33
+ end
metadata ADDED
@@ -0,0 +1,135 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: russian_production_calendar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2020.10.26
5
+ platform: ruby
6
+ authors:
7
+ - Aliaksandr Shylau
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-performance
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Working days by Russian Ministry of Economic Development
84
+ email:
85
+ - alex.shilov.by@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".rubocop.yml"
93
+ - ".travis.yml"
94
+ - CHANGELOG.md
95
+ - CODE_OF_CONDUCT.md
96
+ - Gemfile
97
+ - Gemfile.lock
98
+ - LICENSE.txt
99
+ - README.md
100
+ - Rakefile
101
+ - bin/console
102
+ - bin/release.sh
103
+ - bin/setup
104
+ - doc/logo.png
105
+ - lib/russian_production_calendar.rb
106
+ - lib/russian_production_calendar/error.rb
107
+ - lib/russian_production_calendar/ext/date.rb
108
+ - lib/russian_production_calendar/holidays.csv
109
+ - lib/russian_production_calendar/version.rb
110
+ - russian_production_calendar.gemspec
111
+ homepage: https://github.com/shlima/russian_production_calendar
112
+ licenses:
113
+ - MIT
114
+ metadata:
115
+ changelog_uri: https://github.com/shlima/russian_production_calendar/blob/master/CHANGELOG.md
116
+ post_install_message:
117
+ rdoc_options: []
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 2.3.0
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ requirements: []
131
+ rubygems_version: 3.1.2
132
+ signing_key:
133
+ specification_version: 4
134
+ summary: Working days calendar of Russia
135
+ test_files: []