Added New York Stock Exchange holidays (thank you Alan Larkin).

Fixed rakefile to force lower case definition file names.
This commit is contained in:
Alex Dunae 2008-11-19 23:00:43 +00:00
parent 206f610cc9
commit 429abc9a6c
4 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,9 @@
= Ruby Holidays Gem CHANGELOG
== 0.9.3
* Added New York Stock Exchange holidays (thank you Alan Larkin).
* Fixed rakefile to force lower case definition file names.
== 0.9.2
* Included rakefile in Gem (thank you James Herdman).

View file

@ -13,6 +13,7 @@ defs:
IT: ['it.yaml']
MX: ['mx.yaml', 'north_america_informal.yaml']
NL: ['nl.yaml']
NYSE: ['nyse.yaml']
PT: ['se.yaml']
US: ['us.yaml', 'north_america_informal.yaml']
United_Nations: ['united_nations.yaml']

View file

@ -15,6 +15,7 @@ The following definition files are included in this installation:
* holidays/mx
* holidays/nl
* holidays/north_america
* holidays/nyse
* holidays/pt
* holidays/scandinavia
* holidays/se

View file

@ -85,11 +85,11 @@ namespace :defs do
files.uniq!
module_src, test_src = parse_holiday_defs(region, files)
File.open("lib/holidays/#{region.to_s}.rb","w") do |file|
File.open("lib/holidays/#{region.downcase.to_s}.rb","w") do |file|
file.puts module_src
end
unless test_src.empty?
File.open("test/defs/test_defs_#{region.to_s}.rb","w") do |file|
File.open("test/defs/test_defs_#{region.downcase.to_s}.rb","w") do |file|
file.puts test_src
end
end