Because of our involvement in the Fablab community, we’re very interested in extending the functionality of Google Sketchup with the Ruby API. We like to use Sketchup for basic 2.5D snapfit design, for example like this or this. For the moment it is a research project to determine the possibilities of the Ruby API.
Here’s an introduction video of SketchUp developer Mark Limber talking about some of the possible ways to extend the software with the Ruby API.
An intern for this project is very much welcome…....
sharing web pages with friends in one click on several social networks at once!
Except we had some problems when we used the & character in our messages. It turned out that URI.encode was used for encoding and the text message was chopped off at the & character.
The solution was to use CGI::escape for encoding in ../twitter/lib/twitter/ext/stdlib.rb:
class Hash
# Returns string formatted for HTTP URL encoded name-value pairs.
def to_http_str
result = ''
return result if self.empty?
self.each do |key, val|
result << "#{key}=#{CGI::escape(val.to_s)}&"
end
result.chop
end
Now it is just a matter of submitting a patch for the gem, but although the specifications are all nicely written with RSpec, we’re not able to run the specs.
no such file to load -- ./../spec_helper (LoadError)
What are we doing wrong here….where is the spec helper?