alula-ruby 1.10.1 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 667a3ac37f68614a88b87b736788962f2809f8a13be1b8d0dfe61a7a8e008e62
4
- data.tar.gz: c65f4112d90efb762789d1b5ba9e498c3b2e5744d91c9c90f030e872f691021a
3
+ metadata.gz: 20dfb92c4f24024d650790929e1d4b4ae5e7457be5b635cc0f50dc520637af4b
4
+ data.tar.gz: 4323a2e2afa604bb6efa50383af2ca174f08a3bdce6a59ebf47d6ebe17ab29ac
5
5
  SHA512:
6
- metadata.gz: 7e2cfafbe6ac09fd661ead9deda8ca17fd0ca4efed77210870a1dd702af8818be62cec650102ede5fda370747b8f523d4ed4c0b31a97665f9bfa6a7768aa8445
7
- data.tar.gz: f7dfcd521139ca3fcc46d91a8ad96ed44ea9626ec97412d6f578b173748e8537959300be78be2d649b91045a3116e3c76f9473f3536dd54b897a67d191ca5ee9
6
+ metadata.gz: 64db8044f947e291a657583d0bc6f0fdd9a80a30904a43db39a6dc64acdcceb10a0d23aac9cc0a7461df8647374120e35cdd319e8f5526d180896c6b9382ad6c
7
+ data.tar.gz: 434dbb009f19c568438357dcd39a9b8350468488053221b89fda926908d852f164f9ab07ef57eb0217625d5ad58292fab917a2f4d7f5f9e7c18f6cb7844dcd3a
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v1.10.2 | 2024-09-25 | Add custom filters to get_info_proc |
5
6
  | v1.10.1 | 2024-09-20 | Update User model properties |
6
7
  | v1.10.0 | 2024-09-18 | Add DeviceUser and HelixUser resources |
7
8
  | v1.9.17 | 2024-09-17 | Bump HTTParty version |
@@ -20,13 +20,15 @@ module Alula
20
20
  end
21
21
  end
22
22
 
23
- def self.call(device_id:, filter_online_offline:, page_size: 20, page_number: 1)
23
+ def self.call(device_id:, filter_online_offline:, page_size: 20, page_number: 1, filter: {})
24
24
  query_params = {
25
25
  'sort' => '-date',
26
26
  'page[size]' => page_size,
27
27
  'page[number]' => page_number
28
28
  }
29
29
 
30
+ query_params.merge!(filter)
31
+
30
32
  if filter_online_offline
31
33
  query_params.merge!(
32
34
  'filter[data.online.value][$not][0]' => 0,
@@ -46,3 +48,4 @@ module Alula
46
48
  end
47
49
  end
48
50
  end
51
+
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.10.1'
4
+ VERSION = '1.10.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson