payload-api 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +26 -0
- data/lib/payload/objects.rb +5 -1
- data/lib/payload/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 410ad3e6bb1c8ab38fea40e0d5046c66e1b5d63e3b5fe50aa3931a7b42980d91
|
4
|
+
data.tar.gz: 2f5ac214282f541c13c43b70bf40b43be119a9153e4dd4075729c15461e02c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f6b7bff1dab83694ced4da76dadced6eb1741be8ee3bc52cba51b586857b155ba78da726d90abc624c36b9e5e3bea1c4031ecbe04a35befca6b65e4b2061b8f
|
7
|
+
data.tar.gz: 675be795cafbd78ebef628fcdf7f7802c87c08fc4c12edb12f86fd9f9d74779a62cac81963e074b16450db922f28e9527eb7a24f71962b83ac4153bdb479f4ac
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Publish Gem
|
2
|
+
on:
|
3
|
+
release:
|
4
|
+
types: [published]
|
5
|
+
jobs:
|
6
|
+
publish:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v4
|
10
|
+
- name: Set up Ruby
|
11
|
+
uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: 3.0.1
|
14
|
+
- run: |
|
15
|
+
mkdir -p $HOME/.gem
|
16
|
+
touch $HOME/.gem/credentials
|
17
|
+
chmod 0600 $HOME/.gem/credentials
|
18
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
19
|
+
gem build *.gemspec
|
20
|
+
gem push *.gem
|
21
|
+
env:
|
22
|
+
# Make sure to update the secret name
|
23
|
+
# if yours isn't named RUBYGEMS_AUTH_TOKEN
|
24
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
25
|
+
- run: gem build *.gemspec
|
26
|
+
- run: gem push *.gem
|
data/lib/payload/objects.rb
CHANGED
@@ -10,6 +10,10 @@ module Payload
|
|
10
10
|
@poly = { 'type' => 'client' }
|
11
11
|
end
|
12
12
|
|
13
|
+
class OAuthToken < ARMObject
|
14
|
+
@spec = { 'object' => 'oauth_token', 'endpoint' => '/oauth/token' }
|
15
|
+
end
|
16
|
+
|
13
17
|
class Account < ARMObject
|
14
18
|
@spec = { 'object' => 'account' }
|
15
19
|
end
|
@@ -23,7 +27,7 @@ module Payload
|
|
23
27
|
end
|
24
28
|
|
25
29
|
class Org < ARMObject
|
26
|
-
@spec = { 'object' => 'org', '
|
30
|
+
@spec = { 'object' => 'org', 'endpoint' => '/account/orgs' }
|
27
31
|
end
|
28
32
|
|
29
33
|
class Transaction < ARMObject
|
data/lib/payload/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payload-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Payload
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple library to interface with the Payload API. See https://docs.payload.co
|
14
14
|
for details.
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- ".github/workflows/publish.yml"
|
20
21
|
- ".github/workflows/ruby-app.yml"
|
21
22
|
- LICENSE
|
22
23
|
- README.md
|
@@ -35,7 +36,7 @@ homepage: https://docs.payload.co
|
|
35
36
|
licenses:
|
36
37
|
- MIT
|
37
38
|
metadata: {}
|
38
|
-
post_install_message:
|
39
|
+
post_install_message:
|
39
40
|
rdoc_options: []
|
40
41
|
require_paths:
|
41
42
|
- lib
|
@@ -50,8 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
51
|
- !ruby/object:Gem::Version
|
51
52
|
version: '0'
|
52
53
|
requirements: []
|
53
|
-
rubygems_version: 3.
|
54
|
-
signing_key:
|
54
|
+
rubygems_version: 3.2.15
|
55
|
+
signing_key:
|
55
56
|
specification_version: 4
|
56
57
|
summary: Payload ruby library
|
57
58
|
test_files: []
|