SeeClickFix / open311-validator

Other
8 stars 5 forks source link

Validator throws errors #2

Open mheadd opened 12 years ago

mheadd commented 12 years ago

Not sure why this isn't working. Using ruby 1.8.7.

~mheadd$ gem install open311-validator
~ mheadd$ open311-validate -u http://311.baltimorecity.gov/open311/discovery.json
/Users/mheadd/.rvm/gems/ruby-1.8.7-p334/gems/open311-validator-0.0.1/lib/session.rb:14:in `load': no such file to load --tests/discovery.rb (LoadError)
from /Users/mheadd/.rvm/gems/ruby-1.8.7-p334/gems/open311-validator-0.0.1/lib/session.rb:14:in `run_tests'
from /Users/mheadd/.rvm/gems/ruby-1.8.7-p334/gems/open311-validator-0.0.1/bin/open311-validate:41
from /Users/mheadd/.rvm/gems/ruby-1.8.7-p334/bin/open311-validate:19:in `load'
from /Users/mheadd/.rvm/gems/ruby-1.8.7-p334/bin/open311-validate:19
tggagne commented 9 years ago

I had the same error, and it was because I needed to run the command in the open311-validate directory, where the subdirectory "tests" lives.

My latest problem is the old code doesn't work with the new ruby stuffs--or doesn't seem to.

DrozBook:open311-validator tgagne$ gem --version 2.0.14 DrozBook:open311-validator tgagne$ ruby --version ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13] DrozBook:open311-validator tgagne$ gem which rspec /Library/Ruby/Gems/2.0.0/gems/rspec-3.1.0/lib/rspec.rb

tggagne commented 9 years ago

I found the answer to that. I installed an older rspec and uninstalled the newer one.