uk_working_days 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,6 +1,7 @@
1
1
  require 'date'
2
2
  require 'active_support/core_ext/date/conversions'
3
3
  require 'active_support/core_ext/time/calculations'
4
+ require 'active_support/core_ext/numeric/time'
4
5
  require File.dirname(__FILE__) + '/uk_working_days/easter'
5
6
  require File.dirname(__FILE__) + '/uk_working_days/date_extensions'
6
7
 
@@ -31,7 +31,7 @@ module UkWorkingDays
31
31
  count -= 1 if date.working_day?
32
32
  return date if count.zero?
33
33
 
34
- date += negative ? -1 : 1
34
+ date += (negative ? -1 : 1).day
35
35
  end
36
36
  end
37
37
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uk_working_days
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roland Swingler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-22 00:00:00 +00:00
18
+ date: 2011-03-17 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -57,6 +57,7 @@ extra_rdoc_files:
57
57
  - README.rdoc
58
58
  files:
59
59
  - .document
60
+ - .gitignore
60
61
  - LICENSE
61
62
  - README.rdoc
62
63
  - Rakefile
@@ -72,8 +73,8 @@ homepage: http://github.com/knaveofdiamonds/uk_working_days
72
73
  licenses: []
73
74
 
74
75
  post_install_message:
75
- rdoc_options: []
76
-
76
+ rdoc_options:
77
+ - --charset=UTF-8
77
78
  require_paths:
78
79
  - lib
79
80
  required_ruby_version: !ruby/object:Gem::Requirement