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 +4 -4
- data/VERSION.md +1 -0
- data/lib/alula/client.rb +2 -1
- data/lib/alula/client_configuration.rb +2 -1
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a508fa6a1f2b9e59136e9e188458c4ed4e21cb82242dddf5f05523876a391c8d
|
|
4
|
+
data.tar.gz: d71c8ac244ce5c84d3078aa456f70358a1b8824afd27794b6347b46ff43086e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 #{
|
|
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
|
-
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2024-06-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|