I've got version Ruby 1.8.5. I wouldn't have guessed that my version didn't support the String::start_with method either but when I replace it with $cmd.match(/^s-/) it works.
-----Original Message----- From: Andy Seaborne [mailto:[email protected]] On Behalf Of Andy Seaborne Sent: Thursday, December 06, 2012 11:03 AM To: [email protected] Subject: Re: Questions about Fuseki configuration with SDB and updating On 06/12/12 15:10, John Fereira wrote: > It starts up fine without any errors but when I run any query I get the > following error: > > ../s-query:113: undefined method `start_with?' for "s-query":String > (NoMethodError) I have Ruby 1.8.7 and it has String::start_with? -- it hadn't occurred to me it was new in some way. Which version are you running? It could be replaced by $cmd.match(/^s-/) as it's not a performance critical. Your are right - it's so you can invoke the commands as: soh put .... as well as s-put ... (my Ruby foo runs out at this point!) Andy
