-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from PAYONE-GmbH/feature/basic-implementation
Feature/basic implementation
- Loading branch information
Showing
337 changed files
with
26,632 additions
and
34,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# .github/workflows/ruby.yml | ||
|
||
name: Publish to Rubygems | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Release Gem | ||
uses: cadwallion/publish-rubygems-action@master | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} | ||
RELEASE_COMMAND: rake release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# .github/workflows/ruby.yml | ||
|
||
name: Ruby Test and SonarCloud | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.0" | ||
bundler-cache: true | ||
|
||
- name: Lint via rubocop | ||
run: ./scripts.sh lint | ||
|
||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
ruby-version: ["3.0", "3.1", "3.2", "3.4"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
|
||
- name: Test | ||
run: ./scripts.sh test | ||
|
||
sonar: | ||
runs-on: ubuntu-20.04 | ||
needs: [lint, test] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.0" | ||
bundler-cache: true | ||
|
||
- name: Test | ||
run: ./scripts.sh test | ||
|
||
- name: fix code coverage paths | ||
working-directory: ./coverage | ||
run: | | ||
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace@g' coverage.json | ||
- name: Run SonarCloud Scan | ||
uses: sonarsource/[email protected] | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["castwide.solargraph", "shopify.ruby-extensions-pack"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## [0.0.1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v0.0.5...v0.0.1) (2024-08-29) | ||
|
||
## [0.0.1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v0.0.4...v0.0.1) (2024-08-28) | ||
|
||
## [0.0.1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v0.1.0...v0.0.1) (2024-08-28) | ||
|
||
### Bug Fixes | ||
|
||
* fix: build gem before publishing it ([6ac4ba2e0c49ddcee2fa85b519482fe639607b41](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/6ac4ba2e0c49ddcee2fa85b519482fe639607b41)) | ||
|
||
## 0.0.1 (2024-08-28) | ||
|
||
### Bug Fixes | ||
|
||
* fix: correclty name ctest file in order to get executed ([d76fd3f8865c7fdc261c790e5bae386b5670141a](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/d76fd3f8865c7fdc261c790e5bae386b5670141a)) | ||
* fix: fix sonarcloud action ([090556413fa6d9cf21774b32f14805583595d602](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/090556413fa6d9cf21774b32f14805583595d602)) | ||
* fix: make coverage path relative to root directory ([c7a071cd2afa607f8497b3cd811408e3eaf64c97](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/c7a071cd2afa607f8497b3cd811408e3eaf64c97)) | ||
* fix: set correct name in package.json ([718c816b4a075d068f67392b877f38fe5f4adea7](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/718c816b4a075d068f67392b877f38fe5f4adea7)) | ||
|
||
### Documentation | ||
|
||
* docs: adjust readme according to other sdks ([8376e921b8cc77909b2bf20c0661dfca8403d07f](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/8376e921b8cc77909b2bf20c0661dfca8403d07f)) | ||
|
||
### Features | ||
|
||
* feat: add basic sdk implementation ([3f12df45d97d8bfbf24be44c391a64fb43280427](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/3f12df45d97d8bfbf24be44c391a64fb43280427)) | ||
* feat: add example app ([d9d3f77c42e43f0c3c3ddc8df62e30762733e2c3](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/d9d3f77c42e43f0c3c3ddc8df62e30762733e2c3)) | ||
|
||
## 0.0.1 (2024-08-28) | ||
|
||
### Bug Fixes | ||
|
||
* fix: correclty name ctest file in order to get executed ([d76fd3f8865c7fdc261c790e5bae386b5670141a](https://github.com/PAYONE-GmbH/PCP-ServerSDK-DotNet/commit/d76fd3f8865c7fdc261c790e5bae386b5670141a)) | ||
* fix: fix sonarcloud action ([090556413fa6d9cf21774b32f14805583595d602](https://github.com/PAYONE-GmbH/PCP-ServerSDK-DotNet/commit/090556413fa6d9cf21774b32f14805583595d602)) | ||
* fix: make coverage path relative to root directory ([c7a071cd2afa607f8497b3cd811408e3eaf64c97](https://github.com/PAYONE-GmbH/PCP-ServerSDK-DotNet/commit/c7a071cd2afa607f8497b3cd811408e3eaf64c97)) | ||
|
||
### Features | ||
|
||
* feat: add basic sdk implementation ([3f12df45d97d8bfbf24be44c391a64fb43280427](https://github.com/PAYONE-GmbH/PCP-ServerSDK-DotNet/commit/3f12df45d97d8bfbf24be44c391a64fb43280427)) | ||
* feat: add example app ([d9d3f77c42e43f0c3c3ddc8df62e30762733e2c3](https://github.com/PAYONE-GmbH/PCP-ServerSDK-DotNet/commit/d9d3f77c42e43f0c3c3ddc8df62e30762733e2c3)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,31 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
=begin | ||
#Commerce Platform API | ||
#RESTful API for the creation of Commerce Cases with Checkouts and the execution of Payments. | ||
The version of the OpenAPI document: 1.8.0 | ||
Generated by: https://openapi-generator.tech | ||
Generator version: 7.7.0 | ||
=end | ||
|
||
$:.push File.expand_path("../lib", __FILE__) | ||
require "PCP-server-Ruby-SDK/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "PCP-server-Ruby-SDK" | ||
s.name = "pcp-server-ruby-sdk" | ||
s.version = PCPServerSDK::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["PAYONE GmbH"] | ||
s.email = [""] | ||
s.homepage = "https://openapi-generator.tech" | ||
s.homepage = "https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby" | ||
s.summary = "Commerce Platform API Ruby Gem" | ||
s.description = "RESTful API for the creation of Commerce Cases with Checkouts and the execution of Payments. " | ||
s.license = "MIT" | ||
s.required_ruby_version = ">= 2.7" | ||
s.required_ruby_version = ">= 3.0" | ||
s.metadata = {} | ||
|
||
s.add_runtime_dependency 'httpx', '~> 1.0', '>= 1.0.0' | ||
s.add_runtime_dependency 'net-http' | ||
s.add_runtime_dependency 'json' | ||
s.add_runtime_dependency 'openssl' | ||
s.add_runtime_dependency 'base64' | ||
|
||
s.add_development_dependency 'minitest', '~> 5.24.1', '>= 5.24.0' | ||
s.add_development_dependency 'simplecov', '~> 0.22.0' | ||
|
||
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } | ||
s.test_files = `find spec/*`.split("\n") | ||
s.test_files = `find test/*`.split("\n") | ||
s.executables = [] | ||
s.require_paths = ["lib"] | ||
end |
Oops, something went wrong.