Closed leswong closed 11 years ago
As you mentioned in the previous email, I might actually have the code for this laying around, and you where correct. I had forgotten to push my latest changes. I've pushed version 0.1.1, which should fix this, whithout having any tests for this I can't be completly certain. I've also pushed the 0.1.1 version to rubygems so if you update your tenHsServer gem it should work.
Let me know if it fixes your problem.
Hi Espen,
Thanks for that... I have updated to version 0.1.1 but continue to receive the same error... I noticed floor.rb is still zero bytes as well.
Here is the error that siriproxy spat-out even when using 0.1.1: [Info - Plugin Manager] Matches, executing block
/usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/ten_hs_server-0.1.1/lib/ten_hs_server/room.rb:71:in find': undefined method
floor' for nil:NilClass (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/ten_hs_server-0.1.1/lib/ten_hs_server/room.rb:13:in `query'
--Les.
From: Espen Høgbakk notifications@github.com To: espenhogbakk/tenHsServer-ruby tenHsServer-ruby@noreply.github.com Cc: leswong l2wong@yahoo.com Sent: Wednesday, December 19, 2012 11:57:04 AM Subject: Re: [tenHsServer-ruby] Undefined method 'floor' when running -- floor.rb is zero bytes. (#1)
As you mentioned in the previous email, I might actually have the code for this laying around, and you where correct. I had forgotten to push my latest changes. I've pushed version 0.1.1, which should fix this, whithout having any tests for this I can't be completly certain. I've also pushed the 0.1.1 version to rubygems so if you update your tenHsServer gem it should work. Let me know if it fixes your problem. — Reply to this email directly or view it on GitHub.
Are you sure the gem is updated, because room.rb contains data: https://github.com/espenhogbakk/tenHsServer-ruby/blob/master/lib/ten_hs_server/room.rb
What does you installed version contain in lib/ten_hs_server/version.rb?
Hi Espen,
Yes. And version.rb shows VERSION = "0.1.1" as well. I even deleted ten_hs_server gem and reinstalled. Same thing. Even in the log, it shows "ten_hs_server-0.1.1" as part of path to room.rb where the error is generated. (see below) Any other ideas?
--Les.
=== Siriproxy screen dump begin ===
[Info - Guzzoni] Received Object: SpeechRecognized
[Info - Plugin Manager] Processing 'Turn on common '
[Info - Plugin Manager] Processing plugin #SiriProxy::Plugin::Example:0x00000002075948
[Info - Plugin Manager] Processing plugin #SiriProxy::Plugin::Homeseer:0x0000000215ead0
[Info - Plugin Manager] Matches (?i-mx:turn (on|off) ([a-z])(?: in)?(?: the)? ([a-z]))
[Info - Plugin Manager] Applicable states:
[Info - Plugin Manager] Current state:
[Info - Plugin Manager] Matches, executing block
/usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/ten_hs_server-0.1.1/lib/ten_hs_server/room.rb:71:in find': undefined method
floor' for nil:NilClass (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/ten_hs_server-0.1.1/lib/ten_hs_server/room.rb:13:in query' from /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/ten_hs_server-0.1.1/lib/ten_hs_server/room.rb:17:in
devices'
from /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/bundler/gems/siriproxy-homeseer-3db6337dd746/lib/siriproxy-homeseer.rb:41:in block in <class:Homeseer>' from /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:47:in
instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:47:in `block (2 levels) in process'
zlib(finalizer): the stream was freed prematurely.
zlib(finalizer): the stream was freed prematurely.
=== Siriproxy screen dump end ===
From: Espen Høgbakk notifications@github.com To: espenhogbakk/tenHsServer-ruby tenHsServer-ruby@noreply.github.com Cc: leswong l2wong@yahoo.com Sent: Thursday, December 20, 2012 6:08:28 AM Subject: Re: [tenHsServer-ruby] Undefined method 'floor' when running -- floor.rb is zero bytes. (#1)
Are you sure the gem is updated, because room.rb contains data: https://github.com/espenhogbakk/tenHsServer-ruby/blob/master/lib/ten_hs_server/room.rb What does you installed version contain in lib/ten_hs_server/version.rb? — Reply to this email directly or view it on GitHub.
I just realized, that you are experiencing an empty "floor.rb", I for some reason thought you had problems with "room.rb", probably because I haven't started on the floor api yet. Will look into it.
Thanks for looking into it.
Cheers,
--Les.
From: Espen Høgbakk notifications@github.com To: espenhogbakk/tenHsServer-ruby tenHsServer-ruby@noreply.github.com Cc: leswong l2wong@yahoo.com Sent: Thursday, December 20, 2012 4:35:10 PM Subject: Re: [tenHsServer-ruby] Undefined method 'floor' when running -- floor.rb is zero bytes. (#1)
I just realized, that you are experiencing an empty "floor.rb", I for some reason thought you had problems with "room.rb". Will look into it. — Reply to this email directly or view it on GitHub.
This should be resolved now, update the siriproxy-homeseer plugin aswell. But I guess it does that automatically if you do siriproxy bundle update.
Resolved!! Thank you. Now on to do more testing....
Cheers,
--Les.
From: Espen Høgbakk notifications@github.com To: espenhogbakk/tenHsServer-ruby tenHsServer-ruby@noreply.github.com Cc: leswong l2wong@yahoo.com Sent: Thursday, December 20, 2012 5:26:36 PM Subject: Re: [tenHsServer-ruby] Undefined method 'floor' when running -- floor.rb is zero bytes. (#1)
This should be resolved now, update the siriproxy-homeseer plugin aswell. But I guess it does that automatically if you do siriproxy bundle update. — Reply to this email directly or view it on GitHub.
When running siriproxy, an exception is generated where it shows the 'floor' method is undefined: /usr/local/rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/ten_hs_server-0.1.0/lib/ten_hs_server/room.rb:71:in
find': undefined method
floor' for nil:NilClass (NoMethodError)I noticed that floor.rb is zero bytes.