alula-ruby 2.7.0 → 2.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: 41fa026d04be1c00a48b82beacd3d38f4e20ed611960477c8f86741d068f4d6e
4
- data.tar.gz: 64f2dd9e84eb4b0afe9ce4a6e9eeae2e9f236999437d9f8a5bd120eab7ffecc3
3
+ metadata.gz: c2c14c739ee4ac13378ec59803f5430b56e4f04a40a7c74de64979dc068cd338
4
+ data.tar.gz: 3cbcb6c3dcf499aeb9d6733d24a00fc7850ef97380ca3d57f0932257edaf059d
5
5
  SHA512:
6
- metadata.gz: 70be4d9af3d5720c063710e0c76499d3aeff541a8ec5a1739f65b913cd57b3a3339cb5ec038650ecb144e77e36938cc889c7564d204ba2ec12039a867c6aa2ef
7
- data.tar.gz: 637c4322fae7e3734f5ff382413aed172591c80841b3f4236d9c1b98cc72e6ab0c505517b870ccf2bf04b5209990b4645d03072bbce26f61c9ec162cb142e3d3
6
+ metadata.gz: 8f8bc33907fc1ef0c7f7f0253fb499ebc7cb2bd74f009f71c841237acc212d8a1c5d887c9e2c1bf3b1a98466faa83f97d0e3d31c1d162017a45d4720c74979d3
7
+ data.tar.gz: ab6a3c196070fcc7095e51f66078fe7027e238cef8dc95cf4c91a4b21675d64b82c0c655c14c15f5159a6f7e15bcfd076e0192156c234166d83551c44616fe20
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.8.1 | 2025-02-19 | Mark Device ID as filterable/sortable |
6
+ | v2.8.0 | 2025-02-12 | Add ONVIF Features Selected for device. Add supports_onvif? method |
5
7
  | v2.7.0 | 2025-02-05 | Add DCP client |
6
8
  | v2.6.3 | 2025-01-30 | Add alula_controllable_sim field to device |
7
9
  | v2.6.2 | 2025-01-30 | Fix Core API Docker container setup |
@@ -102,6 +102,11 @@ module Alula
102
102
  def xip_family?
103
103
  self.class::XIP_FAMILY_PROGRAM_IDS.include?(program_id)
104
104
  end
105
+
106
+ def supports_onvif?
107
+ # C+Pro-SC, BAT-Mini, BAT-Mini AV
108
+ [42, 39, 43].include?(program_id)
109
+ end
105
110
  end
106
111
  end
107
112
  end
@@ -24,7 +24,7 @@ module Alula
24
24
  field :video_verification, type: :boolean
25
25
  field :sms_notification, type: :boolean
26
26
  field :panel_downloading, type: :boolean
27
- # field :onvif_video_hub, type: :boolean # Set by the M2M portal, we don't want it for now
27
+ field :onvif_video_hub, type: :boolean
28
28
  end
29
29
 
30
30
  resource_path 'devices'
@@ -49,8 +49,8 @@ module Alula
49
49
  # on how params are parsed,
50
50
  field :id,
51
51
  type: :string,
52
- sortable: false,
53
- filterable: false,
52
+ sortable: true,
53
+ filterable: true,
54
54
  creatable_by: [],
55
55
  patchable_by: []
56
56
 
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '2.7.0'
4
+ VERSION = '2.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: 2.7.0
4
+ version: 2.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: 2025-02-07 00:00:00.000000000 Z
11
+ date: 2025-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty