Skip to content

Commit bbe5be6

Browse files
Merge pull request #156 from Adyen/automation/release
Release v7.0.2
2 parents 76a112e + 0ea2087 commit bbe5be6

File tree

126 files changed

+3476
-4044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+3476
-4044
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @Adyen/api-libraries-reviewers
1+
* @Adyen/integration-tools-testing

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- renovate[bot]
5+
- dependabot[bot]
6+
categories:
7+
- title: Breaking Changes 🛠
8+
labels:
9+
- Breaking change
10+
- title: New Features 💎
11+
labels:
12+
- Feature
13+
- title: Fixes ⛑️
14+
labels:
15+
- Fix
16+
- title: Other Changes 🖇️
17+
labels:
18+
- "*"

.github/workflows/gh_release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Github Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
gh_release:
11+
permissions:
12+
contents: write
13+
uses: Adyen/adyen-node-api-library/.github/workflows/lib-gh-release.yml@develop
14+
with:
15+
project-name: Ruby
16+
secrets: inherit
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release request
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
9+
jobs:
10+
release:
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
uses: Adyen/adyen-node-api-library/.github/workflows/lib-release.yml@develop
15+
secrets: inherit

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
matrix:
1010
os: [ubuntu-latest]
1111
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
12-
ruby: [2.5, 2.6, 2.7, '3.0', head]
12+
ruby: [2.7, '3.0', 3.1, 3.2, head]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v3

.github/workflows/services.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ruby Library Services Generation
2+
3+
on: [ workflow_dispatch ]
4+
5+
jobs:
6+
generate:
7+
runs-on: ubuntu-latest
8+
name: Generate Services
9+
steps:
10+
- uses: actions/checkout@v3
11+
- run: make allServices
12+
- name: Set PR variables
13+
id: vars
14+
run: |
15+
echo ::set-output name=pr_title::"Update services"
16+
echo ::set-output name=pr_body::"OpenAPI spec or templates produced new services on $(date +%d-%m-%Y) \
17+
by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))."
18+
- name: Create Pull Request
19+
uses: peter-evans/create-pull-request@v5
20+
with:
21+
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
22+
committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
23+
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
24+
base: develop
25+
branch: automation/services
26+
title: ${{ steps.vars.outputs.pr_title }}
27+
body: ${{ steps.vars.outputs.pr_body }}
28+
add-paths: lib/adyen/services

.rubocop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Style/FrozenStringLiteralComment:
2+
Enabled: false
3+
Metrics/BlockLength:
4+
Enabled: false
5+
Documentation:
6+
Enabled: false
7+
Naming/FileName:
8+
Enabled: false

Gemfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# frozen_string_literal: true
22

3-
source "https://rubygems.org"
3+
source 'https://rubygems.org'
44

5-
ruby ">= 2.1.0"
5+
ruby '>= 2.7.0'
66

7-
gem "faraday"
7+
gem 'faraday'
88

9-
gem "bundler", :group => :development
10-
gem "webmock", :group => :development
11-
gem "rspec", :group => :development
12-
gem "activesupport", :group => :development
9+
gem 'activesupport', group: :development
10+
gem 'bundler', group: :development
11+
gem 'rspec', group: :development
12+
gem 'webmock', group: :development

Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ openapi-generator-jar:=build/openapi-generator-cli.jar
55
openapi-generator-cli:=java -jar build/openapi-generator-cli.jar
66
output:=build/out
77

8-
services:=balancePlatform checkout legalEntityManagement management payout platformsAccount platformsFund platformsHostedOnboardingPage platformsNotificationConfiguration transfers
9-
singleFileServices:=balanceControlService binLookup dataProtection recurring storedValue posTerminalManagement payment
8+
services:=balancePlatform checkout legalEntityManagement management payment payout transfers
9+
singleFileServices:=balanceControlService binLookup dataProtection recurring storedValue posTerminalManagement
1010

1111
binLookup: spec=BinLookupService-v54
1212
checkout: spec=CheckoutService-v70
@@ -19,12 +19,8 @@ payout: spec=PayoutService-v68
1919
management: spec=ManagementService-v1
2020
legalEntityManagement: spec=LegalEntityService-v3
2121
balancePlatform: spec=BalancePlatformService-v2
22-
platformsAccount: spec=AccountService-v6
23-
platformsFund: spec=FundService-v6
24-
platformsNotificationConfiguration: spec=NotificationConfigurationService-v6
25-
platformsHostedOnboardingPage: spec=HopService-v6
26-
transfers: spec=TransferService-v3
2722
balanceControlService: spec=BalanceControlService-v1
23+
transfers: spec=TransferService-v3
2824

2925
allServices: $(services) $(singleFileServices)
3026

@@ -47,7 +43,6 @@ $(services): build/spec $(openapi-generator-jar)
4743

4844
$(singleFileServices): build/spec
4945
wget $(openapi-generator-url) -O build/openapi-generator-cli.jar
50-
cat <<< "$$(jq 'del(.paths[][].tags)' build/spec/json/$(spec).json)" > build/spec/json/$(spec).json
5146
rm -rf $(output)
5247
$(openapi-generator-cli) generate \
5348
-i build/spec/json/$(spec).json \
@@ -57,7 +52,7 @@ $(singleFileServices): build/spec
5752
--global-property apis,apiTests=false,apiDocs=false\
5853
--additional-properties serviceName=$@\
5954
--skip-validate-spec
60-
mv $(output)/lib/openapi_client/api/default_api-small.rb lib/adyen/services/$@.rb
55+
mv $(output)/lib/openapi_client/api/*-small.rb lib/adyen/services/$@.rb
6156
rm -rf $(output)
6257

6358
templates: $(openapi-generator-jar)
@@ -69,4 +64,13 @@ $(openapi-generator-jar):
6964

7065
build/spec:
7166
git clone https://github.com/Adyen/adyen-openapi.git build/spec
72-
perl -i -pe's/"openapi" : "3.[0-9].[0-9]"/"openapi" : "3.0.0"/' build/spec/json/*.json
67+
perl -i -pe's/"openapi" : "3.[0-9].[0-9]"/"openapi" : "3.0.0"/' build/spec/json/*.json
68+
69+
# Releases
70+
71+
version:
72+
perl -lne 'print "currentVersion=$$1" if /(\d+\.\d+\.\d+)/' < lib/adyen/version.rb >> "$$GITHUB_OUTPUT"
73+
74+
version_files:=lib/adyen/version.rb
75+
bump:
76+
perl -i -pe 's/$$ENV{"CURRENT_VERSION"}/$$ENV{"NEXT_VERSION"}/' $(version_files)

0 commit comments

Comments
 (0)