Skip to content

Releases: smartcar/ruby-sdk

v3.6.0

23 Aug 22:00
eea31ca

Choose a tag to compare

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

23 Aug 21:55
234555d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.3.1...v3.5.0

v3.3.1

08 Mar 19:00
997eeea

Choose a tag to compare

What's Changed

  • fix: update token requests to use auth.smartcar.com instead of connect.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

03 Aug 17:10
53831a5

Choose a tag to compare

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

03 May 07:21
de4acb5

Choose a tag to compare

What's Changed

Full Changelog: v3.1.0...v3.2.0

v3.1.0

28 Jan 22:40
8186455

Choose a tag to compare

v3.1.0 (2022-01-28)

Features

  • Vehicle#request: Adds new general purpose request method to the Smartcar Vehicle class. This method allows for making flexible requests to the Smartcar API (can be used to make requests to brand specific endpoints).

v3.0.4

27 Oct 21:35
39a6a6b

Choose a tag to compare

v3.0.4 (2021-10-27)

What's Changed

v3.0.3

05 Aug 16:48
7f93522

Choose a tag to compare

v3.0.3 (2021-08-05)

Bug Fixes

  • tire pressure usage in batch: Using '/tires/pressure' in batch was leading to an error while building batch response as the corresponding method name is 'tire_pressure'. Added a guard clause to fix it.

v3.0.2

27 Jul 22:18
d8e0532

Choose a tag to compare

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

14 Jul 22:48
c61e801

Choose a tag to compare

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)