alula-ruby 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c9520f289b6a7b5175a8a32b3a1934d6f1ecae534f4054cfa043533d7dd6572
4
- data.tar.gz: 11bf384b95594822f1a8f4c93c71f294409e78e12d63bbad4f700f3060dd222e
3
+ metadata.gz: a508fa6a1f2b9e59136e9e188458c4ed4e21cb82242dddf5f05523876a391c8d
4
+ data.tar.gz: d71c8ac244ce5c84d3078aa456f70358a1b8824afd27794b6347b46ff43086e1
5
5
  SHA512:
6
- metadata.gz: 68f0c65cda2ed0d8c83e7ac321057f986e39ccadb89df5c7c58a37b1490b46ad3158b776370f87dc8cc6c8f1e68a068f88c8f44ad4d8c5a6581344472ca84021
7
- data.tar.gz: 9608f45a747a310a1f13ef6341f458ac37b6ed0ba4a5ad30e485532d7424875dd2991562f9b6402152191167fc0a8eccfc0d092b8a84cb3ece489af73d9e1581
6
+ metadata.gz: d281008db754b5774489cb19e00a8a076403ee7319a15d0a4e16991416c570b115fd0ef1b37aacc6d5b16fc65c8f7636670884245385150411d6b1551574eb58
7
+ data.tar.gz: e04bf33ee07bdc96869782224b336152caeef7ad5169823ef947e6d5d27bec5482698f3249a13cf4038972b8c9d312a3df4c9f249ebd3f8e442909ea60980c75
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | --------- | --------------------------------------------------------------------------- |
5
+ | v1.8.1 | 2024-06-25 | Update client to accept impersonator authorization to change admin user langauge preference from dealer app |
5
6
  | v1.8.0 | 2024-06-19 | Use Video API endpoints instead of core API passthrough |
6
7
  | v1.7.0 | 2024-06-13 | Add DELETE, PATCH/POST, unregister capabilities for cameras |
7
8
  | v1.6.0 | 2024-01-26 | Add user language attribute |
data/lib/alula/client.rb CHANGED
@@ -65,9 +65,10 @@ module Alula
65
65
  end
66
66
 
67
67
  def build_options(http_method, resource_path, filters = {}, opts = {})
68
+ api_key = Alula::Client.config.impersonator_api_key || Alula::Client.config.api_key
68
69
  request_opts = {
69
70
  headers: {
70
- 'Authorization': "Bearer #{Alula::Client.config.api_key}",
71
+ 'Authorization': "Bearer #{api_key}",
71
72
  'User-Agent': "#{Alula::Client.config.user_agent || 'No Agent Set'}/alula-ruby v#{Alula::VERSION}"
72
73
  }
73
74
  }.merge(opts)
@@ -1,7 +1,8 @@
1
1
  module Alula
2
2
  class ClientConfiguration
3
3
  attr_accessor :api_url, :video_api_url, :debug, :user_agent
4
- REQUEST_ATTRIBUTES = %i[api_key video_api_key customer_id internal]
4
+
5
+ REQUEST_ATTRIBUTES = %i[api_key video_api_key customer_id internal impersonator_api_key]
5
6
 
6
7
  # Using RequestStore so we're thread safe even with our non-thread-safe architecture :(
7
8
  REQUEST_ATTRIBUTES.each do |prop|
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '1.8.0'
4
+ VERSION = '1.8.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty