Skip to content

Commit

Permalink
Merge pull request #2 from PAYONE-GmbH/feature/basic-implementation
Browse files Browse the repository at this point in the history
Feature/basic implementation
  • Loading branch information
Blackfaded authored Sep 2, 2024
2 parents 577a9c5 + 0dee848 commit 0a3803a
Show file tree
Hide file tree
Showing 337 changed files with 26,632 additions and 34,171 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
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
70 changes: 70 additions & 0 deletions .github/workflows/test_and_scan.yml
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 }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ build/

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

.scannerwork
Gemfile.lock

node_modules/
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["castwide.solargraph", "shopify.ruby-extensions-pack"]
}
41 changes: 41 additions & 0 deletions CHANGELOG.md
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))

1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ group :development, :test do
gem 'rake', '~> 13.0.1'
gem 'pry-byebug'
gem 'rubocop', '~> 1.65'
gem 'rspec', '~> 3.10'
end
65 changes: 0 additions & 65 deletions Gemfile.lock

This file was deleted.

26 changes: 9 additions & 17 deletions PCP-server-Ruby-SDK.gemspec
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
Loading

0 comments on commit 0a3803a

Please sign in to comment.