lib/tzinfo/data/tzdataparser.rb in tzinfo-data-1.2013.6 vs lib/tzinfo/data/tzdataparser.rb in tzinfo-data-1.2013.7
- old
+ new
@@ -18,10 +18,11 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#++
+
require 'date'
require 'fileutils'
module TZInfo
module Data
@@ -171,10 +172,10 @@
# Reads the tzdata source and generates the classes. Progress information
# is written to standard out.
def execute
files = Dir.entries(@input_dir).select do |file|
file =~ /\A[^\.]+\z/ &&
- !%w(README Makefile).include?(file) &&
+ !%w(leapseconds leapseconds.awk leap-seconds.list Makefile README SOURCE).include?(file) &&
File.file?(File.join(@input_dir, file))
end
files.each {|file| load_rules(file) }
files.each {|file| load_zones(file) }