Permalink
Browse files

Fixes second filter for policies not being included

 - Faraday removes the ';' and breaks the filter so
   we're now re-opening the module and overiding the
   regex responsible... not pretty but it works.
 - Also changed to the correct ga account

- @gtrogers
  • Loading branch information...
1 parent 2459ed4 commit c65baecc8b240fd9778c5e806e0c3aa327c5f36f @gtrogers gtrogers committed Dec 17, 2012
View
@@ -72,7 +72,7 @@ command :print do |c|
end
command :search do |c|
- c.desc "Search the collected messages for a given string"
+ c.desc "Search the collected messages for a given string or strings"
c.action do |global_options, options, args|
collector(global_options).collect_as_json.each { |m|
if args.any? { |arg| m.include?(arg) }
View
@@ -1,6 +1,13 @@
require 'yaml'
require 'open-uri'
require 'json'
+require 'faraday'
+
+module Faraday
+ module Utils
+ DEFAULT_SEP = /[&] */n
+ end
+end
Datainsight::Logging.configure()
@@ -7,7 +7,7 @@ module Config
class InsideGovWeeklyPolicyEntries < Base
include WeeklyCollector
- GOOGLE_ANALYTICS_URL_ID = "ga:53699180"
+ GOOGLE_ANALYTICS_URL_ID = "ga:53872948"
AMQP_TOPIC = "google_analytics.insidegov.policy_entries.weekly"
SITE_KEY = "insidegov"
METRIC = "ga:totalEvents"
@@ -15,7 +15,7 @@
end
it "should have ids" do
- @p["ids"].should == "ga:53699180"
+ @p["ids"].should == "ga:53872948"
end
it "should have a start date of 2012-08-05" do

0 comments on commit c65baec

Please sign in to comment.