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 +4 -4
- data/VERSION.md +1 -0
- data/lib/alula/api_operations/save.rb +4 -2
- 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: dea26e0658de955d650fcca8ed8666da6bdef5c204c1aeb90cc923b384eda0f5
|
4
|
+
data.tar.gz: 9dfa3d8dffe79ab003d4497c79436424c67a4c8481b14dc2159dc3896f0b9ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2025-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|