business_time-de 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/business_time-de.gemspec +1 -1
- data/lib/business_time-de.rb +1 -1
- data/lib/business_time-de/version.rb +1 -1
- metadata +11 -11
data/README.md
CHANGED
@@ -7,7 +7,8 @@ and moving (Easter & it's friends Pfingsten and Himmelfahrt). The easter date is
|
|
7
7
|
[date_easter](https://rubygems.org/gems/date_easter) gem, Pfingsten & Himmelfahrt are calculated based on that,
|
8
8
|
so no hard-coded values here.
|
9
9
|
|
10
|
-
The holidays are defined for `(2000..
|
10
|
+
The holidays are defined for `(2000..2035)`, which should be sufficient (on Ruby 1.9 they can be defined much further up, but
|
11
|
+
Times after 2037 tend to fail with `time out of range` on Ruby 1.8.7...)
|
11
12
|
|
12
13
|
## Usage
|
13
14
|
|
data/business_time-de.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["Christoph Olszowka"]
|
9
9
|
s.email = ["christoph at olszowka de"]
|
10
10
|
s.homepage = "https://github.com/capita/business_time-de"
|
11
|
-
s.summary = %q{Pre-configures business_time gem for german holidays from 2000 until
|
11
|
+
s.summary = %q{Pre-configures business_time gem for german holidays from 2000 until 2035}
|
12
12
|
s.description = s.summary
|
13
13
|
|
14
14
|
s.rubyforge_project = "business_time-de"
|
data/lib/business_time-de.rb
CHANGED
@@ -3,7 +3,7 @@ require 'active_support/core_ext'
|
|
3
3
|
require 'business_time'
|
4
4
|
require 'date_easter'
|
5
5
|
|
6
|
-
(2000..
|
6
|
+
(2000..2035).each do |year|
|
7
7
|
easter_sunday = Date.easter(year)
|
8
8
|
BusinessTime::Config.holidays << easter_sunday # Ostersonntag
|
9
9
|
BusinessTime::Config.holidays << (easter_sunday - 2.days) # Karfreitag
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: business_time-de
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: date_easter
|
16
|
-
requirement: &
|
16
|
+
requirement: &6752980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *6752980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: business_time
|
27
|
-
requirement: &
|
27
|
+
requirement: &6752180 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *6752180
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: activesupport
|
38
|
-
requirement: &
|
38
|
+
requirement: &6751560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *6751560
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: testrocket
|
49
|
-
requirement: &
|
49
|
+
requirement: &6750940 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,9 +54,9 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *6750940
|
58
58
|
description: Pre-configures business_time gem for german holidays from 2000 until
|
59
|
-
|
59
|
+
2035
|
60
60
|
email:
|
61
61
|
- christoph at olszowka de
|
62
62
|
executables: []
|
@@ -95,5 +95,5 @@ rubyforge_project: business_time-de
|
|
95
95
|
rubygems_version: 1.8.17
|
96
96
|
signing_key:
|
97
97
|
specification_version: 3
|
98
|
-
summary: Pre-configures business_time gem for german holidays from 2000 until
|
98
|
+
summary: Pre-configures business_time gem for german holidays from 2000 until 2035
|
99
99
|
test_files: []
|