Update package tracking parser version
Update of the version to > 1.0 to include carrier names
This commit is contained in:
parent
3f877014b3
commit
271513312f
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user