ecoportal-api-v2 0.8.6 → 0.8.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 484fc9b5ba81835c60c8577578726c548dea573b997f028ac2dcc4b5d2a55c77
4
- data.tar.gz: 02d65b9252633b691ee87076566a429f3763e47dcbba28d04ce439dfbfa78609
3
+ metadata.gz: a332d0750443bc0d8be5b549032b9f62c493cbff07905dc353f0949248c5120a
4
+ data.tar.gz: d89435fd4cebfef7662148f5fc335cc792353666c80e1f5ab07c6dc0a8f73744
5
5
  SHA512:
6
- metadata.gz: 258ba907986e16b304f69ca903a7aba2b3daf3ea8d44b1af819e08bd63dfbce5ee2d904cc94bab14f84ecaa0f9d980f498378b53f8bbc35a237e62621f3ea7fd
7
- data.tar.gz: 7340b168c888be83c2c2798614b55bb7893bc1fb3819914f99e207805ef4b709f5f34a0b743e31f0345ce2f0d59ebdf3d3154c6a5e6c30b12e8910b2403486e5
6
+ metadata.gz: 611c6b781a09105bb22a24b85e3b9046513505691bef6256774837fa14a7e1c9ca6061795fe35068b5c5340e82f07d2281682ad2d05b06673495285fabcf1dfb
7
+ data.tar.gz: 3b9f347aac2994262df8dd864b564010a37ec01a5d7ed2da4ecdc69bb49fff2ff85d8f858cb1761baa770e352131f9ee444fcacd765888ef7b3a338902b567e6
data/CHANGELOG.md CHANGED
@@ -1,34 +1,33 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.8.6] - 2021-02-xx
4
+ ## [0.8.7] - 2021-05-xx
5
5
 
6
6
  ### Added
7
- - `Ecoportal::API::V2::Page::Component::SelectionField` added methods `#numeric!` `#text!`
8
-
9
7
  ### Changed
8
+ - Upgrade `ecoportal-api` gem
9
+
10
10
  ### Fixed
11
+ - Requiring `api/common` from 2 different ends
12
+
13
+ ## [0.8.6] - 2021-02-23
11
14
 
15
+ ### Added
16
+ - `Ecoportal::API::V2::Page::Component::SelectionField` added methods `#numeric!` `#text!`
12
17
 
13
18
  ## [0.8.5] - 2021-02-22
14
19
 
15
- ### Added
16
20
  ### Changed
17
21
  - upgrade
18
- ### Fixed
19
22
 
20
23
 
21
24
  ## [0.8.4] - 2021-02-22
22
25
 
23
- ### Added
24
26
  ### Changed
25
27
  - roll back `ecoportal-api` dependency
26
28
 
27
- ### Fixed
28
-
29
29
  ## [0.8.3] - 2021-02-22
30
30
 
31
- ### Added
32
31
  ### Changed
33
32
  - updated `rspec` for expected patch data on `delete` operation.
34
33
 
@@ -37,23 +36,16 @@ All notable changes to this project will be documented in this file.
37
36
 
38
37
  ## [0.8.2] - 2021-02-21
39
38
 
40
- ### Added
41
39
  ### Changed
42
40
  - some necessary changes for the new gem to be active
43
41
 
44
- ### Fixed
45
-
46
42
  ## [0.8.1] - 2021-02-21
47
43
 
48
- ### Added
49
44
  ### Changed
50
45
  - renamed parameters (backwards incompatible change):
51
46
  - `Ecoportal::API::V2::Pages::Stages` methods `#get` and `#update`
52
47
  - updated `Ecoportal::API::V2::Pages#` accordingly
53
48
 
54
- ### Fixed
55
-
56
-
57
49
  ## MOVED TO GEM `ecoportal-api-v2` ##
58
50
 
59
51
  ## [0.7.5] - 2021-02-21
@@ -147,42 +139,29 @@ All notable changes to this project will be documented in this file.
147
139
  - automatic key builder
148
140
  - helper: `Ecoportal::API::V2::v2key` method
149
141
  - `user_key:` and `org_key:` as constructor methods for `Ecoportal::API::V2`
150
- ### Changed
151
- ### Fixed
152
142
 
153
143
  ## [0.7.1] - 2020-10-07
154
144
 
155
- ### Added
156
145
  ### Changed
157
146
  - updated dependencies
158
- ### Fixed
159
-
160
147
 
161
148
  ## [0.7.0] - 2020-09-10
162
149
 
163
- ### Added
164
150
  ### Changed
165
151
  - updated dependencies
166
- ### Fixed
167
152
 
168
153
  ## [0.6.1] - 2020-07-11
169
154
 
170
155
  ### Added
171
156
  - `Ecoportal::API::Common::Content::DoubleModel#pretty_print`
172
- ### Changed
173
- ### Fixed
174
157
 
175
158
  ## [0.6.0] - 2020-07-11
176
159
 
177
- ### Added
178
160
  ### Changed
179
161
  - upgraded `ecoportal-api` gem
180
- ### Fixed
181
162
 
182
163
  ## [0.5.9] - 2020-07-02
183
164
 
184
165
  ### Added
185
166
  - helper `Ecoportal::API::Common::Content::StringDigest#indexable_label`: to see the part of a label that gets indexed
186
167
  - this `CHANGELOG.md` file
187
- ### Changed
188
- ### Fixed
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "ecoportal/api"
4
+ require "ecoportal/api-v2"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -1,11 +1,11 @@
1
1
 
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "ecoportal/api/v2/version"
4
+ require "ecoportal/api/v2_version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ecoportal-api-v2"
8
- spec.version = Ecoportal::API::V2::GEM_VERSION
8
+ spec.version = Ecoportal::API::GEM2_VERSION
9
9
  spec.authors = ["Oscar Segura"]
10
10
  spec.email = ["rien@ecoportal.co.nz", "oscar@ecoportal.co.nz", "bozydar@ecoportal.co.nz"]
11
11
 
@@ -22,12 +22,12 @@ 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.11", "< 2.3"
25
+ spec.add_development_dependency "bundler", ">= 2.2.17", "< 2.3"
26
26
  spec.add_development_dependency "rspec", ">= 3.10.0", "< 3.11"
27
27
  spec.add_development_dependency "rake", ">= 13.0.3", "< 13.1"
28
28
  spec.add_development_dependency "yard", ">= 0.9.26", "< 0.10"
29
29
  spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 3.6"
30
- spec.add_development_dependency "pry" , "~> 0.14"
30
+ spec.add_development_dependency "pry" , ">= 0.14"
31
31
 
32
- spec.add_dependency 'ecoportal-api', '>= 0.8.1', '< 0.9'
32
+ spec.add_dependency 'ecoportal-api', '>= 0.8.3', '< 0.9'
33
33
  end
@@ -1,10 +1,10 @@
1
1
  require "ecoportal/api"
2
- require "ecoportal/api/v2/version"
2
+ require "ecoportal/api/v2_version"
3
3
 
4
4
  module Ecoportal
5
5
  module API
6
6
  end
7
7
  end
8
8
 
9
- require_relative "api/common"
9
+ require_relative "api/common.v2"
10
10
  require_relative "api/v2"
@@ -0,0 +1,8 @@
1
+ module Ecoportal
2
+ module API
3
+ module Common
4
+ end
5
+ end
6
+ end
7
+
8
+ require 'ecoportal/api/common/content'
@@ -151,7 +151,7 @@ module Ecoportal
151
151
  else
152
152
  raise "You should either specify the 'klass' of the elements or the 'enum_class'"
153
153
  end
154
- embed(method, key: key, multiple: true, klass: eclass)
154
+ embed(method, key: key, multiple: true, klass: eclass)
155
155
  end
156
156
 
157
157
  private
@@ -258,10 +258,10 @@ module Ecoportal
258
258
 
259
259
  def reset!(key = nil)
260
260
  if key
261
- keys = [].push(key).compact
261
+ keys = [key].flatten.compact
262
262
  odoc = original_doc.dig(*keys)
263
- dig_set(doc, key, odoc && JSON.parse(odoc.to_json))
264
-
263
+ odoc = odoc && JSON.parse(odoc.to_json)
264
+ dig_set(doc, keys, odoc)
265
265
  else
266
266
  replace_doc(JSON.parse(original_doc.to_json))
267
267
  end
@@ -13,8 +13,8 @@ module Ecoportal
13
13
  passthrough :attached_people_permissions_enabled, :apply_attached_people_permissions_to
14
14
  passthrough :attached_people_permissions_editable, :attached_people_permissions_flags
15
15
 
16
- def add(id)
17
- people_ids << id
16
+ def add(*ids)
17
+ people_ids << ids
18
18
  end
19
19
 
20
20
  end
@@ -0,0 +1,5 @@
1
+ module Ecoportal
2
+ module API
3
+ GEM2_VERSION = "0.8.7"
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-23 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.11
19
+ version: 2.2.17
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2.3'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.2.11
29
+ version: 2.2.17
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.3'
@@ -114,14 +114,14 @@ dependencies:
114
114
  name: pry
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - "~>"
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0.14'
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - "~>"
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0.14'
127
127
  - !ruby/object:Gem::Dependency
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
- version: 0.8.1
133
+ version: 0.8.3
134
134
  - - "<"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0.9'
@@ -140,7 +140,7 @@ dependencies:
140
140
  requirements:
141
141
  - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: 0.8.1
143
+ version: 0.8.3
144
144
  - - "<"
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0.9'
@@ -167,7 +167,7 @@ files:
167
167
  - bin/setup
168
168
  - ecoportal-api-v2.gemspec
169
169
  - lib/ecoportal/api-v2.rb
170
- - lib/ecoportal/api/common.rb
170
+ - lib/ecoportal/api/common.v2.rb
171
171
  - lib/ecoportal/api/common/content.rb
172
172
  - lib/ecoportal/api/common/content/array_model.rb
173
173
  - lib/ecoportal/api/common/content/class_helpers.rb
@@ -227,7 +227,7 @@ files:
227
227
  - lib/ecoportal/api/v2/registers/stage_result.rb
228
228
  - lib/ecoportal/api/v2/registers/stages_result.rb
229
229
  - lib/ecoportal/api/v2/registers/template.rb
230
- - lib/ecoportal/api/v2/version.rb
230
+ - lib/ecoportal/api/v2_version.rb
231
231
  homepage: https://www.ecoportal.com
232
232
  licenses:
233
233
  - MIT
@@ -1,18 +0,0 @@
1
- module Ecoportal
2
- module API
3
- module Common
4
- end
5
- end
6
- end
7
-
8
- require 'ecoportal/api/common/base_class'
9
- require 'ecoportal/api/common/hash_diff'
10
- require 'ecoportal/api/common/base_model'
11
- require 'ecoportal/api/common/doc_helpers'
12
- require 'ecoportal/api/common/logging'
13
- require 'ecoportal/api/common/client'
14
- require 'ecoportal/api/common/response'
15
- require 'ecoportal/api/common/wrapped_response'
16
- require 'ecoportal/api/common/batch_response'
17
- require 'ecoportal/api/common/batch_operation'
18
- require 'ecoportal/api/common/content'
@@ -1,7 +0,0 @@
1
- module Ecoportal
2
- module API
3
- class V2
4
- GEM_VERSION = "0.8.6"
5
- end
6
- end
7
- end