Update package tracking parser version

Update of the version to > 1.0 to include carrier names
This commit is contained in:
IamTheFij 2018-02-05 17:52:39 -08:00
parent 3f877014b3
commit 271513312f
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
FROM ruby:2.5.0
# TODO: Move to Gemfile
RUN gem install tracking_number -v 1.0.3
RUN gem install sinatra -v 2.0
RUN gem install tracking_number -v 0.10.3
EXPOSE 3000

View File

@ -19,7 +19,9 @@ post '/parse' do
results.push({
:token => tracker.tracking_number,
:type => "SHIPPING",
:metadata => {}
:metadata => {
:carrier_name => tracker.courier_name,
}
})
end
JSON.dump(results)