From 6f9c79aa09898ba73dbd314fd5fe1fe7f15ae066 Mon Sep 17 00:00:00 2001 From: Jack Gibson Date: Fri, 23 Feb 2024 10:08:13 +0000 Subject: [PATCH 1/2] update bindings to version 2.10.0 --- bindings/java/src/README.md | 6 +-- bindings/java/src/build.gradle | 2 +- bindings/java/src/build.json | 2 +- bindings/java/src/build.sbt | 2 +- .../java/src/docs/DebPackageUploadRequest.md | 1 + bindings/java/src/pom.xml | 2 +- .../java/io/cloudsmith/api/ApiClient.java | 2 +- .../api/models/DebPackageUploadRequest.java | 25 +++++++++++- .../io/cloudsmith/api/models/StatusBasic.java | 2 +- bindings/python/src/README.md | 2 +- bindings/python/src/build.json | 2 +- .../python/src/cloudsmith_api/api_client.py | 2 +- .../src/cloudsmith_api/configuration.py | 2 +- .../models/deb_package_upload_request.py | 39 ++++++++++++++++++- .../src/cloudsmith_api/models/status_basic.py | 2 +- .../src/docs/DebPackageUploadRequest.md | 1 + bindings/python/src/docs/StatusBasic.md | 2 +- bindings/python/src/setup.py | 2 +- bindings/ruby/src/README.md | 8 ++-- bindings/ruby/src/build.json | 2 +- .../ruby/src/docs/DebPackageUploadRequest.md | 1 + bindings/ruby/src/docs/StatusBasic.md | 2 +- .../models/deb_package_upload_request.rb | 14 ++++++- .../lib/cloudsmith-api/models/status_basic.rb | 2 +- .../ruby/src/lib/cloudsmith-api/version.rb | 2 +- .../models/deb_package_upload_request_spec.rb | 6 +++ 26 files changed, 108 insertions(+), 27 deletions(-) diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 7ec52a8d..9b274d82 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: io.cloudsmith.api cloudsmith-api - 2.0.9 + 2.0.10 compile ``` @@ -50,7 +50,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.cloudsmith.api:cloudsmith-api:2.0.9" +compile "io.cloudsmith.api:cloudsmith-api:2.0.10" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.9.jar` +* `target/cloudsmith-api-2.0.10.jar` * `target/lib/*.jar` ## Getting Started diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 6770adf3..47d4ac6e 100644 --- a/bindings/java/src/build.gradle +++ b/bindings/java/src/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'io.cloudsmith.api' -version = '2.0.9' +version = '2.0.10' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index a9e59042..593915c9 100644 --- a/bindings/java/src/build.json +++ b/bindings/java/src/build.json @@ -3,7 +3,7 @@ "apiPackage": "io.cloudsmith.api.apis", "artifactId": "cloudsmith-api", "artifactUrl": "https://api.cloudsmith.io/?format=openapi", - "artifactVersion": "2.0.9", + "artifactVersion": "2.0.10", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 7121a734..2b36968f 100644 --- a/bindings/java/src/build.sbt +++ b/bindings/java/src/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.cloudsmith.api", name := "cloudsmith-api", - version := "2.0.9", + version := "2.0.10", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/bindings/java/src/docs/DebPackageUploadRequest.md b/bindings/java/src/docs/DebPackageUploadRequest.md index c739a4c0..04d791ca 100644 --- a/bindings/java/src/docs/DebPackageUploadRequest.md +++ b/bindings/java/src/docs/DebPackageUploadRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **changesFile** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional] +**component** | **String** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] **distribution** | **String** | The distribution to store the package for. | **packageFile** | **String** | The primary file for the package. | **republish** | **Boolean** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 4faaafa1..f9f67de6 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.9 + 2.0.10 https://api.cloudsmith.io/?format=openapi Cloudsmith API diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java index 443eff5c..228a5f35 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java @@ -87,7 +87,7 @@ public ApiClient() { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/2.0.9/java"); + setUserAgent("Swagger-Codegen/2.0.10/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java index 5a72832b..38b1174b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DebPackageUploadRequest.java @@ -37,6 +37,9 @@ public class DebPackageUploadRequest implements Serializable { @SerializedName("changes_file") private String changesFile = null; + @SerializedName("component") + private String component = "main"; + @SerializedName("distribution") private String distribution = null; @@ -70,6 +73,24 @@ public void setChangesFile(String changesFile) { this.changesFile = changesFile; } + public DebPackageUploadRequest component(String component) { + this.component = component; + return this; + } + + /** + * The component (channel) for the package (e.g. 'main', 'unstable', etc.) + * @return component + **/ + @Pattern(regexp="^[-_.\\w]+$") @Size(min=1,max=64) @ApiModelProperty(value = "The component (channel) for the package (e.g. 'main', 'unstable', etc.)") + public String getComponent() { + return component; + } + + public void setComponent(String component) { + this.component = component; + } + public DebPackageUploadRequest distribution(String distribution) { this.distribution = distribution; return this; @@ -173,6 +194,7 @@ public boolean equals(java.lang.Object o) { } DebPackageUploadRequest debPackageUploadRequest = (DebPackageUploadRequest) o; return Objects.equals(this.changesFile, debPackageUploadRequest.changesFile) && + Objects.equals(this.component, debPackageUploadRequest.component) && Objects.equals(this.distribution, debPackageUploadRequest.distribution) && Objects.equals(this.packageFile, debPackageUploadRequest.packageFile) && Objects.equals(this.republish, debPackageUploadRequest.republish) && @@ -182,7 +204,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(changesFile, distribution, packageFile, republish, sourcesFile, tags); + return Objects.hash(changesFile, component, distribution, packageFile, republish, sourcesFile, tags); } @@ -192,6 +214,7 @@ public String toString() { sb.append("class DebPackageUploadRequest {\n"); sb.append(" changesFile: ").append(toIndentedString(changesFile)).append("\n"); + sb.append(" component: ").append(toIndentedString(component)).append("\n"); sb.append(" distribution: ").append(toIndentedString(distribution)).append("\n"); sb.append(" packageFile: ").append(toIndentedString(packageFile)).append("\n"); sb.append(" republish: ").append(toIndentedString(republish)).append("\n"); diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java index 7215e6c5..b5917c0d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java @@ -38,7 +38,7 @@ public class StatusBasic implements Serializable { private String detail = "Cloudsmith API is operational."; @SerializedName("version") - private String version = "1.355.2"; + private String version = "1.363.0"; /** * The message describing the state of the API. diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index a4238305..de0c844a 100644 --- a/bindings/python/src/README.md +++ b/bindings/python/src/README.md @@ -4,7 +4,7 @@ The API to the Cloudsmith Service This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.9 +- Package version: 2.0.10 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index 80bea280..62095a97 100644 --- a/bindings/python/src/build.json +++ b/bindings/python/src/build.json @@ -2,7 +2,7 @@ "hideGenerationTimestamp": true, "packageName": "cloudsmith_api", "projectName": "cloudsmith-api", - "packageVersion": "2.0.9", + "packageVersion": "2.0.10", "packageUrl": "https://api.cloudsmith.io/?format=openapi", "sortParamsByRequiredFlag": true } diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index d3713045..806e8adf 100644 --- a/bindings/python/src/cloudsmith_api/api_client.py +++ b/bindings/python/src/cloudsmith_api/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.0.9/python' + self.user_agent = 'Swagger-Codegen/2.0.10/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py index 7774869f..9f54594c 100644 --- a/bindings/python/src/cloudsmith_api/configuration.py +++ b/bindings/python/src/cloudsmith_api/configuration.py @@ -258,5 +258,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.0.9".\ + "SDK Package Version: 2.0.10".\ format(env=sys.platform, pyversion=sys.version) diff --git a/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py b/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py index 039f880e..ed8b05be 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py +++ b/bindings/python/src/cloudsmith_api/models/deb_package_upload_request.py @@ -34,6 +34,7 @@ class DebPackageUploadRequest(object): """ swagger_types = { 'changes_file': 'str', + 'component': 'str', 'distribution': 'str', 'package_file': 'str', 'republish': 'bool', @@ -43,6 +44,7 @@ class DebPackageUploadRequest(object): attribute_map = { 'changes_file': 'changes_file', + 'component': 'component', 'distribution': 'distribution', 'package_file': 'package_file', 'republish': 'republish', @@ -50,13 +52,14 @@ class DebPackageUploadRequest(object): 'tags': 'tags' } - def __init__(self, changes_file=None, distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 + def __init__(self, changes_file=None, component='main', distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 """DebPackageUploadRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._changes_file = None + self._component = None self._distribution = None self._package_file = None self._republish = None @@ -66,6 +69,8 @@ def __init__(self, changes_file=None, distribution=None, package_file=None, repu if changes_file is not None: self.changes_file = changes_file + if component is not None: + self.component = component self.distribution = distribution self.package_file = package_file if republish is not None: @@ -101,6 +106,38 @@ def changes_file(self, changes_file): self._changes_file = changes_file + @property + def component(self): + """Gets the component of this DebPackageUploadRequest. + + The component (channel) for the package (e.g. 'main', 'unstable', etc.) + + :return: The component of this DebPackageUploadRequest. + :rtype: str + """ + return self._component + + @component.setter + def component(self, component): + """Sets the component of this DebPackageUploadRequest. + + The component (channel) for the package (e.g. 'main', 'unstable', etc.) + + :param component: The component of this DebPackageUploadRequest. + :type: str + """ + if (self._configuration.client_side_validation and + component is not None and len(component) > 64): + raise ValueError("Invalid value for `component`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + component is not None and len(component) < 1): + raise ValueError("Invalid value for `component`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + component is not None and not re.search('^[-_.\\w]+$', component)): # noqa: E501 + raise ValueError(r"Invalid value for `component`, must be a follow pattern or equal to `/^[-_.\\w]+$/`") # noqa: E501 + + self._component = component + @property def distribution(self): """Gets the distribution of this DebPackageUploadRequest. diff --git a/bindings/python/src/cloudsmith_api/models/status_basic.py b/bindings/python/src/cloudsmith_api/models/status_basic.py index 1849b7a5..36ae9720 100644 --- a/bindings/python/src/cloudsmith_api/models/status_basic.py +++ b/bindings/python/src/cloudsmith_api/models/status_basic.py @@ -42,7 +42,7 @@ class StatusBasic(object): 'version': 'version' } - def __init__(self, detail='Cloudsmith API is operational.', version='1.355.2', _configuration=None): # noqa: E501 + def __init__(self, detail='Cloudsmith API is operational.', version='1.363.0', _configuration=None): # noqa: E501 """StatusBasic - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() diff --git a/bindings/python/src/docs/DebPackageUploadRequest.md b/bindings/python/src/docs/DebPackageUploadRequest.md index 41a9eb37..8fddc1a6 100644 --- a/bindings/python/src/docs/DebPackageUploadRequest.md +++ b/bindings/python/src/docs/DebPackageUploadRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **changes_file** | **str** | The changes archive containing the changes made to the source and debian packaging files | [optional] +**component** | **str** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to 'main'] **distribution** | **str** | The distribution to store the package for. | **package_file** | **str** | The primary file for the package. | **republish** | **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] diff --git a/bindings/python/src/docs/StatusBasic.md b/bindings/python/src/docs/StatusBasic.md index 6d723701..9dd7743f 100644 --- a/bindings/python/src/docs/StatusBasic.md +++ b/bindings/python/src/docs/StatusBasic.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **detail** | **str** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.'] -**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.355.2'] +**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.363.0'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index d4bec625..ee8f05e8 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "cloudsmith-api" -VERSION = "2.0.9" +VERSION = "2.0.10" # To install the library, run the following # # python setup.py install diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index bb867bc4..8954eace 100644 --- a/bindings/ruby/src/README.md +++ b/bindings/ruby/src/README.md @@ -7,7 +7,7 @@ The API to the Cloudsmith Service This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 2.0.9 +- Package version: 2.0.10 - Build package: io.swagger.codegen.languages.RubyClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec Then either install the gem locally: ```shell -gem install ./cloudsmith-api-2.0.9.gem +gem install ./cloudsmith-api-2.0.10.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.9.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.10.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'cloudsmith-api', '~> 2.0.9' + gem 'cloudsmith-api', '~> 2.0.10' ### Install from Git diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index fbe6f038..70e52bf9 100644 --- a/bindings/ruby/src/build.json +++ b/bindings/ruby/src/build.json @@ -8,7 +8,7 @@ "gemName": "cloudsmith-api", "gemRequiredRubyVersion": ">= 1.9", "gemSummary": "Cloudsmith API", - "gemVersion": "2.0.9", + "gemVersion": "2.0.10", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/DebPackageUploadRequest.md b/bindings/ruby/src/docs/DebPackageUploadRequest.md index 0cdfee8b..1b1b13b0 100644 --- a/bindings/ruby/src/docs/DebPackageUploadRequest.md +++ b/bindings/ruby/src/docs/DebPackageUploadRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **changes_file** | **String** | The changes archive containing the changes made to the source and debian packaging files | [optional] +**component** | **String** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to 'main'] **distribution** | **String** | The distribution to store the package for. | **package_file** | **String** | The primary file for the package. | **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] diff --git a/bindings/ruby/src/docs/StatusBasic.md b/bindings/ruby/src/docs/StatusBasic.md index e64be12e..4fbcbe88 100644 --- a/bindings/ruby/src/docs/StatusBasic.md +++ b/bindings/ruby/src/docs/StatusBasic.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **detail** | **String** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.'] -**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.355.2'] +**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.363.0'] diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb index e38a7292..e27f9f24 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/deb_package_upload_request.rb @@ -17,6 +17,9 @@ class DebPackageUploadRequest # The changes archive containing the changes made to the source and debian packaging files attr_accessor :changes_file + # The component (channel) for the package (e.g. 'main', 'unstable', etc.) + attr_accessor :component + # The distribution to store the package for. attr_accessor :distribution @@ -36,6 +39,7 @@ class DebPackageUploadRequest def self.attribute_map { :'changes_file' => :'changes_file', + :'component' => :'component', :'distribution' => :'distribution', :'package_file' => :'package_file', :'republish' => :'republish', @@ -48,6 +52,7 @@ def self.attribute_map def self.swagger_types { :'changes_file' => :'String', + :'component' => :'String', :'distribution' => :'String', :'package_file' => :'String', :'republish' => :'BOOLEAN', @@ -68,6 +73,12 @@ def initialize(attributes = {}) self.changes_file = attributes[:'changes_file'] end + if attributes.has_key?(:'component') + self.component = attributes[:'component'] + else + self.component = 'main' + end + if attributes.has_key?(:'distribution') self.distribution = attributes[:'distribution'] end @@ -118,6 +129,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && changes_file == o.changes_file && + component == o.component && distribution == o.distribution && package_file == o.package_file && republish == o.republish && @@ -134,7 +146,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [changes_file, distribution, package_file, republish, sources_file, tags].hash + [changes_file, component, distribution, package_file, republish, sources_file, tags].hash end # Builds the object from hash diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb b/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb index a18a2f19..f49787e6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb @@ -53,7 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] else - self.version = '1.355.2' + self.version = '1.363.0' end end diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index 58660d2a..f742dfeb 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/version.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb @@ -11,5 +11,5 @@ =end module CloudsmithApi - VERSION = '2.0.9' + VERSION = '2.0.10' end diff --git a/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb b/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb index ecfafbeb..d31079cd 100644 --- a/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb +++ b/bindings/ruby/src/spec/models/deb_package_upload_request_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "component"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "distribution"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers From df4d3b36a3f7b9f22054c5efbcd05c9e27431259 Mon Sep 17 00:00:00 2001 From: Jack Gibson Date: Fri, 23 Feb 2024 10:28:20 +0000 Subject: [PATCH 2/2] common script version update. --- scripts/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common.sh b/scripts/common.sh index 7df29545..ca1e2a06 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -3,7 +3,7 @@ language=${1:-""} api_url=${2:-${api_url:-"https://api.cloudsmith.io/"}} api_version=$(curl -s "${api_url}status/check/basic/" | jq -r '.version') openapi_url="${api_url}?format=openapi" -package_version="2.0.9" +package_version="2.0.10" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2) [[ "$location" != "" ]] && {