lib/tzinfo/definitions/Etc/GMT__p__5.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Etc/GMT__p__5.rb in tzinfo-0.3.0
- old
+ new
@@ -1,12 +1,16 @@
-require 'tzinfo/timezone'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module Etc #:nodoc:
-class GMT__p__5 < Timezone #:nodoc:
-setup
-set_identifier('Etc/GMT+5')
-add_unbounded_start_period {TimezonePeriod.new(nil,nil,-18000,0,:'GMT+5')}
-end
-end
-end
+ module Definitions
+ module Etc
+ module GMT__p__5
+ include TimezoneDefinition
+
+ timezone 'Etc/GMT+5' do |tz|
+ tz.offset :o0, -18000, 0, :'GMT+5'
+
+ end
+ end
+ end
+ end
end