bin/pagerduty_summary.rb in pagerduty_tools-0.4.1 vs bin/pagerduty_summary.rb in pagerduty_tools-0.4.2
- old
+ new
@@ -17,17 +17,17 @@
# rotation-report.rb -- automatically generate an end-of-shift report.
#
# Gathers information about incidents and alerts during a PagerDuty
# rotation, and reports on them.
-require 'psych'
+lib = File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
+$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
+
+require 'psychout'
require 'date'
require 'json'
require 'nokogiri'
require 'optparse'
-
-lib = File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
-$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
require 'pagerduty_tools'
ONE_DAY = 60 * 60 * 24
ONE_WEEK = ONE_DAY * 7