ecoportal-api 0.9.3 → 0.9.5

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: 4ce7db121eb4dc54ef8048f3817d79515619dc44bfa6064bec1b52c92c664600
4
- data.tar.gz: f5f46f5db3c2fc7c3a0469f8007dedd8b37299146f3464f098883785dd89f345
3
+ metadata.gz: e53546b5e49ce581c3c46520ca310546a4e6003ad1f1381a060866539206ddf9
4
+ data.tar.gz: be575ff10725c87ffb84091fa85d72d4117c6391d46c9299250352fff16cd7d0
5
5
  SHA512:
6
- metadata.gz: e7873496c0f8d02cc718fbd9b16d4e65d539e088820ea0dcfe6060ed0ec54b46533fcf950b1904812f0d5c87a79675d1595b64a5db0078158d9677081f1db9ab
7
- data.tar.gz: 3ecdc3d2a3e11e2f10a7885ecce9e9607057765f555becf969693fc63a0534d0ea83adeceb46bc9376d56a76fc7355cd8056ece25e442c984721a0844210b846
6
+ metadata.gz: 86210d309305158067abca647b803418ca6a6e81790fec3e56b746a8641d776d24b0329553b666ac0eb153c019f4d08439e2adaa5dd0af3a375c73cc3d67fb02
7
+ data.tar.gz: 4dd9e9f916f8a6755ba50f99cd1c35d0955d31d06cb449f3df815f805eee0ffb20c7526a978839c4b23aa977bea24c81323e9599998a4d37fb359337f79c7712
data/.gitignore CHANGED
@@ -18,3 +18,6 @@ Gemfile.lock
18
18
  # rspec failure tracking
19
19
  .rspec_status
20
20
  scratch.rb
21
+
22
+ #byebug
23
+ .byebug_history
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.5] - 2023-09-05
5
+
6
+ ### Fixed
7
+ - `Ecoportal::API::V1::Person#as_update` missing parameter on `super` call.
8
+
9
+ ## [0.9.4] - 2023-04-17
10
+
11
+ ### Changed
12
+ - Softened max version of **gem** dependencies
13
+ - Upgraded required ruby version
14
+
15
+ ### Fixed
16
+ - `Ecoportal::API::Common::BaseModel` should make a copy of `doc` on `initialize`
17
+ - This was affecting `reset!` as `doc` was being changed
18
+
4
19
  ## [0.9.3] - 2023-03-16
5
20
 
6
21
  ### Added
@@ -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.4.4'
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.2.17", "< 2.3"
26
- spec.add_development_dependency "rspec", ">= 3.10.0", "< 3.11"
27
- spec.add_development_dependency "rake", ">= 13.0.3", "< 13.1"
28
- spec.add_development_dependency "yard", ">= 0.9.26", "< 0.10"
29
- spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 3.6"
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', "< 2.8"
34
- spec.add_dependency 'elastic-apm', '>= 4.0.0', "< 4.1"
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
@@ -53,7 +53,7 @@ module Ecoportal
53
53
  @_parent = parent
54
54
  @_key = key
55
55
  if !_parent || !_key
56
- @doc = doc
56
+ @doc = JSON.parse(doc.to_json)
57
57
  @original_doc = JSON.parse(@doc.to_json)
58
58
  @initial_doc = JSON.parse(@doc.to_json)
59
59
  end
@@ -81,7 +81,7 @@ module Ecoportal
81
81
  end
82
82
 
83
83
  def as_update(ref = :last, ignore: [])
84
- super(ignore: ignore | ["subordinates"])
84
+ super(ref, ignore: ignore | ["subordinates"])
85
85
  end
86
86
 
87
87
  # Sets the PersonDetails to the person, depending on the paramter received:
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- VERSION = "0.9.3"
3
+ VERSION = "0.9.5"
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.3
4
+ version: 0.9.5
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-03-15 00:00:00.000000000 Z
11
+ date: 2023-09-05 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.2.17
19
+ version: 2.4.9
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.3'
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.2.17
29
+ version: 2.4.9
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.3'
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: '3.11'
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: '3.11'
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: '13.1'
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: '13.1'
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: '0.10'
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: '0.10'
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: '3.6'
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: '3.6'
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: '2.8'
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: '2.8'
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: '4.1'
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: '4.1'
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.4.4
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.0.3
285
- signing_key:
284
+ rubygems_version: 3.4.12
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: []