ecoportal-api 0.9.2 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGELOG.md +15 -0
- data/ecoportal-api.gemspec +8 -8
- data/lib/ecoportal/api/common/base_model.rb +1 -1
- data/lib/ecoportal/api/v1/schema_field_value.rb +8 -0
- data/lib/ecoportal/api/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0d5b68bbe694a7e7b3841b9b431ec316f41d7ab7a08d758351a50d6c74781ea
|
4
|
+
data.tar.gz: 5b17d1c7482111a87f720818ef10f4823404bb5bdc9533dc983e80ad78b2d43f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648bffd8c64ca253807ee50763963268d8a1d493825dfdb06d1ca4b981bac2b250d0e3a6fbbec76f30df4b2d0e9f91d5fe4a833c80c2478471040eb12bc8ffff
|
7
|
+
data.tar.gz: 022f94fd20e31525c27c39e2474aa5324540706d82f0df179465682aba6f812f84bc0d1ca4af8dce36c0e64fe669b75e4d4232c1426505ed56c67b17e7871ec1
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [0.9.4] - 2023-04-17
|
5
|
+
|
6
|
+
### Changed
|
7
|
+
- Softened max version of **gem** dependencies
|
8
|
+
- Upgraded required ruby version
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- `Ecoportal::API::Common::BaseModel` should make a copy of `doc` on `initialize`
|
12
|
+
- This was affecting `reset!` as `doc` was being changed
|
13
|
+
|
14
|
+
## [0.9.3] - 2023-03-16
|
15
|
+
|
16
|
+
### Added
|
17
|
+
- `Ecoportal::API::V1::SchemaFieldValue#clear` helper to clear the value
|
18
|
+
|
4
19
|
## [0.9.1] - 2023-03-09
|
5
20
|
|
6
21
|
### Added
|
data/ecoportal-api.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://www.ecoportal.com"
|
14
14
|
spec.licenses = %w[MIT]
|
15
15
|
|
16
|
-
spec.required_ruby_version = '>= 2.
|
16
|
+
spec.required_ruby_version = '>= 2.7.2'
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
19
|
f.match(%r{^(test|spec|features)/})
|
@@ -22,15 +22,15 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_development_dependency "bundler", ">= 2.
|
26
|
-
spec.add_development_dependency "rspec", ">= 3.10.0", "<
|
27
|
-
spec.add_development_dependency "rake", ">= 13.0.3", "<
|
28
|
-
spec.add_development_dependency "yard", ">= 0.9.26", "<
|
29
|
-
spec.add_development_dependency "redcarpet", ">= 3.5.1", "<
|
25
|
+
spec.add_development_dependency "bundler", ">= 2.4.9", "< 3"
|
26
|
+
spec.add_development_dependency "rspec", ">= 3.10.0", "< 4"
|
27
|
+
spec.add_development_dependency "rake", ">= 13.0.3", "< 14"
|
28
|
+
spec.add_development_dependency "yard", ">= 0.9.26", "< 1"
|
29
|
+
spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 4"
|
30
30
|
spec.add_development_dependency "pry" , "~> 0.14"
|
31
31
|
|
32
32
|
spec.add_dependency 'http', '~> 4.4.1', "< 5"
|
33
|
-
spec.add_dependency 'dotenv', '>= 2.7.6', "<
|
34
|
-
spec.add_dependency 'elastic-apm', '>= 4.0.0', "<
|
33
|
+
spec.add_dependency 'dotenv', '>= 2.7.6', "< 3"
|
34
|
+
spec.add_dependency 'elastic-apm', '>= 4.0.0', "< 5"
|
35
35
|
spec.add_dependency 'hash-polyfill', '~> 0'
|
36
36
|
end
|
@@ -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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tapio Saarinen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.4.9
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '3'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.4.9
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '3'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rspec
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 3.10.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '4'
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: 3.10.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '4'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rake
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: 13.0.3
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '14'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
version: 13.0.3
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
72
|
+
version: '14'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: yard
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
version: 0.9.26
|
80
80
|
- - "<"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '1'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: 0.9.26
|
90
90
|
- - "<"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
92
|
+
version: '1'
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: redcarpet
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
version: 3.5.1
|
100
100
|
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '4'
|
103
103
|
type: :development
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: 3.5.1
|
110
110
|
- - "<"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
112
|
+
version: '4'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: pry
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,7 +153,7 @@ dependencies:
|
|
153
153
|
version: 2.7.6
|
154
154
|
- - "<"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
156
|
+
version: '3'
|
157
157
|
type: :runtime
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -163,7 +163,7 @@ dependencies:
|
|
163
163
|
version: 2.7.6
|
164
164
|
- - "<"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '3'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: elastic-apm
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,7 +173,7 @@ dependencies:
|
|
173
173
|
version: 4.0.0
|
174
174
|
- - "<"
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: '
|
176
|
+
version: '5'
|
177
177
|
type: :runtime
|
178
178
|
prerelease: false
|
179
179
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -183,7 +183,7 @@ dependencies:
|
|
183
183
|
version: 4.0.0
|
184
184
|
- - "<"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
186
|
+
version: '5'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: hash-polyfill
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,7 +198,7 @@ dependencies:
|
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
|
-
description:
|
201
|
+
description:
|
202
202
|
email:
|
203
203
|
- tapio@ecoportal.co.nz
|
204
204
|
- rien@ecoportal.co.nz
|
@@ -266,7 +266,7 @@ homepage: https://www.ecoportal.com
|
|
266
266
|
licenses:
|
267
267
|
- MIT
|
268
268
|
metadata: {}
|
269
|
-
post_install_message:
|
269
|
+
post_install_message:
|
270
270
|
rdoc_options: []
|
271
271
|
require_paths:
|
272
272
|
- lib
|
@@ -274,15 +274,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
274
274
|
requirements:
|
275
275
|
- - ">="
|
276
276
|
- !ruby/object:Gem::Version
|
277
|
-
version: 2.
|
277
|
+
version: 2.7.2
|
278
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
279
|
requirements:
|
280
280
|
- - ">="
|
281
281
|
- !ruby/object:Gem::Version
|
282
282
|
version: '0'
|
283
283
|
requirements: []
|
284
|
-
rubygems_version: 3.
|
285
|
-
signing_key:
|
284
|
+
rubygems_version: 3.1.4
|
285
|
+
signing_key:
|
286
286
|
specification_version: 4
|
287
287
|
summary: A collection of helpers for interacting with the ecoPortal MS's various APIs
|
288
288
|
test_files: []
|