Displaying 19 results from an estimated 19 matches for "eigenclass".
2008 Sep 13
3
RCov / RSpec segfaults on Ubuntu
...;no go areas'' we can just avoid in our specs? I
noticed, for example, that one of our projects consistently
segfaulted on this line:
/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb:41:
[BUG] Segmentation fault
Any pointers greatly appreciated.
cheers,
Matt
[1]http://eigenclass.org/hiki/rcov+FAQ#l11
[2]http://eigenclass.org/hiki/rcov-0.8.1
----
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
-------------...
2010 Apr 20
2
Parser question + Markdown "wysiwyg"
Hi all
I've started writing an OS X Markdown "editor"[1] that semi-formats your markdown document as you write it. I just wanted to put something together, so went with a regexp-based setup for parsing -- Not ideal! I'd really like to use an existing parser, but I need to get access to the parse-tree *with* character offets, rather than just html output, as I'm adding
2012 Sep 22
4
Class, Module, Object
>> reload!
Reloading...
=> true
>> puts Class < Module
true
=> nil
>> puts Module < Class
false
=> nil
>> puts Module < Object
true
=> nil
>> puts Object < Module
false
=> nil
>> Object.parent
=> Object
The above indicates that the Class object instance inherits from the
Module object instance and the Module object instance
2007 Oct 18
6
Bug in minimal.rb
...atform independance. But
especially the simplification and ''rubyfication'' that you already
achieved and are planning for 1.9.2 (event handlers) is funstuff!
Thanks a lot!
And with Ruby 1.9/2 the keyword constructors will be even nicer with
the new hash syntax:
From http://eigenclass.org/hiki/Changes+in+Ruby+1.9#l6
New literal hash syntax [Ruby2]
{a: "foo"} # => {:a=>"foo"}
So we gain:
TreeCtrl.new(parent, :pos => [5, 25], :size => [100, 300] )
TreeCtrl.new(parent, pos: [5, 25], size: [100, 300] )
Aside from the earned prais...
2008 Sep 19
0
metric_fu for use in cc.rb
...tric_fu, but didn''t find it -- so at the
risk of being redundant, it looks really useful.
"Metric_fu is a set of rake tasks that make it easy to generate metrics
reports. It uses Saikuro <http://saikuro.rubyforge.org/>,
Flog<http://ruby.sadi.st/Flog.html>,
Rcov <http://eigenclass.org/hiki.rb?rcov>,
SubversionF<http://subversion.tigris.org/>,
and Rails <http://www.rubyonrails.org/> built-in stats task to create a
series of reports. It''s designed to integrate easily with
CruiseControl.rb<http://cruisecontrolrb.thoughtworks.com/>by placing
files i...
2006 May 24
0
[tip] Test coverage
...sts
and it will let you know where you have failed to create a test file (it
offers no opinion on how meaningful your tests are :). I really recommend
rcov as another tool if you are looking for some automated feedback about
what code is being executed by your tests.
Comments welcome!
[1] http://eigenclass.org/hiki.rb?rcov
------------
desc "Look for possibly missing tests in unit and functional directories"
task :missing_tests
models = Dir.glob("app/models/**/*.rb")
controllers = Dir.glob("app/controllers/**/*.rb")
unit_tests = Dir.glob("test/unit/**/*.rb")...
2008 Oct 11
1
Test Coverage Tool for TDD?
Hi,
I''m learning TDD without using Shoulda or RSpec. When I played with
RSpec, there was a tool to show test coverage visually.
Is there any similar function built-in to Rails Test::Unit?
Or do I need to add it on my own?
What''s the recommended tool?
I tried `rake -T test`, but didn''t find anything about coverage.
-Jon
2006 Mar 16
1
Re: rcov 0.2.0 - code coverage tool for Ruby
...wrote:
> > On Tue, Mar 14, 2006 at 09:27:14AM +0900, David Holroyd wrote:
> > > On Wed, Mar 01, 2006 at 01:31:11AM +0900, Mauricio Fernandez wrote:
> > > > Source code, additional information, screenshots... available at
> > > >
> > > > http://eigenclass.org/hiki.rb?rcov
> > >
> > > Fabulous!
> > >
> > > I would like to get coverage for my test cases too. Could this be
> > > accomodated (without tweaking @ignore_files in the source)?
> >
> > It will be possible in the next release; in the me...
2006 Jun 04
3
Absolutize URLs in a string
I wonder - do we have some helper/processor/gem to automatically
convert all URLs in a passed string to their canonical equivalent -
i.e. with the protocol, host and such prepended based on the Rails
environment. Super-duper infty for RSS feeds (I hate their
requirement for canonical URLs everywhere).
--
Julian ''Julik'' Tarkhanov
please send all personal mail to
me at
2008 Mar 17
10
RSpec and RCov with JRuby
Hi,
I am using JRuby (trunk) and wrote a bunch of specifications for my
code. Everything works fine so far.
Now I am trying to integrate RCov in my test run. I have installed
RCov without the C extensions. I tried it with a simple script and it
worked (pretty slow, but it doesn?t matter).
But when I add the rcov options to my Rake task, RCov is not invoke
properly!
Rakefile:
2012 Oct 17
2
autolog: easily debug-like logging on the fly in your Rails app
If it helps anyone developing Rails apps or gems, I wrote a shortcut for
set_trace_func, so next time you want to just add a line before and after
some function you are trying to debug you can have Ruby temporarily output
every line, method, etc. executed. Also, it lets you define the format, use
other loggers, etc. via a proc/lambda define, since you might not like the
default format.
2007 Jul 29
16
Mongrel stops responding after period of inactivity
Hi
I posted this to the Ruby on Rails Talk group but I thought I''d post it here
too as it''s probably a more appropriate group. Hope this is ok.
I''m running a 2-instance Mongrel cluster behind Apache 2.2.4 with Rails
1.2.3. If no requests are received by the application for several hours
(this usually happens overnight) then Mongrel stops
responding and no requests are
2007 Sep 02
17
A Proposal To Magically Remove ''params''
I have a magical proposal for the anti-magic web framework.
Controller methods do not use arguments and yet expect arguments. This
is handled through this params hash because we don''t know in advance
what parameters a client could pass to Merb. But in almost every
instance, it is too much to know all the query parameters - one
doesn''t care if the user threw in an extraneous
2007 May 06
28
mongrel becoming unresponsive
Hello,
I''m running mongrel behind apache via proxypass. Every now and then, a spammer
tries to proxy traffic through apache, and for some reason, apache forwards
the request to mongrel, even though it''s not a site being hosted by me.
At times this seems to cause mongrel to become unresponsive, and all requests
to the site then fail with a proxy error until mongrel is
2007 Sep 04
11
returning(...) ?
The following construct is an ActiveSupport-ism:
returning(Foo.new) do |foo|
...
end
I don''t especially like it, since it''s both more verbose and less efficient
than the direct alternative:
foo = Foo.new
...
foo
It doesn''t occur many times in Merb, so does anyone agree with me that it
should be removed?
I tried doing this (patch attached) and I find
2007 Sep 12
19
Mongrel hangs, consumes all CPU on shutdown
Hi,
I''m doing development with Mongrel 1.0.1 on Ruby 1.8.4 / OS X
10.4.10, and I''ve found that often when I shut down my server with
^C, it hangs for a while, gobbling up all CPU. Sometimes it stops
after a few seconds, sometimes it''s run for several minutes at least.
This happens across all the apps I develop on, but it seems to hang
longer after
2008 Jan 08
47
specs on private methods
How does a person test private methods?
Is there a way to declare them as private, but retain any tests that
were written during the initial development?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2008 Mar 31
16
Mongrels stop responding
I have a Rails 1.2.3 app (due for an update, I know) running on a
Mongrel 1.1.4 behind Apache 2.2.3 mod_proxy on Debian 4.0. It keeps
hanging up for no reason I can tell. I have tried everything that anyone
has ever hinted at being a solution for this problem:
- The application doesn''t use MySQL, so setting the connection timeout
won''t help.
- Using AR not PStore for sessions.
-
2010 Aug 25
18
Puppet hangs
Hello,
we have one puppet server managing approx servers, all FreeBSD.
The problem is that the puppet clients all hangs, one by one,
eventually. They will run for anything between an hour up to a week.
But eventually the all hang.
We really like puppet and want to keep using it. But the way it is now
is completely unusable. We''ve tried many versions, from 24.x, and now
2.6.1rc1. But