Re: [PATCH] tests: switch to minitest

2014-04-26 Thread Eric Wong
Ken Dreyer ktdre...@ktdreyer.com wrote:
 Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5,
 the shim has lost some backwards compatibility. It is time to make the
 jump to minitest.
 
 Adjust the unicorn test suite to support Minitest 5's syntax.

Thank you very much for taking a look at this.  I was going to do it
myself over the summer.

I ran into some problems with our tests forking + minitest/autorun
causing some problems due to at_exit usage.

We probably need to workaround, I already did something for yahns
which we can reuse[1] in unicorn.

 Minitest versions 4 and below do not support the newer Minitest::Test
 class that arrived in version 5. For that case, use the
 MiniTest::Unit::TestCase class as a fallback.

For yahns, I did the following:
--- git://yhbt.net/yahns -- test/helper.rb --
gem 'minitest'
begin # favor minitest 5
  require 'minitest'
  Testcase = Minitest::Test
  mtobj = Minitest
rescue NameError, LoadError # but support minitest 4
  require 'minitest/unit'
  Testcase = Minitest::Unit::TestCase
  mtobj = MiniTest::Unit.new
end

# Not using minitest/autorun because that doesn't guard against redundant
# extra runs with fork.  We cannot use exit! in the tests either
# (since users/apps hosted on yahns _should_ expect exit, not exit!).
TSTART_PID = $$
at_exit do
  # skipping @@after_run stuff in minitest since we don't need it
  case $!
  when nil, SystemExit
exit(mtobj.run(ARGV)) if $$ == TSTART_PID
  end
end
 8 ---
I'd appreciate a second opinion on what I did with yahns above,
but it should work with unicorn.

Can you take a look at integrating+fixing those cases which fork?
Thanks again.

 Please keep me in the CC as I'm not subscribed to the unicorn email list.

No problem.  Also keeping unicorn-pub...@bogomips.org Cc-ed since that's
the new public-inbox[2] address and reply-all will be the norm there.
Hopefully public-inbox can encourage more drive-by contributors like
you :)


[1] - Fwiw, I give myself permission to relicense any yahns GPLv3+
  test code I wrote to (GPLv2+ || Ruby 1.8 license) for unicorn.
[2] - http://public-inbox.org/
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


Re: Re: [PATCH] tests: switch to minitest

2014-04-26 Thread Clara Anne
Eric

Where are you now. are you busy ? if u don't have any credit card to verify ur 
identity then u can create a free acc here, u dont need any cc or 
anything...just add ur email. I have profile here too but not often i use it. 
but for u i will login there today..
http://clara9024.meetupsecurely.com/ my user id : clara9024
go to my profile link and create a free acc..send a message there..i will reply 
after few minutes. 
thanks.
 
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


Re: your mail

2014-04-26 Thread Олег Владимирович
Здравствуйте коллеги.
Меня зовут Олег и я профессиональный логист со стажем работаю в Швейцарской 
компания, предлагающей полный спектр логистических услуг.
Наши преимущества:
- Наличие собственного EORI номера, что позволяет нам оформлять экспортную 
декларацию от своего имени.
- Отсутствие НДС при расчётах в Евросоюзе или России, что экономит время, силы, 
и деньги при закупках.
 - Регистрация в кантоне Цюрих, который не является оффшором и тем самым не 
попадает под пристальный контроль ЦБ.
- Оформление без КТС и индикативов.
Пишите, даже если Вам просто надо проконсультироваться.
__
http://bogomips.org/unicorn-public/ - unicorn-pub...@bogomips.org
please quote as little as necessary when replying