alula-ruby 2.16.2 → 2.17.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: dea26e0658de955d650fcca8ed8666da6bdef5c204c1aeb90cc923b384eda0f5
4
+ data.tar.gz: 9dfa3d8dffe79ab003d4497c79436424c67a4c8481b14dc2159dc3896f0b9ef1
5
5
  SHA512:
6
- metadata.gz: 2d56635fc3bb86fb2e98642536293b55f1464beb6b777583fc10535d47536d043b69bc7aa2b6c49b4ec8dacc00d11b7fa3a8797efc3be353c534ca670c3a642c
7
- data.tar.gz: 117a78e58825a0a2324f3af35f70f36a5bb8e888e113db8645e8e80015ba005c26ba29629c876a1f996ded186e1052adcae97fb10fe6c5112139543d06b886ad
6
+ metadata.gz: 6d4d28ef4047aec8f8c798883c88c065e4bb276c34ae0a9b712663158f9034af5ba110f6cee7e8a051d5fb744a76a63206f97944ae0031af06128ec817a7b890
7
+ data.tar.gz: c7674576e8f34c00486476ad1dd7080d09fbed46e7546c5747804fa4bc1388fb1c6f689394356f6f9979542ed40234c17daceecae432f3d7f9af7d0d8e5cbcee
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.17.0 | 2025-07-01 | Add force logic to API resource creation |
5
6
  | v2.16.2 | 2025-06-26 | Rename DCP fields, fix primitive arrays |
6
7
  | v2.16.1 | 2025-06-24 | Remove byebug usages |
7
8
  | 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
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.17.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.17.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