grosser / pru

Pipeable Ruby - forget about grep / sed / awk / wc ... use pure, readable Ruby!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

broken, when using head

mindreframer opened this issue · comments

7.96 26.31 25.69 0.00 0.62 108090 IO#read_nonblock
3.74 320.55 12.05 0.00 320.25 607065 Array#each
2.92 15.90 9.43 0.00 6.55 6339289 Hash#[]
2.01 235.54 6.49 0.00 229.33 52380 Array#map
1.85 91.87 5.95 0.00 86.72 76189 NewRelic::Agent::MethodTracer::InstanceMethods#trace_execution_scoped /Users/roman/.rvm/gems/ree-1.8.7-2010.02@dawanda/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/method_tracer.rb:106
1.78 8.67 5.74 0.00 5.40 567164 ActiveRecord::ConnectionAdapters::ConnectionHandler#retrieve_connection_pool /Users/roman/.rvm/gems/ree-1.8.7-2010.02@dawanda/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:347
1.41 58.20 4.54 0.00 54.33 162758 Hash#each
1.34 6.94 4.32 0.00 2.61 349953 ActiveRecord::ConnectionAdapters::Column#type_cast /Users/roman/.rvm/gems/ree-1.8.7-2010.02@dawanda/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/schema_definitions.rb:67
1.12 11.91 3.61 0.00 8.30 256089 ActiveRecord::AttributeMethods#read_attribute /Users/roman/.rvm/gems/ree-1.8.7-2010.02@dawanda/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:266
1.08 6.58 3.49 0.00 3.09 556370 ActiveRecord::Base#column_for_attribute /Users/roman/.rvm/gems/ree-1.8.7-2010.02@dawanda/gems/activerecord-2.3.14/lib/active_record/base.rb:2848
/Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/bin/pru:64:in write': Broken pipe (Errno::EPIPE) from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/bin/pru:64:inputs'
from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/bin/pru:64
from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/bin/pru:72:in call' from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/bin/pru:72 from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/lib/pru.rb:22:inmap'
from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/lib/pru.rb:15:in each_line' from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/lib/pru.rb:15:inmap'
from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/gems/pru-0.1.6/bin/pru:72
from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/bin/pru:19:in `load'
from /Users/roman/.rvm/gems/ree-1.8.7-2010.02/bin/pru:19

ls -l | ./bin/pru size 'map{|x|x}' | head -n 3 2>&1 works for me ...