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.
@@ -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.to_s)
8
+ dates[date.year][method].include?(date)
9
9
  end
10
10
 
11
11
  define_method("#{method}s") do |year|
@@ -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.1.0'
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.1.0
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: 2015-08-29 00:00:00.000000000 Z
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.4.5
92
+ rubygems_version: 2.2.0
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Russian workdays