russian_workdays 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/russian_workdays/dates.yml +1707 -1583
- data/lib/russian_workdays.rb +1 -1
- data/russian_workdays.gemspec +1 -1
- metadata +3 -3
data/lib/russian_workdays.rb
CHANGED
@@ -5,7 +5,7 @@ class RussianWorkdays
|
|
5
5
|
%w(holiday short).each do |method|
|
6
6
|
define_method("#{method}?") do |date|
|
7
7
|
raise ArgumentError.new('Argument must be Date object') unless date.is_a?(Date)
|
8
|
-
dates[date.year][method].include?(date
|
8
|
+
dates[date.year][method].include?(date)
|
9
9
|
end
|
10
10
|
|
11
11
|
define_method("#{method}s") do |year|
|
data/russian_workdays.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'russian_workdays'
|
7
|
-
spec.version = '1.
|
7
|
+
spec.version = '1.2.0'
|
8
8
|
spec.authors = ['heckfy']
|
9
9
|
spec.email = ['heckfyoz@gmail.com']
|
10
10
|
spec.summary = 'Russian workdays'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: russian_workdays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- heckfy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.2.0
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Russian workdays
|