ecoportal-api 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ecoportal/api/v1/schema_field_value.rb +8 -0
- data/lib/ecoportal/api/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: 4ce7db121eb4dc54ef8048f3817d79515619dc44bfa6064bec1b52c92c664600
|
4
|
+
data.tar.gz: f5f46f5db3c2fc7c3a0469f8007dedd8b37299146f3464f098883785dd89f345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7873496c0f8d02cc718fbd9b16d4e65d539e088820ea0dcfe6060ed0ec54b46533fcf950b1904812f0d5c87a79675d1595b64a5db0078158d9677081f1db9ab
|
7
|
+
data.tar.gz: 3ecdc3d2a3e11e2f10a7885ecce9e9607057765f555becf969693fc63a0534d0ea83adeceb46bc9376d56a76fc7355cd8056ece25e442c984721a0844210b846
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ module Ecoportal
|
|
5
5
|
class SchemaFieldValue < Common::BaseModel
|
6
6
|
passthrough :id, :alt_id, :type, :name, :shared, :multiple
|
7
7
|
|
8
|
+
def clear
|
9
|
+
if multiple
|
10
|
+
doc["value"] = []
|
11
|
+
else
|
12
|
+
doc["value"] = nil
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
8
16
|
def value
|
9
17
|
case type
|
10
18
|
when "text", "phone_number", "number", "boolean", "select"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecoportal-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tapio Saarinen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|