| 2011-07-20 13:02:40 utc | _Taz_ | Hi |
| 2011-07-20 13:03:37 utc | jmettraux | _Taz_: hello |
| 2011-07-20 13:04:25 utc | _Taz_ | Is there a way to handle "being / rescue / end" block without being shot at by the Rufus tree Checker about global vars? |
| 2011-07-20 13:05:56 utc | jmettraux | ? |
| 2011-07-20 13:06:32 utc | jmettraux | begin/rescue/end has nothing to do with global variables |
| 2011-07-20 13:07:36 utc | _Taz_ | Event with a "rescue IOError => e [...]", with IOError being considered as a global var? |
| 2011-07-20 13:08:26 utc | jmettraux | what is the exact error message you are seeing ? |
| 2011-07-20 13:09:23 utc | _Taz_ | /var/lib/gems/1.8/gems/rufus-treechecker-1.0.6/lib/rufus/treechecker.rb:238:in `check': global vars are forbidden (Rufus::SecurityError) |
| 2011-07-20 13:09:25 utc | _Taz_ | from /var/lib/gems/1.8/gems/rufus-treechecker-1.0.6/lib/rufus/treechecker.rb:519:in `do_check' |
| 2011-07-20 13:09:27 utc | _Taz_ | from /var/lib/gems/1.8/gems/rufus-treechecker-1.0.6/lib/rufus/treechecker.rb:525:in `do_check' |
| 2011-07-20 13:09:29 utc | _Taz_ | [... truncated ...] |
| 2011-07-20 13:09:31 utc | _Taz_ | from /var/lib/gems/1.8/gems/ruote-2.2.1/lib/ruote/engine.rb:622:in `register_participant' |
| 2011-07-20 13:09:33 utc | _Taz_ | from ./rest.rb:334 |
| 2011-07-20 13:10:00 utc | jmettraux | excellent, thanks |
| 2011-07-20 13:10:41 utc | _Taz_ | Am I doing something wrong? |
| 2011-07-20 13:10:59 utc | jmettraux | not at all |
| 2011-07-20 13:11:35 utc | jmettraux | took the time to fill https://github.com/jmettraux/ruote/issues/30 |
| 2011-07-20 13:12:00 utc | jmettraux | ok, you have two ways out of that issue |
| 2011-07-20 13:12:30 utc | jmettraux | a) you disable the treechecker, meaning you trust any participant code |
| 2011-07-20 13:12:54 utc | jmettraux | b) you write a custom participant, meaning the code of your participant is available to all your ruote worker nodes |
| 2011-07-20 13:13:04 utc | jmettraux | about b : |
| 2011-07-20 13:13:10 utc | jmettraux | https://gist.github.com/1094925 |
| 2011-07-20 13:13:23 utc | jmettraux | http://ruote.rubyforge.org/implementing_participants.html |
| 2011-07-20 13:14:16 utc | jmettraux | about a : |
| 2011-07-20 13:14:50 utc | jmettraux | well, you have to pass the option "'use_ruby_treechecker' => false" when initializing the storage |
| 2011-07-20 13:14:53 utc | jmettraux | that's it |
| 2011-07-20 13:15:05 utc | _Taz_ | Thank you! |
| 2011-07-20 13:15:17 utc | jmettraux | you're welcome |