travishaynes / trackerific Goto Github PK
View Code? Open in Web Editor NEWPackage tracking in a gem.
License: MIT License
Package tracking in a gem.
License: MIT License
Here's the error I am getting:
Trackerific::Error: FedEx Ship Manager API has been retired. Please use an alternate FedEx solution, or go to http://www.fedex.com/us/developer/migration.html for more information.
Trackerific::Services::USPS.track("EJ958083578US")
Trackerific::Error: -2147219093The 'version' attribute is required at this location.
As was discussed in issue #6, FedEx has updated to version 9 of their API, which breaks FedEx tracking.
Hello Travis,
I was very glad to find your gem, but do you have any ideas why I might be getting this:
/Users/rahmal/.rvm/gems/ruby-1.9.3-p448@boxes/gems/trackerific-0.6.2/lib/trackerific/configuration.rb:17:in `method_missing': NoMethodError (NoMethodError)
from /Users/rahmal/Projects/Boxes/api/config/initializers/trackerific.rb:4:in `block in <top (required)>'
from /Users/rahmal/.rvm/gems/ruby-1.9.3-p448@boxes/gems/trackerific-0.6.2/lib/trackerific/configuration.rb:46:in `configure'
from /Users/rahmal/Projects/Boxes/api/config/initializers/trackerific.rb:3:in `<top (required)>'
from /Users/rahmal/.rvm/gems/ruby-1.9.3-p448@boxes/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
from /Users/rahmal/.rvm/gems/ruby-1.9.3-p448@boxes/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `block in load'
This issue seems to be that none of the services are getting registered. But I have credentials for all of them. After looking a bit deeper, it seemed that the services module was not getting loaded at all. It throws an error when I try to checking if Trackerific::Services is in the load path. Any help you could offer would be appreciated.
it requires builder 3.2.2 while rails 3 uses builder 3.0.0
Trackerific::Services.find_by_package_id("123456789012")
=> []
USPS and UPS appear to be working fine:
irb(main):006:0> Trackerific::Services.find_by_package_id("1Z12345E0291980793")
=> [Trackerific::Services::UPS]
irb(main):007:0> Trackerific::Services.find_by_package_id("EJ958083578US")
=> [Trackerific::Services::USPS]
I just signed up for their dev account and they gave me both a user_id and a password.
Looks like in the docs the gem doesn't require a pass but running Trackerific::Services.find_by_package_id(params[:tracking_number])
is returning nil
Any ideas?
** Resolved **
I tried to bump to version 0.7.5
but it looks like it's conflicting with Nokogiri and needs a version less than 1.6.0
. Is that correct? Upon further investigation, and trying to use @superjustin's version, this seems to be a main problem as well. Using Rails 4 and Ruby 2, I have to use a version of Nokogiri less than 1.6 to run Trackerific 0.7.5
This last part seemed to be a Mavericks problem. I had to do this: http://jasdeep.ca/2013/10/installing-nokogiri-fails-os-x-mavericks/ to update my command line tools for the new version of OS X, then install Nokogiri 1.5.10, then it let me install Trackerific 0.7.5
running .track(tracking_number).events
and trying to iterate fails when it can't run track due to no events yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.