ecoportal-api-v2 0.8.4

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.
Files changed (77) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +55 -0
  5. data/.travis.yml +5 -0
  6. data/.yardopts +10 -0
  7. data/CHANGELOG.md +171 -0
  8. data/Gemfile +6 -0
  9. data/LICENSE +21 -0
  10. data/README.md +22 -0
  11. data/Rakefile +27 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/ecoportal-api-v2.gemspec +34 -0
  15. data/lib/ecoportal/api-v2.rb +10 -0
  16. data/lib/ecoportal/api/common.rb +18 -0
  17. data/lib/ecoportal/api/common/content.rb +18 -0
  18. data/lib/ecoportal/api/common/content/array_model.rb +286 -0
  19. data/lib/ecoportal/api/common/content/class_helpers.rb +146 -0
  20. data/lib/ecoportal/api/common/content/client.rb +40 -0
  21. data/lib/ecoportal/api/common/content/collection_model.rb +279 -0
  22. data/lib/ecoportal/api/common/content/doc_helpers.rb +67 -0
  23. data/lib/ecoportal/api/common/content/double_model.rb +356 -0
  24. data/lib/ecoportal/api/common/content/hash_diff_patch.rb +183 -0
  25. data/lib/ecoportal/api/common/content/string_digest.rb +27 -0
  26. data/lib/ecoportal/api/common/content/wrapped_response.rb +42 -0
  27. data/lib/ecoportal/api/v2.rb +82 -0
  28. data/lib/ecoportal/api/v2/page.rb +42 -0
  29. data/lib/ecoportal/api/v2/page/component.rb +133 -0
  30. data/lib/ecoportal/api/v2/page/component/action.rb +28 -0
  31. data/lib/ecoportal/api/v2/page/component/action_field.rb +54 -0
  32. data/lib/ecoportal/api/v2/page/component/chart_field.rb +54 -0
  33. data/lib/ecoportal/api/v2/page/component/chart_field/frequency.rb +29 -0
  34. data/lib/ecoportal/api/v2/page/component/chart_field/heatmap.rb +27 -0
  35. data/lib/ecoportal/api/v2/page/component/chart_field/indicator.rb +26 -0
  36. data/lib/ecoportal/api/v2/page/component/chart_field/multiseries.rb +31 -0
  37. data/lib/ecoportal/api/v2/page/component/chart_field/sankey.rb +27 -0
  38. data/lib/ecoportal/api/v2/page/component/chart_field/serie.rb +26 -0
  39. data/lib/ecoportal/api/v2/page/component/chart_field/series_config.rb +23 -0
  40. data/lib/ecoportal/api/v2/page/component/chart_fr_field.rb +32 -0
  41. data/lib/ecoportal/api/v2/page/component/checklist_field.rb +49 -0
  42. data/lib/ecoportal/api/v2/page/component/checklist_item.rb +25 -0
  43. data/lib/ecoportal/api/v2/page/component/date_field.rb +34 -0
  44. data/lib/ecoportal/api/v2/page/component/file.rb +16 -0
  45. data/lib/ecoportal/api/v2/page/component/files_field.rb +13 -0
  46. data/lib/ecoportal/api/v2/page/component/gauge_field.rb +36 -0
  47. data/lib/ecoportal/api/v2/page/component/gauge_stop.rb +88 -0
  48. data/lib/ecoportal/api/v2/page/component/geo_field.rb +13 -0
  49. data/lib/ecoportal/api/v2/page/component/image.rb +16 -0
  50. data/lib/ecoportal/api/v2/page/component/images_field.rb +23 -0
  51. data/lib/ecoportal/api/v2/page/component/law_field.rb +12 -0
  52. data/lib/ecoportal/api/v2/page/component/number_field.rb +12 -0
  53. data/lib/ecoportal/api/v2/page/component/people_field.rb +25 -0
  54. data/lib/ecoportal/api/v2/page/component/plain_text_field.rb +15 -0
  55. data/lib/ecoportal/api/v2/page/component/reference_field.rb +16 -0
  56. data/lib/ecoportal/api/v2/page/component/rich_text_field.rb +13 -0
  57. data/lib/ecoportal/api/v2/page/component/selection_field.rb +78 -0
  58. data/lib/ecoportal/api/v2/page/component/selection_option.rb +25 -0
  59. data/lib/ecoportal/api/v2/page/component/signature_field.rb +25 -0
  60. data/lib/ecoportal/api/v2/page/component/tag_field.rb +14 -0
  61. data/lib/ecoportal/api/v2/page/components.rb +42 -0
  62. data/lib/ecoportal/api/v2/page/section.rb +59 -0
  63. data/lib/ecoportal/api/v2/page/sections.rb +47 -0
  64. data/lib/ecoportal/api/v2/page/stage.rb +29 -0
  65. data/lib/ecoportal/api/v2/page/stages.rb +26 -0
  66. data/lib/ecoportal/api/v2/pages.rb +92 -0
  67. data/lib/ecoportal/api/v2/pages/page_stage.rb +16 -0
  68. data/lib/ecoportal/api/v2/pages/stages.rb +55 -0
  69. data/lib/ecoportal/api/v2/people.rb +31 -0
  70. data/lib/ecoportal/api/v2/registers.rb +89 -0
  71. data/lib/ecoportal/api/v2/registers/page_result.rb +21 -0
  72. data/lib/ecoportal/api/v2/registers/register.rb +37 -0
  73. data/lib/ecoportal/api/v2/registers/stage_result.rb +14 -0
  74. data/lib/ecoportal/api/v2/registers/stages_result.rb +13 -0
  75. data/lib/ecoportal/api/v2/registers/template.rb +12 -0
  76. data/lib/ecoportal/api/v2/version.rb +7 -0
  77. metadata +254 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 63d37cfa2d9b609207eb06ce65d9b2c5184296ce33b4fab2b9a38ca91fa94a90
4
+ data.tar.gz: 8e5db3051d415f7e70a27a5f4c93bf87c03febb6660c7da7a323e84dfb539b83
5
+ SHA512:
6
+ metadata.gz: de42e53ed858e09838f63e8dad3735b276bcea93d076530f7b899779d36293568c26f1e1ce7e236d5d182f7c548ac887d209161bd8ee959bebd652b5519c16a0
7
+ data.tar.gz: 8991b881e1cbeec44def7408184c8cd6e8170d2bbaaa8ef0f1483497338b80461f14a7a34b281186a976f7116579def4a70ebf7a2b4bedf5fdde95765bd7c5b2
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ # it's a gem, ignore the lockfile
2
+ Gemfile.lock
3
+
4
+ # build artifacts
5
+ *.gem
6
+ /.bundle/
7
+ /vendor/bundle
8
+ /spec/reports/
9
+ /tmp/
10
+ /pkg/
11
+
12
+ # docs
13
+ /.yardoc
14
+ /_yardoc/
15
+ /coverage/
16
+ /doc/
17
+
18
+ # rspec failure tracking
19
+ .rspec_status
20
+ scratch.rb
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,55 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5.1
3
+ Exclude:
4
+ - 'config/routes.rb'
5
+
6
+ Metrics/LineLength:
7
+ Enabled: false
8
+ Metrics/BlockLength:
9
+ ExcludedMethods: [context, describe]
10
+ Max: 50
11
+ Metrics/MethodLength:
12
+ Max: 50
13
+ Metrics/ClassLength:
14
+ Max: 200
15
+ Metrics/AbcSize:
16
+ Max: 30
17
+
18
+ ParameterLists:
19
+ Max: 5
20
+ CountKeywordArgs: false
21
+
22
+ Style/StringLiterals:
23
+ Enabled: false
24
+ Style/FrozenStringLiteralComment:
25
+ Enabled: false
26
+ Style/CommentedKeyword:
27
+ Enabled: false
28
+ Style/MultilineBlockChain:
29
+ Enabled: false
30
+ Style/Documentation:
31
+ Enabled: false
32
+ Style/StringLiteralsInInterpolation:
33
+ Enabled: false
34
+ Style/AndOr:
35
+ Enabled: false
36
+
37
+ Layout/SpaceInsideHashLiteralBraces:
38
+ Enabled: false
39
+ Layout/SpaceInsideBlockBraces:
40
+ Enabled: false
41
+ Layout/SpaceAroundOperators:
42
+ Enabled: false
43
+ Layout/ExtraSpacing:
44
+ AllowForAlignment: true
45
+ Layout/AccessModifierIndentation:
46
+ EnforcedStyle: indent
47
+ Layout/DotPosition:
48
+ EnforcedStyle: trailing
49
+ Layout/MultilineMethodCallIndentation:
50
+ EnforcedStyle: indented
51
+ Layout/IndentHash:
52
+ Enabled: false
53
+
54
+ Naming/VariableNumber:
55
+ EnforcedStyle: snake_case
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.1
5
+ before_install: gem install bundler -v 1.16.1
data/.yardopts ADDED
@@ -0,0 +1,10 @@
1
+ --readme README.md
2
+ --charset utf-8
3
+ --markup-provider=redcarpet
4
+ --markup=markdown
5
+ --no-private
6
+ --output-dir ./doc
7
+ 'lib/**/*.rb'
8
+ -
9
+ CHANGELOG.md
10
+ LICENSE
data/CHANGELOG.md ADDED
@@ -0,0 +1,171 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ## [0.8.4] - 2021-02-xx
5
+
6
+ ### Added
7
+ ### Changed
8
+ - roll back `ecoportal-api` dependency
9
+
10
+ ### Fixed
11
+
12
+ ## [0.8.3] - 2021-02-22
13
+
14
+ ### Added
15
+ ### Changed
16
+ - updated `rspec` for expected patch data on `delete` operation.
17
+
18
+ ### Fixed
19
+ - More specific namespace path for `Internal::People` namespace
20
+
21
+ ## [0.8.2] - 2021-02-21
22
+
23
+ ### Added
24
+ ### Changed
25
+ - some necessary changes for the new gem to be active
26
+
27
+ ### Fixed
28
+
29
+ ## [0.8.1] - 2021-02-21
30
+
31
+ ### Added
32
+ ### Changed
33
+ - renamed parameters (backwards incompatible change):
34
+ - `Ecoportal::API::V2::Pages::Stages` methods `#get` and `#update`
35
+ - updated `Ecoportal::API::V2::Pages#` accordingly
36
+
37
+ ### Fixed
38
+
39
+
40
+ ## MOVED TO GEM `ecoportal-api-v2` ##
41
+
42
+ ## [0.7.5] - 2021-02-21
43
+
44
+ ### Added
45
+ - `Ecoportal::API::Common::ClassHelpers` added inheritable attribute values
46
+ - `Ecoportal::API::V2::Pages::PageStage` added missing properties
47
+ - `Ecoportal::API::V2::Page::Stages#ordered_stages` method to obtain stages in order
48
+ - `Ecoportal::API::V2::Registers#search` method search pages in the register, which includes new classes:
49
+ - `Ecoportal::API::V2::Registers::PageResult`
50
+ - `Ecoportal::API::V2::Registers::StagesResult`
51
+ - `Ecoportal::API::V2::Registers::StageResult`
52
+ - `Ecoportal::API::V2::Pages#get` added parameter `stage_id:` to be able to directly obtain the stage
53
+
54
+ ### Changed
55
+ - Moved some classes to the new namespace `Ecoportal::API::V2::Registers`
56
+ - `Ecoportal::API::V2::Registers::Register`
57
+ - `Ecoportal::API::V2::Registers::Template`
58
+
59
+ ### Fixed
60
+ - `Ecoportal::API::Common::Content::HashDiffPatch`: `deleted` operation wording and `data.patch_ver`
61
+ - `Ecoportal::API::V2::Page::Component.new_doc` should delegate to child classes that have their own implementation
62
+ - `Ecoportal::API::V2::Page::Component::ImagesField.new_doc` should include `layout`
63
+ - `Ecoportal::API::V2::Page::Component::SignatureField.new_doc` should include `color`
64
+
65
+ ## [0.7.4] - 2021-02-12
66
+
67
+ ### Added
68
+ - `Ecoportal::API::V2::Page::Component::GaugeStop#color=` enabled setting colours using a `symbol`
69
+ - `:blue`, `:blue_greyed`, `:blue_light`
70
+ - `:turquoise`, `:jade`, `:green`, `:pistachio`, `:avocado`
71
+ - `:yellow`, `:orange`, `:pumpkin`, `:red`, `:magenta`, `:fuchsia`, `:purple`, `:violet`
72
+ - `Ecoportal::API::V2::Page::Component::GaugeStop#color_sym` to get the color as `symbol` name
73
+ - added support for chart fields:
74
+ - `Ecoportal::API::V2::Page::Component::ChartField` with the different `mode` types
75
+ - `Ecoportal::API::V2::Page::Component::ChartFrField` (LTIFR)
76
+
77
+ ### Changed
78
+ - `Ecoportal::API::Page::Component::DateField` Date objects + Timezones
79
+ - `#value` should be shown in local time
80
+ - `#value=` should be set by local time
81
+ - `Ecoportal::API::Common::Content::DoubleModel.embeds_multiple` renamed to `embeds_many`
82
+ - `Ecoportal::API::Common::Content::DoubleModel.embeds_one` removed parameter `:multiple`
83
+ - Fields under `Ecoportal::API::Page::Component` that `embeds_many` should generate new elements in a standard way
84
+ - added `Ecoportal::API::Common::Content::CollectionModel#items_class` method
85
+
86
+ ### Fixed
87
+ - solved `pretty_print` name collision renaming to `Ecoportal::API::Common::Content::DoubleModel#print_pretty`
88
+
89
+ ## [0.7.3] - 2021-02-01
90
+
91
+ ### Added
92
+ - `Ecoportal::API::Common::Content::CollectionModel#delete!` finally scoped how delete should work :)
93
+ - `Ecoportal::API::V2.new` better feedback on key error.
94
+ - `Ecoportal::API::V2::Page::Component::SignatureField` added property `signed_by_name`
95
+ - `Ecoportal::API::V2::Page::Component#required` this field property is currently supported
96
+ - `Ecoportal::API::V2::Page::Component::DateField` more supported properties:
97
+ * `show_time`, `today_button`, `past_only`, `create_event`, `remind_me_in`, `renews`, `renews_every`, `renews_unit`, `renews_until`
98
+ - `Ecoportal::API::V2::Page::Component::ChecklistField`
99
+ * added more methods: `add_item`, `ordered_items`
100
+ - `Ecoportal::API::V2::Page::Component::GaugeField`
101
+ * more supported properties: `max`, `active_color` and `stops`
102
+ - for `stops` added class `Ecoportal::API::V2::Page::Component::GaugeStop`
103
+ * added more methods: `add_stop`, `ordered_stops`
104
+ - `Ecoportal::API::V2::Page::Component::ReferenceField` more supported properties:
105
+ * `register_id`, `hide_create`, `hide_attach`, `hide_metadata`, `hide_dashboards`, `display_fields`, `display_fields_in_lookup`
106
+ - `Ecoportal::API::V2::Page::Component::ActionField`
107
+ * more supported properties:`create_actions`, `required_number_of_completed_actions`, `permits_and_rules_integration`, `add_subscribed`, `add_subscribed_to_tasks`
108
+ * added more methods: `add_task`, `ordered_tasks`
109
+ - `Ecoportal::API::V2::Page::Component::Action` modified, provided that some properties are `read_only`
110
+ - `Ecoportal::API::V2::Page::Component::PeopleField` more supported properties:
111
+ * `is_me_button`, `attach_mode`, `person_schema_id`, `viewable_fields`, `singular`, `requires_number`, `cached_people`, `attached_people_permissions_enabled`, `apply_attached_people_permissions_to`, `attached_people_permissions_editable`, `attached_people_permissions_flags`
112
+ - `Ecoportal::API::V2::Page::Component::PlainTextField` more supported properties:
113
+ * `multiline`, `max_length`, `exact_index`
114
+ - `Ecoportal::API::V2::Page::Component::SelectionField` more supported properties:
115
+ * `flat`
116
+ - `Ecoportal::API::V2::Page::Component::TagField` more supported properties:
117
+ * `single_select`, `use_defaults`, `tag_tree_id`, `button_text`
118
+ - `Ecoportal::API::V2::Page::Section` more supported properties:
119
+ * `minimized`
120
+
121
+ ### Changed
122
+ - upgraded `ecoportal-api` dependency
123
+
124
+ ### Fixed
125
+ - `Ecoportal::API::Common::Content::CollectionModel#upsert!` was not actually moving the element to the new position when it already existed
126
+
127
+ ## [0.7.2] - 2020-10-07
128
+
129
+ ### Added
130
+ - automatic key builder
131
+ - helper: `Ecoportal::API::V2::v2key` method
132
+ - `user_key:` and `org_key:` as constructor methods for `Ecoportal::API::V2`
133
+ ### Changed
134
+ ### Fixed
135
+
136
+ ## [0.7.1] - 2020-10-07
137
+
138
+ ### Added
139
+ ### Changed
140
+ - updated dependencies
141
+ ### Fixed
142
+
143
+
144
+ ## [0.7.0] - 2020-09-10
145
+
146
+ ### Added
147
+ ### Changed
148
+ - updated dependencies
149
+ ### Fixed
150
+
151
+ ## [0.6.1] - 2020-07-11
152
+
153
+ ### Added
154
+ - `Ecoportal::API::Common::Content::DoubleModel#pretty_print`
155
+ ### Changed
156
+ ### Fixed
157
+
158
+ ## [0.6.0] - 2020-07-11
159
+
160
+ ### Added
161
+ ### Changed
162
+ - upgraded `ecoportal-api` gem
163
+ ### Fixed
164
+
165
+ ## [0.5.9] - 2020-07-02
166
+
167
+ ### Added
168
+ - helper `Ecoportal::API::Common::Content::StringDigest#indexable_label`: to see the part of a label that gets indexed
169
+ - this `CHANGELOG.md` file
170
+ ### Changed
171
+ ### Fixed
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in ecoportal-api.gemspec
6
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 ecoPortal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ **Originally ---> 'ecoportal-api-oozes'**
2
+
3
+ # Ecoportal::API::V2
4
+
5
+ This is a basic collection of helpers that can be used to interact with the
6
+ [ecoPortal](https://www.ecoportal.com) `APIv2`
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'ecoportal-api-v2', require: %w[ecoportal/api-v2]
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install ecoportal-api-v2
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+ require "yard"
4
+ require "redcarpet"
5
+
6
+ desc "run the specs"
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ desc "run rspec showing backtrace"
10
+ RSpec::Core::RakeTask.new(:spec_trace) do |task|
11
+ task.rspec_opts = ['--backtrace']
12
+ end
13
+
14
+ desc "run rspec stopping on first fail, and show backtrace"
15
+ RSpec::Core::RakeTask.new(:spec_fast) do |task|
16
+ task.rspec_opts = ['--fail-fast', '--backtrace']
17
+ end
18
+
19
+ # default task name is yard
20
+ desc "Yard: generate all the documentation"
21
+ YARD::Rake::YardocTask.new(:doc) do |t|
22
+ #t.files = ['lib/**/*.rb']
23
+ end
24
+
25
+ task :default => [:spec]
26
+ task :rspec_trace => :spec_trace
27
+ task :rspec_fast => :spec_fast
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ecoportal/api"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "pry"
14
+ Pry.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,34 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "ecoportal/api/v2/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ecoportal-api-v2"
8
+ spec.version = Ecoportal::API::V2::GEM_VERSION
9
+ spec.authors = ["Oscar Segura"]
10
+ spec.email = ["rien@ecoportal.co.nz", "oscar@ecoportal.co.nz", "bozydar@ecoportal.co.nz"]
11
+
12
+ spec.summary = %q{A collection of helpers for interacting with the ecoPortal MS's V2 API}
13
+ spec.homepage = "https://www.ecoportal.com"
14
+ spec.licenses = %w[MIT]
15
+
16
+ spec.required_ruby_version = '>= 2.4.4'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", ">= 2.2.11", "< 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"
30
+ spec.add_development_dependency "pry" , "~> 0.14"
31
+
32
+ #spec.add_dependency 'ecoportal-api', '>= 0.8.1', '< 0.9'
33
+ spec.add_dependency 'ecoportal-api', '>= 0.7.5', '< 0.8'
34
+ end
@@ -0,0 +1,10 @@
1
+ require "ecoportal/api"
2
+ require "ecoportal/api/v2/version"
3
+
4
+ module Ecoportal
5
+ module API
6
+ end
7
+ end
8
+
9
+ require_relative "api/common"
10
+ require_relative "api/v2"
@@ -0,0 +1,18 @@
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'