Releases: smartcar/ruby-sdk
Releases · smartcar/ruby-sdk
v3.6.0
What's Changed
- feat: Add Vehicle Management Support by @JacobAndrewSmith92 in #60
Example:
amt = 'application-management-token'
connections = Smartcar.get_connections(amt: amt, filter: {userId: 'user-id', vehicleId: 'vehicle-id'})
deleted_connections = Smartcar.delete_connections(amt: amt, filter: {userId: 'user-id'})
Full Changelog: v3.5.0...v3.6.0
v3.5.0
What's Changed
- feat(smartcar_error): retry_after by @nbry in #57
- feat(smartcar): get/set charge limit by @EvanPeterson1324 in #59
New Contributors
- @nbry made their first contribution in #57
- @EvanPeterson1324 made their first contribution in #59
Full Changelog: v3.3.1...v3.5.0
v3.3.1
What's Changed
- fix: update token requests to use
auth.smartcar.com
instead ofconnect.smartcar.com
by @JacobAndrewSmith92 in #55 - chore: bump version by @gurpreetatwal in #56
New Contributors
- @JacobAndrewSmith92 made their first contribution in #55
- @gurpreetatwal made their first contribution in #56
Full Changelog: v3.3.0...v3.3.1
v3.3.0
What's Changed
AuthClient and get_compatibility()
- The testMode [Boolean] parameter is deprecated and replaced with the mode[String] parameter instead.
- mode [String] parameter determines what mode Smartcar Connect should be launched in.
- Should be one of test, live or simulated.
Example:
client = Smartcar::AuthClient.new(mode: 'simulated')
compatibility = Smartcar.get_compatibility(vin: 'vin', scope: %w[read_odometer read_location], mode: 'simulated')
Vehicle
- Vehicle options [Hash] parameter now can use the flags field as shown below
- More information on flags can be found here
Example:
vehicle = Smartcar::Vehicle.new(
token: 'token',
id: 'vehicle_id',
options: { flags: { country: 'DE', flag: true } }
)
Full Changelog: v3.2.0...v3.3.0
v3.2.0
What's Changed
- fix: set request() method to lowercase by @naomiperez in #48
- chore: update url for Compatility API Docs by @naomiperez in #50
- Allow users to provide customized Faraday::Connection objects by @s-ashwinkumar and @kylerippey in #51
Full Changelog: v3.1.0...v3.2.0
v3.1.0
v3.0.4
v3.0.3
v3.0.2
v3.0.2 (2021-07-27)
Bug Fixes
- Compatibility V2 nested parsing fix: The response for compatibility V2 request has nested objects of capabilities which also needs to be converted to an array of OpenStructs.
- Batch with errors: When a batch request is made to an endpoint that leads to error, the erroneous item does not have headers object. This was leading to an issue while building the headers for each batch item trying to merge
nil
into a hash.
v3.0.1
v3.0.1 (2021-07-14)
Bug Fixes
- JSON parsing fix: Separate the concerns of parsing JSON and building an OpenStruct object to avoid bugs with custom JSON parsers being used. (more information)