Skip to content

Commit d50c121

Browse files
authored
Merge pull request #2 from liger1978/fixup
Manual fixups, don't git ignore build scripts
2 parents 398c354 + 698adc9 commit d50c121

5 files changed

Lines changed: 31 additions & 11 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These APIs provide services for manipulating Harbor project.
77
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
88

99
- API version: 2.0
10-
- Package version: 2.3.3.0
10+
- Package version: 2.3.3.1
1111
- Build package: io.swagger.codegen.languages.RubyClientCodegen
1212

1313
## Installation
@@ -23,15 +23,15 @@ gem build harbor2_client.gemspec
2323
Then either install the gem locally:
2424

2525
```shell
26-
gem install ./harbor2_client-2.3.3.0.gem
26+
gem install ./harbor2_client-2.3.3.1.gem
2727
```
28-
(for development, run `gem install --dev ./harbor2_client-2.3.3.0.gem` to install the development dependencies)
28+
(for development, run `gem install --dev ./harbor2_client-2.3.3.1.gem` to install the development dependencies)
2929

3030
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
3131

3232
Finally add this to the Gemfile:
3333

34-
gem 'harbor2_client', '~> 2.3.3.0'
34+
gem 'harbor2_client', '~> 2.3.3.1'
3535

3636
### Install from Git
3737

build_scripts/generate.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# 1. Create a new git branch
3+
# 2. Clean out repo (delete everything except build_scripts folder and .git folder)
4+
# 3. Update version in swagger-codegen-cli-ruby-config.json
5+
# 4. Run this script from the root of the repo ( e.g. "build_scripts/generate.sh 2.3.3")
6+
# 5. Check previous commits to check required manual fixups (may or may not stil be required)
7+
version=$1
8+
docker run -u $(id -u) --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate -i "https://raw.githubusercontent.com/goharbor/harbor/v${version}/api/v2.0/swagger.yaml" -l ruby -c /local/build_scripts/swagger-codegen-cli-ruby-config.json -o /local/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"gemName": "harbor2_client",
3+
"moduleName": "Harbor2Client",
4+
"gemVersion": "2.3.3.1",
5+
"gemLicense": "MIT",
6+
"gemRequiredRubyVersion": ">= 1.9",
7+
"gemHomepage": "https://github.com/liger1978/ruby-harbor2_client",
8+
"gemSummary": "A ruby wrapper for the Harbor swagger APIs",
9+
"gemDescription": "A ruby wrapper for the Harbor swagger APIs",
10+
"gemAuthor": "Richard Grainger",
11+
"gemAuthorEmail": "harbottle@room3d3.com"
12+
}

lib/harbor2_client/models/platform.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def self.attribute_map
3434
{
3535
:'architecture' => :'architecture',
3636
:'os' => :'os',
37-
:'os_version' => :''os.version'',
38-
:'os_features' => :''os.features'',
37+
:'os_version' => :'os.version',
38+
:'os_features' => :'os.features',
3939
:'variant' => :'variant'
4040
}
4141
end
@@ -67,12 +67,12 @@ def initialize(attributes = {})
6767
self.os = attributes[:'os']
6868
end
6969

70-
if attributes.has_key?(:''os.version'')
71-
self.os_version = attributes[:''os.version'']
70+
if attributes.has_key?(:'os.version')
71+
self.os_version = attributes[:'os.version']
7272
end
7373

74-
if attributes.has_key?(:''os.features'')
75-
if (value = attributes[:''os.features'']).is_a?(Array)
74+
if attributes.has_key?(:'os.features')
75+
if (value = attributes[:'os.features']).is_a?(Array)
7676
self.os_features = value
7777
end
7878
end

lib/harbor2_client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module Harbor2Client
14-
VERSION = '2.3.3.0'
14+
VERSION = '2.3.3.1'
1515
end

0 commit comments

Comments
 (0)