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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae15013d2a4c6eea267fd4226fe108fa1773943ceae84e5698a0df78e090e79a
4
- data.tar.gz: c2b35a38213ad5555f47fbd5f60aeba2e2b4ebd1f7e9120960ed595ace2f204f
3
+ metadata.gz: 4ce7db121eb4dc54ef8048f3817d79515619dc44bfa6064bec1b52c92c664600
4
+ data.tar.gz: f5f46f5db3c2fc7c3a0469f8007dedd8b37299146f3464f098883785dd89f345
5
5
  SHA512:
6
- metadata.gz: 76355a8b8964857fc576e71d78ad03a833ef7f75833fc77d6fc4754d98e9f5ae64f58b57b9e6bdd9b18d852321b0a7a78953c83848b1a5f3d7eae2bea7076faa
7
- data.tar.gz: 41a1bc687434dd61c03a85dd2cd5b7b1d7864523c0b5e59bd6522db2196a3daf2cfccbd96c89b2a38475c1e381162cae5d4433695b207759a6667bb33116949f
6
+ metadata.gz: e7873496c0f8d02cc718fbd9b16d4e65d539e088820ea0dcfe6060ed0ec54b46533fcf950b1904812f0d5c87a79675d1595b64a5db0078158d9677081f1db9ab
7
+ data.tar.gz: 3ecdc3d2a3e11e2f10a7885ecce9e9607057765f555becf969693fc63a0534d0ea83adeceb46bc9376d56a76fc7355cd8056ece25e442c984721a0844210b846
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.9.3] - 2023-03-16
5
+
6
+ ### Added
7
+ - `Ecoportal::API::V1::SchemaFieldValue#clear` helper to clear the value
8
+
4
9
  ## [0.9.1] - 2023-03-09
5
10
 
6
11
  ### Added
@@ -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"
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- VERSION = "0.9.2"
3
+ VERSION = "0.9.3"
4
4
  end
5
5
  end
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.2
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-10 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler