alula-ruby 2.16.2 → 2.18.0

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: 476f5357c56b6b27930fb4fb2ac5018af21137c09cc38727cd6da09d791c827b
4
- data.tar.gz: b5811b8a468f084e932d327989d5c470d2fcd0a49c205eaa7c1f32e044b8dfb3
3
+ metadata.gz: 7c372c2447e7da582ba137664a9755c579c8f2b1f96e7f53ce04007bfede2db2
4
+ data.tar.gz: a84ab7ec12ef07570a0225a879fcd6fa022ccfcc9c69fddc1bae6ed13587c18a
5
5
  SHA512:
6
- metadata.gz: 2d56635fc3bb86fb2e98642536293b55f1464beb6b777583fc10535d47536d043b69bc7aa2b6c49b4ec8dacc00d11b7fa3a8797efc3be353c534ca670c3a642c
7
- data.tar.gz: 117a78e58825a0a2324f3af35f70f36a5bb8e888e113db8645e8e80015ba005c26ba29629c876a1f996ded186e1052adcae97fb10fe6c5112139543d06b886ad
6
+ metadata.gz: 10f1c8c026ab843ce541b19ea74902cd24663201bc0831ea38b0cecd140e9cd4761fbf77660d7b6ddee5ce2c557a33c7939f2de3c46d6dbee46cfe2fe0da36d5
7
+ data.tar.gz: e3ac6565a2d86259a8dc8caa5e48107bdc149d9cbdee82dc044dbd29f8367f3bb03146768a175c2a4b6146a9aafb99bd5e84875cca5239a1aa00ad783f3b121e
data/VERSION.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.18.0 | 2025-07-02 | Add remote_central_station_id to Receiver model |
6
+ | v2.17.0 | 2025-07-01 | Add force logic to API resource creation |
5
7
  | v2.16.2 | 2025-06-26 | Rename DCP fields, fix primitive arrays |
6
8
  | v2.16.1 | 2025-06-24 | Remove byebug usages |
7
9
  | v2.16.0 | 2025-06-18 | Add API config template and all DCP entities |
@@ -29,9 +29,11 @@ module Alula
29
29
  save || raise(ValidationError.new(self.errors))
30
30
  end
31
31
 
32
- def create
32
+ def create(force: false)
33
+ # force is used to bypass the dirty check and send all attributes
34
+ # This is useful for creating resources that have been cloned since their fields won't be dirty
33
35
  data = {
34
- attributes: as_patchable_json
36
+ attributes: force ? as_json : as_patchable_json
35
37
  }
36
38
  #
37
39
  # Most creations _won't_ have an ID, but the Alula API utlizes a shared GUID strategy for a few resources
@@ -125,6 +125,13 @@ module Alula
125
125
  creatable_by: [:system, :station, :dealer],
126
126
  patchable_by: [:system, :station, :dealer]
127
127
 
128
+ field :remote_central_station_id,
129
+ type: :string,
130
+ sortable: false,
131
+ filterable: false,
132
+ creatable_by: [:system],
133
+ patchable_by: [:system]
134
+
128
135
  field :date_modified,
129
136
  type: :date,
130
137
  sortable: true,
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.16.2'
4
+ VERSION = '2.18.0'
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.16.2
4
+ version: 2.18.0
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-06-26 00:00:00.000000000 Z
11
+ date: 2025-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty