Jump to content


  • Content Count

  • Joined

  • Last visited

About nyuman

  • Rank

Recent Profile Visitors

329 profile views
  1. I got it working! Thank you so much. The bash script ended up being this: source "/Users/Trevor/.bashrc" ruby ./myscript.rb "{query}"
  2. Thank you so much for the answer. I get an error when I try to build the gem: sudo gem install sonos-0.3.4.gem Building native extensions. This could take a while... ERROR: Error installing sonos-0.3.4.gem: ERROR: Failed to build gem native extension. /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.2/ports/libxml2/2.8.0... OK Running 'configure' for libxml2 2.8.0... OK Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-apple-darwin13.0.2/ports/libxml2/2.8.0/compile.log' to see what happen
  3. I have spent almost 8 hours on this and I know it's an easy fix. I want to use this fork of the Sonos Ruby gem. The problem: I don't know how to require/include the gem, neither locally as a cloned copy or as a regular "require gem_name". The script runs fine in IRB, but when I try to run it in a workflow the sound doesn't pause. I thought it might be because my system Ruby is old, but I use Mavericks so that shouldn't be a problem. You can download the Workflow here from my Dropbox. And here's a SO question with more info, too. Any help is really appreciated. I am read
  • Create New...