kputnam / piggly

PL/pgSQL stored procedure code coverage tool
Other
69 stars 14 forks source link

Unable to trace individual procedure #10

Closed lcoldiron closed 13 years ago

lcoldiron commented 13 years ago

Missing require 'set' in the else clause below.

in /piggly/lib/piggly/command/base.rb:69

@return [Enumerable]

def filter(config, index) if config.filters.empty? index.procedures else require 'set' # Add this require statement config.filters.inject(Set.new){|s, f| s | index.procedures.select(&f) } end end

kputnam commented 13 years ago

Seems that some versions of Ruby have this already loaded, others don't. Glad you caught this. Please put this change in lib/piggly.rb instead, submit a pull request and I'll close the issue. Thanks!