bricooke / tickspot-ruby

A gem that provides a ruby wrapper around the tickspot.com api
http://tickspot.com/api/
9 stars 3 forks source link

Sinatra compatibility? #1

Open chanpory opened 13 years ago

chanpory commented 13 years ago

Hey there, just tried requiring your gem in a Sinatra app file, but am getting an error.

Here's what I have at the top of my Sinatra app file, myapp.rb

require 'rubygems'
require 'sinatra'
require 'tickspot'

I get the following error when trying to run it:

no such file to load -- activesupport (LoadError)

I have all the required gems listed in your tickspot.rb file, but still getting the error. I've checked to make sure the gems are installed by putting the following at the top of myapp.rb:

require 'rubygems'
require 'active_support'
require 'active_support/inflector'
require 'rubygems'
require 'net/http'
require 'xmlsimple'
require 'sinatra'
#require 'tickspot'

myapp.rb runs if I have require 'tickspot' commented out, but when I uncomment it, I get the error.

Any suggestions? Thanks!

bricooke commented 13 years ago

I think the gem needs to be updated to not require 'activesupport', but instead 'active_support'. Could you give that a try? If so, I'd certainly welcome a pull request. I haven't been working with Tick much so haven't run in to this and haven't been keeping on top of it. If you get it fixed I'd love to pull in the fix.