cantino/huginn — pull request #162 by chunlea (2014-02-06 13:46:17+00:00)
Title: Update to Rails 4.0.2 without Strong Parameters

I heard your project from odesk.com. I try my best to upgrade it to Rails 4. Now it works with Rails 4.0.2 without Strong Parameters. I use protected_attributes gem for mass-assignment protection. But now it has 5 failures in rspec. Sorrry I can't fix it.
```
Failures:

1) Agents::PublicTransportAgent#check should not create events twice
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/chunlea/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rr-1.1.2/lib/rr/method_dispatches/method_dispatch.rb:8

2) Agents::PublicTransportAgent#check should add 4 items to memory
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/chunlea/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rr-1.1.2/lib/rr/method_dispatches/method_dispatch.rb:8

3) Agents::PublicTransportAgent#check should reset memory after 2 hours
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/chunlea/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rr-1.1.2/lib/rr/method_dispatches/method_dispatch.rb:8

4) Agents::PublicTransportAgent#check should create 4 events
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/chunlea/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rr-1.1.2/lib/rr/method_dispatches/method_dispatch.rb:8

5) Agents::TwitterUserAgent#check should check for changes
Failure/Error: lambda { @checker.check }.should change { Event.count }.by(5)
NoMethodError:
undefined method `open_timeout=' for #
# ./app/models/agents/twitter_user_agent.rb:72:in `check'
# ./spec/models/agents/twitter_user_agent_spec.rb:24:in `block (4 levels) in '
# ./spec/models/agents/twitter_user_agent_spec.rb:24:in `block (3 levels) in '
```

BTW, I use ruby 2.1.0 with rbenv.