spartera_api_sdk 1.0.69 โ 1.0.72
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 +4 -4
- data/lib/spartera_api_sdk/version.rb +1 -13
- metadata +32 -20
- data/Gemfile +0 -11
- data/Rakefile +0 -10
- data/config.json +0 -10
- data/git_push.sh +0 -57
- data/spartera_api_sdk.gemspec +0 -28
- data/test.sh +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0657e1dc687b1a92ae600249a5797dec5cc99772bbda54052c988a3104c25aa7
|
4
|
+
data.tar.gz: 2d3c465add413a81db668b2c191af221bd449ad0820c9d1c228ab8bafc01962c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ee057f1929acf483f610edcfc31b64069c4ecd99280436341c65e4b39fe051d8496f6d03c696da5a7232bc871945468e0b9da8bdf962ae16997d56fd105f0f
|
7
|
+
data.tar.gz: 03fae2aeeb7e2810008b949712eea7825851f8b01a54302b5054c3ce8e717c29b7a8f160211561b648590e32fe8d490f1b21b0ec041f851efb7c8e88c3b174be
|
@@ -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.
|
2
|
+
VERSION = '1.0.72'
|
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.
|
4
|
+
version: 1.0.72
|
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.
|
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/
|
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/
|
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
data/Rakefile
DELETED
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'
|
data/spartera_api_sdk.gemspec
DELETED
@@ -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
|