From b61ff5a9bdc37494db2251a816b0fa501f261e5e Mon Sep 17 00:00:00 2001 From: Shuai Tseng Date: Tue, 28 Oct 2025 17:26:40 -0700 Subject: [PATCH 1/2] add get_batch_create_async_status --- lib/resources/tasks.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/resources/tasks.rb b/lib/resources/tasks.rb index 4b7239d..60677e0 100644 --- a/lib/resources/tasks.rb +++ b/lib/resources/tasks.rb @@ -29,6 +29,13 @@ def batch_create_async(config, body) Onfleet.request(config, method.to_sym, path, body.to_json) end + def get_batch_create_async_status(config, id) + method = 'get' + path = "tasks/batch/#{id}" + + Onfleet.request(config, method.to_sym, path) + end + def list(config, query_parameters_hash) method = 'get' # NOTE: parameters included here must be a hash object that is translated to URL query parameters From 81eb8d49f678309c0b86d1a8afd5eae97600c6b2 Mon Sep 17 00:00:00 2001 From: Shuai Tseng Date: Wed, 29 Oct 2025 09:05:45 -0700 Subject: [PATCH 2/2] prepare for v1.2.0 --- CHANGELOG.md | 9 +++++++-- README.es.md | 2 +- README.md | 2 +- package.json | 2 +- ruby-onfleet.gemspec | 6 +++--- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 380f059..7b8b9d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [1.2.0](https://github.com/onfleet/ruby-onfleet/releases/tag/v1.2.0) - 2024-10-29 +Added +* Added `get_batch_create_async_status` endpoint to support `get_batch_create_async` + ## [1.1.0](https://github.com/onfleet/ruby-onfleet/releases/tag/v1.1.0) - 2025-10-16 Added * New CRUD operations for Route Plans @@ -41,5 +45,6 @@ Added Added * Initial release on RubyGems -[Unreleased]: https://github.com/onfleet/ruby-onfleet/compare/v1.1.0...HEAD -[1.0.0]: https://github.com/onfleet/ruby-onfleet/releases/tag/v1.1.0 \ No newline at end of file +[Unreleased]: https://github.com/onfleet/ruby-onfleet/compare/v1.2.0...HEAD +[1.2.0]: https://github.com/onfleet/ruby-onfleet/releases/tag/v1.2.0 +[1.1.0]: https://github.com/onfleet/ruby-onfleet/releases/tag/v1.1.0 \ No newline at end of file diff --git a/README.es.md b/README.es.md index d8941f7..1642fff 100644 --- a/README.es.md +++ b/README.es.md @@ -87,7 +87,7 @@ Estas son las operaciones disponibles para cada endpoint: |[organizations](https://docs.onfleet.com/reference/organizations)|get(delegateeId=nil)|x|insert_task(orgId, body={})|x| |[recipients](https://docs.onfleet.com/reference/recipients)|get(id)
get_by_name(name)
get_by_phone(phone)|create(body={})
match_metadata(body={})|update(id, body={})|x| |[routeplans](https://docs.onfleet.com/reference/routeplan#/) | get(id)
get(body={}) | create(body={}) | update(id, body={})
add_tasks_to_routeplan(id, body={}) | delete_one(id) | -|[tasks](https://docs.onfleet.com/reference/tasks)|get(id)
list(queryParameters={})
get_by_short_id(shortId)|create(body={})
batch_create(body={})
batch_create_async(body={})
complete(id, body={})
clone(id)
auto_assign(body={})
match_metadata(body={})|update(id, body={})|delete(id)| +|[tasks](https://docs.onfleet.com/reference/tasks)|get(id)
list(queryParameters={})
get_by_short_id(shortId)
get_batch_create_async_status(id)|create(body={})
batch_create(body={})
batch_create_async(body={})
complete(id, body={})
clone(id)
auto_assign(body={})
match_metadata(body={})|update(id, body={})|delete(id)| |[teams](https://docs.onfleet.com/reference/teams)|get(id)
list()
driver_time_estimate(workerId, queryParameters={})
get_unassigned_tasks(id)|create(body={})
auto_dispatch(id, body={})|update(id, body={})
insert_task(teamId, body={})|delete(id)| |[webhooks](https://docs.onfleet.com/reference/webhooks)|list()|create(body={})|X|delete(id)| |[workers](https://docs.onfleet.com/reference/workers)|get(id=nil, queryParameters={})
get_tasks(id)
get_by_location(longitude, latitude, radius)
get_schedule(id)|create(body={})
set_schedule(id, body={})
match_metadata(body={})
get_delivery_manifest(body={}, googleApiKey, queryParameters={})|update(id, body={})
insert_task(id, body={})|delete(id)| diff --git a/README.md b/README.md index e3053bf..700f7c4 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Here are the operations available for each entity: |[organizations](https://docs.onfleet.com/reference/organizations)|get(delegateeId=nil)|x|insert_task(orgId, body={})|x| |[recipients](https://docs.onfleet.com/reference/recipients)|get(id)
get_by_name(name)
get_by_phone(phone)|create(body={})
match_metadata(body={})|update(id, body={})|x| |[routeplans](https://docs.onfleet.com/reference/routeplan#/) | get(id)
get(body={}) | create(body={}) | update(id, body={})
add_tasks_to_routeplan(id, body={}) | delete_one(id) | -|[tasks](https://docs.onfleet.com/reference/tasks)|get(id)
list(queryParameters={})
get_by_short_id(shortId)|create(body={})
batch_create(body={})
batch_create_async(body={})
complete(id, body={})
clone(id)
auto_assign(body={})
match_metadata(body={})|update(id, body={})|delete(id)| +|[tasks](https://docs.onfleet.com/reference/tasks)|get(id)
list(queryParameters={})
get_by_short_id(shortId)
get_batch_create_async_status(id)|create(body={})
batch_create(body={})
batch_create_async(body={})
complete(id, body={})
clone(id)
auto_assign(body={})
match_metadata(body={})|update(id, body={})|delete(id)| |[teams](https://docs.onfleet.com/reference/teams)|get(id)
list()
driver_time_estimate(workerId, queryParameters={})
get_unassigned_tasks(id)|create(body={})
auto_dispatch(id, body={})|update(id, body={})
insert_task(teamId, body={})|delete(id)| |[webhooks](https://docs.onfleet.com/reference/webhooks)|list()|create(body={})|X|delete(id)| |[workers](https://docs.onfleet.com/reference/workers)|get(id=nil, queryParameters={})
get_tasks(id)
get_by_location(longitude, latitude, radius)
get_schedule(id)|create(body={})
set_schedule(id, body={})
match_metadata(body={})
get_delivery_manifest(body={}, googleApiKey, queryParameters={})|update(id, body={})
insert_task(id, body={})|delete(id)| diff --git a/package.json b/package.json index cd5dbd1..dba6eab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onfleet/ruby-onfleet", - "version": "1.1.0", + "version": "1.2.0", "description": "Onfleet's Ruby API wrapper package", "main": "onfleet.rb", "scripts": { diff --git a/ruby-onfleet.gemspec b/ruby-onfleet.gemspec index ef2ba84..eb9b3de 100644 --- a/ruby-onfleet.gemspec +++ b/ruby-onfleet.gemspec @@ -1,10 +1,10 @@ Gem::Specification.new do |s| s.name = 'ruby-onfleet' - s.version = '1.1.0' - s.date = '2025-10-16' + s.version = '1.2.0' + s.date = '2025-10-29' s.summary = 'Onfleet Ruby API wrapper package' s.description = 'The Onfleet Ruby library provides convenient access to the Onfleet API.' - s.authors = ['Dan Menza'] + s.authors = ['Dan Menza', 'Shuai Tseng'] s.email = 'support@onfleet.com' s.homepage = 'https://rubygems.org/gems/ruby-onfleet' s.license = 'MIT'