spartera_api_sdk 1.0.69 โ†’ 1.0.73

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: 41a251bdbb168b2c7e000fa6d346cbc6cc1a7a6aa67a6981bca6ea38cda08854
4
- data.tar.gz: 790a5af2d6d3a860192a1072b114ea30b3cff94eae9f34df0cd3dd5b0d72dea0
3
+ metadata.gz: '080fbe4fa02969f958ce7171ae05a26329adc3719c36cf72a496353dc8301dad'
4
+ data.tar.gz: e95574e3ebd20f4f305677421de399efa64581a09c0d246aa63fbc4d1a8a8122
5
5
  SHA512:
6
- metadata.gz: 6f4781f76c5c2b5387d43a23db453de9bd2232d0d126f7bd8f93f9ba2b57c31f997d9eca63cbf49b808b150aab11b5be830a4ba85529266dca5fdc10dcb8d5a5
7
- data.tar.gz: b340a39e262bfd7b71e8e88f8651ec9037f1fcaa8ad931fcabbf90c40ff1e63ba311dd5ee15565ae77b9336e094a24b520381baac970c92e44c0c2e1a6760215
6
+ metadata.gz: 30cf644aada0adb68c912e2d0817666c9e5402af20487d76456f07dd857da0ada1a7cd12ed8778e4f4edcf1271a7f5ff90d9d1ccd63f6c32cad009e56a5e99de
7
+ data.tar.gz: 873fad3721544610770c5137b732ec1d4020ebb414a1e9a0f8d4b29174655f886fc7f2e35dd5c8df047fa0c0014d2c6471f155882e49c5bdf4011c388553c822
@@ -1,15 +1,3 @@
1
- =begin
2
- #Spartera API Documentation
3
-
4
- #Auto-generated API documentation for REST services of the Spartera platform
5
-
6
- The version of the OpenAPI document: 0.0.0
7
- Contact: support@spartera.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.13.0
10
-
11
- =end
12
-
13
1
  module SparteraApiSdk
14
- VERSION = '1.0.69'
2
+ VERSION = '1.0.73'
15
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spartera_api_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.69
4
+ version: 1.0.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony D
@@ -64,6 +64,20 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '3.6'
67
+ - !ruby/object:Gem::Dependency
68
+ name: rake
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '13.0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '13.0'
67
81
  description: Official SDK for Spartera API - Interface to manage companies' accounts
68
82
  and process insights remotely
69
83
  email:
@@ -72,11 +86,8 @@ executables: []
72
86
  extensions: []
73
87
  extra_rdoc_files: []
74
88
  files:
75
- - Gemfile
76
89
  - LICENSE
77
90
  - README.md
78
- - Rakefile
79
- - config.json
80
91
  - docs/APIKeysApi.md
81
92
  - docs/Alert.md
82
93
  - docs/AlertsApi.md
@@ -147,7 +158,6 @@ files:
147
158
  - docs/User.md
148
159
  - docs/UsersApi.md
149
160
  - example.rb
150
- - git_push.sh
151
161
  - lib/spartera_api_sdk.rb
152
162
  - lib/spartera_api_sdk/api/alerts_api.rb
153
163
  - lib/spartera_api_sdk/api/api_keys_api.rb
@@ -222,7 +232,6 @@ files:
222
232
  - lib/spartera_api_sdk/models/me_get200_response_token_metadata.rb
223
233
  - lib/spartera_api_sdk/models/user.rb
224
234
  - lib/spartera_api_sdk/version.rb
225
- - spartera_api_sdk.gemspec
226
235
  - spec/api/alerts_api_spec.rb
227
236
  - spec/api/api_keys_api_spec.rb
228
237
  - spec/api/asset_price_history_api_spec.rb
@@ -293,11 +302,14 @@ files:
293
302
  - spec/models/me_get200_response_token_metadata_spec.rb
294
303
  - spec/models/user_spec.rb
295
304
  - spec/spec_helper.rb
296
- - test.sh
297
305
  homepage: https://github.com/spartera-com/spartera-ruby-sdk
298
306
  licenses:
299
307
  - Apache-2.0
300
- metadata: {}
308
+ metadata:
309
+ homepage_uri: https://github.com/spartera-com/spartera-ruby-sdk
310
+ source_code_uri: https://github.com/spartera-com/spartera-ruby-sdk
311
+ bug_tracker_uri: https://github.com/spartera-com/spartera-ruby-sdk/issues
312
+ documentation_uri: https://docs.spartera.com
301
313
  post_install_message:
302
314
  rdoc_options: []
303
315
  require_paths:
@@ -306,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
318
  requirements:
307
319
  - - ">="
308
320
  - !ruby/object:Gem::Version
309
- version: 2.7.0
321
+ version: 2.6.0
310
322
  required_rubygems_version: !ruby/object:Gem::Requirement
311
323
  requirements:
312
324
  - - ">="
@@ -318,16 +330,7 @@ signing_key:
318
330
  specification_version: 4
319
331
  summary: Spartera API Ruby SDK
320
332
  test_files:
321
- - spec/api/asset_price_history_api_spec.rb
322
- - spec/api/assets_api_spec.rb
323
- - spec/api/companies_api_spec.rb
324
- - spec/api/storage_engines_api_spec.rb
325
- - spec/api/connections_api_spec.rb
326
- - spec/api/alerts_api_spec.rb
327
- - spec/api/users_api_spec.rb
328
- - spec/api/favorites_api_spec.rb
329
- - spec/api/cloud_providers_api_spec.rb
330
- - spec/api/api_keys_api_spec.rb
333
+ - spec/spec_helper.rb
331
334
  - spec/models/error_spec.rb
332
335
  - spec/models/companies_company_id_assets_asset_id_patch200_response_data_spec.rb
333
336
  - spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb
@@ -387,4 +390,13 @@ test_files:
387
390
  - spec/models/companies_company_id_users_post200_response_spec.rb
388
391
  - spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb
389
392
  - spec/models/inline_object1_spec.rb
390
- - spec/spec_helper.rb
393
+ - spec/api/asset_price_history_api_spec.rb
394
+ - spec/api/assets_api_spec.rb
395
+ - spec/api/companies_api_spec.rb
396
+ - spec/api/storage_engines_api_spec.rb
397
+ - spec/api/connections_api_spec.rb
398
+ - spec/api/alerts_api_spec.rb
399
+ - spec/api/users_api_spec.rb
400
+ - spec/api/favorites_api_spec.rb
401
+ - spec/api/cloud_providers_api_spec.rb
402
+ - spec/api/api_keys_api_spec.rb
data/Gemfile DELETED
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify the gemspec dependencies
4
- gemspec
5
-
6
- group :development, :test do
7
- gem 'rake', '~> 13.0'
8
- gem 'rspec', '~> 3.0'
9
- gem 'webmock', '~> 3.0'
10
- gem 'vcr', '~> 6.0'
11
- end
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- begin
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
- task default: :spec
8
- rescue LoadError
9
- # no rspec available
10
- end
data/config.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "gemName": "spartera_api_sdk",
3
- "gemVersion": "1.0.69",
4
- "gemDescription": "Official SDK for Spartera API - Interface to manage companies' accounts and process insights remotely",
5
- "gemAuthor": "Tony D",
6
- "gemAuthorEmail": "tony@spartera.com",
7
- "gemHomepage": "https://github.com/spartera-com/spartera-ruby-sdk",
8
- "moduleName": "SparteraApiSdk",
9
- "gemLicense": "Apache-2.0"
10
- }
data/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="spartera-com"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="spartera-ruby-sdk"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
@@ -1,28 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- $:.push File.expand_path("../lib", __FILE__)
4
- require "spartera_api_sdk/version"
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "spartera_api_sdk"
8
- s.version = SparteraApiSdk::VERSION
9
- s.platform = Gem::Platform::RUBY
10
- s.authors = ["Tony D"]
11
- s.email = ["tony@spartera.com"]
12
- s.homepage = "https://github.com/spartera-com/spartera-ruby-sdk"
13
- s.summary = "Spartera API Ruby SDK"
14
- s.description = "Official SDK for Spartera API - Interface to manage companies' accounts and process insights remotely"
15
- s.license = "Apache-2.0"
16
-
17
- s.required_ruby_version = ">= 2.7.0"
18
-
19
- s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
20
- s.add_runtime_dependency 'faraday-multipart', '~> 1.0'
21
-
22
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
23
-
24
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
25
- s.test_files = `find spec/*`.split("\n")
26
- s.executables = []
27
- s.require_paths = ["lib"]
28
- end
data/test.sh DELETED
@@ -1,42 +0,0 @@
1
- #!/bin/bash
2
- # Test script for Ruby SDK
3
-
4
- echo "๐Ÿงช Testing Ruby SDK..."
5
-
6
- # Check if Ruby is installed
7
- if ! command -v ruby &> /dev/null; then
8
- echo "โŒ Ruby is not installed. Please install Ruby 2.7 or higher."
9
- exit 1
10
- fi
11
-
12
- # Check if Bundler is installed
13
- if ! command -v bundle &> /dev/null; then
14
- echo "Installing Bundler..."
15
- gem install bundler
16
- fi
17
-
18
- # Install dependencies
19
- echo "Installing dependencies..."
20
- bundle install
21
-
22
- if [ $? -eq 0 ]; then
23
- echo "โœ… Dependencies installed successfully"
24
-
25
- # Check Ruby syntax
26
- echo "Checking Ruby syntax..."
27
- ruby -c example.rb > /dev/null
28
-
29
- if [ $? -eq 0 ]; then
30
- echo "โœ… Ruby syntax check passed"
31
- echo "๐Ÿ“ To test with real API calls:"
32
- echo " export SPARTERA_API_KEY='your-api-key'"
33
- echo " export SPARTERA_COMPANY_ID='your-company-id'"
34
- echo " ruby example.rb"
35
- else
36
- echo "โŒ Ruby syntax check failed"
37
- exit 1
38
- fi
39
- else
40
- echo "โŒ Dependencies installation failed"
41
- exit 1
42
- fi