Add missing 2021 holidays for Singapore.

Add missing 2021 holidays for Singapore.

diff --git a/vendor/holidays/definitions/sg.yaml b/vendor/holidays/definitions/sg.yaml
index 8fcaf4b..37d706d 100644
--- a/vendor/holidays/definitions/sg.yaml
+++ b/vendor/holidays/definitions/sg.yaml
@@ -34,11 +34,33 @@ months:
   - name: Labour Day
     regions: [sg]
     mday: 1
+  - name: Hari Raya Puasa
+    regions: [sg]
+    mday: 13
+    year_ranges:
+      limited: [2021]
+  - name: Vesak Day
+    regions: [sg]
+    mday: 26
+    year_ranges:
+      limited: [2021]
+  7:
+  - name: Hari Raya Haji
+    regions: [sg]
+    mday: 20
+    year_ranges:
+      limited: [2021]
   8:
   - name: National Day
     regions: [sg]
     mday: 9
     observed: to_weekday_if_weekend(date)
+  11:
+  - name: Deepavali
+    regions: [sg]
+    mday: 4
+    year_ranges:
+      limited: [2021]
   12:
   - name: Christmas Day
     regions: [sg]
diff --git a/vendor/holidays/lib/generated_definitions/sg.rb b/vendor/holidays/lib/generated_definitions/sg.rb
index 8b9c2a2..468ddbb 100644
--- a/vendor/holidays/lib/generated_definitions/sg.rb
+++ b/vendor/holidays/lib/generated_definitions/sg.rb
@@ -16,8 +16,12 @@ module Holidays
       1 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:sg]}],
       2 => [{:mday => 14, :type => :informal, :name => "Valentine's Day", :regions => [:sg]},
             {:mday => 15, :type => :informal, :name => "Total Defence Day", :regions => [:sg]}],
-      5 => [{:mday => 1, :name => "Labour Day", :regions => [:sg]}],
+      5 => [{:mday => 1, :name => "Labour Day", :regions => [:sg]},
+            {:mday => 13, :year_ranges => { :limited => [2021] },:name => "Hari Raya Puasa", :regions => [:sg]},
+            {:mday => 26, :year_ranges => { :limited => [2021] },:name => "Vesak Day", :regions => [:sg]}],
+      7 => [{:mday => 20, :year_ranges => { :limited => [2021] },:name => "Hari Raya Haji", :regions => [:sg]}],
       8 => [{:mday => 9, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "National Day", :regions => [:sg]}],
+      11 => [{:mday => 4, :year_ranges => { :limited => [2021] },:name => "Deepavali", :regions => [:sg]}],
       12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:sg]}]
       }
     end

GitHub sha: a4e31755

1 Like

This commit appears in #138 which was approved by eviltrout. It was merged by tgxworld.