Skip to content

Commit 148519e

Browse files
authored
Merge pull request #2 from liger1978/fixup
Manual fixups, don't git ignore build scripts
2 parents 624dd86 + c383e35 commit 148519e

7 files changed

Lines changed: 29 additions & 9 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: 1.10.0
10-
- Package version: 1.10.8.0
10+
- Package version: 1.10.8.1
1111
- Build package: io.swagger.codegen.languages.RubyClientCodegen
1212

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

2525
```shell
26-
gem install ./harbor1_client-1.10.8.0.gem
26+
gem install ./harbor1_client-1.10.8.1.gem
2727
```
28-
(for development, run `gem install --dev ./harbor1_client-1.10.8.0.gem` to install the development dependencies)
28+
(for development, run `gem install --dev ./harbor1_client-1.10.8.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 'harbor1_client', '~> 1.10.8.0'
34+
gem 'harbor1_client', '~> 1.10.8.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 1.10.8")
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/harbor/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": "harbor1_client",
3+
"moduleName": "Harbor1Client",
4+
"gemVersion": "1.10.8.1",
5+
"gemLicense": "MIT",
6+
"gemRequiredRubyVersion": ">= 1.9",
7+
"gemHomepage": "https://github.com/liger1978/ruby-harbor1_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+
}

harbor1_client.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
2121
s.platform = Gem::Platform::RUBY
2222
s.authors = ["Richard Grainger"]
2323
s.email = ["harbottle@room3d3.com"]
24-
s.homepage = "https://github.com/liger1978/ruby-harbor2_client"
24+
s.homepage = "https://github.com/liger1978/ruby-harbor1_client"
2525
s.summary = "A ruby wrapper for the Harbor swagger APIs"
2626
s.description = "A ruby wrapper for the Harbor swagger APIs"
2727
s.license = 'MIT'

lib/harbor1_client/models/configurations_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ def self.swagger_types
170170
:'ldap_url' => :'StringConfigItem',
171171
:'ldap_base_dn' => :'StringConfigItem',
172172
:'ldap_filter' => :'StringConfigItem',
173-
:'ldap_scope' => :'Integer',
173+
:'ldap_scope' => :'IntegerConfigItem',
174174
:'ldap_uid' => :'StringConfigItem',
175-
:'ldap_search_dn' => :'String',
175+
:'ldap_search_dn' => :'StringConfigItem',
176176
:'ldap_timeout' => :'IntegerConfigItem',
177177
:'ldap_group_attribute_name' => :'StringConfigItem',
178178
:'ldap_group_base_dn' => :'StringConfigItem',

lib/harbor1_client/models/quota.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def self.swagger_types
5050
{
5151
:'id' => :'Integer',
5252
:'ref' => :'QuotaRefObject',
53-
:'hard' => :'ResourceList',
53+
:'hard' => :'Object',
5454
:'used' => :'ResourceList',
5555
:'creation_time' => :'String',
5656
:'update_time' => :'String'

lib/harbor1_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 Harbor1Client
14-
VERSION = '1.10.8.0'
14+
VERSION = '1.10.8.1'
1515
end

0 commit comments

Comments
 (0)